[
http://jira.codehaus.org/browse/JIBX-133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dennis Sosnoski closed JIBX-133.
--------------------------------
> Bindingcompiler / Code Generator throws IllegalStateException: Stack size
> mismatch on branch
> --------------------------------------------------------------------------------------------
>
> Key: JIBX-133
> URL: http://jira.codehaus.org/browse/JIBX-133
> Project: JiBX
> Issue Type: Bug
> Components: Generator Tools
> Environment: I am using the eclipse 3.1 ant plugin.
> Reporter: Carsten Schmieta
> Assignee: Dennis Sosnoski
> Fix For: JiBX 1.1.2
>
> Attachments: bindings.xml, spice_TR1998.xsd
>
>
> My ant build fails during code generation.
> Here's an excerpt of the binding compiler log, including the stack trace
> Buildfile: D:\dev\workspace\de.cato.spice.viewer\build-binding.xml
> check-runtime:
> check-binding:
> bind:
> [echo] Running JiBX binding compiler
> [echo] classpath: D:\dev\workspace\de.cato.spice.viewer/bin
> [echo] basedir: D:\dev\workspace\de.cato.spice.viewer
> [bind] Using the following paths:
> [bind] D:\dev\workspace\de.cato.spice.viewer\bin
> [bind] Using the following binding paths:
> [bind] D:\dev\workspace\de.cato.spice.viewer/binding/bindings.xml
> [bind] Running binding compiler version jibx_1_1
> [bind] binding de:
> [bind] context (mp#=14) (cv#=0) (fm#=0)
> [bind] mapping class de.cato.spice.xml.TextType (#0) (abstract)
> [bind] context (cv#=0) (fm#=0)
> [bind] object binding for de.cato.spice.xml.TextType create class
> de.cato.spice.xml.TextType
> [bind] structure ordered
> [bind] mapping class de.cato.spice.xml.SpiceItemType to element
> spice_itemType (#1)
> [bind] context (cv#=0) (fm#=0)
> [bind] element wrapper spice_itemType
> [bind] object binding for de.cato.spice.xml.SpiceItemType create class
> de.cato.spice.xml.SpiceItemType
> [bind] structure ordered
> [bind] element wrapper name
> [bind] component property name (de.cato.spice.xml.TextType)
> [bind] object binding for de.cato.spice.xml.TextType create class
> de.cato.spice.xml.TextType
> [bind] structure ordered
> [bind] mapping reference to de.cato.spice.xml.TextType using property
> "this" (de.cato.spice.xml.TextType)
> [bind] optional structure wrapper property description
> (de.cato.spice.xml.TextType) (load marshal)
> [bind] element wrapper description direct optional structure object
> [bind] component property description (de.cato.spice.xml.TextType)
> (pass-through marshal)
> [bind] object binding for de.cato.spice.xml.TextType create class
> de.cato.spice.xml.TextType
> [bind] structure ordered
> [bind] mapping reference to de.cato.spice.xml.TextType using property
> "this" (de.cato.spice.xml.TextType)
> [bind] attribute id from property id (java.lang.String)
> [bind] mapping class de.cato.spice.xml.PractiseType to element
> practiseType (#2)
> [bind] context (cv#=0) (fm#=0)
> [bind] element wrapper practiseType
> [bind] object binding for de.cato.spice.xml.PractiseType create class
> de.cato.spice.xml.PractiseType
> [bind] structure ordered
> [bind] mapping reference to de.cato.spice.xml.SpiceItemType using
> property "this" (de.cato.spice.xml.PractiseType)
> [bind] mapping class de.cato.spice.xml.ReferenceModel to element
> reference_model (#3)
> [bind] context (cv#=0) (fm#=0)
> .....
> [bind] structure ordered
> [bind] mapping reference to de.cato.spice.xml.SpiceItemType using
> property "this" (de.cato.spice.xml.WorkProduct)
> [bind] attribute wpclass from optional property wpclass
> (java.lang.String)
> [bind] Generating code for mapping de.cato.spice.xml.TextType
> [bind] Generating code for mapping de.cato.spice.xml.SpiceItemType
> [bind] Generating code for mapping de.cato.spice.xml.PractiseType
> [bind] Generating code for mapping de.cato.spice.xml.ReferenceModel
> [bind] Generating code for mapping
> de.cato.spice.xml.ReferenceModelContent
> [bind] Generating code for mapping de.cato.spice.xml.Category
> [bind] Generating code for mapping de.cato.spice.xml.Process
> [bind] Error running binding compiler
> [bind] *** 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 ***
> [bind] java.lang.IllegalStateException: Stack size mismatch on branch
> [bind] in method de.cato.spice.xml.JiBX_MungeAdapter.JiBX_de_unmarshal
> [bind] generated by [EMAIL PROTECTED]
> [bind] from stack:
> [bind] to stack:
> [bind] 0: java.util.ArrayList
> [bind] at
> org.jibx.binding.classes.BranchWrapper.setTarget(BranchWrapper.java:183)
> [bind] at
> org.jibx.binding.classes.BranchWrapper.setTarget(BranchWrapper.java:200)
> [bind] at
> org.jibx.binding.def.NestedCollection.genContentUnmarshal(NestedCollection.java:172)
> [bind] at
> org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:795)
> [bind] at
> org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:940)
> [bind] at
> org.jibx.binding.def.ComponentProperty.genContentUnmarshal(ComponentProperty.java:256)
> [bind] at
> org.jibx.binding.def.NestedStructure.genContentUnmarshal(NestedStructure.java:193)
> [bind] at
> org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:795)
> [bind] at
> org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:940)
> [bind] at
> org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrapper.java:315)
> [bind] at
> org.jibx.binding.def.MappingDefinition.generateCode(MappingDefinition.java:582)
> [bind] at
> org.jibx.binding.def.DefinitionContext.generateCode(DefinitionContext.java:603)
> [bind] at
> org.jibx.binding.def.BindingDefinition.generateCode(BindingDefinition.java:661)
> [bind] at org.jibx.binding.Compile.compile(Compile.java:305)
> [bind] at org.jibx.binding.ant.CompileTask.execute(CompileTask.java:248)
> [bind] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> [bind] at org.apache.tools.ant.Task.perform(Task.java:364)
> [bind] at org.apache.tools.ant.Target.execute(Target.java:341)
> [bind] at org.apache.tools.ant.Target.performTasks(Target.java:369)
> [bind] at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> [bind] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> [bind] at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
> [bind] at
> org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
> [bind] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> [bind] at
> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
> [bind] at
> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
> BUILD FAILED
> D:\dev\workspace\de.cato.spice.viewer\build-binding.xml:75: JiBXException in
> JiBX binding compilation
> Total time: 1 second
--
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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs