No Such Method Error Org.objectweb.asm.classwriter
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up .Getting a java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.(Z)V in my spring hibernate application up vote 3 down vote favorite I'm using spring and hibernate in my application. For building REST APIs, Im using jersey and it is a gradle based project. These are dependencies I've specified in build.gradle: compile 'org.springframework:spring-core:3.2.4.RELEASE', 'org.springframework:spring-context:3.2.4.RELEASE', 'org.springframework:spring-web:3.2.4.RELEASE', 'com.sun.jersey:jersey-server:1.8', 'com.sun.jersey:jersey-core:1.8', 'mysql:mysql-connector-java:5.1.26', 'c3p0:c3p0:0.9.1.2', 'javax.transaction:jta:1.1', 'org.hibernate:hibernate:3.2.5.GA', 'org.hibernate:hibernate-annotations:3.3.1.GA', 'asm:asm:3.1', 'cglib:cglib-nodep:2.2', 'org.springframework:spring-hibernate3:2.0.8', 'org.hibernate:ejb3-persistence:1.0.2.GA' Even though hibernate version that I've given is 3.2.5, it is downloading 3.2.6 when I build it. When I deploy war to tomcat7, I get java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.(Z)V. Here is the complete stack trace: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.(Z)V at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1482) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295) at org.s
Community Contact Login/Register Download Now ProductsAnswersExchangeDocsWikiPlanetTracker You are hereHome » Wiki » Java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter with Glassfish and JasperServer Java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter with http://stackoverflow.com/questions/19315696/getting-a-java-lang-nosuchmethoderror-org-objectweb-asm-classwriter-initzv Glassfish and JasperServer Table of Contents Summary: Symptoms: Causes: Resolutions: Summary: This article provides troubleshooting tips related to receiving a java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter error/exception. http://community.jaspersoft.com/wiki/javalangnosuchmethoderror-orgobjectwebasmclasswriter-glassfish-and-jasperserver You can encounter this exception when using Glassfish 2.1.1 and JasperReports Server v3.5.1 Symptoms: Glassfish server is started but couldn't deploy JasperServer. org.springframework.beans.factory.BeanCreationException: Error creating bean with name \'sessionFactory\' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.(Z)V Caused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.(Z)V at net.sf.cglib.core.DebuggingClassWriter.(DebuggingClassWriter.java:47) at net.sf.cglib.core.DefaultGeneratorStrategy.getClassWriter(DefaultGeneratorStrategy.java:30) at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:24) at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216) at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104) at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69) at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:107) at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43) at org.hibernate.t
App EngineApache AntApache MavenjQueryJava MongoDBQuartz SchedulerLog4jContact Us java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.(Z)VBy mkyong | January 21, 2011 | Updated : August 29, 2012 | Viewed : https://www.mkyong.com/hibernate/java-lang-nosuchmethoderror-org-objectweb-asm-classwriter-zv/ 18,607 times +50 pv/wProblemAnt project, doing Spring + Hibernate (annotation) development, but hits following error message : Caused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.(Z)V Here's the https://forum.hibernate.org/viewtopic.php?f=11&t=1012408 list of the main jar files, included asm-3.3.1.jar, but still hits the above error message?hibernate-3.2.7.ga.jarhibernate-annotations-3.4.0.GA.jarhibernate-commons-annotations-3.0.0.GA.jarspring-2.5.6.jarasm-3.3.1.jar SolutionA classic problem in Ant project, you have to no such manage dependency library manually, use Maven, next time :). The asm.3.3.1.jar is rather new, some methods are removed and causing the NoSuchMethodError error message.To fix it, try downgrade asm jar to older version, for example, asm3.1.jar, this is my favor version. Referencehttp://forge.ow2.org/projects/asm/ Tags : hibernateShare this article no such method onTwitterFacebookGoogle+Related Posts About the Author mkyong Founder of Mkyong.com and HostingCompass.com, love Java and open source stuff. Follow him on Twitter, or befriend him on Facebook or Google Plus. If you like my tutorials, consider make a donation to these charities.Popular PostsLoading...CommentsPingback: Free Classified Ads, for your future self()Pingback: download film terbaru gratis() siva Hi Mykong, I upgraded asm1.5. jar to asm3.5. Now I'm getting the following exception.java.lang.NoClassDefFoundError: net/sf/cglib/proxy/CallbackFilter. Hayk asm-3.1.jar didn’t help me, but as downloaded asm-1.5.3.jar and error was solved. thanks for hint. but don't forget to remove old asm jars like asm-3.1.jar Hayk asm-3.1.jar didn't help me, but as downloaded asm-3.5.3.jar and error was solved. thanks for hint. Shimray Phew!!!!! this solved my problem too. Thanks to your comment and thanks to Mkyong. Very helpful site. karam i download asm-1.5.3.jar and the error was solved.thanks anu
Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.