[
https://issues.jboss.org/browse/ISPN-1248?page=com.atlassian.jira.plugin....
]
Mathieu Lachance commented on ISPN-1248:
----------------------------------------
It was a build path issue from finally upgrading from CR1 to CR7.
river-1.2.3.GA was conflicting with jboss-marshalling-river-1.3.0.CR9
Generic JBoss Marshaller
------------------------
Key: ISPN-1248
URL:
https://issues.jboss.org/browse/ISPN-1248
Project: Infinispan
Issue Type: Bug
Components: Marshalling
Affects Versions: 5.0.0.CR2
Reporter: Mathieu Lachance
Assignee: Manik Surtani
It seem with the jboss-marshalling-1.3.0.CR9 upgrade the marshalling api seem broken
making at the same time the storeAsBinary configuration unusable.
Consider the following code :
import java.io.Serializable;
public class SerializableObject implements Serializable{
private static final long serialVersionUID = 1L;
private int a;
public SerializableObject(){
super();
}
public void setA(int a) {
this.a = a;
}
public int getA() {
return a;
}
public static void main(String[] args){
byte[] byteBuffer = new GenericJBossMarshaller().objectToByteBuffer(new
SerializableObject());
}
}
When run, it will result in :
Caused by: org.infinispan.CacheException: java.io.IOException: Unsupported protocol
version 3
at
org.infinispan.marshall.jboss.GenericJBossMarshaller$1.initialValue(GenericJBossMarshaller.java:97)
at
org.infinispan.marshall.jboss.GenericJBossMarshaller$1.initialValue(GenericJBossMarshaller.java:91)
at java.lang.ThreadLocal.setInitialValue(Unknown Source)
at java.lang.ThreadLocal.get(Unknown Source)
at
org.infinispan.marshall.jboss.GenericJBossMarshaller.startObjectOutput(GenericJBossMarshaller.java:139)
at
org.infinispan.marshall.jboss.GenericJBossMarshaller.objectToBuffer(GenericJBossMarshaller.java:125)
at
org.infinispan.marshall.AbstractMarshaller.objectToByteBuffer(AbstractMarshaller.java:86)
at
org.infinispan.marshall.AbstractMarshaller.objectToByteBuffer(AbstractMarshaller.java:79)
Same code was working under Infinispan CR2 revision.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira