Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Cannot Reproduce
-
Affects Version/s: 1.0-RC0
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:JiBX RC0, JDK 1.5.0_02, Eclipse 3.0.2
-
Number of attachments :
Description
I tried to set the marshaller and unmarshaller to different classes, like this:
<mapping class="com.somepackage.InlineParagraph"
marshaller="com.somepackage.inline.InlineMarshaller"
unmarshaller="com.somepackage.inline.InlineUnmarshaller"
name="P"
/>
The bind worked successfully, but when I tried to do an unmarshall, I got the
following exception at runtime:
java.lang.AbstractMethodError: com.somepackage.JiBX_fullxmlInlineUnmarshaller_23.marshal(Ljava/lang/Object;Lorg/jibx/runtime/IMarshallingContext;)V
at com.somepackage.InlineParagraph.marshal(InlineParagraph.java)
at org.jibx.runtime.impl.MarshallingContext.marshalRoot(MarshallingContext.java:963)
at org.jibx.runtime.impl.MarshallingContext.marshalDocument(MarshallingContext.java:1055)
...
It appears that the marshall method is being called on the unmarshaller, which doesn't sound right.
To get around the problem, I used the same class to do the marshalling and unmarshalling.
I've added a test of this to the standard JiBX test cases and haven't seen any problem. Based on the stack trace, I suspect an error within the com.somepackage.InlineParagraph.marshal(InlineParagraph.java) user code.