java.lang.IllegalStateException
-------------------------------

                 Key: JIBX-189
                 URL: http://jira.codehaus.org/browse/JIBX-189
             Project: JiBX
          Issue Type: Bug
          Components: core
    Affects Versions: JiBX 1.1
         Environment: Windows XP and Java 1.4_12 jdk
            Reporter: Stephane


This following binding piece of code :

<structure field="personalData" usage="optional">
    <collection field="nationalities">
        <structure name="countryName" type="java.lang.String">
            <value style="attribute" name="Index" constant="" 
usage="optional"/> <!--- This line is responsible for this issue -->
            <value style="element" name="Code"/>
        </structure>
    </collection>
</structure>

Gives the following result :

jibxcompile:
     [java] Error running binding compiler

     [java] *** Error during code generation - please enter a bug report for 
this error in Jira if the problem is not listed as fixed on the online status 
page ***

     [java] java.lang.IllegalStateException: Internal error: Expected 
org.jibx.runtime.impl.MarshallingContext on stack, found java.lang.String
     [java]  full stack:
     [java]   0: org.jibx.runtime.impl.MarshallingContext
     [java]   1: java.lang.String
     [java]   2: java.lang.String
     [java]   3: int
     [java]   4: java.lang.String
     [java]   5: java.lang.String

     [java]     at 
org.jibx.binding.classes.MethodBuilder.verifyCompatible(MethodBuilder.java:395)
     [java]     at 
org.jibx.binding.classes.MethodBuilder.verifyCallStack(MethodBuilder.java:512)
     [java]     at 
org.jibx.binding.classes.MethodBuilder.appendCallVirtual(MethodBuilder.java:869)
     [java]     at 
org.jibx.binding.def.ValueChild.genMarshal(ValueChild.java:700)
     [java]     at 
org.jibx.binding.def.ValueChild.genAttributeMarshal(ValueChild.java:784)
     [java]     at 
org.jibx.binding.def.NestedStructure.genAttributeMarshal(NestedStructure.java:171)
     [java]     at 
org.jibx.binding.def.ElementWrapper.genContentMarshal(ElementWrapper.java:432)
     [java]     at 
org.jibx.binding.def.NestedCollection.genContentMarshal(NestedCollection.java:269)
     [java]     at 
org.jibx.binding.def.ObjectBinding.genMarshalContentCall(ObjectBinding.java:875)
     [java]     at 
org.jibx.binding.def.ObjectBinding.genContentMarshal(ObjectBinding.java:945)
     [java]     at 
org.jibx.binding.def.ComponentProperty.genContentMarshal(ComponentProperty.java:299)
     [java]     at 
org.jibx.binding.def.NestedStructure.genContentMarshal(NestedStructure.java:360)
     [java]     at 
org.jibx.binding.def.ObjectBinding.genMarshalContentCall(ObjectBinding.java:875)
     [java]     at 
org.jibx.binding.def.ObjectBinding.genContentMarshal(ObjectBinding.java:945)
     [java]     at 
org.jibx.binding.def.ComponentProperty.genContentMarshal(ComponentProperty.java:299)
     [java]     at 
org.jibx.binding.def.NestedStructure.genContentMarshal(NestedStructure.java:360)
     [java]     at 
org.jibx.binding.def.ElementWrapper.genContentMarshal(ElementWrapper.java:465)
     [java]     at 
org.jibx.binding.def.NestedStructure.genContentMarshal(NestedStructure.java:360)
     [java]     at 
org.jibx.binding.def.ObjectBinding.genMarshalContentCall(ObjectBinding.java:875)
     [java]     at 
org.jibx.binding.def.ObjectBinding.genContentMarshal(ObjectBinding.java:945)
     [java]     at 
org.jibx.binding.def.ElementWrapper.genContentMarshal(ElementWrapper.java:465)
     [java]     at 
org.jibx.binding.def.MappingDefinition.generateCode(MappingDefinition.java:648)
     [java]     at 
org.jibx.binding.def.DefinitionContext.generateCode(DefinitionContext.java:603)
     [java]     at 
org.jibx.binding.def.BindingDefinition.generateCode(BindingDefinition.java:661)
     [java]     at org.jibx.binding.Compile.compile(Compile.java:305)
     [java]     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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to