2 Replies Latest reply: Feb 28, 2012 8:41 PM by mark tun RSS

Use query with hotrod client

mark tun Newbie

Hi

 

  I enabled index at the configuration of hotrod server,and try to put a object with query annotation at hotrod client.

then I got error like this:

Caused by: java.io.NotSerializableException:nasd.tools.bean.Security

          at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:885)

          at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62)

          at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:119)

          at org.infinispan.marshall.jboss.AbstractJBossMarshaller.objectToObjectStream(AbstractJBossMarshaller.java:58)

          at org.infinispan.marshall.jboss.AbstractJBossMarshaller.objectToBuffer(AbstractJBossMarshaller.java:66)

          at org.infinispan.marshall.AbstractMarshaller.objectToByteBuffer(AbstractMarshaller.java:78)

          at org.infinispan.client.hotrod.impl.RemoteCacheImpl.obj2bytes(RemoteCacheImpl.java:427)

          ... 11 more

but the program was ok before I added the query annotation,how could i do?

 

thanks