Thread: Can someone please tell me how to fix this Error?

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1 Can someone please tell me how to fix this Error? 
    Registered Member
    Join Date
    Jan 2012
    Posts
    8
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    This has happened to my 317 [PI] server. I can start it up on the VPS and i log in with a character but i believe if someone else logs in while im online or if i log out this error pops up and it automatically logs me out and nulls the server I believe.

    [3/9/15 8:19 PM]: java.lang.NullPointerException
    [3/9/15 8:19 PM]: at game.player.PlayerSave.saveGame(PlayerSave.java:55 5)
    [3/9/15 8:19 PM]: at game.player.PlayerHandler.process(PlayerHandler.ja va:229)
    [3/9/15 8:19 PM]: at core.Server$1.execute(Server.java:131)
    [3/9/15 8:19 PM]: at core.maintick.Task.tick(Task.java:116)
    [3/9/15 8:19 PM]: at core.maintick.TaskScheduler.run(TaskScheduler.java :98)
    [3/9/15 8:19 PM]: at java.util.concurrent.Executors$RunnableAdapter.cal l(Unknown Source)
    [3/9/15 8:19 PM]: at java.util.concurrent.FutureTask.runAndReset(Unknow n Source)
    [3/9/15 8:19 PM]: at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.access$301(Unknown Source)
    [3/9/15 8:19 PM]: at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.run(Unknown Source)
    [3/9/15 8:19 PM]: at java.util.concurrent.ThreadPoolExecutor.runWorker( Unknown Source)
    [3/9/15 8:19 PM]: at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source)
    [3/9/15 8:19 PM]: at java.lang.Thread.run(Unknown Source)

    If anyone can help me with this I would really appreciate it.

    Thanks,
    Boots =)
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jul 2009
    Posts
    4,003
    Thanks given
    1,003
    Thanks received
    1,029
    Rep Power
    0
    Post line 55 of PlayerSave.java
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jan 2012
    Posts
    8
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Well when I click on the error thing on the line 55 5 it takes me to this line 555 characterfile.write(player.accountDateCreated, 0, player.accountDateCreated.length());

    And PlayerHandler.Java line 229 it says if (PlayerSave.saveGame(o1))
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Jul 2009
    Posts
    4,003
    Thanks given
    1,003
    Thanks received
    1,029
    Rep Power
    0
    Quote Originally Posted by Boots37 View Post
    Well when I click on the error thing on the line 55 5 it takes me to this line 555 characterfile.write(player.accountDateCreated, 0, player.accountDateCreated.length());

    And PlayerHandler.Java line 229 it says if (PlayerSave.saveGame(o1))
    Can I have your other account created code from PlayerSave.java/PlayerSaving.java?
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jan 2012
    Posts
    8
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    I don't understand what you are meaning by that? I posted the wrong one or?
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jan 2012
    Posts
    8
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    PlayerSave.java line 555:


    characterfile.write(player.accountDateCreated, 0, player.accountDateCreated.length());
    characterfile.newLine();
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Jul 2009
    Posts
    4,003
    Thanks given
    1,003
    Thanks received
    1,029
    Rep Power
    0
    Quote Originally Posted by Boots37 View Post
    I don't understand what you are meaning by that? I posted the wrong one or?
    Nope, not at all there's just more to the error, sec.

    Code:
    characterfile.write(player.accountDateCreated, 0, player.accountDateCreated.length());
    Code:
    			characterfile.write("accountDateCreated = ", 0, 22);
    			characterfile.write(Integer.toString(p.AccountDateCreated), 0, Integer.toString(p.AccountDateCreated).length());
    			characterfile.newLine();
    should fix it actually.
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Jan 2012
    Posts
    8
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    characterfile.write("accountDateCreated = ", 0, 21);
    characterfile.write(player.accountDateCreated, 0, player.accountDateCreated.length());
    characterfile.newLine();
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Jan 2012
    Posts
    8
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Thats what mine says. the full code of it.
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Jan 2012
    Posts
    8
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Can anyone help me with this please?
    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. Could someone tell me how to fix this?
    By StayPutMan in forum Help
    Replies: 14
    Last Post: 08-31-2013, 12:17 PM
  2. Replies: 2
    Last Post: 12-13-2011, 12:04 PM
  3. Replies: 2
    Last Post: 11-24-2011, 01:19 PM
  4. Replies: 3
    Last Post: 10-17-2010, 07:33 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •