Android Question JRDC2 does not start

Cleidson

Member
Hello everyone,
I was using a server (VPS) configured to perform operations on a Mysql database. Everything was working perfectly until the server was hacked and I was forced to delete it and set up a new one.
I followed the same steps as the old server and added some security layers. However, when I tried to install and start the server implemented in B4J, unfortunately, it did not start. Every time I tried, I got the error:

Last login: Sat Dec 28 13:57:54 2024 from xxx.xxx.xx.xx
root@server1:~# /usr/bin/java -jar /home/apps/app.jar
2024-12-28 14:51:11.298:INFO :cmvl.MLog:MLog-Init-Reporter: MLog clients using slf4j logging.
2024-12-28 14:51:11.514:INFO :cmvc.C3P0Registry:main: Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10]
2024-12-28 14:51:11.731:INFO :eek:ejs.Server:main: jetty-11.0.9; built: 2022-03-30T17:44:47.085Z; git: 243a48a658a183130a8c8de353178d154ca04f04; jvm 11.0.25+9-post-Ubuntu-1ubuntu122.04
(BindException) java.net.BindException: Address already in use


I researched this exception and all the search results indicated that it was a port already in use, but the port I indicated in the app.jar is a port that is not being used by any process.

What I tried:
-Modified the port;
-Restarted the server several times;
-Minimal server configuration before additional security layers.
-Opened the new port to configure access via SSL on the B4J server.

None of these changes had any effect.

The only differences between the old and new servers are:
- The old one used an AMD processor and the new one is an Intel;
- I changed the location from the United States to Switzerland;
- I did not enable IPV6, because I had read in several articles about server security that if the resource is not effectively used, it is safe to disable it.
- I changed the Ubuntu version from 20 to 22.

I use Nginx as a web server.

Anyway, I've been researching solutions for two days and none of them have worked, so I'm asking for your help. I couldn't figure out why this exception occurred. I'm attaching a sample of the B4J server and config.properties configurations.

Thank you in advance for your attention.
 

Attachments

  • app.zip
    6.3 KB · Views: 17

Cleidson

Member
Hi Erel,
I tried with some ports. But what caught my attention is the fact that the port is not being used by any other process. And the port I opened for access to JRDC is relatively high. I will try with more ports.
Thank you for your attention.
 
Upvote 0
Top