iOS Question How do I reinstall the b4ibuildserver

davepamn

Active Member
Licensed User
Longtime User
ultiException[java.net.BindException: Address already in use, java.net.BindException: Address already in use]

I am getting this error after removing files in my key directory.

I had everything running yesterday. Today, My bridge was having a problem. I wasn't behind the firewall. My mistake. I thought it was related to the dynamic ip. I removed the contents of the key directory. Now, nothing works. is there a way to start over the installation
 
Last edited:

davepamn

Active Member
Licensed User
Longtime User
I tried changing manual: to the mac ip address but mac-server-aa would not load after deleting the contents of the key directory.

I had to use the OS ip to build the ssl then I could change the manual: to the mac ip.

However, the virtual nic ip address in the ssl prevents communication with safari on the iPad.
 
Upvote 0

davepamn

Active Member
Licensed User
Longtime User
B4X:
Build server version: 1.5



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



2015-03-11 07:42:30.358:INFO::main: Logging initialized @791ms



Loading default configuration file.



AppPath=/Users/xxxxxx/Documents/development/macserver-aa



Forcing ip address to: 10.21.102.32







2015-03-11 07:42:30.672:INFO:oejs.Server:main: jetty-9.1.z-SNAPSHOT



2015-03-11 07:42:30.697:WARN:oejh.MimeTypes:main: java.util.MissingResourceException: Can't find bundle for base name org/eclipse/jetty/http/encoding, locale en_US



2015-03-11 07:42:30.750:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@25618e91{/,file:/Users/xxxx/Documents/Development/macserver-aa/www,AVAILABLE}



2015-03-11 07:42:30.753:INFO:oejs.AbstractNCSARequestLog:main: Opened /Users/xxxxxxxx/Documents/Development/macserver-aa/logs/b4j-2015_03_11.request.log



2015-03-11 07:42:30.822:INFO:oejs.ServerConnector:main: Started ServerConnector@6ad5c04e{HTTP/1.1}{0.0.0.0:51041}



2015-03-11 07:42:30.824:WARN:oejuc.AbstractLifeCycle:main: FAILED SslContextFactory@2aaf7cc2(/Users/xxxxxxxx/Documents/development/macserver-aa/key/key.jks,/Users/xxxxxxxx/Documents/development/macserver-aa/key/key.jks): java.io.FileNotFoundException: /Users/xxxxxxxx/Documents/Development/macserver-aa/key/key.jks (No such file or directory)



java.io.FileNotFoundException: /Users/xxxxxxxx/Documents/Development/macserver-aa/key/key.jks (No such file or directory)



    at java.io.FileInputStream.open(Native Method)



    at java.io.FileInputStream.<init>(FileInputStream.java:138)



    at org.eclipse.jetty.util.resource.FileResource.getInputStream(FileResource.java:294)



    at org.eclipse.jetty.util.security.CertificateUtils.getKeyStore(CertificateUtils.java:43)



    at org.eclipse.jetty.util.ssl.SslContextFactory.loadKeyStore(SslContextFactory.java:864)



    at org.eclipse.jetty.util.ssl.SslContextFactory.doStart(SslContextFactory.java:270)



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



    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:125)



    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:107)



    at org.eclipse.jetty.server.SslConnectionFactory.doStart(SslConnectionFactory.java:64)



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



    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:125)



    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:107)



    at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:260)



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



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



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



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



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



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



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



    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)



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



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



2015-03-11 07:42:30.826:WARN:oejuc.AbstractLifeCycle:main: FAILED SslConnectionFactory@6e3c1e69{SSL-http/1.1}: java.io.FileNotFoundException: /Users/xxxxxxxx/Documents/Development/macserver-aa/key/key.jks (No such file or directory)



java.io.FileNotFoundException: /Users/xxxxxxxx/Documents/Development/macserver-aa/key/key.jks (No such file or directory)



    at java.io.FileInputStream.open(Native Method)



    at java.io.FileInputStream.<init>(FileInputStream.java:138)



    at org.eclipse.jetty.util.resource.FileResource.getInputStream(FileResource.java:294)



    at org.eclipse.jetty.util.security.CertificateUtils.getKeyStore(CertificateUtils.java:43)



    at org.eclipse.jetty.util.ssl.SslContextFactory.loadKeyStore(SslContextFactory.java:864)



    at org.eclipse.jetty.util.ssl.SslContextFactory.doStart(SslContextFactory.java:270)



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



    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:125)



    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:107)



    at org.eclipse.jetty.server.SslConnectionFactory.doStart(SslConnectionFactory.java:64)



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



    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:125)



    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:107)



    at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:260)



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



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



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



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



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



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



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



    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)



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



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



2015-03-11 07:42:30.827:WARN:oejuc.AbstractLifeCycle:main: FAILED ServerConnector@1888ff2c{SSL-http/1.1}{0.0.0.0:51042}: java.io.FileNotFoundException: /Users/xxxxxxxx/Documents/Development/macserver-aa/key/key.jks (No such file or directory)



java.io.FileNotFoundException: /Users/xxxxxxxx/Documents/Development/macserver-aa/key/key.jks (No such file or directory)



    at java.io.FileInputStream.open(Native Method)



    at java.io.FileInputStream.<init>(FileInputStream.java:138)



    at org.eclipse.jetty.util.resource.FileResource.getInputStream(FileResource.java:294)



    at org.eclipse.jetty.util.security.CertificateUtils.getKeyStore(CertificateUtils.java:43)



    at org.eclipse.jetty.util.ssl.SslContextFactory.loadKeyStore(SslContextFactory.java:864)



    at org.eclipse.jetty.util.ssl.SslContextFactory.doStart(SslContextFactory.java:270)



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



    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:125)



    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:107)



    at org.eclipse.jetty.server.SslConnectionFactory.doStart(SslConnectionFactory.java:64)



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



    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:125)



    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:107)



    at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:260)



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



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



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



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



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



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



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



    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)



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



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



2015-03-11 07:42:30.827:WARN:oejuc.AbstractLifeCycle:main: FAILED org.eclipse.jetty.server.Server@35851384: java.io.FileNotFoundException: /Users/xxxxxxxx/Documents/Development/macserver-aa/key/key.jks (No such file or directory)



java.io.FileNotFoundException: /Users/xxxxxxxx/Documents/Development/macserver-aa/key/key.jks (No such file or directory)



    at java.io.FileInputStream.open(Native Method)



    at java.io.FileInputStream.<init>(FileInputStream.java:138)



    at org.eclipse.jetty.util.resource.FileResource.getInputStream(FileResource.java:294)



    at org.eclipse.jetty.util.security.CertificateUtils.getKeyStore(CertificateUtils.java:43)



    at org.eclipse.jetty.util.ssl.SslContextFactory.loadKeyStore(SslContextFactory.java:864)



    at org.eclipse.jetty.util.ssl.SslContextFactory.doStart(SslContextFactory.java:270)



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



    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:125)



    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:107)



    at org.eclipse.jetty.server.SslConnectionFactory.doStart(SslConnectionFactory.java:64)



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



    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:125)



    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:107)



    at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:260)



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



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



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



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



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



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



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



    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)



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



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



main._appstart (java line: 124)



java.io.FileNotFoundException: /Users/xxxxxxxx/Documents/Development/macserver-aa/key/key.jks (No such file or directory)



    at java.io.FileInputStream.open(Native Method)



    at java.io.FileInputStream.<init>(FileInputStream.java:138)



    at org.eclipse.jetty.util.resource.FileResource.getInputStream(FileResource.java:294)



    at org.eclipse.jetty.util.security.CertificateUtils.getKeyStore(CertificateUtils.java:43)



    at org.eclipse.jetty.util.ssl.SslContextFactory.loadKeyStore(SslContextFactory.java:864)



    at org.eclipse.jetty.util.ssl.SslContextFactory.doStart(SslContextFactory.java:270)



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



    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:125)



    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:107)



    at org.eclipse.jetty.server.SslConnectionFactory.doStart(SslConnectionFactory.java:64)



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



    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:125)



    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:107)



    at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:260)



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



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



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



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



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



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



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



    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)



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



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







main.main (java line: 28)



java.lang.RuntimeException: java.io.FileNotFoundException: /Users/xxxxxxxx/Documents/Development/macserver-aa/key/key.jks (No such file or directory)


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



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



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



Caused by: java.io.FileNotFoundException: /Users/xxxxxxxx/Documents/Development/macserver-aa/key/key.jks (No such file or directory)



    at java.io.FileInputStream.open(Native Method)



    at java.io.FileInputStream.<init>(FileInputStream.java:138)



    at org.eclipse.jetty.util.resource.FileResource.getInputStream(FileResource.java:294)



    at org.eclipse.jetty.util.security.CertificateUtils.getKeyStore(CertificateUtils.java:43)



    at org.eclipse.jetty.util.ssl.SslContextFactory.loadKeyStore(SslContextFactory.java:864)



    at org.eclipse.jetty.util.ssl.SslContextFactory.doStart(SslContextFactory.java:270)



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



    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:125)



    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:107)



    at org.eclipse.jetty.server.SslConnectionFactory.doStart(SslConnectionFactory.java:64)



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



    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:125)



    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:107)



    at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:260)



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



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



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



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



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



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



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



    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)



    ... 2 more
 
Upvote 0

davepamn

Active Member
Licensed User
Longtime User
The following files were deleted from the key directory
04.pem
index.txt.attr
index.txt.old
jetty.crt
key.jks
key.em
serial.old
 
Upvote 0

davepamn

Active Member
Licensed User
Longtime User
use ls -la to see all the files in the key directory

I found the file that was causing the PROBLEM. ".ds_store"
it was not showing up in finder.
Once I delete the .ds_store file the ssl generated with the correct IP address.
 
Upvote 0

davepamn

Active Member
Licensed User
Longtime User
I still can't install the b4i from safari

The iTunes installed b4i crashes when connected by debug.
 
Upvote 0

davepamn

Active Member
Licensed User
Longtime User
10.21.102.32:51042/test shows the ssl ip address as 10.21.102.32 ssl port 51042 build version 1.5
 
Upvote 0

davepamn

Active Member
Licensed User
Longtime User
When I opened Xcode, it wanted to install debug components. I installed them. I will try building b4i bridge
 
Upvote 0

davepamn

Active Member
Licensed User
Longtime User
B4X:
2015-03-12 07:56:35.276:INFO:oejs.Server:main: jetty-9.1.z-SNAPSHOT

2015-03-12 07:56:35.293:WARN:oejh.MimeTypes:main: java.util.MissingResourceException: Can't find bundle for base name org/eclipse/jetty/http/encoding, locale en_US

2015-03-12 07:56:35.308:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@23223dd8{/,file:/Users/xxxxx/Documents/Development/macserver-aa/www,AVAILABLE}

2015-03-12 07:56:35.310:INFO:oejs.AbstractNCSARequestLog:main: Opened /Users/xxxxxx/Documents/Development/macserver-aa/logs/b4j-2015_03_12.request.log

2015-03-12 07:56:35.334:INFO:oejs.ServerConnector:main: Started ServerConnector@2f7c7260{HTTP/1.1}{0.0.0.0:51041}

2015-03-12 07:56:35.517:INFO:oejs.ServerConnector:main: Started ServerConnector@2bbf4b8b{SSL-http/1.1}{0.0.0.0:51042}

2015-03-12 07:56:35.517:INFO:oejs.Server:main: Started @1950ms

Build server is ready

https://10.21.102.32

:51042

http://10.21.102.32

:51041

Adding user to keychain: company_name

07:57:08| Compilation time: 1295, company_name queue: 0, success: true
 
Upvote 0

davepamn

Active Member
Licensed User
Longtime User
I think Hosted Mac Server is the way to go. It works and I don't need to think about configuration or setup. We licensed the Hosted Mac Server and the full functionality of debug and release were immediately available.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…