cannot have two value elements with constant property set
---------------------------------------------------------

         Key: JIBX-79
         URL: http://jira.codehaus.org/browse/JIBX-79
     Project: JiBX
        Type: Bug
  Components: core  
    Versions: 1.0-RC1    
 Environment: java version "1.5.0_02"
 Reporter: shihab hamid
 Attachments: jibxbreaker.zip

If i try two have more than one <value> element with <value constant="some 
constant">, the JIBX BINDER  gives me the following unspecific error:

*** Error during code generation - please report this error on the JiBX users li
st so that the condition can be caught during validation ***

java.lang.IllegalStateException: Internal error: Too few values on stack
 full stack:

        at org.jibx.binding.classes.MethodBuilder.verifyStackDepth(MethodBuilder
.java:415)
        at org.jibx.binding.classes.MethodBuilder.appendPOP(MethodBuilder.java:1
333)
        at org.jibx.binding.def.ValueChild.genUnmarshal(ValueChild.java:503)
        at org.jibx.binding.def.ValueChild.genAttributeUnmarshal(ValueChild.java
:646)
        at org.jibx.binding.def.NestedStructure.genAttributeUnmarshal(NestedStru
cture.java:121)
        at org.jibx.binding.def.ObjectBinding.genUnmarshalAttributeCall(ObjectBi
nding.java:599)
        at org.jibx.binding.def.ObjectBinding.genAttributeUnmarshal(ObjectBindin
g.java:894)
        at org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrappe
r.java:248)
        at org.jibx.binding.def.MappingDefinition.generateCode(MappingDefinition
.java:565)
        at org.jibx.binding.def.DefinitionContext.generateCode(DefinitionContext
.java:604)
        at org.jibx.binding.def.BindingDefinition.generateCode(BindingDefinition
.java:611)
        at org.jibx.binding.Compile.compile(Compile.java:305)
        at org.jibx.binding.Compile.main(Compile.java:384)

---

The error doesn't occur if there is only one "constant" value element. A sample 
xml object and binding file are attached.



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



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to