• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error in java server  RSS feed

 
Marvin Legend
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Good morning my friends ,

The server was working normally but now I'm seeing these errors

Server Side:

java.lang.ClassNotFoundException : PacoteTradugo.Mensageiro
at java.net.URLClassLoader $ 1.run ( URLClassLoader.java : 372 )
at java.net.URLClassLoader $ 1.run ( URLClassLoader.java : 361 )
at java.security.AccessController.doPrivileged ( Native Method )
at java.net.URLClassLoader.findClass ( URLClassLoader.java : 360 )
at java.lang.ClassLoader.loadClass ( ClassLoader.java : 424 )
at sun.misc.Launcher $ AppClassLoader.loadClass ( Launcher.java : 308 )
at java.lang.ClassLoader.loadClass ( ClassLoader.java : 357 )
at java.lang.Class.forName0 ( Native Method )
at Java.Lang.Class.forName ( Class.java : 340 )
at java.io.ObjectInputStream.resolveClass ( ObjectInputStream.java : 626)
at java.io.ObjectInputStream.readNonProxyDesc ( ObjectInputStream.java : 1613 )
at java.io.ObjectInputStream.readClassDesc ( ObjectInputStream.java : 1518 )
at java.io.ObjectInputStream.readOrdinaryObject ( ObjectInputStream.java : 1774 )
at java.io.ObjectInputStream.readObject0 ( ObjectInputStream.java : 1351 )
at java.io.ObjectInputStream.readObject ( ObjectInputStream.java : 371 )
PacoteTradu.Server_1 at $ ListenerSocket.run ( Server_1.java : 78)
at java.lang.Thread.run ( Thread.java : 745 )





Client Side :

May 29, 2014 4:55:43 AM PacoteTradugo.Sala $ ListenerSocket run
SEVERE : null
java.net.SocketException : Socket closed
at java.net.SocketInputStream.socketRead0 ( Native Method )
at java.net.SocketInputStream.read ( SocketInputStream.java : 150 )
at java.net.SocketInputStream.read ( SocketInputStream.java : 121)
at java.net.SocketInputStream.read ( SocketInputStream.java : 203)
at java.io.ObjectInputStream $ PeekInputStream.peek ( ObjectInputStream.java : 2296 )
at java.io.ObjectInputStream $ BlockDataInputStream.peek ( ObjectInputStream.java : 2589 )
at java.io.ObjectInputStream $ BlockDataInputStream.peekByte ( ObjectInputStream.java : 2599 )
at java.io.ObjectInputStream.readObject0 ( ObjectInputStream.java : 1319 )
at java.io.ObjectInputStream.readObject ( ObjectInputStream.java : 371 )
PacoteTradugo.Sala at $ ListenerSocket.run ( Sala.java : 444 )
at java.lang.Thread.run ( Thread.java : 745 )

Thank you !
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like the server code is reading a serialized object (it's using ObjectInputStream) of class PacoteTradugo.Mensageiro, but that class is not available on the classpath on the server side. Make sure that this class is available on the classpath on the server.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!