Marshaller/Unmarshaller must be the same class
----------------------------------------------
Key: JIBX-67
URL: http://jira.codehaus.org/browse/JIBX-67
Project: JiBX
Type: Bug
Versions: 1.0-RC0
Environment: JiBX RC0, JDK 1.5.0_02, Eclipse 3.0.2
Reporter: JasonTitus
Priority: Minor
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs