Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/JIBX-42

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JIBX-42
    Summary: abstract mapping which is not top-level in the binding throws NPE while 
binding
       Type: Bug

     Status: Unassigned
   Priority: Minor

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: JiBX
 Components: 
             core
   Versions:
             CVS

   Assignee: 
   Reporter: craig mcmillan

    Created: Thu, 26 Aug 2004 9:52 AM
    Updated: Thu, 26 Aug 2004 9:52 AM

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


---------------------------------------------------------------------
JIRA INFORMATION:
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.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
jibx-devs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to