Jump to content
  • 0

Community Board ?


Question

Posted

i have custom board before was working fine but now i got error when i press " alt+ B " in game  any can help me to fix it ?

 

 

java.lang.NullPointerException
at com.l2jarchid.gameserver.communitybbs.Manager.TopBBSManager.parsecmd(TopBBSManager.java:59)
at com.l2jarchid.gameserver.communitybbs.CommunityBoard.handleCommands(CommunityBoard.java:158)
at com.l2jarchid.gameserver.network.clientpackets.RequestShowBoard.runImpl(RequestShowBoard.java:56)
at com.l2jarchid.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:78)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

14 answers to this question

Recommended Posts

  • 0
Posted

Doublecheck ur code,you forgot smth

i check it the code is same like before when was work i dont see something different

  • 0
Posted

i check it the code is same like before when was work i dont see something different

it's hard to help you without viewing the code... also u could give us more info like... when does the error appears? when u press alt+b? when u press top pvp/pk or top adena, or something like that?..

  • 0
Posted

it's hard to help you without viewing the code... also u could give us more info like... when does the error appears? when u press alt+b? when u press top pvp/pk or top adena, or something like that?..

just when i press alt+b in game nothing happen only write me this error in GS console

  • 0
Posted

It tries to parse a command but doesn't find any, so NPE.

 

TopBBSManager.java:59 => post code 10 lines +-.

 

line  50 - 70

50                         }
51			
52			String content = HtmCache.getInstance().getHtm(fileName);
53			if (Config.L2F_SMPT_SERVER_ENABLED)
54			{
55			content = content.replaceAll("%passreset%", "  |  <a action=\"bypass _bbstop;lostpass\">Reset Password</a>");
56			}
57			else
58			{
59				content = content.replaceAll("%passreset%", "");
60			}
61			
62			//buffer
63			if (Config.ALLOW_BUFFER_COMMUNITY)
64			{
65			content = content.replaceAll("%CBbuffer%", "  |  <a action=\"bypass _bbstop;buffer\">Gatekeeper</a>");
66			}
67			else
68			{
69				content = content.replaceAll("%CBbuffer%", "");
70			}

  • 0
Posted

hm... something strange...

/offtopic Buffer in community board is easy to exploit with Hplex, and cheaters can take gmspeed, frenzy, whatever they want, i talk coz i have experienced it, i adivse you to take it off.

 

  • 0
Posted

hm... something strange...

/offtopic Buffer in community board is easy to exploit with Hplex, and cheaters can take gmspeed, frenzy, whatever they want, i talk coz i have experienced it, i adivse you to take it off.

 

it is fine dont worry i not use option " buffer , GK, shop" they are disable from DP config

  • 0
Posted

I have to say it's kinda strange... Have you disabled reset password option?

 

not i use default DP settings

 

@@ -188,4 +188,10 @@
#  - off =  no community Board
CommunityType = Full
+CustomCommunityBoard = True
+#enables postable teleporter in Custom CB
+CustomTeleportBoard = False
+#enables postable buffer in Custom CB
+CustomBufferBoard = False
+ColorCommunityBoard = True
BBSDefault = _bbshome

  • 0
Posted

i have custom board before was working fine but now i got error when i press " alt+ B " in game  any can help me to fix it ?

 

 

java.lang.NullPointerException
at com.l2jarchid.gameserver.communitybbs.Manager.TopBBSManager.parsecmd(TopBBSManager.java:59)
at com.l2jarchid.gameserver.communitybbs.CommunityBoard.handleCommands(CommunityBoard.java:158)
at com.l2jarchid.gameserver.network.clientpackets.RequestShowBoard.runImpl(RequestShowBoard.java:56)
at com.l2jarchid.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:78)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

Same here.

  • 0
Posted

tnx again to all for your help :)

fixed im a just blind :P

 

if (command.equals("_bbstop") || command.equals("_bbshome"))
		{
			fileName = "data/html/CommunityBoard/Custom/CustomIndex.htm";

after checking all night i see my folder name is Customs not Custom  :)

  • 0
Posted

Put a null check for content, or at least throw a useful exception/warning.

 

String content = HtmCache.getInstance().getHtm(fileName);
if (content.isEmpty())
{
     log.warning("File named: " + fileName + " couldn't be loaded.");
     return;
}

You got a NPE because content string stays empty (in that time, because file wasn't existing).

 

And you shouldn't use archid (nor sell it, in case of Fort), no support since years.

  • 0
Posted

Put a null check for content, or at least throw a useful exception/warning.

 

String content = HtmCache.getInstance().getHtm(fileName);
if (content.isEmpty())
{
     log.warning("File named: " + fileName + " couldn't be loaded.");
     return;
}

You got a NPE because content string stays empty (in that time, because file wasn't existing).

 

And you shouldn't use archid (nor sell it, in case of Fort), no support since years.

okc tnx again :) i will do it now

Guest
This topic is now closed to further replies.


×
×
  • Create New...