Jump to content
  • 0

[Help]GS Error


Question

12 answers to this question

Recommended Posts

  • 0
Posted

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();

 

  • 0
Posted

maybe a return; in here :

// Clears requesting status

    player.setActiveRequester(null);

    player.getActiveRequester().onTransactionResponse();

    return;

 

would do the job

  • 0
Posted

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.

  • 0
Posted

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>

  • 0
Posted

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();

  • 0
Posted

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.

  • 0
Posted

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?

  • 0
Posted

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.

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...