2 Replies Latest reply on Aug 22, 2005 3:28 PM by Bela Ban

    Exception when trying to retrieve object from database

    Rahul Pilani Newbie

      I am getting the following exception:

      Caused by: java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: boolean
      
       at org.jgroups.Message.getObject(Message.java:249)
      
       at org.jgroups.blocks.RpcDispatcher.handle(RpcDispatcher.java:232)
      
       at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:606)
      
       at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:506)
      
       at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:327)
      
       at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUp(MessageDispatcher.java:747)
      
       at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.access$300(MessageDispatcher.java:579)
      
       at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter$1.run(MessageDispatcher.java:716)
      
       ... 1 more
      
      Caused by: java.lang.ClassNotFoundException: boolean
      
       at org.jgroups.util.Util.loadClass(Util.java:1185)
      
       at org.jgroups.util.ContextObjectInputStream.resolveClass(ContextObjectInputStream.java:55)
      
       at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1538)
      
       at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
      
       at java.io.ObjectInputStream.readClass(ObjectInputStream.java:1427)
      
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1282)
      
       at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1628)
      
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1293)
      
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
      
       at org.jgroups.blocks.MethodCall.readExternal(MethodCall.java:485)
      
       at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1753)
      
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1711)
      
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
      
       at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1628)
      
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1293)
      
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
      
       at org.jgroups.blocks.MethodCall.readExternal(MethodCall.java:478)
      
       at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1753)
      
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1711)
      
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
      
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
      
       at org.jgroups.Message.getObject(Message.java:246)
      
       ... 8 more
      
      


      We are using JDK 1.5 .. and my boss thinks that this may be due to its auto boxing feature, and it trying to deserialize a java.lang.Boolean and interpreting it as boolen instead.

      You may note that the setup and start of the cache is working fine. Its just when I try to retrieve an object from the database, do I get this error.

      Any help will be appreciated.

      Thanks
      Rahul Pilani