webRpc errors
Options
i am using PUN Free.when i use Photonnetwork.webRpc,got a error like
2017-02-18 22:54:47,750 [13] ERROR Photon.SocketServer.PeerBase - exception during handling of data.Peer:T:MasterClientPeer,ConnId:0,ip:127.0.0.1:56326, Data: F3-02-DB-00-02-D1-73-00-0A-50-6C-61-79-65-72-49-6E-66-6F-D0-73-00-04-74-65-73-74,
Exception:System.NullReferenceException: 未将对象引用设置到对象的实例。
在 Photon.LoadBalancing.MasterServer.MasterClientPeer.HandleRpcRequest(OperationRequest operationRequest, SendParameters sendParameters) location d:\dev\photon-socketserver-sdk_cloud\src-server\LoadBalancing\LoadBalancing\MasterServer\MasterClientPeer.cs:line 759
在 Photon.SocketServer.Rpc.Peer.OnOperationRequest(OperationRequest operationRequest, SendParameters sendParameters) location h:\svncontent\photon-socketserver-sdk_cloud\src\Photon.SocketServer\Rpc\Peer.cs:line 109
在 Photon.SocketServer.PeerBase.OnReceive(Byte[] data, SendParameters sendParameters) location h:\svncontent\photon-socketserver-sdk_cloud\src\Photon.SocketServer\PeerBase.cs:line 1243
在 Photon.SocketServer.PeerBase.OnReceiveInternal(Byte[] data, SendParameters sendParameters, Int32 rtt, Int32 rttVariance, Int32 numFailures) location h:\svncontent\photon-socketserver-sdk_cloud\src\Photon.SocketServer\PeerBase.cs:line 988
is this a server error?how to fix ti?
2017-02-18 22:54:47,750 [13] ERROR Photon.SocketServer.PeerBase - exception during handling of data.Peer:T:MasterClientPeer,ConnId:0,ip:127.0.0.1:56326, Data: F3-02-DB-00-02-D1-73-00-0A-50-6C-61-79-65-72-49-6E-66-6F-D0-73-00-04-74-65-73-74,
Exception:System.NullReferenceException: 未将对象引用设置到对象的实例。
在 Photon.LoadBalancing.MasterServer.MasterClientPeer.HandleRpcRequest(OperationRequest operationRequest, SendParameters sendParameters) location d:\dev\photon-socketserver-sdk_cloud\src-server\LoadBalancing\LoadBalancing\MasterServer\MasterClientPeer.cs:line 759
在 Photon.SocketServer.Rpc.Peer.OnOperationRequest(OperationRequest operationRequest, SendParameters sendParameters) location h:\svncontent\photon-socketserver-sdk_cloud\src\Photon.SocketServer\Rpc\Peer.cs:line 109
在 Photon.SocketServer.PeerBase.OnReceive(Byte[] data, SendParameters sendParameters) location h:\svncontent\photon-socketserver-sdk_cloud\src\Photon.SocketServer\PeerBase.cs:line 1243
在 Photon.SocketServer.PeerBase.OnReceiveInternal(Byte[] data, SendParameters sendParameters, Int32 rtt, Int32 rttVariance, Int32 numFailures) location h:\svncontent\photon-socketserver-sdk_cloud\src\Photon.SocketServer\PeerBase.cs:line 988
is this a server error?how to fix ti?
0
Best Answer
-
well, please build debug version of loadbalancing and use it. also switch on debug level logging in log4net.config
also you may start photon using MSVS debugger, so that we will see exact point of faillure
line which we see in your log does not have anything to fail
best,
ilya
5
Answers
-
Hi @dollarpong,
Thank you for choosing Photon!
We will look into this.
can you tell us what data are you sending in this WebRPC method? Does the error happen with one or more methods?0 -
thanks!
i want to retrieve player infomation from my own web service.the method like
PhotonNetwork.WebRcp("PlayerInfo",new Dictionary(){"id",321900}) for testing my own
web service.But i always get that error.
the GameServer and Master both set like this:
i run server on windows 10 and .net 4.6 version.it maybe cause i do not load any server .dll correctly?0 -
thanks!
i want to retrieve player infomation from my own web service.the method like
PhotonNetwork.WebRcp("PlayerInfo",new Dictionary(){"id",321900}) for testing my own
web service.But i always get that error.
the GameServer and Master both config like this:
i run server on windows 10 and .net 4.6 version.it maybe cause i do not load any server .dll correctly?0 -
0
-
0
-
hi,@chvestsov mod
the MSMaster.log like :
017-02-21 20:15:54,993 [1] INFO Photon.LoadBalancing.MasterServer.MasterApplication - TokenCreator intialized with an expiration of 02:46:40
2017-02-21 20:15:55,370 [1] INFO Photon.SocketServer.Diagnostics.HttpQueuePerformanceCounters - HTTP Queue performance counters successfully initialized
2017-02-21 20:15:55,382 [1] INFO Photon.SocketServer.Diagnostics.HttpQueuePerformanceCounters - Internal HTTP Queue performance counters successfully created
2017-02-21 20:15:55,391 [1] INFO Photon.Common.Authentication.Diagnostic.CustomAuthResultCounters - Start to initialize Photon: Custom Authentication Results performance counters
2017-02-21 20:15:55,422 [1] INFO Photon.Common.Authentication.Diagnostic.CustomAuthResultCounters - Photon: Custom Authentication Results performance counters successfully initialized
2017-02-21 20:15:55,454 [1] WARN Photon.Common.LoadBalancer.LoadBalancer`1 - Could not initialize LoadBalancer from configuration: Invalid configuration file \Photon\Photon-OnPremise-Server-SDK_v4-0-29-11263\deploy\LoadBalancer.config. Using default settings... (未能找到文件“D:\Photon\Photon-OnPremise-Server-SDK_v4-0-29-11263\deploy\LoadBalancer.config”。)
2017-02-21 20:15:55,610 [1] INFO Photon.LoadBalancing.MasterServer.GameApplication - TokenCreator intialized with an expiration of 02:46:40
2017-02-21 20:15:55,917 [1] INFO Photon.LoadBalancing.MasterServer.GameApplication - Application {Default}/{Default} starts without Redis
2017-02-21 20:15:55,971 [1] INFO Photon.LoadBalancing.Common.NodesReader - Import nodes
2017-02-21 20:15:55,980 [1] WARN Photon.LoadBalancing.Common.NodesReader - \Photon\Photon-OnPremise-Server-SDK_v4-0-29-11263\deploy\Nodes.txt does not exist, CurrentNodeId = 0
2017-02-21 20:15:55,989 [1] INFO Photon.LoadBalancing.Common.NodesReader - Watching \Photon\Photon-OnPremise-Server-SDK_v4-0-29-11263\deploy\Nodes.txt
2017-02-21 20:15:55,998 [1] INFO Photon.LoadBalancing.MasterServer.MasterApplication - Current Node (nodeId=0) is the active master (leader)
2017-02-21 20:15:56,006 [1] INFO Photon.SocketServer.ApplicationBase - Application start: AppId=Master; AppPath=D:\Photon\Photon-OnPremise-Server-SDK_v4-0-29-11263\deploy\LoadBalancing\Master, Type=Photon.LoadBalancing.MasterServer.MasterApplication
2017-02-21 20:15:56,040 [1] INFO Photon.SocketServer.Diagnostics.CounterPublisher - CounterPublisher started publishing ExitGames.Diagnostics.Monitoring.CounterSamplePublisher to ExitGames.Diagnostics.Monitoring.CounterSampleSender
2017-02-21 20:15:56,080 [13] INFO Photon.LoadBalancing.MasterServer.GameServer.IncomingGameServerPeer - game server connection from 127.0.0.1:52233 established (id=2)
2017-02-21 20:15:56,316 [10] WARN Photon.LoadBalancing.Common.NodesReader - Internal address for node 0 unknown; using loop back
2017-02-21 20:15:56,329 [10] INFO Photon.LoadBalancing.Common.NodesReader - Node added: 0 = 127.0.0.1
2017-02-21 20:25:24,609 [13] ERROR Photon.SocketServer.PeerBase - exception during handling of data.Peer:T:MasterClientPeer,ConnId:1,ip:127.0.0.1:53682, Data: F3-02-DB-00-02-D1-73-00-0A-50-6C-61-79-65-72-49-6E-66-6F-D0-69-00-00-30-39,
Exception:System.NullReferenceException: 未将对象引用设置到对象的实例。
在 Photon.LoadBalancing.MasterServer.MasterClientPeer.HandleRpcRequest(OperationRequest operationRequest, SendParameters sendParameters) 位置 d:\dev\photon-socketserver-sdk_cloud\src-server\LoadBalancing\LoadBalancing\MasterServer\MasterClientPeer.cs:行号 759
在 Photon.SocketServer.Rpc.Peer.OnOperationRequest(OperationRequest operationRequest, SendParameters sendParameters) 位置 h:\svncontent\photon-socketserver-sdk_cloud\src\Photon.SocketServer\Rpc\Peer.cs:行号 109
在 Photon.SocketServer.PeerBase.OnReceive(Byte[] data, SendParameters sendParameters) 位置 h:\svncontent\photon-socketserver-sdk_cloud\src\Photon.SocketServer\PeerBase.cs:行号 1243
在 Photon.SocketServer.PeerBase.OnReceiveInternal(Byte[] data, SendParameters sendParameters, Int32 rtt, Int32 rttVariance, Int32 numFailures) 位置 h:\svncontent\photon-socketserver-sdk_cloud\src\Photon.SocketServer\PeerBase.cs:行号 9880 -
well, please build debug version of loadbalancing and use it. also switch on debug level logging in log4net.config
also you may start photon using MSVS debugger, so that we will see exact point of faillure
line which we see in your log does not have anything to fail
best,
ilya
5 -
thank you very very very very much! @ chevtsovmod
i rebuild version of loadbalancing and use it successfully
0 -
hmm, odd. i asked you to build debug version to see more correct logs. so it was not answer it was one more take to find a reason of failure
please try to build release and see whether it works for you
best,
ilya0