Dear All,
I have the server set up to run according to this example
https://www.b4x.com/android/forum/threads/b4x-remote-mongodb-connector-rmdbc.72270/
In B4A, I added the following line to the Manifest file
'CreateResourceFromFile(Macro, Core.NetworkClearText)
SetApplicationAttribute(android:usesCleartextTraffic, "true")
The B4J RMDBCServer application was running permanently on the server, but running the B4A application always gave the following error:
Logger connected to: 8437d8ad
--------- beginning of crash
--------- beginning of system
--------- beginning of main
** Service (httputils2service) Destroy **
** Service (starter) Destroy (ignored)**
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
ResponseError. Reason: Server Error, Response: <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 500 java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (MongoDatabase).</title>
</head>
<body><h2>HTTP ERROR 500 java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (MongoDatabase).</h2>
<table>
<tr><th>URI:</th><td>/rmdbc</td></tr>
<tr><th>STATUS:</th><td>500</td></tr>
<tr><th>MESSAGE:</th><td>java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (MongoDatabase).</td></tr>
<tr><th>SERVLET:</th><td>anywheresoftware.b4j.object.JServlet-41e36e46</td></tr>
</table>
<hr/><a href="https://eclipse.org/jetty">Powered by Jetty:// 11.0.9</a><hr/>
</body>
</html>
Command completed. Success =false
Could please help me
I'm waiting for you here
Thank you very much
I have the server set up to run according to this example
https://www.b4x.com/android/forum/threads/b4x-remote-mongodb-connector-rmdbc.72270/
In B4A, I added the following line to the Manifest file
'CreateResourceFromFile(Macro, Core.NetworkClearText)
SetApplicationAttribute(android:usesCleartextTraffic, "true")
The B4J RMDBCServer application was running permanently on the server, but running the B4A application always gave the following error:
Logger connected to: 8437d8ad
--------- beginning of crash
--------- beginning of system
--------- beginning of main
** Service (httputils2service) Destroy **
** Service (starter) Destroy (ignored)**
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
ResponseError. Reason: Server Error, Response: <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 500 java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (MongoDatabase).</title>
</head>
<body><h2>HTTP ERROR 500 java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (MongoDatabase).</h2>
<table>
<tr><th>URI:</th><td>/rmdbc</td></tr>
<tr><th>STATUS:</th><td>500</td></tr>
<tr><th>MESSAGE:</th><td>java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (MongoDatabase).</td></tr>
<tr><th>SERVLET:</th><td>anywheresoftware.b4j.object.JServlet-41e36e46</td></tr>
</table>
<hr/><a href="https://eclipse.org/jetty">Powered by Jetty:// 11.0.9</a><hr/>
</body>
</html>
Command completed. Success =false
Could please help me
I'm waiting for you here
Thank you very much