Bug? Error Debug mode on starting

Tayfur

Well-Known Member
Licensed User
Longtime 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



application rules




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:

Tayfur

Well-Known Member
Licensed User
Longtime User
I serched on comminty.


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

Tayfur

Well-Known Member
Licensed User
Longtime 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?
 

Tayfur

Well-Known Member
Licensed User
Longtime User

Tayfur

Well-Known Member
Licensed User
Longtime User
Bookmarks or breakpoints? Breakpoints can make a difference in some edge cases.
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..
 

Tayfur

Well-Known Member
Licensed User
Longtime 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.

did you test my app for error?
 

Tayfur

Well-Known Member
Licensed User
Longtime User
No. I understood that you got it working. If not then upload the project with the breakpoints that cause the error to appear.

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:

Erel

B4X founder
Staff member
Licensed User
Longtime 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.
 

Tayfur

Well-Known Member
Licensed User
Longtime 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:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…