[ http://jira.codehaus.org/browse/JIBX-79?page=all ]
     
Dennis Sosnoski resolved JIBX-79:
---------------------------------

      Assign To: Dennis Sosnoski
     Resolution: Fixed
    Fix Version: CVS

This works correctly now, so I assume it was fixed by one of the post-RC1 
changes to the code generation.

> 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
>     Assignee: Dennis Sosnoski
>      Fix For: CVS
>  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



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to