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;

  }

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..