cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Heinicke (JIRA) <j...@apache.org>
Subject [jira] Updated: (COCOON-1865) Javaflow runtime error when cocoon is built and ran using java 1.5
Date Fri, 05 Jan 2007 00:02:27 GMT

     [ https://issues.apache.org/jira/browse/COCOON-1865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jörg Heinicke updated COCOON-1865:
----------------------------------

        Fix Version/s:     (was: 2.1.10)
    Affects Version/s:     (was: 2.1.10)
                       2.1.9

> Javaflow runtime error when cocoon is built and ran using java 1.5
> ------------------------------------------------------------------
>
>                 Key: COCOON-1865
>                 URL: https://issues.apache.org/jira/browse/COCOON-1865
>             Project: Cocoon
>          Issue Type: Bug
>          Components: Blocks: Java Flow
>    Affects Versions: 2.1.9
>            Reporter: Antonio Gallardo
>         Assigned To: Cocoon Developers Team
>
> It seems to be an bcel issue, but it does not allow to use the javaflow block with java
1.5.
> The tested sample works in java 1.4: 
> http://cocoon.zones.apache.org/demos/21branch/samples/blocks/javaflow/calculator.do
> Steps to reproduce:
> 1. Compile cocoon using java 1.5.0_07: ./build.sh
> 2. Run the cocoon: ./cocoon.sh
> 3. Open: http://localhost:8888/samples/blocks/javaflow/calculator.do
> The following error shows up:
> org.apache.bcel.verifier.exc.StructuralCodeConstraintException: Instruction LDC_W constraint
violated: Referenced constant should be a CONSTANT_Integer, a CONSTANT_Float or a CONSTANT_String,
but is 'CONSTANT_Class[7](name_index = 86)'.
> InstructionHandle: 12: ldc_w[19](2) 4
> Execution Frame:
> Local Variables:
> 0: org.apache.cocoon.samples.flow.java.PersistenceFlow
> 1: java.util.ArrayList
> 2: <unknown object>
> 3: <unknown object>
> OperandStack:
> Slots used: 2 MaxStack: 5.
> <UNINITIALIZED OBJECT OF TYPE 'org.apache.ojb.broker.query.QueryByCriteria'> (Size:
1)
> <UNINITIALIZED OBJECT OF TYPE 'org.apache.ojb.broker.query.QueryByCriteria'> (Size:
1)
> Execution flow:
> 0: new 29 [InstructionContext]
> 3: dup [InstructionContext]
> 4: invokespecial 30 [InstructionContext]
> 7: astore_1 [InstructionContext]
> 8: new 31 [InstructionContext]
> 11: dup [InstructionContext]
> 12: ldc_w 4 [InstructionContext]

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message