Static Analysis issue with ASM on Olstore (JEE) App for JOnAS
john bergin <[email protected]>
| Newsgroups | gmane.comp.java.objectweb.asm |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm doing some instrumentation of Olstore (a JEE app for JOnAS) but
my instrumentation needs to carry out a Static Analysis of the classes
before instrumentation. The problem I'm running into is:
org.objectweb.asm.tree.analysis.AnalyzerException: Error at
instruction 7 in
org/objectweb/jonas_gen/olstore/session/helper/JOnASUserHelper_1295775347LocalHome
- createLocalObject: Argument 1: expected
Lorg/objectweb/jonas_ejb/container/JSessionFactory;, but found
Lorg/objectweb/jonas_ejb/container/JStatelessFactory;
at org.objectweb.asm.tree.analysis.Analyzer.analyze(Analyzer.java:305)
.......
Caused by: org.objectweb.asm.tree.analysis.AnalyzerException: Argument
1: expected Lorg/objectweb/jonas_ejb/container/JSessionFactory;, but
found Lorg/objectweb/jonas_ejb/container/JStatelessFactory;
at org.objectweb.asm.tree.analysis.BasicVerifier.naryOperation(BasicVerifier.java:405)
at org.objectweb.asm.tree.analysis.Frame.execute(Frame.java:607)
at org.objectweb.asm.tree.analysis.Analyzer.analyze(Analyzer.java:203)
dump of org/objectweb/jonas_gen/olstore/session/helper/JOnASUserHelper_1295775347LocalHome
- createLocalObject
public org.objectweb.jonas_ejb.container.JSessionLocal createLocalObject();
Code:
1: new #34; //class
org/objectweb/jonas_gen/olstore/session/helper/JOnASUserHelper_1295775347Local
2: dup
3: aload_0
4: getfield #11; //Field bf:Lorg/objectweb/jonas_ejb/container/JFactory;
5: checkcast #35; //class org/objectweb/jonas_ejb/container/JStatelessFactory
6: invokespecial #36; //Method
org/objectweb/jonas_gen/olstore/session/helper/JOnASUserHelper_1295775347Local."<init>":(Lorg/objectweb/jonas_ejb/container/JSessionFactory;)V
7: areturn
}
The issue is to do with the type "CHECKCAST" and "INVOKESPECIAL" deal
with, I'm just looking for some advice on what I need to edit in ASM
Analyse tree to work around this issue?
Any help would be greatly appreciated.
Many thanks,
John.
message-footer.txt
(text/plain, 238 B)
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws