iOS Question local server problem

xulihang

Active Member
Licensed User
Longtime User
Build server version: 1.5

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

2015-02-11 13:05:06.810:INFO::main: Logging initialized @208ms

Loading default configuration file.

AppPath=/Users/xulihang/Downloads/macserver-aa

Forcing ip address to: 192.168.1.105


2015-02-11 13:05:06.963:INFO:eek:ejs.Server:main: jetty-9.1.z-SNAPSHOT

2015-02-11 13:05:06.993:WARN:eek:ejh.MimeTypes:main: java.util.MissingResourceException: Can't find bundle for base name org/eclipse/jetty/http/encoding, locale zh_CN


2015-02-11 13:05:07.019:INFO:eek:ejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@7bb11784{/,file:/Users/xulihang/Downloads/macserver-aa/www,AVAILABLE}

2015-02-11 13:05:07.022:INFO:eek:ejs.AbstractNCSARequestLog:main: Opened /Users/xulihang/Downloads/macserver-aa/logs/b4j-2015_02_11.request.log

2015-02-11 13:05:07.050:INFO:eek:ejs.ServerConnector:main: Started ServerConnector@16c0663d{HTTP/1.1}{0.0.0.0:51041}

2015-02-11 13:05:07.378:INFO:eek:ejs.ServerConnector:main: Started ServerConnector@53f65459{SSL-http/1.1}{0.0.0.0:51042}

2015-02-11 13:05:07.379:INFO:eek:ejs.Server:main: Started @786ms

Build server is ready

https://192.168.1.105:51042

http://192.168.1.105:51041


If I visit https://192.168.1.105:51042/download?type=manifest_b4i_default, the log is like this:

java.lang.RuntimeException: java.lang.StringIndexOutOfBoundsException: String index out of range: -1

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

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

at anywheresoftware.b4j.object.JServlet$Handle.run(JServlet.java:115)

at anywheresoftware.b4j.object.JServlet.Handle(JServlet.java:91)

at anywheresoftware.b4j.object.JServlet.doGet(JServlet.java:74)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:738)

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:551)

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:219)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1111)

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:478)

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1045)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)

at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)

at org.eclipse.jetty.server.Server.handle(Server.java:462)

at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:279)

at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:232)

at org.eclipse.jetty.io.AbstractConnection$1.run(AbstractConnection.java:534)

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607)

at org.eclipse.jetty.util.thread.QueuedThreadPool$1.run(QueuedThreadPool.java:536)

at java.lang.Thread.run(Thread.java:745)

Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1

at java.lang.String.substring(String.java:1954)

at b4j.example.download._handle(download.java:50)

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)

... 23 more


I can open the install page, but I cannot install app. It alerts "cannot connect to 192.168.1.105"
 

xulihang

Active Member
Licensed User
Longtime User
OS X Yosemite 10.10

java version "1.8.0_25"

Java(TM) SE Runtime Environment (build 1.8.0_25-b17)

Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
 
Upvote 0

xulihang

Active Member
Licensed User
Longtime User
I prefer to use xcode to debug my app rather than use b4i now as I own a hackintosh.
 
Upvote 0

xulihang

Active Member
Licensed User
Longtime User
the ssl is not valid.
Anyway, I have abandoned the local builder and use xcode to run directly.
 
Upvote 0
Top