Maple private v.83 - Java error

Results 1 to 7 of 7
  1. #1
    Newbie Sirjas is offline
    MemberRank
    Aug 2015 Join Date
    5Posts

    angry Maple private v.83 - Java error

    Hi everyone, new here so I hope this is in right section. I have seen this issue come up a lot but I have failed to find an answer to it. I followed a tutorial on this forum on how to setup a private server (https://forum.ragezone.com/f428/mapl...er-v83-741739/) but there is one step that doesn't work. I think it's related to copying the java us policy and local policy. Here is what appears when I click on the [ZenthosDev]OneW file in order to start server. Help please I really want to play this with my friends.

    ZenthosDev has started:
    World Launched
    Exception in thread "main" java.lang.ExceptionInInitializerError
    at database.DatabaseConnection.<clinit>(DatabaseConnection.java:12)
    at net.world.WorldRegistryImpl.<init>(WorldRegistryImpl.java:54)
    at net.world.WorldRegistryImpl.getInstance(WorldRegistryImpl.java:71)
    at net.world.WorldServer.main(WorldServer.java:47)
    Caused by: java.lang.NumberFormatException: For input string: "1.5"
    at java.lang.NumberFormatException.forInputString(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at constants.ServerProperties.<clinit>(ServerProperties.java:59)
    ... 4 more
    Login Launched
    Error initializing loginserverjava.lang.RuntimeException: Could not connect to w
    orld server.
    Press any key to continue . . . Channel Launched
    Exception in thread "main" java.rmi.NotBoundException: WorldRegistry
    at sun.rmi.registry.RegistryImpl.lookup(Unknown Source)
    at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
    at sun.rmi.server.UnicastServerRef.oldDispatch(Unknown Source)
    at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
    at sun.rmi.transport.Transport$1.run(Unknown Source)
    at sun.rmi.transport.Transport$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Unknown Source)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Sou
    rce)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Sour
    ce)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknow
    n Source)
    at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
    at sun.rmi.server.UnicastRef.invoke(Unknown Source)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at net.channel.ChannelServer.main(ChannelServer.java:204)
    Press any key to continue . . .
    Last edited by Sirjas; 01-08-15 at 06:37 PM.


  2. #2
    Sorcerer Supreme GabrielSin is offline
    Member +Rank
    Apr 2010 Join Date
    483Posts

    Re: Maple private v.83 - Java error

    Quote Originally Posted by Sirjas View Post
    Hi everyone, new here so I hope this is in right section. I have seen this issue come up a lot but I have failed to find an answer to it. I followed a tutorial on this forum on how to setup a private server (https://forum.ragezone.com/f428/mapl...er-v83-741739/) but there is one step that doesn't work. I think it's related to copying the java us policy and local policy. Here is what appears when I click on the [ZenthosDev]OneW file in order to start server. Help please I really want to play this with my friends.

    ZenthosDev has started:
    World Launched
    Exception in thread "main" java.lang.ExceptionInInitializerError
    at database.DatabaseConnection.<clinit>(DatabaseConnection.java:12)
    at net.world.WorldRegistryImpl.<init>(WorldRegistryImpl.java:54)
    at net.world.WorldRegistryImpl.getInstance(WorldRegistryImpl.java:71)
    at net.world.WorldServer.main(WorldServer.java:47)
    Caused by: java.lang.NumberFormatException: For input string: "1.5"
    at java.lang.NumberFormatException.forInputString(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at constants.ServerProperties.<clinit>(ServerProperties.java:59)
    ... 4 more
    Login Launched
    Error initializing loginserverjava.lang.RuntimeException: Could not connect to w
    orld server.
    Press any key to continue . . . Channel Launched
    Exception in thread "main" java.rmi.NotBoundException: WorldRegistry
    at sun.rmi.registry.RegistryImpl.lookup(Unknown Source)
    at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
    at sun.rmi.server.UnicastServerRef.oldDispatch(Unknown Source)
    at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
    at sun.rmi.transport.Transport$1.run(Unknown Source)
    at sun.rmi.transport.Transport$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Unknown Source)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Sou
    rce)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Sour
    ce)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknow
    n Source)
    at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
    at sun.rmi.server.UnicastRef.invoke(Unknown Source)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at net.channel.ChannelServer.main(ChannelServer.java:204)
    Press any key to continue . . .
    Your connection to the DB is broken, check DB.properties!

  3. #3
    Newbie Sirjas is offline
    MemberRank
    Aug 2015 Join Date
    5Posts

    Re: Maple private v.83 - Java error

    ZenthosDev doesn't have a DB.properties file. There is only a SERVER.properties file that I can configure. And what should I be looking for?

  4. #4
    Sorcerer Supreme GabrielSin is offline
    Member +Rank
    Apr 2010 Join Date
    483Posts

    Re: Maple private v.83 - Java error

    Quote Originally Posted by Sirjas View Post
    ZenthosDev doesn't have a DB.properties file. There is only a SERVER.properties file that I can configure. And what should I be looking for?
    Check name to db in:
    Code:
    /src/database/DatabaseConnection.java
    
    Connection con = DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/zenthosdev?autoReconnect=true", dbUserName, dbPassword);
    In Server.proper
    Code:
    # Database Information.
    # Default (root,(empty))
    dbUserName=root
    dbPassword=

  5. #5
    Grand Master sunnyboy is offline
    Grand MasterRank
    Mar 2010 Join Date
    6,108Posts

    Re: Maple private v.83 - Java error

    make sure mysql service is started

  6. #6
    Newbie Sirjas is offline
    MemberRank
    Aug 2015 Join Date
    5Posts

    Re: Maple private v.83 - Java error

    Quote Originally Posted by GabrielSin View Post
    Check name to db in:
    Code:
    /src/database/DatabaseConnection.java
    
    Connection con = DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/zenthosdev?autoReconnect=true", dbUserName, dbPassword);
    In Server.proper
    Code:
    # Database Information.
    # Default (root,(empty))
    dbUserName=root
    dbPassword=

    Note sure what you want me to be looking for or what I should type in to fix. Sorry I'm new to these things. Im tech savvy enogh to fix occasional problems here and there but this stuff is out of my range of skills. :S

    And mysql is running in the background as well as xammp. hamachi is also open.

  7. #7
    Newbie Sirjas is offline
    MemberRank
    Aug 2015 Join Date
    5Posts

    Re: Maple private v.83 - Java error

    Alright here's the update on the situation. I have downloader MySql workbench. I have also tried a different source (HeliosMS). I seem to have done something right because when I click on the ServerLauncher.bat, the window opens and the proper dialogue appears. Now, the issue is the local host. When I double click it, nothing happens. Not even a ''sorry could not connect to server window'' opens. The CMD box also shows this line : ''IoSession with /127.0.0.1:63604 opened.'' So it seems I have gotten closer to a solution to fix my singleplayer prob, but when i change any IP of what kind to my hamachi IP the server launcher doesnT' work anymore. :S Help please I really wanna play this game :(

    - - - Updated - - -

    Problem solved! I have no freaking clue how. But it's solved!



Advertisement