Expected org.jibx.runtime.impl.MarshallingContext on stack, found 
be.nike.cimsp.vo.plda.SADCombineGoodsDeclarationVO
--------------------------------------------------------------------------------------------------------------------

                 Key: JIBX-178
                 URL: http://jira.codehaus.org/browse/JIBX-178
             Project: JiBX
          Issue Type: Bug
          Components: core
    Affects Versions: JiBX 1.1.5
         Environment: Windows XP, jibx 1.1.5, WebSphere v5.1 EE JRE and Ant as 
build tool
            Reporter: Roel De Nijs
         Attachments: binding-jira.xml

if i'm trying to bind the attached binding-file i get following error

        [echo] Running JiBX binding compiler
        [echo] C:/TEMP_ROMMEL/jibx-1-1-5
        [bind] Error running binding compiler
        [bind] 

        [bind] *** Error during code generation for file 
'C:\WORKSPACE\CCC\PLDAEJB/ejbModule/be/nike/cimsp/xml/plda/binding-jira.xml' - 
please enter a bug report for this error in Jira if the problem is not listed 
as fixed on the online status page ***

        [bind] 
        [bind] java.lang.IllegalStateException: Internal error: Expected 
org.jibx.runtime.impl.MarshallingContext on stack, found 
be.nike.cimsp.vo.plda.SADCombineGoodsDeclarationVO

        [bind]  full stack:

        [bind]   0: org.jibx.runtime.impl.MarshallingContext

        [bind]   1: be.nike.cimsp.vo.plda.SADCombineGoodsDeclarationVO

        [bind]   2: be.nike.cimsp.vo.plda.SADCombineGoodsDeclarationVO

        [bind]   3: int

        [bind]   4: java.lang.String

        [bind]   5: java.lang.String

        [bind] 
        [bind]  at java.lang.Throwable.<init>(Throwable.java)
        [bind]  at java.lang.Throwable.<init>(Throwable.java)
        [bind]  at 
org.jibx.binding.classes.MethodBuilder.verifyCompatible(MethodBuilder.java:420)
        [bind]  at 
org.jibx.binding.classes.MethodBuilder.verifyCallStack(MethodBuilder.java:537)
        [bind]  at 
org.jibx.binding.classes.MethodBuilder.appendCallVirtual(MethodBuilder.java:894)
        [bind]  at 
org.jibx.binding.def.StringConversion.genWriteText(StringConversion.java:230)
        [bind]  at 
org.jibx.binding.def.StringConversion.genWriteOptional(StringConversion.java:327)
        [bind]  at 
org.jibx.binding.def.ValueChild.genMarshal(ValueChild.java:683)
        [bind]  at 
org.jibx.binding.def.ValueChild.genContentMarshal(ValueChild.java:818)
        [bind]  at 
org.jibx.binding.def.NestedStructure.genContentMarshal(NestedStructure.java:355)
        [bind]  at 
org.jibx.binding.def.ObjectBinding.genMarshalContentCall(ObjectBinding.java:878)
        [bind]  at 
org.jibx.binding.def.ObjectBinding.genContentMarshal(ObjectBinding.java:948)
        [bind]  at 
org.jibx.binding.def.ComponentProperty.genContentMarshal(ComponentProperty.java:318)
        [bind]  at 
org.jibx.binding.def.ElementWrapper.genContentMarshal(ElementWrapper.java:464)
        [bind]  at 
org.jibx.binding.def.PassThroughComponent.genContentMarshal(PassThroughComponent.java:116)
        [bind]  at 
org.jibx.binding.def.NestedStructure.genContentMarshal(NestedStructure.java:355)
        [bind]  at 
org.jibx.binding.def.ObjectBinding.genMarshalContentCall(ObjectBinding.java:878)
        [bind]  at 
org.jibx.binding.def.ObjectBinding.genContentMarshal(ObjectBinding.java:948)
        [bind]  at 
org.jibx.binding.def.ComponentProperty.genContentMarshal(ComponentProperty.java:318)
        [bind]  at 
org.jibx.binding.def.ElementWrapper.genContentMarshal(ElementWrapper.java:464)
        [bind]  at 
org.jibx.binding.def.PassThroughComponent.genContentMarshal(PassThroughComponent.java:116)
        [bind]  at 
org.jibx.binding.def.NestedStructure.genContentMarshal(NestedStructure.java:355)
        [bind]  at 
org.jibx.binding.def.ObjectBinding.genMarshalContentCall(ObjectBinding.java:878)
        [bind]  at 
org.jibx.binding.def.ObjectBinding.genContentMarshal(ObjectBinding.java:948)
        [bind]  at 
org.jibx.binding.def.ElementWrapper.genContentMarshal(ElementWrapper.java:464)
        [bind]  at 
org.jibx.binding.def.MappingDefinition.generateMarshalImplementation(MappingDefinition.java:797)
        [bind]  at 
org.jibx.binding.def.MappingDefinition.generateCode(MappingDefinition.java:856)
        [bind]  at 
org.jibx.binding.def.DefinitionContext.generateCode(DefinitionContext.java:669)
        [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:288)
        [bind]  at 
java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:199)
        [bind]  at java.lang.reflect.Method.invoke(Method.java)
        [bind]  at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
        [bind]  at org.apache.tools.ant.Task.perform(Task.java:348)
        [bind]  at org.apache.tools.ant.Target.execute(Target.java:357)
        [bind]  at org.apache.tools.ant.Target.performTasks(Target.java:385)
        [bind]  at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
        [bind]  at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        [bind]  at 
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:571)
        [bind]  at 
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:367)
        [bind]  at 
java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:199)
        [bind]  at java.lang.reflect.Method.invoke(Method.java)
        [bind]  at org.eclipse.ant.core.AntRunner.run(AntRunner.java:335)
        [bind]  at 
org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:172)
        [bind]  at java.lang.Thread.run(Thread.java:795)
        [bind] 
        [bind] 
        [bind] BUILD FAILED: C:\WORKSPACE\CCC\PLDAEJB\build-binding.xml:74: 
JiBXException in JiBX binding compilation

According to my XSD i have to create this structure:
        <xs:complexType name="TCustomsImport">
                <xs:sequence>
                        <xs:element name="Seal" type="TSeal" minOccurs="0" 
maxOccurs="unbounded"/>
                        <xs:element name="seals" type="seal" minOccurs="0"/>
                </xs:sequence>
        </xs:complexType>

Note 1: binding-file is stripped down in function of this problem
Note 2: the java classes are just pojo's
Note 3: if I remove name="Seal" from the structure in the 
TCustomsImport-mapping, binding completes successfully. 


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