I'm facing some problem using JBoss 7 here, i don't know why, but after i do the lookup i try to send a collection to my server and then turn the xml files into DB data. But, as soon as the lookup is made and i try to send the collections i receive this error msg:
Exception in thread "main" java.io.StreamCorruptedException: Unexpected byte found when reading an object: 0
at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:755)
at org.jboss.marshalling.river.BlockUnmarshaller.readToEndBlockData(BlockUnmarshaller.java:124)
at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1613)
at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1273)
at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:276)
at org.jboss.ejb.client.EJBClientInvocationContext.awaitResponse(EJBClientInvocationContext.java:437)
at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:202)
at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:181)
at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:144)
at $Proxy0.importXml(Unknown Source)
at principal.FeedClientDB.processArq(FeedClientDB.java:116)
at principal.FeedClientDB.processArq(FeedClientDB.java:101)
at principal.FeedClientDB.main(FeedClientDB.java:58)
Caused by: an exception which occurred:
in object of type xml.XmlDoc
in object of type xml.XmlDoc
in object of type xml.XmlDoc
in object of type xml.XmlDoc
in object of type xml.XmlDoc
in object of type xml.XmlDoc
in object of type xml.XmlDoc
in object of type xml.XmlDoc
in element at index [0] of size [49]
The element which i'm trying to send is an object that contains an attribute transient inputStream. I don't know if it should act this way or not.