-
15. Re: Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)
ctomc Oct 3, 2013 3:39 AM (in response to soundar_vk)There is solution right here on this thread.
problem is bundling asm.jar or its classes in your deployment.
so again, can you post output of
jar tf <name-of-deployment>
especially all jars in lib(s) are interested
-
16. Re: Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)
cristib Oct 14, 2013 3:29 AM (in response to ctomc)I can confirm to the others that by removing asm.jar from my deployment (war within ear) the problem was solved.
Thank you
-
17. Re: Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)
nik... Dec 17, 2013 5:14 AM (in response to klind)HI,
I have the same issue , also not having any third party jar.
-
18. Re: Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)
hodrigohamalho Jul 9, 2014 1:22 PM (in response to klind)Add this to your jboss-deployment-structure.xml:
<module name="asm.asm" />
-
19. Re: Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)
stefa975 Oct 10, 2014 4:29 AM (in response to klind)I had the same problem.
Adding jboss-deployment-structure.xml only work for WAR files.
If I depolyed the WAR inside an EAR I got the error back.
So I added
<subsystem xmlns="urn:jboss:domain:ee:1.2">
+ <global-modules>
+ <module name="asm.asm" slot="main"/>
+ </global-modules>
to the current jboss configuration, ie standalone-full.xml
The it work fine for me.
-
20. Re: Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)
aasthana4 Sep 5, 2016 9:32 AM (in response to klind)Hi,
I have the same issue and do not have asm jar in my war.
checked with jar tf <build name> command as well.
Jars in my package are as below:
WEB-INF/lib/commons-codec-1.0.jar
WEB-INF/lib/commons-discovery-0.5.jar
WEB-INF/lib/commons-logging-1.2.jar
WEB-INF/lib/disruptor-3.3.4.jar
WEB-INF/lib/dom4j-1.6.1.jar
WEB-INF/lib/jackson-all-1.9.0.jar
WEB-INF/lib/jandex-2.0.1.Final.jar
WEB-INF/lib/jasypt-1.9.2.jar
WEB-INF/lib/jaxrpc-api-1.1.jar
WEB-INF/lib/jersey-bundle-1.19.jar
WEB-INF/lib/log4j-api-2.4.1.jar
WEB-INF/lib/log4j-core-2.4.1.jar
WEB-INF/lib/logging-service-1.0.jar
Could you point what could be tried to rectify this error.
Thanks,
Anshul Asthana
-
21. Re: Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)
ahpt77 Oct 13, 2016 4:56 AM (in response to klind)Removing all references to asm jar on my WAR package worked for me.
-
22. Re: Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)
antonio.diaz Nov 23, 2017 4:49 AM (in response to klind)I had the same error, and I reviewed the transitive dependencies and excluded "asm:asm" from the artifact the referenced it:
<dependency>
<groupId>org.jxls</groupId>
<artifactId>jxls-reader</artifactId>
<version>[2.0.0,)</version>
<exclusions>
<exclusion>
<artifactId>asm</artifactId>
<groupId>asm</groupId>
</exclusion>
</exclusions>
</dependency>In this way I use the one provided by JBoss without problem
<dependency>
<groupId>org.jxls</groupId>
<artifactId>jxls-reader</artifactId>
<version>[2.0.0,)</version>
<exclusions>
<exclusion>
<artifactId>asm</artifactId>
<groupId>asm</groupId>
</exclusion>
</exclusions>