java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V

GitHub | robokaso | 2 months ago
  1. 0

    GitHub comment 123#250898902

    GitHub | 2 months ago | robokaso
    java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V
  2. 0

    Problem with modification of util-spring.xml file. If I deploy a ext plugin with sharding environment configured in Postgresql 8 database, portal not run. This is stack trace: 12:34:09,970 INFO [DialectDetector:71] Determining dialect for PostgreSQL 8 12:34:10,086 INFO [DialectDetector:51] Using dialect org.hibernate.dialect.PostgreSQLDialect 12:34:12,777 INFO [DialectDetector:71] Determining dialect for PostgreSQL 8 12:34:12,779 INFO [DialectDetector:51] Using dialect org.hibernate.dialect.PostgreSQLDialect 12:34:13,788 INFO [DialectDetector:71] Determining dialect for PostgreSQL 8 12:34:13,789 INFO [DialectDetector:51] Using dialect org.hibernate.dialect.PostgreSQLDialect 12:34:16,842 ERROR [ContextLoader:220] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.events.StartupHelperUtil' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.events.StartupHelper#1de4eb5b' of type [com.liferay.portal.events.StartupHelper] while setting bean property 'startupHelper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.events.StartupHelper#1de4eb5b' defined in class path resource [META-INF/util-spring.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(I)V at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:872) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:45) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:785) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:581) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.events.StartupHelper#1de4eb5b' defined in class path resource [META-INF/util-spring.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(I)V at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270) ... 40 more Caused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(I)V at net.sf.cglib.core.DebuggingClassWriter.<init>(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:144) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:116) 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.<clinit>(Enhancer.java:69) at org.springframework.aop.framework.Cglib2AopProxy.createEnhancer(Cglib2AopProxy.java:228) at org.springframework.aop.framework.Cglib2AopProxy.getProxy(Cglib2AopProxy.java:170) at org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:112) at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.createProxy(AbstractAutoProxyCreator.java:476) at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:362) at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:322) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) ... 42 more 12:34:16,873 INFO [HotDeployUtil:64] Initializing hot deploy manager 1770734042 12:34:16,874 INFO [HotDeployUtil:64] Initializing hot deploy manager 898663768 01-jul-2010 12:34:16 org.apache.catalina.core.StandardContext start GRAVE: Error listenerStart 01-jul-2010 12:34:16 org.apache.catalina.core.StandardContext start GRAVE: Falló en arranque del Contexto [] debido a errores previos 01-jul-2010 12:34:16 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap GRAVE: A web application created a ThreadLocal with key of type [null] (value [com.liferay.portal.dao.shard.ShardDataSourceTargetSource$1@1e3bd51]) and a value of type [org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy] (value [org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy@ea211cf]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed. 01-jul-2010 12:34:16 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap GRAVE: A web application created a ThreadLocal with key of type [null] (value [com.liferay.portal.dao.shard.ShardSessionFactoryTargetSource$1@323f348a]) and a value of type [org.hibernate.impl.SessionFactoryImpl] (value [org.hibernate.impl.SessionFactoryImpl@539269cb]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed. log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository. 01-jul-2010 12:34:19 org.apache.catalina.startup.HostConfig deployDirectory INFO: Despliegue del directorio tunnel-web de la aplicación web 01-jul-2010 12:34:19 org.apache.coyote.http11.Http11Protocol start INFO: Arrancando Coyote HTTP/1.1 en puerto http-8080 01-jul-2010 12:34:19 org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 01-jul-2010 12:34:19 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/25 config=null 01-jul-2010 12:34:19 org.apache.catalina.startup.Catalina start INFO: Server startup in 21902 ms

    Liferay Issues | 6 years ago | Borxa Varela
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.events.StartupHelperUtil' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.events.StartupHelper#1de4eb5b' of type [com.liferay.portal.events.StartupHelper] while setting bean property 'startupHelper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.events.StartupHelper#1de4eb5b' defined in class path resource [META-INF/util-spring.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(I)V
  3. 0

    Spring 3.1 Java based configuration — IllegalStateException (Spring forum at Coderanch)

    coderanch.com | 8 months ago
    java.lang.IllegalStateException: Cannot load configuration class: com.spring3.HelloWorldConfig
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Erreur lors de la création du bean DataSource

    developpez.net | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [application-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot create inner bean '(inner bean)' of type [org.springframework.transaction.interceptor.TransactionInterceptor] while setting bean property 'transactionInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [application-context.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [application-context.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V
  6. 0

    Struts unit test behavior

    Stack Overflow | 12 months ago | fferes
    java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V

    3 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.objectweb.asm.ClassWriter.<init>(Z)V

      at net.sf.cglib.core.DebuggingClassWriter.<init>()
    2. Code Generation Library
      KeyFactory.create
      1. net.sf.cglib.core.DebuggingClassWriter.<init>(DebuggingClassWriter.java:47)
      2. net.sf.cglib.core.DefaultGeneratorStrategy.getClassWriter(DefaultGeneratorStrategy.java:30)
      3. net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:24)
      4. net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:215)
      5. net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)
      6. net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)
      7. net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)
      7 frames
    3. IDEA
      Enhancer.<clinit>
      1. net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java:69)
      1 frame
    4. Spring AOP
      AbstractAutoProxyCreator.postProcessAfterInitialization
      1. org.springframework.aop.framework.Cglib2AopProxy.createEnhancer(Cglib2AopProxy.java:228)
      2. org.springframework.aop.framework.Cglib2AopProxy.getProxy(Cglib2AopProxy.java:170)
      3. org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:112)
      4. org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.createProxy(AbstractAutoProxyCreator.java:476)
      5. org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:362)
      6. org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:322)
      6 frames
    5. Spring Beans
      FactoryBeanRegistrySupport.doGetObjectFromFactoryBean
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:407)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.postProcessObjectFromFactoryBean(AbstractAutowireCapableBeanFactory.java:1553)
      3. org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:162)
      3 frames