B4J Question How solve Error JVM_Bind (jnetwork Lib) ??

behnam_tr

Active Member
Licensed User
Longtime User
Hi everyone
I can not find a solution to this error. Thanks to friends who know how to help.
This problem did not exist before the update to version 9.50 !!

I Attach original project based on Erel Topic :

Also system Firewall is turned off .

B4X:
Waiting for debugger to connect...
Program started.
Error occurred on line: 32 (Main)
java.net.BindException: Address already in use: JVM_Bind
    at java.net.DualStackPlainSocketImpl.bind0(Native Method)
    at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:102)
    at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:513)
    at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:180)
    at java.net.ServerSocket.bind(ServerSocket.java:375)
    at java.net.ServerSocket.<init>(ServerSocket.java:237)
    at java.net.ServerSocket.<init>(ServerSocket.java:128)
    at anywheresoftware.b4a.objects.SocketWrapper$ServerSocketWrapper.Initialize(SocketWrapper.java:226)
    at b4j.example.main._appstart(main.java:111)
    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.shell.Shell.runMethod(Shell.java:629)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:237)
    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:111)
    at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:98)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:98)
    at b4j.example.main.start(main.java:38)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$8(LauncherImpl.java:863)
    at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$7(PlatformImpl.java:326)
    at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(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$4(WinApplication.java:185)
    at java.lang.Thread.run(Thread.java:748)
 

Attachments

  • B4J_Network - Copy.zip
    4.4 KB · Views: 216
Last edited:

behnam_tr

Active Member
Licensed User
Longtime User
Will the port that is opened remain open until it is closed ??
I get the same error after restarting the system ??
What is the solution ?? How to close the port and open it again ??
 
Upvote 0

behnam_tr

Active Member
Licensed User
Longtime User
The port remains open until it is explicitly closed or the process is killed.

Maybe a different program opens it.
How to find open ports: https://stackoverflow.com/questions...-is-listening-on-a-tcp-or-udp-port-on-windows

I checked the cases but it was not resolved.
I even checked all the open ports with TCPView software, but the port I want is not open at all !!

https://docs.microsoft.com/en-us/sysinternals/downloads/tcpview

I think the problem is from somewhere else, but where ?!
 
Upvote 0
Top