Android Question Can i connect heroku-clear db to my JRDC middleware server?

It has a JDBC driver, but i dont know how to configure it. When i turn my server port into 3306, it has an error says port already in use
Capture.PNG
 
Upvote 0
Good day erel. Here's my error when i turn my java port into 3306

java.net.BindException: Address already in use: bind
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.openAcceptChannel(ServerConnector.java:340)
at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:308)
at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:244)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.server.Server.doStart(Server.java:398)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at anywheresoftware.b4j.object.ServerWrapper.Start(ServerWrapper.java:220)
at wingan.app.connection.main._appstart(main.java:88)
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)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:78)
at wingan.app.connection.main.main(main.java:28)
 
Upvote 0
And here's my error in B4a logger

Logger connected to: MSBBB19321605418
--------- beginning of crash
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
/storage/emulated/0/WING AN APP/
** Activity (main) Pause, UserClosed = false **
** Activity (login_module) Create, isFirst = true **
** Activity (login_module) Resume **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
ResponseError. Reason: java.net.ProtocolException: Unexpected status line: N������, Response:
ERROR: java.net.ProtocolException: Unexpected status line: N������
 
Upvote 0
And when i turn my java port into 5555 there's no error in b4j logs
and in b4a log says,
ResponseError. Reason: java.net.SocketTimeoutException: connect timed out, Response:
ERROR: java.net.SocketTimeoutException: connect timed out
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Good day erel. Here's my error when i turn my java port into 3306
Terms are important. This is not "java port". If you are talking about ServerPort then it shouldn't be 3306. This is the port that jRDC2 will listen for client connections. It has nothing to do with the database server.
 
Upvote 0
Top