[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jibx-devs
Subject:    [jibx-devs] [jira] Resolved: (JIBX-42) abstract mapping which is not top-level in the binding throws
From:       "Dennis Sosnoski (JIRA)" <jira () codehaus ! org>
Date:       2005-03-25 19:21:00
Message-ID: 17348319.1111778468148.JavaMail.jira () beaver ! codehaus ! org
[Download RAW message or body]

     [ 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
jibx-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-devs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic