Thread: PI Auth voting system?

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 PI Auth voting system? 
    Registered Member
    Join Date
    Feb 2012
    Posts
    368
    Thanks given
    24
    Thanks received
    26
    Rep Power
    14
    Edit: When i do ::auth i get this error

    Spoiler for Error:
    Code:
    [11/30/12 10:59 AM]: java.lang.Exception: connection is null
    [11/30/12 10:59 AM]:    at server.Database.getConnection(Database.java:49)
    [11/30/12 10:59 AM]:    at server.model.mobile.players.Commands.processPacket(Co
    mmands.java:50)
    [11/30/12 10:59 AM]:    at server.model.mobile.players.PacketHandler.processPack
    et(PacketHandler.java:118)
    [11/30/12 10:59 AM]:    at server.model.mobile.players.Client.processQueuedPacke
    ts(Client.java:1205)
    [11/30/12 10:59 AM]:    at server.model.mobile.players.PlayerHandler.process(Pla
    yerHandler.java:136)
    [11/30/12 10:59 AM]:    at server.Server$1.execute(Server.java:180)
    [11/30/12 10:59 AM]:    at server.task.Task2.tick(Task2.java:105)
    [11/30/12 10:59 AM]:    at server.event.TaskScheduler.run(TaskScheduler.java:100
    )
    [11/30/12 10:59 AM]:    at java.util.concurrent.Executors$RunnableAdapter.call(U
    nknown Source)
    [11/30/12 10:59 AM]:    at java.util.concurrent.FutureTask$Sync.innerRunAndReset
    (Unknown Source)
    [11/30/12 10:59 AM]:    at java.util.concurrent.FutureTask.runAndReset(Unknown S
    ource)
    [11/30/12 10:59 AM]:    at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
    duledFutureTask.access$301(Unknown Source)
    [11/30/12 10:59 AM]:    at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
    duledFutureTask.run(Unknown Source)
    [11/30/12 10:59 AM]:    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unk
    nown Source)
    [11/30/12 10:59 AM]:    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Un
    known Source)
    [11/30/12 10:59 AM]:    at java.lang.Thread.run(Unknown Source)
    [11/30/12 11:00 AM]: java.lang.Exception: connection is null
    [11/30/12 11:00 AM]:    at server.Database.getConnection(Database.java:49)
    [11/30/12 11:00 AM]:    at server.model.mobile.players.Commands.processPacket(Co
    mmands.java:50)
    [11/30/12 11:00 AM]:    at server.model.mobile.players.PacketHandler.processPack
    et(PacketHandler.java:118)
    [11/30/12 11:00 AM]:    at server.model.mobile.players.Client.processQueuedPacke
    ts(Client.java:1205)
    [11/30/12 11:00 AM]:    at server.model.mobile.players.PlayerHandler.process(Pla
    yerHandler.java:136)
    [11/30/12 11:00 AM]:    at server.Server$1.execute(Server.java:180)
    [11/30/12 11:00 AM]:    at server.task.Task2.tick(Task2.java:105)
    [11/30/12 11:00 AM]:    at server.event.TaskScheduler.run(TaskScheduler.java:100
    )
    [11/30/12 11:00 AM]:    at java.util.concurrent.Executors$RunnableAdapter.call(U
    nknown Source)
    [11/30/12 11:00 AM]:    at java.util.concurrent.FutureTask$Sync.innerRunAndReset
    (Unknown Source)
    [11/30/12 11:00 AM]:    at java.util.concurrent.FutureTask.runAndReset(Unknown S
    ource)
    [11/30/12 11:00 AM]:    at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
    duledFutureTask.access$301(Unknown Source)
    [11/30/12 11:00 AM]:    at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
    duledFutureTask.run(Unknown Source)
    [11/30/12 11:00 AM]:    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unk
    nown Source)
    [11/30/12 11:00 AM]:    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Un
    known Source)
    [11/30/12 11:00 AM]:    at java.lang.Thread.run(Unknown Source)
    [11/30/12 11:00 AM]: java.lang.Exception: connection is null
    [11/30/12 11:00 AM]:    at server.Database.getConnection(Database.java:49)
    [11/30/12 11:00 AM]:    at server.model.mobile.players.Commands.processPacket(Co
    mmands.java:50)
    [11/30/12 11:00 AM]:    at server.model.mobile.players.PacketHandler.processPack
    et(PacketHandler.java:118)
    [11/30/12 11:00 AM]:    at server.model.mobile.players.Client.processQueuedPacke
    ts(Client.java:1205)
    [11/30/12 11:00 AM]:    at server.model.mobile.players.PlayerHandler.process(Pla
    yerHandler.java:136)
    [11/30/12 11:00 AM]:    at server.Server$1.execute(Server.java:180)
    [11/30/12 11:00 AM]:    at server.task.Task2.tick(Task2.java:105)
    [11/30/12 11:00 AM]:    at server.event.TaskScheduler.run(TaskScheduler.java:100
    )
    [11/30/12 11:00 AM]:    at java.util.concurrent.Executors$RunnableAdapter.call(U
    nknown Source)
    [11/30/12 11:00 AM]:    at java.util.concurrent.FutureTask$Sync.innerRunAndReset
    (Unknown Source)
    [11/30/12 11:00 AM]:    at java.util.concurrent.FutureTask.runAndReset(Unknown S
    ource)
    [11/30/12 11:00 AM]:    at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
    duledFutureTask.access$301(Unknown Source)
    [11/30/12 11:00 AM]:    at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
    duledFutureTask.run(Unknown Source)
    [11/30/12 11:00 AM]:    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unk
    nown Source)
    [11/30/12 11:00 AM]:    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Un
    known Source)
    [11/30/12 11:00 AM]:    at java.lang.Thread.run(Unknown Source)
    [11/30/12 11:00 AM]: java.lang.Exception: connection is null
    [11/30/12 11:00 AM]:    at server.Database.getConnection(Database.java:49)
    [11/30/12 11:00 AM]:    at server.model.mobile.players.Commands.processPacket(Co
    mmands.java:50)
    [11/30/12 11:00 AM]:    at server.model.mobile.players.PacketHandler.processPack
    et(PacketHandler.java:118)
    [11/30/12 11:00 AM]:    at server.model.mobile.players.Client.processQueuedPacke
    ts(Client.java:1205)
    [11/30/12 11:00 AM]:    at server.model.mobile.players.PlayerHandler.process(Pla
    yerHandler.java:136)
    [11/30/12 11:00 AM]:    at server.Server$1.execute(Server.java:180)
    [11/30/12 11:00 AM]:    at server.task.Task2.tick(Task2.java:105)
    [11/30/12 11:00 AM]:    at server.event.TaskScheduler.run(TaskScheduler.java:100
    )
    [11/30/12 11:00 AM]:    at java.util.concurrent.Executors$RunnableAdapter.call(U
    nknown Source)
    [11/30/12 11:00 AM]:    at java.util.concurrent.FutureTask$Sync.innerRunAndReset
    (Unknown Source)
    [11/30/12 11:00 AM]:    at java.util.concurrent.FutureTask.runAndReset(Unknown S
    ource)
    [11/30/12 11:00 AM]:    at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
    duledFutureTask.access$301(Unknown Source)
    [11/30/12 11:00 AM]:    at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
    duledFutureTask.run(Unknown Source)
    [11/30/12 11:00 AM]:    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unk
    nown Source)
    [11/30/12 11:00 AM]:    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Un
    known Source)
    [11/30/12 11:00 AM]:    at java.lang.Thread.run(Unknown Source)
    [11/30/12 11:00 AM]: java.lang.Exception: connection is null
    [11/30/12 11:00 AM]:    at server.Database.getConnection(Database.java:49)
    [11/30/12 11:00 AM]:    at server.model.mobile.players.Commands.processPacket(Co
    mmands.java:50)
    [11/30/12 11:00 AM]:    at server.model.mobile.players.PacketHandler.processPack
    et(PacketHandler.java:118)
    [11/30/12 11:00 AM]:    at server.model.mobile.players.Client.processQueuedPacke
    ts(Client.java:1205)
    [11/30/12 11:00 AM]:    at server.model.mobile.players.PlayerHandler.process(Pla
    yerHandler.java:136)
    [11/30/12 11:00 AM]:    at server.Server$1.execute(Server.java:180)
    [11/30/12 11:00 AM]:    at server.task.Task2.tick(Task2.java:105)
    [11/30/12 11:00 AM]:    at server.event.TaskScheduler.run(TaskScheduler.java:100
    )
    [11/30/12 11:00 AM]:    at java.util.concurrent.Executors$RunnableAdapter.call(U
    nknown Source)
    [11/30/12 11:00 AM]:    at java.util.concurrent.FutureTask$Sync.innerRunAndReset
    (Unknown Source)
    [11/30/12 11:00 AM]:    at java.util.concurrent.FutureTask.runAndReset(Unknown S
    ource)
    [11/30/12 11:00 AM]:    at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
    duledFutureTask.access$301(Unknown Source)
    [11/30/12 11:00 AM]:    at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
    duledFutureTask.run(Unknown Source)
    [11/30/12 11:00 AM]:    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unk
    nown Source)
    [11/30/12 11:00 AM]:    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Un
    known Source)
    [11/30/12 11:00 AM]:    at java.lang.Thread.run(Unknown Source)

    Code:
    conn = DriverManager.getConnection(
                                            "jdbc:mysql://" + props.getProperty("localhost") + ":"
                                                            + props.getProperty("3306") + "/"
                                                            + props.getProperty("divinere_some"),
                                            props.getProperty("divinere_some"),
                                            props.getProperty("pass"));
                    } catch (Exception e) {
                            throw new Exception("error connecting to database "
                                            + e.getMessage());
                    }
            }


    Code:
    public static Connection getConnection() throws Exception {
                    if (conn == null) {
                            throw new Exception("connection is null");
                    }
                    if (System.currentTimeMillis() - lastUsed > 300000) {
                            try {
                                    lastUsed = System.currentTimeMillis();
                                    conn.close();
                                    connect();
                            } catch (Exception e) {
                                    throw new Exception("error refreshing database connection");
                            }
                    }
    Code:
    conn = DriverManager.getConnection(
                                            "jdbc:mysql://" + props.getProperty("localhost") + ":"
                                                            + props.getProperty("3306") + "/"
                                                            + props.getProperty("divinere_vote"),
                                            props.getProperty("divinere_vote"),
                                            props.getProperty("PASS"));
                    } catch (Exception e) {
                            throw new Exception("error connecting to database "
                                            + e.getMessage());
    
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
    <properties>
        <comment>Database connection settings</comment>
        <entry key="host">localhost/entry>
        <entry key="port">3306</entry>
        <entry key="name">divinere_vote</entry>
        <entry key="username">divinere_vote</entry>
        <entry key="password">PASS</entry>
    </properties>
    Anything else im missing that could be causing it?
    Did i help you? All i ask in return is thanks/Rep.



    Quote Originally Posted by rustigold View Post
    iknow, but i fail.
    Reply With Quote  
     

  2. #2  
    Respected Member

    Join Date
    Jan 2009
    Posts
    5,682
    Thanks given
    1,093
    Thanks received
    3,494
    Discord
    View profile
    Rep Power
    5000
    java.io.FileNotFoundException: database.xml (The system cannot find the file spe
    cified
    )

    Self explanatory no?
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Join Date
    Feb 2012
    Posts
    368
    Thanks given
    24
    Thanks received
    26
    Rep Power
    14
    Yes ofc. But i have that file in the correct place.

    Did i help you? All i ask in return is thanks/Rep.



    Quote Originally Posted by rustigold View Post
    iknow, but i fail.
    Reply With Quote  
     

  5. #4  
    Respected Member

    Join Date
    Jan 2009
    Posts
    5,682
    Thanks given
    1,093
    Thanks received
    3,494
    Discord
    View profile
    Rep Power
    5000
    Quote Originally Posted by Deception-pkz View Post
    Yes ofc. But i have that file in the correct place.
    You obviously don't. You need to put it in the root directory of the server, if you are cd'ing(change directory) you need to put it in that folder.
    Reply With Quote  
     

  6. #5  
    Registered Member
    Join Date
    Feb 2012
    Posts
    368
    Thanks given
    24
    Thanks received
    26
    Rep Power
    14
    Read first page
    Did i help you? All i ask in return is thanks/Rep.



    Quote Originally Posted by rustigold View Post
    iknow, but i fail.
    Reply With Quote  
     

  7. #6  
    Respected Member

    Join Date
    Jan 2009
    Posts
    5,682
    Thanks given
    1,093
    Thanks received
    3,494
    Discord
    View profile
    Rep Power
    5000
    Quote Originally Posted by Deception-pkz View Post
    I put it at the start where src and stuff is now

    and i get this

    Code:
    Dec 01, 2012 5:10:37 AM server.Database init
    INFO: initiating database connection...
    Dec 01, 2012 5:10:37 AM server.Database connect
    INFO: connecting to database...
    Dec 01, 2012 5:10:37 AM server.Database connect
    SEVERE: error connecting to database
    java.sql.SQLException: Illegal connection port value 'null'
            at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)
            at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
            at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926)
            at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2018)
            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(Unknown Source)
    
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            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(Unknown Source)
            at java.sql.DriverManager.getConnection(Unknown Source)
            at server.Database.connect(Database.java:59)
            at server.Database.init(Database.java:47)
            at server.Server.main(Server.java:113)
    Port must be an int set in the database.xml

    Code:
    <entry key="port">3306</entry>
    Reply With Quote  
     

  8. #7  
    Old Webdeveloper
    Dondxon's Avatar
    Join Date
    Aug 2011
    Posts
    1,147
    Thanks given
    209
    Thanks received
    108
    Rep Power
    65
    i fkn bought a auth code system and the guy ([Only registered and activated users can see links. ]) doesnt want to give me the index.php of the auth system.

    there goes my money...

    -other index's doesnt work. cus it has real weird methods and shit.
    Do you need any PHP work done? Or are you looking for RSPS integrations? click [Only registered and activated users can see links. ].

    [Only registered and activated users can see links. ]

    Reply With Quote  
     

  9. #8  
    Respected Member

    Join Date
    Jan 2009
    Posts
    5,682
    Thanks given
    1,093
    Thanks received
    3,494
    Discord
    View profile
    Rep Power
    5000
    Quote Originally Posted by Dondxon View Post
    i fkn bought a auth code system and the guy doesnt want to give me the index.php of the auth system.

    there goes my money...

    -other index's doesnt work. cus it has real weird methods and shit.
    I don't think this is the place to put your rant. It is no help to OP that you was ripped off. Create a scam report.
    Reply With Quote  
     

  10. #9  
    Registered Member
    Join Date
    Feb 2012
    Posts
    368
    Thanks given
    24
    Thanks received
    26
    Rep Power
    14
    It already is 3306?
    Did i help you? All i ask in return is thanks/Rep.



    Quote Originally Posted by rustigold View Post
    iknow, but i fail.
    Reply With Quote  
     

  11. #10  
    Registered Member
    Join Date
    Feb 2012
    Posts
    368
    Thanks given
    24
    Thanks received
    26
    Rep Power
    14
    New problem

    help me through skype ? or teamviewer?
    Did i help you? All i ask in return is thanks/Rep.



    Quote Originally Posted by rustigold View Post
    iknow, but i fail.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Bug Free - Auth Voting System [PI, IX]
    By Dannnneh in forum Tutorials
    Replies: 18
    Last Post: 11-24-2012, 04:53 PM
  2. Auth Voting System
    By Revil in forum Tutorials
    Replies: 29
    Last Post: 09-15-2012, 05:59 PM
  3. Buying Voting Auth Code System
    By JAM3SS in forum Buying
    Replies: 0
    Last Post: 06-16-2012, 11:17 AM
  4. [PI]Buying Voting System with auth
    By Nuno555 in forum Buying
    Replies: 2
    Last Post: 01-29-2012, 12:01 AM
  5. Buying auth voting system
    By SoulXile in forum Buying
    Replies: 0
    Last Post: 12-13-2011, 07:17 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •