Re: Stack size too large
Yao Qi <[email protected]>
| Newsgroups | gmane.comp.java.objectweb.asm |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Nov 8, 2010 at 9:18 PM, Rajaraman Santhanam <[email protected]> wrote: > Hi, > Getting Stack size too large error on inserting some code. > > java.lang.VerifyError: (class: org/apache/catalina/servlets/DefaultServlet, > method: doGet signature: > (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) > Stack size too large > > My class writer is invoked as below: > > ClassWriter writer = new ClassWriter(reader, ClassWriter.COMPUTE_MAXS | > ClassWriter.COMPUTE_FRAMES); > > I'm getting the error: > > java.lang.NullPointerException > at org.objectweb.asm.MethodWriter.visitMaxs(Unknown Source) > at > com.manageengine.dpm.agent.instrumentation.BasicMethodAdapter.visitMaxs(BasicMethodAdapter.java:88) > at org.objectweb.asm.ClassReader.accept(Unknown Source) > at org.objectweb.asm.ClassReader.accept(Unknown Source) > at > com.manageengine.dpm.agent.instrumentation.ClassTransformer.transform(ClassTransformer.java:93) > Looks like you get two errors, NPE and too-large-stack. Which one happens earlier? I suggest that we can solve two errors one by one. > BasicMethodAdapter is the class that extends AdviceAdapter. My > implementation is something similar to the FinallyAdapter as mentioned > in "Using ASM framework to implement common bytecode transformation > patterns" > Any pointer where the issue could be?? It is hard for us to figure out what is your problem unless you can show us what exactly you did. -- Yao Qi <qiyaoltc AT gmail DOT com> http://sites.google.com/site/duewayqi/
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