Bug? Error Debug mode on starting

Discussion in 'B4J Bugs & Wishlist' started by Tayfur, Jan 24, 2019.

  1. Tayfur

    Tayfur Well-Known Member Licensed User

    Hello @Erel ;

    I have sometimes read error when Run(debug mode)
    I see the error many times in a row. when connection java and app at start.

    it works normally sametimes when it Rebulid or save project or closing desinger ide.
    then everything works normally.
    For now, it has no effect on my project, it can only be annoying.
    you said before " the virus program blocked connection with java or app"
    But now; sometime a lot of time repat it.
    I use Kaspersky, some times coled it. But its not effect. B4J close-re_open... all wys tried.
    its broken.

    is it have port number, packing rules etc. can I add some permissions or etc for Kaspersky .
    I tested it. app running release mode. and it connecting / reading logs. After I tested debug mode , it is not run.

    please do you have idea?

    package rules permissions

    upload_2019-1-24_18-0-50.png

    application rules
    upload_2019-1-24_18-3-57.png



    Waiting for debugger to connect...
    java.lang.ExceptionInInitializerError
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:348)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplicationWithArgs$155(LauncherImpl.java:352)
    at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$174(PlatformImpl.java:326)
    at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294)
    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$147(WinApplication.java:177)
    at java.lang.Thread.run(Thread.java:748)
    Caused by: java.lang.RuntimeException: java.net.SocketException: Connection reset
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:120)
    at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:98)
    at KAMIL.v1.main.<clinit>(main.java:17)
    ... 11 more
    Caused by: java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:210)
    at java.net.SocketInputStream.read(SocketInputStream.java:141)
    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:229)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:167)
    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:498)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:91)
    ... 13 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:498)
    at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
    Caused by: java.lang.NullPointerException
    at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:383)
    at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
    ... 5 more
     
    Last edited: Jan 24, 2019
  2. Tayfur

    Tayfur Well-Known Member Licensed User

    @Erel;
    Now; new day; i disabled the Kaspersky, First time open my project. App not run on dubug mode..
    Many many times tried... it s same result!!! :(:(:(:(
     
  3. Tayfur

    Tayfur Well-Known Member Licensed User

    I serched on comminty.


    https://www.b4x.com/android/forum/threads/crash-webapp-in-debug-mode.59856/#post-377693
     
  4. Tayfur

    Tayfur Well-Known Member Licensed User

    I delete some bookmarks and some berakpoint.
    Now; its works. maybe my project is large (17mb >> release.jar file)
    this is very annoying. IDE never worked on Debug mode for 1 day.
    @Erel I'm afraid of the collapse of my project that you worked for months.
    What are your suggestions or solutions?
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    If you are able to reproduce it then you can send me the project and I'll try it here.
     
  6. Tayfur

    Tayfur Well-Known Member Licensed User

  7. Erel

    Erel Administrator Staff Member Licensed User

    Bookmarks or breakpoints? Breakpoints can make a difference in some edge cases.
     
  8. Tayfur

    Tayfur Well-Known Member Licensed User

    may you explane to me?

    Today working with my app, I get same error. I last code in "xlsHATA" module. I deleted bookmarks in modele, after code runs..
     
  9. Erel

    Erel Administrator Staff Member Licensed User

    Are you adding bookmarks (black flags) or breakpoints (red circles)?
     
  10. Tayfur

    Tayfur Well-Known Member Licensed User

    breakpoints.,
     
  11. Erel

    Erel Administrator Staff Member Licensed User

    A breakpoint in a sub causes the debugger to choose a different and more complicated execution pipeline. I cannot say what causes this error without a deeper investigation. It might be related to code in process_globals that shouldn't be there.
     
  12. Tayfur

    Tayfur Well-Known Member Licensed User

    did you test my app for error?
     
  13. Erel

    Erel Administrator Staff Member Licensed User

    No. I understood that you got it working. If not then upload the project with the breakpoints that cause the error to appear.
     
  14. Tayfur

    Tayfur Well-Known Member Licensed User

    Erel again start it. it has a devil inside... I cant understand..
    full code in drive. Please where is the problem



    Waiting for debugger to connect...
    java.lang.ExceptionInInitializerError
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:348)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplicationWithArgs$155(LauncherImpl.java:352)
    at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$174(PlatformImpl.java:326)
    at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294)
    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$147(WinApplication.java:177)
    at java.lang.Thread.run(Thread.java:748)
    Caused by: java.lang.RuntimeException: java.net.SocketException: Connection reset
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:120)
    at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:98)
    at KAMIL.v1.main.<clinit>(main.java:17)
    ... 11 more
    Caused by: java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:210)
    at java.net.SocketInputStream.read(SocketInputStream.java:141)
    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:229)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:167)
    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:498)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:91)
    ... 13 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:498)
    at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
    Caused by: java.lang.NullPointerException
    at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:383)
    at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
    ... 5 more
     
    Last edited: Feb 8, 2019
  15. Erel

    Erel Administrator Staff Member Licensed User

    Where is the project? Does it happen if you remove all breakpoints?
     
  16. Tayfur

    Tayfur Well-Known Member Licensed User

  17. Tayfur

    Tayfur Well-Known Member Licensed User

  18. Erel

    Erel Administrator Staff Member Licensed User

    1. I've removed the Dialogs library. I don't think that you need it.
    2. I commented the code related to jAutoUpdate as I didn't have the library.
    3. I've removed MyResim type. Seems like you declared it in jPicureBox as well (maybe somewhere else).

    I've ran it 5 times, with and without breakpoints, and wasn't able to reproduce this issue.
     
  19. Tayfur

    Tayfur Well-Known Member Licensed User

    Yes, I worked my laptop at weekend. İts same saw same result.
    Laptop is win10 & has not virus app, its like same my workpc.

    I searched problems.
    I removed myresim and etc for clean code like you.
    After Isaw 2 diffrent version of JAVA. And deleted all java versions.
    Again I loaded latest 1.8.201 version.
    After app runs with 2-3 hour .

    Today; for work PC, Deleted all JAVA version and re-load latest version of JAVA.
    Now works it. I keep watching code.
    Hopefully this is just the problem.

    Is it a problem to have more than one java version installed?
     
    Last edited: Feb 11, 2019
  20. Erel

    Erel Administrator Staff Member Licensed User

    No.
     
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