cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Gallardo (JIRA)" <j...@apache.org>
Subject [jira] Created: (COCOON-1865) Javaflow runtime error when cocoon is built and ran using java 1.5
Date Fri, 16 Jun 2006 22:52:30 GMT
Javaflow runtime error when cocoon is built and ran using java 1.5
------------------------------------------------------------------

         Key: COCOON-1865
         URL: http://issues.apache.org/jira/browse/COCOON-1865
     Project: Cocoon
        Type: Bug

  Components: Blocks: Java Flow  
    Versions: 2.1.10-dev (current SVN)    
    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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message