Jump to content
  • 0

[Help]Vote System


Question

Posted

I have added vote system,but its still not working in game.

when i run gameserver.bat i get this error:

 

AutoVoteRewardHandler: java.net.MalformedURLException: no protocol:

Exception in thread "GeneralSTPool-1" java.lang.NullPointerException

at com.l2jserver.gameserver.instancemanager.AutoVoteRewardManager.getVotes(AutoVoteRewardManager.java:133)

at com.l2jserver.gameserver.instancemanager.AutoVoteRewardManager.access$100(AutoVoteRewardManager.java:23)

at com.l2jserver.gameserver.instancemanager.AutoVoteRewardManager$AutoReward.run(AutoVoteRewardManager.java:46)

at com.l2jserver.gameserver.ThreadPoolManager$RunnableWrapper.run(ThreadPoolManager.java:86)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)

at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

at java.lang.Thread.run(Thread.java:722)

 

 

If anyone can focus me where to fix/how to fix the problem it would help alot!

6 answers to this question

Recommended Posts

  • 0
Posted

com.l2jserver.gameserver.instancemanager.AutoVoteRewardManager.getVotes(AutoVoteRewardManager.java:133)

 

Goto 133 line and check what's wrong :P Surely something with getVotes part.

  • 0
Posted

Line 133

 

      }

      finally

      {

          try

          {

              in.close();  Line 133

          }

          catch (IOException e)

          {}

          try

          {

              isr.close();

          }

          catch (IOException e)

          {}

      }

      return 0;

  }

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...