Illegal State Exception thrown during generation
------------------------------------------------

         Key: JIBX-87
         URL: http://jira.codehaus.org/browse/JIBX-87
     Project: JiBX
        Type: Bug

  Components: Generator Tools  
 Environment: Windows 2K, Oracle JDeveloper 
    Reporter: Thomas Jones-Low
 Attachments: AstroBind.xml

Using RC2 to generate the binding, I get the following error

 [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 
com.softstart.stellar.data.GroupRecord on stack, found 
com.softstart.stellar.data.HexID
     [java]  full stack:
     [java]   0: com.softstart.stellar.data.GroupRecord
     [java]   1: com.softstart.stellar.data.GroupRecord
     [java]   2: com.softstart.stellar.data.HexID
     [java]   3: com.softstart.stellar.data.HexID

     [java]     at 
org.jibx.binding.classes.MethodBuilder.verifyCompatible(MethodBuilder.java:393)
     [java]     at 
org.jibx.binding.classes.MethodBuilder.verifyStack(MethodBuilder.java:475)
     [java]     at 
org.jibx.binding.classes.MethodBuilder.appendPutField(MethodBuilder.java:752)
     [java]     at 
org.jibx.binding.classes.MethodBuilder.appendPut(MethodBuilder.java:779)
     [java]     at 
org.jibx.binding.def.PropertyDefinition.genStore(PropertyDefinition.java:560)
     [java]     at 
org.jibx.binding.def.ComponentProperty.genContentUnmarshal(ComponentProperty.java:252)
     [java]     at 
org.jibx.binding.def.PassThroughComponent.genContentUnmarshal(PassThroughComponent.java:111)
     [java]     at 
org.jibx.binding.def.NestedStructure.genContentUnmarshal(NestedStructure.java:156)
     [java]     at 
org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:787)
     [java]     at 
org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:932)
     [java]     at 
org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrapper.java:272)
     [java]     at 
org.jibx.binding.def.MappingDefinition.generateCode(MappingDefinition.java:592)
     [java]     at 
org.jibx.binding.def.DefinitionContext.generateCode(DefinitionContext.java:602)
     [java]     at 
org.jibx.binding.def.BindingDefinition.generateCode(BindingDefinition.java:611)
     [java]     at org.jibx.binding.Compile.compile(Compile.java:305)
     [java]     at org.jibx.binding.Compile.main(Compile.java:385)

I've attached the AstroBind.xml file. 
if you change line 53 from
        <structure field="location" map-as="com.softstart.stellar.data.HexID"/>
to
        <structure field="location" name="location"/>

the problem "goes away". 

-- 
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. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to