[
http://jira.codehaus.org/browse/JIBX-195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dennis Sosnoski updated JIBX-195:
---------------------------------
Assignee: Dennis Sosnoski
Summary: org.jibx.runtime.JiBXException: Marshaller class
"userDefinedMarshallerClass" does not allow name to be set (was:
org.jibx.runtime.JiBXException: Marshaller class "userDefinedMarshallerClass"
does not allow name to be set
)
It looks like you're trying to use a name="..." attribute with the reference to
the marshaller and unmarshaller class, which is only allowed if the
marshaller/unmarshaller implements IAliasable. This should be caught and
reported by the binding validation, though, rather than throwing an exception
during code generation.
It would help if you can attach a zipped project to demonstrate the problem,
including an Ant build.xml for the project. If that's difficult, just copying
the portion of the binding which references your HashMapper class into this bug
report would be useful.
> org.jibx.runtime.JiBXException: Marshaller class "userDefinedMarshallerClass"
> does not allow name to be set
> -----------------------------------------------------------------------------------------------------------
>
> Key: JIBX-195
> URL: http://jira.codehaus.org/browse/JIBX-195
> Project: JiBX
> Issue Type: Bug
> Components: core
> Affects Versions: JiBX 1.1.5
> Environment: Fedora distribution with JiBX 1.1.5
> Reporter: Clavreul Mickael
> Assignee: Dennis Sosnoski
>
> About the creation of a custom marshaller that implements IMarshaller and
> IUnmarshaller interface to handle an hashmap (similar to HashMapper.java
> located in example21), if IAliasable interface is not implemented by the
> marshalling/unmarshalling class, binding compiling crashes with the following
> exception :
> org.jibx.runtime.JiBXException: Marshaller class HashMapper does not allow
> name to be set
> at org.jibx.binding.def.DirectObject.<init>(DirectObject.java:192)
> at
> org.jibx.binding.def.BindingBuilder.unmarshalDirectObj(BindingBuilder.java:737)
> at
> org.jibx.binding.def.BindingBuilder.unmarshalMapping(BindingBuilder.java:1601)
> at
> org.jibx.binding.def.BindingBuilder.unmarshalMappings(BindingBuilder.java:983)
> at
> org.jibx.binding.def.BindingBuilder.unmarshalBindingDefinition(BindingBuilder.java:1799)
> at org.jibx.binding.Utility.loadBinding(Utility.java:293)
> at org.jibx.binding.Utility.loadFileBinding(Utility.java:413)
> at org.jibx.binding.Compile.compile(Compile.java:296)
> at org.jibx.binding.Compile.main(Compile.java:385)
--
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
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs