[ 
http://jira.codehaus.org/browse/JIBX-296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Sosnoski resolved JIBX-296.
----------------------------------

         Assignee: Dennis Sosnoski
       Resolution: Fixed
    Fix Version/s: JiBX 1.2.2

The problem here lies in the generated code going into the default package, so 
that the type name (PersonType) is the same as the class name (PersonType). The 
generated binding uses the type name for an abstract mapping, and uses the 
class name for a concrete mapping - hence the conflict.

I've changed the code to use a default package name "dflt" for no-namespace 
schema components, which avoids this issue. A better solution will have to wait 
for 2.0.

> org.jibx.runtime.JiBXException: Conflicting mappings for class ... in binding 
> a trivial recursive mapping
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: JIBX-296
>                 URL: http://jira.codehaus.org/browse/JIBX-296
>             Project: JiBX
>          Issue Type: Bug
>          Components: core
>    Affects Versions: JiBX 1.2.1
>         Environment: Windows Vista (but I think this is not relevant)
>            Reporter: Luca Buraggi
>            Assignee: Dennis Sosnoski
>             Fix For: JiBX 1.2.2
>
>         Attachments: Family.xsd, valid-binding.xml
>
>
> The CodeGen generates the valid-binding.xml file for the very simple test 
> schema Family.xsd, but the binding compiler gives up giving this error:
> ---
> Error running binding compiler
> *** Error during code generation for file 'valid-binding.xml' - please enter 
> a bug report for this error in Jira if the problem is not listed as fixed on 
> the online status page ***
> org.jibx.runtime.JiBXException: Conflicting mappings for class PersonType
>         at 
> org.jibx.binding.def.DefinitionContext.addMapping(DefinitionContext.java:214)
>         at 
> org.jibx.binding.def.BindingBuilder.unmarshalMapping(BindingBuilder.java:1814)
>         at 
> org.jibx.binding.def.BindingBuilder.unmarshalMappings(BindingBuilder.java:1128)
>         at 
> org.jibx.binding.def.BindingBuilder.unmarshalBindingDefinition(BindingBuilder.java:2103)
>         at org.jibx.binding.Utility.loadBinding(Utility.java:314)
>         at org.jibx.binding.Utility.loadFileBinding(Utility.java:431)
>         at org.jibx.binding.Compile.compile(Compile.java:212)
>         at org.jibx.binding.ant.CompileTask.execute(CompileTask.java:248)
> ... omissis ...

-- 
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

        

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
jibx-devs mailing list
jibx-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to