I'm not sure whats causing this but I need to fix it asap!
It happens when you're trying to create a grounditem. Please show us any code having to do with ground items, that you have recently added.
|
I'm not sure whats causing this but I need to fix it asap!
Here's snippets of the command console from the 3 times it crashed.
Code:[7/1/11 4:04 AM]: java.lang.NullPointerException [7/1/11 4:04 AM]: at server.model.items.ItemAssistant.createGroundItem(Ite mAssistant.java:2547) [7/1/11 4:04 AM]: at server.world.ItemHandler.createGroundItem(ItemHandler .java:172) [7/1/11 4:04 AM]: at server.model.players.skills.Firemaking$3.execute(Fire making.java:121) [7/1/11 4:04 AM]: at server.event.CycleEventContainer.execute(CycleEventCo ntainer.java:52) [7/1/11 4:04 AM]: at server.event.CycleEventHandler.process(CycleEventHand ler.java:63) [7/1/11 4:04 AM]: at server.Server.main(Server.java:179) [7/1/11 4:04 AM]: A fatal exception has been thrown! [7/1/11 1:10 PM]: java.lang.NullPointerException [7/1/11 1:10 PM]: at server.model.items.ItemAssistant.createGroundItem(Ite mAssistant.java:2547) [7/1/11 1:10 PM]: at server.world.ItemHandler.createGroundItem(ItemHandler .java:172) [7/1/11 1:10 PM]: at server.model.players.skills.Firemaking$3.execute(Fire making.java:121) [7/1/11 1:10 PM]: at server.event.CycleEventContainer.execute(CycleEventCo ntainer.java:52) [7/1/11 1:10 PM]: at server.event.CycleEventHandler.process(CycleEventHand ler.java:63) [7/1/11 1:10 PM]: at server.Server.main(Server.java:179) [7/1/11 1:10 PM]: A fatal exception has been thrown! [7/1/11 9:56 PM]: java.lang.NullPointerException [7/1/11 9:56 PM]: at server.model.items.ItemAssistant.createGroundItem(Ite mAssistant.java:2547) [7/1/11 9:56 PM]: at server.world.ItemHandler.createGroundItem(ItemHandler .java:172) [7/1/11 9:56 PM]: at server.model.players.skills.Woodcutting.recieveBirdsN est(Woodcutting.java:178) [7/1/11 9:56 PM]: at server.model.players.skills.Woodcutting.access$000(Wo odcutting.java:19) [7/1/11 9:56 PM]: at server.model.players.skills.Woodcutting$1.execute(Woo dcutting.java:82) [7/1/11 9:56 PM]: at server.event.CycleEventContainer.execute(CycleEventCo ntainer.java:52) [7/1/11 9:56 PM]: at server.event.CycleEventHandler.process(CycleEventHand ler.java:63) [7/1/11 9:56 PM]: at server.Server.main(Server.java:179) [7/1/11 9:56 PM]: A fatal exception has been thrown!
I'm not sure whats causing this but I need to fix it asap!
It happens when you're trying to create a grounditem. Please show us any code having to do with ground items, that you have recently added.
I use all of these skills, which are the only ones the problem occurs in...
http://www.rune-server.org/runescape...hing-more.html
Go to ItemAssistant.java
and paste the line
2547
I would assume something like this would work...Code:public void createGroundItem(int itemID, int itemX, int itemY, int itemAmount) { synchronized(c) { c.getOutStream().createFrame(85); c.getOutStream().writeByteC((itemY - 8 * c.mapRegionY)); c.getOutStream().writeByteC((itemX - 8 * c.mapRegionX)); c.getOutStream().createFrame(44); c.getOutStream().writeWordBigEndianA(itemID); c.getOutStream().writeWord(itemAmount); c.getOutStream().writeByte(0); c.flushOutStream(); } }
Edit: I applied the same concept to my removegrounditem method with the same result, still need help...Code:public void createGroundItem(int itemID, int itemX, int itemY, int itemAmount) { if (c != null) { synchronized (c) { c.getOutStream().createFrame(85); c.getOutStream().writeByteC((itemY - 8 * c.mapRegionY)); c.getOutStream().writeByteC((itemX - 8 * c.mapRegionX)); c.getOutStream().createFrame(44); c.getOutStream().writeWordBigEndianA(itemID); c.getOutStream().writeWord(itemAmount); c.getOutStream().writeByte(0); c.flushOutStream(); } } }
Highlight the exact LINE of which i said to post.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |