Bug? Error in Debug mode B4J Version 2.8

Discussion in 'B4J Bugs & Wishlist' started by swissmade, Feb 10, 2015.

  1. swissmade

    swissmade Active Member Licensed User

    Hi Erel,
    Is there a possibility to use 2.8 with my Debug problems or is it the way I write the code??
    Back to 2.5 I see many very nice options I like to use with 2.8.
    The program you have seen will getting more and more complex and bigger.
    License plate reading will also a part of this.

    Many thanks for you good help.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. swissmade

    swissmade Active Member Licensed User

  4. swissmade

    swissmade Active Member Licensed User

    Working with B4J 2.5 is still have problems in Debug mode.
    Same I have seen in B4J 2.8.
    Start the application I get following Error.
    Start again the error is away most of the tima and the Program is starting.
    Seems that the Debugger have some speed problems. This is happening when I change or add some code.
    Processing timeout is set to 60 seconds.

    Hope somebody has a solutin for this.
    Thanks

    java.lang.ExceptionInInitializerError
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:344)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplicationWithArgs$148(LauncherImpl.java:327)
    at com.sun.javafx.application.LauncherImpl$$Lambda$43/99550389.run(Unknown Source)
    at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$166(PlatformImpl.java:323)
    at com.sun.javafx.application.PlatformImpl$$Lambda$44/340870931.run(Unknown Source)
    at com.sun.javafx.application.PlatformImpl.lambda$null$164(PlatformImpl.java:292)
    at com.sun.javafx.application.PlatformImpl$$Lambda$47/1223211377.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$165(PlatformImpl.java:291)
    at com.sun.javafx.application.PlatformImpl$$Lambda$46/1530388690.run(Unknown Source)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at com.sun.glass.ui.win.WinApplication.lambda$null$141(WinApplication.java:102)
    at com.sun.glass.ui.win.WinApplication$$Lambda$37/1190900417.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.RuntimeException: java.net.SocketException: Connection reset
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:114)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:82)
    at tcp.server.main.<clinit>(main.java:16)
    ... 16 more
    Caused by: java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:189)
    at java.net.SocketInputStream.read(SocketInputStream.java:121)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
    at java.io.DataInputStream.readByte(DataInputStream.java:265)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:217)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:156)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
    ... 18 more
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
    Caused by: java.lang.NullPointerException
    at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:358)
    at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:303)
    ... 5 more
     
  5. Erel

    Erel Administrator Staff Member Licensed User

  6. swissmade

    swissmade Active Member Licensed User

    Thanks Erel,
    Have the log.
    I hope you can help me out here.
     

    Attached Files:

    • log.txt
      File size:
      21 KB
      Views:
      58
  7. Erel

    Erel Administrator Staff Member Licensed User

    Seems like you are not using the modified jRapidDebug.jar I you sent in the past which should (partially) fix this issue.
     
  8. swissmade

    swissmade Active Member Licensed User

    Just installed the version 2.5
    Ok will install this thanks.
     
  9. swissmade

    swissmade Active Member Licensed User

    :(:(
    Installing B4J 2.8 again and the Debugger Fix give me again the same issue.
    Breakpoints not working and not seen when I start with Breakpoints on.
    Place them later again work sometimes.:(
     
  10. swissmade

    swissmade Active Member Licensed User

    Running the code the Debbuger sometimes is stop by a Breakpoint not exist.
    This without changing any code.
     
  11. swissmade

    swissmade Active Member Licensed User

    I have the Idea, that somehow when I start the Program old code is still in memory.
    Leave the IDE and start again the code is running with Debug.
    Is there a option for the Debugger to force full compilation or is this always done.
    Running B4J 2.8 with the modified jRapidDebug.jar
     
  12. swissmade

    swissmade Active Member Licensed User

    Reinstall B4J 2.5 and I have less problems then with 2.8.
    Will see what is happening.
     
  13. Erel

    Erel Administrator Staff Member Licensed User

    It always forces a full compilation in B4J.
     
  14. swissmade

    swissmade Active Member Licensed User

    Maybe a Memory issue with Big Programs.
    Ok Then I have to stay with 2.5:( for not having so much Debug problems.
    Bad 2.8 has some very nice options I like to use.
     
  15. swissmade

    swissmade Active Member Licensed User

    I really get the idea it is a memory issue.:oops:
    Get sometimes the same error with 2.5 and when I close B4J and Start it again the Problem is away for a while.
    My Computer is not too fast. Still working with a Core 2 Quad and Windows 7.
     
    Last edited: Mar 15, 2015
  16. swissmade

    swissmade Active Member Licensed User

    Maybe found something.
    When I get the Error I switch to release mode without running and switch it back to debug mode.
    The error is away for a while.
    This in B4J 2.5 and B4J 2.8.
    Maybe this can help.
     
  17. swissmade

    swissmade Active Member Licensed User

    Hi Erel
    Sorry to use your time on this thread but I think the Problem was on my PC.
    I always was thinking this is a Memory problem and it was but in an other way I expected.
    I never watch my memory in my PC because the PC is function normal and give me not any error.
    This week I have seen, that I only have 7GB instead of 8GB in my PC.
    Testing the Memory there was not any problem.
    After set the Bios, I never touch for a while, to Default settings I get 8GB back.
    Reinstall B4J 2.8 I don't see any errors anymore.
    I will watch this and will let you know if something else is going on.

    Thanks again for your very good support.
    Cheers
    Swissmade
     
    Erel likes this.
  18. Erel

    Erel Administrator Staff Member Licensed User

    Interesting. Lets see whether this error returns. I wasn't able to reproduce it here.
     
  19. swissmade

    swissmade Active Member Licensed User

    I have seen this error again but not so much as before.
    Now I go to test this with the Debugger fix.
    I will let you know.
    Many thanks again.;)
     
  20. swissmade

    swissmade Active Member Licensed User

    What I see is, that when I start with Breakpoints, the Breakpoints are not seen and ignored.
    New added Breakpoints are seen.

    Start without Breakpoints and Add them when the Program is running, Breakpoints are seen.

    Maybe you can work with this to find a solution.
    If you like, I can arrange a Team-viewer session and you can see it what I mean.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice