Gotta have someone pm meh or Teamview me if u can i really cant explainn my prob :/?

Results 1 to 5 of 5
  1. #1
    Member agito1 is offline
    MemberRank
    Apr 2012 Join Date
    34Posts

    Gotta have someone pm meh or Teamview me if u can i really cant explainn my prob :/?

    im trying to fix whats wrong with my ps i first get an error that javas not reconized as an internal command i fixed that then this happens when i run bat files

    Apr 28, 2012 11:10:46 AM net.sf.odinms.database.DatabaseConnection$ThreadLocalCo
    nnection initialValue
    SEVERE: ERROR
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link fai
    lure

    Last packet sent to the server was 0 ms ago.
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
    at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1
    074)
    at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2103)
    at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:718)
    at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
    at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302)
    at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
    :282)
    at java.sql.DriverManager.getConnection(DriverManager.java:579)
    at java.sql.DriverManager.getConnection(DriverManager.java:221)
    at net.sf.odinms.database.DatabaseConnection$ThreadLocalConnection.initi
    alValue(DatabaseConnection.java:82)
    at net.sf.odinms.database.DatabaseConnection$ThreadLocalConnection.initi
    alValue(DatabaseConnection.java:66)
    at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:160)
    at java.lang.ThreadLocal.get(ThreadLocal.java:150)
    at net.sf.odinms.database.DatabaseConnection.getConnection(DatabaseConne
    ction.java:49)
    at net.sf.odinms.net.world.WorldServer.<init>(WorldServer.java:61)
    at net.sf.odinms.net.world.WorldServer.getInstance(WorldServer.java:72)
    at net.sf.odinms.net.world.WorldRegistryImpl.<init>(WorldRegistryImpl.ja
    va:87)
    at net.sf.odinms.net.world.WorldRegistryImpl.getInstance(WorldRegistryIm
    pl.java:108)
    at net.sf.odinms.net.world.WorldServer.main(WorldServer.java:92)
    Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketI
    mpl.java:69)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.ja
    va:337)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocket
    Impl.java:198)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java
    :180)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
    at java.net.Socket.connect(Socket.java:579)
    at java.net.Socket.connect(Socket.java:528)
    at java.net.Socket.<init>(Socket.java:425)
    at java.net.Socket.<init>(Socket.java:241)
    at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.ja
    va:253)
    at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:280)
    at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2026)
    ... 21 more

    Exception in thread "main" java.lang.NullPointerException
    at net.sf.odinms.net.world.WorldRegistryImpl.<init>(WorldRegistryImpl.ja
    va:92)
    at net.sf.odinms.net.world.WorldRegistryImpl.getInstance(WorldRegistryIm
    pl.java:108)
    at net.sf.odinms.net.world.WorldServer.main(WorldServer.java:92)


    if anyone can help that would be so much appreciated


  2. #2
    Coder in-training lordpeter is offline
    Grand MasterRank
    Dec 2008 Join Date
    CanadaLocation
    612Posts

    Re: Gotta have someone pm meh or Teamview me if u can i really cant explainn my prob

    If this was happening to me, I would make sure wampserver is online, recompile and do all that stuff. If that didn't work, I'd re-follow a tutorial. After all that, if it still didn't work then try to post here. Did you try everything?

  3. #3
    Member agito1 is offline
    MemberRank
    Apr 2012 Join Date
    34Posts

    Re: Gotta have someone pm meh or Teamview me if u can i really cant explainn my prob

    yup i tryed everything over 16 times still ending up with the same error at the end so i tryed getting my brother to help but he doesnt know anything about it so now im here trying to teamview someone to show them whats up or something cuz im stuck hehe

  4. #4
    Grand Master Liv3 is offline
    Grand MasterRank
    Dec 2011 Join Date
    CanadaLocation
    817Posts

    Re: Gotta have someone pm meh or Teamview me if u can i really cant explainn my prob

    This error is occuring because Java is installed in program files(x86) when it should be installed straight into Program Files. If you don't want to, then copy paste java.exe into your source folder.

  5. #5
    Sorcerer Supreme Control is offline
    Member +Rank
    Aug 2010 Join Date
    /b/Location
    323Posts

    Re: Gotta have someone pm meh or Teamview me if u can i really cant explainn my prob

    Quote Originally Posted by Alienx3 View Post
    This error is occuring because Java is installed in program files(x86) when it should be installed straight into Program Files. If you don't want to, then copy paste java.exe into your source folder.
    You're an idiot. He said he fixed that, and putting the java.exe into your source folder doesn't fix that. Moving on, read the error on your bat:
    Code:
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link fai
    lure
    Obviously there's an issue with your MySQL driver.



Advertisement