The problem with Java

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Plus
Posts: 4
Joined: Wed Apr 11, 2012 10:58 pm

The problem with Java

Post by Plus »

L2J Revision Number: 5201
L2JDP Revision Number: 8696

All the good time of day, starting with the audit server, which I pointed out above, when you try to run registergameserver.exe & bat, I get an error, which I had never experienced what could be the problem tell me!

Text the Error:

Code: Select all

 Error: There was an error while attempting to retrieve the list of currently registered GameServers.Reason: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.Exception in thread "main" java.lang.NullPointerException        at com.l2jserver.tools.gsregistering.GameServerRegister.<init>(GameServerRegister.java:46)        at com.l2jserver.tools.gsregistering.BaseGameServerRegister.startCMD(BaseGameServerRegister.java:279)        at com.l2jserver.tools.gsregistering.BaseGameServerRegister.main(BaseGameServerRegister.java:187) 
User avatar
tukune
Posts: 533
Joined: Sun Mar 29, 2009 2:35 pm
Location: Japan

Re: The problem with Java

Post by tukune »

Run mysql server.
Setup loginserver.properties
Plus
Posts: 4
Joined: Wed Apr 11, 2012 10:58 pm

Re: The problem with Java

Post by Plus »

IamOR wrote:Run mysql server.
Setup loginserver.properties
The fact that you wrote this of course meet the following, poprobyval Myskl replace the current server, the result of the former, does not run.

There is some suggestion from anyone? Thank you in advance.
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: The problem with Java

Post by MELERIX »

no, is just that in order to use "RegisterGameserver", first you have to add proper MySQL info (user and password) in login.properties.
Plus
Posts: 4
Joined: Wed Apr 11, 2012 10:58 pm

Re: The problem with Java

Post by Plus »

All configuration files contain private information onto to connect to the database, but even under this condition there is the old bug, checked whether the files are not blocked by the server and so on. The older building servers that work has started on the Java 6, and now the new is not wanted.
A sample configuration as those of:

Code: Select all

 # ---------------------------------------------------------------------------# Database# ---------------------------------------------------------------------------# Specify the appropriate driver and url for the database you're using.# Examples:# Driver = com.mysql.jdbc.Driver (default)# Driver = org.hsqldb.jdbcDriver# Driver = com.microsoft.sqlserver.jdbc.SQLServerDriverDriver = com.mysql.jdbc.Driver # Database URL# URL = jdbc:mysql://localhost/l2jls (default)# URL = jdbc:hsqldb:hsql://localhost/l2jls# URL = jdbc:sqlserver://localhost/database = l2jls/user = sa/password =URL = jdbc:mysql://localhost/l2jls # Database user info (default is "root" but it's not recommended)Login = l2jserver # Database connection passwordPassword = l2jserver_67Ghs8JH79 # Default: 10MaximumDbConnections = 10 # Default: 0MaximumDbIdleTime = 0 
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: The problem with Java

Post by MELERIX »

we use Java 7 now.
Plus
Posts: 4
Joined: Wed Apr 11, 2012 10:58 pm

Re: The problem with Java

Post by Plus »

Now I have a server installed Java 7.
In general, the problem is still relevant.
Post Reply