فهرست منبع

Added the read class ID to the bad deserialize
exception. Two things can cause bad reads:
1) bad data in the stream... in which the extra info
is useless or confusing.
2) unregistered classes or bad timing, either way,
knowing the message type ID might be useful.

Paul Speed 10 سال پیش
والد
کامیت
c1670e7509
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      jme3-networking/src/main/java/com/jme3/network/base/MessageProtocol.java

+ 1 - 1
jme3-networking/src/main/java/com/jme3/network/base/MessageProtocol.java

@@ -181,7 +181,7 @@ public class MessageProtocol
             Message m = (Message)obj;
             messages.add(m);
         } catch( IOException e ) {
-            throw new RuntimeException( "Error deserializing object", e );   
+            throw new RuntimeException( "Error deserializing object, clas ID:" + buffer.getShort(0), e );   
         }         
     }
 }