cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Coboos <>
Subject [BUG?] JavaFlow and getComponent
Date Thu, 06 Jan 2005 19:27:43 GMT

it's possible that I have found another bug in Cocoon. Using 
getComponent within a JavaFlow causes a cryptical exception. I wrote an 
example using Cocoon 2.1.6 which doesn't work. Can someone please verify 
whether it is really a bug or just a mistake of mine?

# The Component Interface:


public interface TestComponent {

    public static final String ROLE = TestComponent.class.getName();
    public void dummy();

# The component implementation:


public class TestComponentImpl implements TestComponent{

    public void dummy() {}

# The component registration in cocoon.xconf:

<component role=""

# The TestFlow-Java class:



class TestFlow extends AbstractContinuable {

    public void doFlowTest() throws Exception {

        while(true) {
            TestComponent component = null;
            try {
                component = 
            } finally {this.releaseComponent(component);}

The sitemap:

<?xml version="1.0" encoding="ISO-8859-1"?>

<map:sitemap xmlns:map="">

  <map:flow language="java">
   <map:script src=""/>
         <map:match pattern="test">
            <map:call function="flowTest"/>
         <map:match pattern="somewhat">
            <map:read type="resource" src="test.xml"/>

The exception I got is:

Instruction GETSTATIC constraint violated: Class '' 
is referenced, but cannot be loaded and resolved: 'VERIFIED_REJECTED 
Number of LocalVariableTable attributes of Code attribute '<CODE>' 
(method 'static void <clinit>()') exceeds number of local variable slots 
'0' ('There may be no more than one LocalVariableTable attribute per 
local variable in the Code attribute.'). '. InstructionHandle: 3: 
getstatic[178](3) 23 Execution Frame: Local Variables: 0: 1: <null object> 2: <unknown object> 3: <unknown 
object> OperandStack: Slots used: 1 MaxStack: 2. (Size: 
1) Execution flow: 0: aconst_null [InstructionContext] 1: astore_1 
[InstructionContext] 2: aload_0 [InstructionContext] 3: getstatic 23 

Thank you.


View raw message