[ http://jira.codehaus.org/browse/JIBX-67?page=all ] Dennis Sosnoski closed JIBX-67: -------------------------------
> 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 > Assignee: Dennis Sosnoski > 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 the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ jibx-devs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-devs
