iOS Question Local Builder Java Problem

mbayik

Member
Licensed User
Hi, i 've a problem with java on my mac.i was using my local builder but suddenly i got this message
Last login: Mon Feb 19 22:04:49 on ttys000

Abdullah-MacBook-Air:~ mehmet$ java -jar /Users/mehmet/B4ibuildserver.jar

Build server version: 4.6

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2018-02-19 22:05:46.189:INFO::main: Logging initialized @327ms to org.eclipse.jetty.util.log.StdErrLog

Loading default configuration file.

AppPath=/Users/mehmet

Mac version: 10.13.3

Xcode path: /Applications/Xcode.app/Contents/Developer

Xcode version: Xcode 9.2

Build version 9C40b


2018-02-19 22:05:46.858:INFO:eek:ejs.Server:main: jetty-9.4.z-SNAPSHOT

2018-02-19 22:05:46.953:INFO:eek:ejs.session:main: DefaultSessionIdManager workerName=node0

2018-02-19 22:05:46.954:INFO:eek:ejs.session:main: No SessionScavenger set, using defaults

2018-02-19 22:05:46.958:INFO:eek:ejs.session:main: Scavenging every 600000ms

2018-02-19 22:05:46.973:INFO:eek:ejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@3c0ecd4b{/,file:///Users/mehmet/www,AVAILABLE}

2018-02-19 22:05:46.984:INFO:eek:ejs.AbstractNCSARequestLog:main: Opened /Users/mehmet/logs/b4j-2018_02_19.request.log

main._appstart (java line: 130)

MultiException[java.net.BindException: Address already in use, java.net.BindException: Address already in use]

at org.eclipse.jetty.server.Server.doStart(Server.java:416)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at anywheresoftware.b4j.object.ServerWrapper.Start(ServerWrapper.java:211)

at b4j.example.main._appstart(main.java:130)

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:90)

at anywheresoftware.b4a.BA.raiseEvent(BA.java:77)

at b4j.example.main.main(main.java:29)

Suppressed: java.net.BindException: Address already in use

at sun.nio.ch.Net.bind0(Native Method)

at sun.nio.ch.Net.bind(Net.java:433)

at sun.nio.ch.Net.bind(Net.java:425)

at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)

at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)

at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:298)

at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)

at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at org.eclipse.jetty.server.Server.doStart(Server.java:431)

... 10 more

Caused by: java.net.BindException: Address already in use

at sun.nio.ch.Net.bind0(Native Method)

at sun.nio.ch.Net.bind(Net.java:433)

at sun.nio.ch.Net.bind(Net.java:425)

at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)

at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)

at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:298)

at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)

at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at org.eclipse.jetty.server.Server.doStart(Server.java:431)

... 10 more


main.main (java line: 29)

java.lang.RuntimeException: MultiException[java.net.BindException: Address already in use, java.net.BindException: Address already in use]

at anywheresoftware.b4a.BA.raiseEvent2(BA.java:119)

at anywheresoftware.b4a.BA.raiseEvent(BA.java:77)

at b4j.example.main.main(main.java:29)

Caused by: MultiException[java.net.BindException: Address already in use, java.net.BindException: Address already in use]

at org.eclipse.jetty.server.Server.doStart(Server.java:416)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at anywheresoftware.b4j.object.ServerWrapper.Start(ServerWrapper.java:211)

at b4j.example.main._appstart(main.java:130)

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:90)

... 2 more

Suppressed: java.net.BindException: Address already in use

at sun.nio.ch.Net.bind0(Native Method)

at sun.nio.ch.Net.bind(Net.java:433)

at sun.nio.ch.Net.bind(Net.java:425)

at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)

at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)

at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:298)

at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)

at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at org.eclipse.jetty.server.Server.doStart(Server.java:431)

... 10 more

Caused by: java.net.BindException: Address already in use

at sun.nio.ch.Net.bind0(Native Method)

at sun.nio.ch.Net.bind(Net.java:433)

at sun.nio.ch.Net.bind(Net.java:425)

at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)

at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)

at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:298)

at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)

at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at org.eclipse.jetty.server.Server.doStart(Server.java:431)

... 10 more
this error appears when i start java batch file in terminal on mac. it seems everything ok but no..what happened ??
 

keirS

Well-Known Member
Licensed User
Longtime User
Your builder is already running.

Open a terminal and run netstat -ap tcp | grep -i "listen"

You will see *.51402 and *.51041 listed. This means that those ports are already in use. That's what the line

B4X:
MultiException[java.net.BindException: Address already in use, java.net.BindException: Address already in use]

is telling you.
 
Upvote 0

mbayik

Member
Licensed User
thank you for your answer but nothing is working on the background. i always run the builder with a batch in Terminal manually and there is no 51402 and 51041 ports listening.. i restart my mac a couple times and nothing changed. :(
 
Upvote 0

mbayik

Member
Licensed User
it didnt work than i restarted couple times my mac, so it seem working. but i didnt really understand what happened than it worked..now i've simulator problem
 
Upvote 0
Top