Hi
I attachment the source here.I rem two block in the source(you can see the
souce) and then it works.
If don't rem the line
iDirectory =(IDirectory) getComponent(IDirectory.ROLE);
user=iDirectory.getCurrentUser();
releaseComponent(iDirectory);
the error will be:
java.lang.RuntimeException:
org.apache.bcel.verifier.exc.StructuralCodeConstraintException: Instruction
GETSTATIC constraint violated: Class 'com.poweroa.components.IDirectory' 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: 394: getstatic[178](3) 133
Execution Frame:
Local Variables:
0: com.poweroa.flow.PowerOAFlow
1: java.lang.String
2: java.lang.String
3: java.lang.String
4: java.lang.String
5: java.lang.String
6: java.lang.String
7: java.lang.String
8: java.lang.String
9: java.lang.String
10: java.lang.String
11: java.lang.String
12: java.lang.String
13: java.lang.String
14: java.lang.String
15: java.lang.String
16: java.lang.String
17: java.lang.String
18: java.lang.String
19: java.lang.String
20: java.lang.String
21: java.lang.String
22: java.lang.String
23: java.lang.String
24: java.lang.String
25: java.lang.String
26: java.lang.String
27: java.lang.String
28: <null object>
29: <null object>
30: <unknown object>
OperandStack:
Slots used: 1 MaxStack: 3.
com.poweroa.flow.PowerOAFlow (Size: 1)
Execution flow:
0: aload_0 [InstructionContext]
1: invokespecial 39 [InstructionContext]
4: invokevirtual 43 [InstructionContext]
7: ldc 45 [InstructionContext]
9: ldc 66 [InstructionContext]
11: invokevirtual 69 [InstructionContext]
14: astore_1 [InstructionContext]
15: aload_0 [InstructionContext]
16: invokespecial 39 [InstructionContext]
19: invokevirtual 43 [InstructionContext]
22: ldc 71 [InstructionContext]
24: ldc 66 [InstructionContext]
26: invokevirtual 69 [InstructionContext]
29: astore_2 [InstructionContext]
30: aload_0 [InstructionContext]
31: invokespecial 39 [InstructionContext]
34: invokevirtual 43 [InstructionContext]
37: ldc 73 [InstructionContext]
39: ldc 66 [InstructionContext]
41: invokevirtual 69 [InstructionContext]
44: astore_3 [InstructionContext]
45: aload_0 [InstructionContext]
46: invokespecial 39 [InstructionContext]
49: invokevirtual 43 [InstructionContext]
52: ldc 75 [InstructionContext]
54: ldc 66 [InstructionContext]
56: invokevirtual 69 [InstructionContext]
59: astore 4 [InstructionContext]
61: aload_0 [InstructionContext]
62: invokespecial 39 [InstructionContext]
65: invokevirtual 43 [InstructionContext]
68: ldc 77 [InstructionContext]
70: ldc 66 [InstructionContext]
72: invokevirtual 69 [InstructionContext]
75: astore 5 [InstructionContext]
77: aload_0 [InstructionContext]
78: invokespecial 39 [InstructionContext]
81: invokevirtual 43 [InstructionContext]
84: ldc 79 [InstructionContext]
86: ldc 66 [InstructionContext]
88: invokevirtual 69 [InstructionContext]
91: astore 6 [InstructionContext]
93: aload_0 [InstructionContext]
94: invokespecial 39 [InstructionContext]
97: invokevirtual 43 [InstructionContext]
100: ldc 81 [InstructionContext]
102: ldc 66 [InstructionContext]
104: invokevirtual 69 [InstructionContext]
107: astore 7 [InstructionContext]
109: aload_0 [InstructionContext]
110: invokespecial 39 [InstructionContext]
113: invokevirtual 43 [InstructionContext]
116: ldc 83 [InstructionContext]
118: ldc 66 [InstructionContext]
120: invokevirtual 69 [InstructionContext]
123: astore 8 [InstructionContext]
125: aload_0 [InstructionContext]
126: invokespecial 39 [InstructionContext]
129: invokevirtual 43 [InstructionContext]
132: ldc 85 [InstructionContext]
134: ldc 66 [InstructionContext]
136: invokevirtual 69 [InstructionContext]
139: astore 9 [InstructionContext]
141: aload_0 [InstructionContext]
142: invokespecial 39 [InstructionContext]
145: invokevirtual 43 [InstructionContext]
148: ldc 87 [InstructionContext]
150: ldc 66 [InstructionContext]
152: invokevirtual 69 [InstructionContext]
155: astore 10 [InstructionContext]
157: aload_0 [InstructionContext]
158: invokespecial 39 [InstructionContext]
161: invokevirtual 43 [InstructionContext]
164: ldc 89 [InstructionContext]
166: ldc 66 [InstructionContext]
168: invokevirtual 69 [InstructionContext]
171: astore 11 [InstructionContext]
173: aload_0 [InstructionContext]
174: invokespecial 39 [InstructionContext]
177: invokevirtual 43 [InstructionContext]
180: ldc 91 [InstructionContext]
182: ldc 66 [InstructionContext]
184: invokevirtual 69 [InstructionContext]
187: astore 12 [InstructionContext]
189: aload_0 [InstructionContext]
190: invokespecial 39 [InstructionContext]
193: invokevirtual 43 [InstructionContext]
196: ldc 93 [InstructionContext]
198: ldc 66 [InstructionContext]
200: invokevirtual 69 [InstructionContext]
203: astore 13 [InstructionContext]
205: aload_0 [InstructionContext]
206: invokespecial 39 [InstructionContext]
209: invokevirtual 43 [InstructionContext]
212: ldc 95 [InstructionContext]
214: ldc 97 [InstructionContext]
216: invokevirtual 69 [InstructionContext]
219: astore 14 [InstructionContext]
221: aload_0 [InstructionContext]
222: invokespecial 39 [InstructionContext]
225: invokevirtual 43 [InstructionContext]
228: ldc 99 [InstructionContext]
230: ldc 97 [InstructionContext]
232: invokevirtual 69 [InstructionContext]
235: astore 15 [InstructionContext]
237: aload_0 [InstructionContext]
238: invokespecial 39 [InstructionContext]
241: invokevirtual 43 [InstructionContext]
244: ldc 101 [InstructionContext]
246: ldc 66 [InstructionContext]
248: invokevirtual 69 [InstructionContext]
251: astore 16 [InstructionContext]
253: aload_0 [InstructionContext]
254: invokevirtual 105 [InstructionContext]
257: ldc 107 [InstructionContext]
259: invokeinterface 110 [InstructionContext]
264: astore 17 [InstructionContext]
266: aload_0 [InstructionContext]
267: invokevirtual 105 [InstructionContext]
270: ldc 112 [InstructionContext]
272: invokeinterface 110 [InstructionContext]
277: astore 18 [InstructionContext]
279: aload_0 [InstructionContext]
280: invokevirtual 105 [InstructionContext]
283: ldc 114 [InstructionContext]
285: invokeinterface 110 [InstructionContext]
290: astore 19 [InstructionContext]
292: aload_0 [InstructionContext]
293: invokevirtual 105 [InstructionContext]
296: ldc 116 [InstructionContext]
298: invokeinterface 110 [InstructionContext]
303: astore 20 [InstructionContext]
305: aload_0 [InstructionContext]
306: invokevirtual 105 [InstructionContext]
309: ldc 118 [InstructionContext]
311: invokeinterface 110 [InstructionContext]
316: astore 21 [InstructionContext]
318: aload_0 [InstructionContext]
319: invokevirtual 105 [InstructionContext]
322: ldc 120 [InstructionContext]
324: invokeinterface 110 [InstructionContext]
329: astore 22 [InstructionContext]
331: aload_0 [InstructionContext]
332: invokevirtual 105 [InstructionContext]
335: ldc 122 [InstructionContext]
337: invokeinterface 110 [InstructionContext]
342: astore 23 [InstructionContext]
344: aload_0 [InstructionContext]
345: invokevirtual 105 [InstructionContext]
348: ldc 124 [InstructionContext]
350: invokeinterface 110 [InstructionContext]
355: astore 24 [InstructionContext]
357: aload_0 [InstructionContext]
358: invokevirtual 105 [InstructionContext]
361: ldc 126 [InstructionContext]
363: invokeinterface 110 [InstructionContext]
368: astore 25 [InstructionContext]
370: aload_0 [InstructionContext]
371: invokevirtual 105 [InstructionContext]
374: ldc 128 [InstructionContext]
376: invokeinterface 110 [InstructionContext]
381: astore 26 [InstructionContext]
383: ldc 66 [InstructionContext]
385: astore 27 [InstructionContext]
387: aconst_null [InstructionContext]
388: astore 28 [InstructionContext]
390: aconst_null [InstructionContext]
391: astore 29 [InstructionContext]
393: aload_0 [InstructionContext]
394: getstatic 133 [InstructionContext]
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3418)
at
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:389)
....
The Class 'com.poweroa.components.IDirectory' is under the same source and the
similar code works fine in flowscript.
If I don't rem both the block or the last block,the error will be:
java.lang.RuntimeException:
org.apache.bcel.verifier.exc.StructuralCodeConstraintException: Instruction
'1910: aload[25](2) 47' is part of more than one subroutine (or of the top
level and a subroutine).
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3418)
at
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:389)
at
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
........
PowerOAFlow.java
Description: Binary data
