Skip to content

[Help]GS Error

Featured Replies

I get this error in GS...

I use L2J Server Freya.

 

62152964.png

 

Show me the line 97 of answertraderequest.java

 

it's a npe.

  • Author

Show me the line 97 of answertraderequest.java

 

it's a npe.

With red is the line 97

 

    // Clears requesting status

    player.setActiveRequester(null);

    player.getActiveRequester().onTransactionResponse();

 

partner.onTransactionResponse();

this should be line 94

maybe a return; in here :

// Clears requesting status

    player.setActiveRequester(null);

    player.getActiveRequester().onTransactionResponse();

    return;

 

would do the job

npe is not about WHERE you return is about WHAT is called

if i got a String str=null;

and do this

str.substring(3);

BOOOOOM npe.str is null

  • Author

maybe a return; in here :

// Clears requesting status

    player.setActiveRequester(null);

    player.getActiveRequester().onTransactionResponse();

    return;

 

would do the job

Thank you... I hope to work!

 

Edit:

Nothing.... again the same.

  • Author

Here is fine?

Hosting in Germany.

 

server.properties

# ---------------------------------------------------------------------------
# Networking
# ---------------------------------------------------------------------------

# Where's the Login server this gameserver should connect to
# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u>
# WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u>
# Default: 127.0.0.1
LoginHost = my ip

# TCP port the login server listen to for gameserver connection requests
# Default: 9014
LoginPort = 9014

# Bind address for gameserver. You should not need to change it in most cases.
# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u>
# WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u>
# Default: * (0.0.0.0)
GameserverHostname = my ip

# Default: 7777
GameserverPort = 7777

LoginServer.properties

# ---------------------------------------------------------------------------
# Networking
# ---------------------------------------------------------------------------

# Bind ip of the LoginServer, use * to bind on all available IPs
# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u>
# WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u>
# Default: * (0.0.0.0)
LoginserverHostname = my ip

# Default: 2106
LoginserverPort = 2106

# The address on which login will listen for GameServers, use * to bind on all available IPs
# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u>
# WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u>
# Default: * (0.0.0.0)
LoginHostname = my ip

# The port on which login will listen for GameServers
# Default: 9014
LoginPort = 9014

 

ipconfig

<?xml version="1.0" encoding="UTF-8"?>
<!-- Externalhost here (Internet IP) or Localhost IP for local test -->
<gameserver address="MY IP" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ipconfig.xsd">
<!-- Localhost here -->
<define subnet="127.0.0.0/8" address="127.0.0.1" />
<!-- Internalhosts here (LANs IPs) -->
<define subnet="10.0.0.0/8" address="10.0.0.0" />
<define subnet="172.16.0.0/19" address="172.16.0.0" />
<define subnet="192.168.0.0/16" address="192.168.0.0" />
</gameserver>

did you read where it says:

 

Please don't change default IPs here if you don't know what are you doing!

 

External/Internal IPs are now inside "ipconfig.xml" file.

Who cares if he must change IP or not, it's a NPE in trade crap.

 

Error is obvious, you set active requester to null, and just after you ask info from it... It sounds just wrong.

 

My AnswerTradeRequest is following :

		// Clears requesting status
	player.setActiveRequester(null);
	partner.onTransactionResponse();

I did suggested the solution and it was IGNORED.

partner.onTransactionResponse();

this should be line 94

Then i said the cause of the NPE.Guess what IGNORED again.

npe is not about WHERE you return is about WHAT is called

if i got a String str=null;

and do this

str.substring(3);

BOOOOOM npe.str is null

Seriously,bad eyes are bad.Bad reading skills are..well double bad.

Have fun skipping answers.

  • Author

Who cares if he must change IP or not, it's a NPE in trade crap.

 

Error is obvious, you set active requester to null, and just after you ask info from it... It sounds just wrong.

 

My AnswerTradeRequest is following :

		// Clears requesting status
	player.setActiveRequester(null);
	partner.onTransactionResponse();

And mine is same....

But i have error....

 

Then logged 6 - 7 players i get this error, no from all players....

Maybe try to legged from another client, is truth this?

You said you had :

player.getActiveRequester().onTransactionResponse();

 

It's not :

partner.onTransactionResponse();

 

Think to recompile and test... It's not possible you get the same exact error with that things.

 

NPE is NPE, it's an server error, nothing to do with client.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.