[ http://jira.codehaus.org/browse/JIBX-42?page=history ]
     
Dennis Sosnoski resolved JIBX-42:
---------------------------------

    Fix Version: CVS
     Resolution: Fixed

> abstract mapping which is not top-level in the binding throws NPE while 
> binding
> -------------------------------------------------------------------------------
>
>          Key: JIBX-42
>          URL: http://jira.codehaus.org/browse/JIBX-42
>      Project: JiBX
>         Type: Bug
>   Components: core
>     Versions: CVS
>     Reporter: craig mcmillan
>     Priority: Minor
>      Fix For: CVS

>
>
> an abstract mapping which is not at the top level of the binding causes a NPE 
> to be thrown when binding
>  <binding
>     name="jibxModelExternalisedBinding"
>     track-source="true">
>     <!-- abstract mappings not at the top level cause exceptions -->
>     <mapping name="model"
>         
> class="net.tramposys.profiling.metamodel.externalised.ModelExternalised">
>         <mapping abstract="true" 
> class="net.tramposys.profiling.metamodel.externalised.AbstractTypeDescriptorExternalised">
>             <value style="attribute" name="name" field="name"/>
>             <value name="nameKey" field="nameKey"/>
>             <value name="parentName" field="parentName" usage="optional"/>
>         </mapping>
>         <mapping name="class"
>             
> class="net.tramposys.profiling.metamodel.externalised.ClassDescriptorExternalised"
>             value-style="element"
>             
> extends="net.tramposys.profiling.metamodel.externalised.AbstractTypeDescriptorExternalised">
>             <structure 
> map-as="net.tramposys.profiling.metamodel.externalised.AbstractTypeDescriptorExternalised"/>
>             <collection field="interfacesExternalised" value-style="element">
>                 <value name="interface"/>
>             </collection>
>         </mapping>
>         <collection field="classDescriptorsExternalised" 
> item-type="net.tramposys.profiling.metamodel.externalised.ClassDescriptorExternalised"/>
>     </mapping>
> </binding>
> [jibxBind] Cause: java.lang.NullPointerException
>  [jibxBind]     at 
> org.jibx.binding.def.MappingDefinition.generateCode(MappingDefinition.java:479)
>  [jibxBind]     at 
> org.jibx.binding.def.DefinitionContext.generateCode(DefinitionContext.java:593)
>  [jibxBind]     at 
> org.jibx.binding.def.BindingDefinition.generateCode(BindingDefinition.java:562)
>  [jibxBind]     at org.jibx.binding.Compile.compile(Compile.java:299)
>  [jibxBind]     at 
> org.jibx.binding.ant.CompileTask.execute(CompileTask.java:238)
>  [jibxBind]     at 
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.jav

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to