geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manu George" <manu.t.geo...@gmail.com>
Subject Re: java.lang.NoSuchMethodError - Reg
Date Thu, 11 Jan 2007 08:32:28 GMT
Hi,
       It can be due to a wrong version of that class loaded in the
classloader . i.e another version of the class without that method may be
present. You should use the hidden classes attribute of the plan to hide the
conflicting classes/packages. i.e. the ones used by geronimo and your app.
This will make the classloader not see the classes loaded by geronimo.

Thanks
Manu
On 1/11/07, Kamalanathan Raman <Kamalanathan_Raman@infosys.com> wrote:
>
>  Hi ,
>
>
>
>       When I run my deployed application. I get this following error , got
> struck up in this error for long time , can any one help me out in solving
> this issue.I have attached the stack trace of the error. Thanks in advance
> for ur reply
>
>
>
>
>
> 13:44:45,813 INFO  [Configuration] processing foreign key constraints
>
> 13:44:45,891 ERROR [[/wlbx]] StandardWrapper.Throwable
>
> java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.visitMethod
> (ILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;)Lorg/objectweb/asm/CodeVisitor;
>
>       at net.sf.cglib.ASMBackend.begin_constructor(*ASMBackend.java:297*)
>
>       at net.sf.cglib.CodeGenerator.begin_constructor(*CodeGenerator.java
> :281*)
>
>       at net.sf.cglib.CodeGenerator.begin_constructor(*CodeGenerator.java
> :274*)
>
>       at net.sf.cglib.CodeGenerator.generateNullConstructor(*
> CodeGenerator.java:970*)
>
>       at net.sf.cglib.KeyFactoryGenerator.generate(*
> KeyFactoryGenerator.java:105*)
>
>       at net.sf.cglib.CodeGenerator.define(*CodeGenerator.java:163*)
>
>       at net.sf.cglib.KeyFactory.create(*KeyFactory.java:114*)
>
>       at net.sf.hibernate.impl.SessionFactoryImpl.<clinit>(*
> SessionFactoryImpl.java:297*)
>
>       at net.sf.hibernate.cfg.Configuration.buildSessionFactory(*
> Configuration.java:627*)
>
>       at com.symcor.wlbx.util.ServiceLocator.getDataSource(*
> ServiceLocator.java:196*)
>
>       at
> com.symcor.wlbx.web.servlet.ReportServlet.initializeResourceLookups(*
> ReportServlet.java:912*)
>
>       at com.symcor.wlbx.web.servlet.ReportServlet.init(*
> ReportServlet.java:668*)
>
>       at org.apache.catalina.core.StandardWrapper.loadServlet(*
> StandardWrapper.java:1105*)
>
>       at org.apache.catalina.core.StandardWrapper.load(*
> StandardWrapper.java:932*)
>
>       at org.apache.catalina.core.StandardContext.loadOnStartup(*
> StandardContext.java:3915*)
>
>       at org.apache.catalina.core.StandardContext.start(*
> StandardContext.java:4176*)
>
>       at org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(*
> GeronimoStandardContext.java:67*)
>
>       at
> org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke
> (*GeronimoStandardContext.java:337*)
>
>       at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(
> *GeronimoBeforeAfterValve.java:31*)
>
>       at org.apache.geronimo.tomcat.GeronimoStandardContext.start(*
> GeronimoStandardContext.java:192*)
>
>       at org.apache.catalina.core.ContainerBase.addChildInternal(*
> ContainerBase.java:759*)
>
>       at org.apache.catalina.core.ContainerBase.addChild(*
> ContainerBase.java:739*)
>
>       at org.apache.catalina.core.StandardHost.addChild(*StandardHost.java
> :524*)
>
>       at org.apache.geronimo.tomcat.TomcatContainer.addContext(*
> TomcatContainer.java:313*)
>
>       at
> org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.invoke
> (<generated>)
>
>       at net.sf.cglib.reflect.FastMethod.invoke(*FastMethod.java:53*)
>
>       at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(*
> FastMethodInvoker.java:38*)
>
>       at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(*
> GBeanOperation.java:122*)
>
> 13:44:45,891 ERROR [[/wlbx]] Servlet /wlbx threw load() exception
>
> java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.visitMethod
> (ILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;)Lorg/objectweb/asm/CodeVisitor;
>
>       at net.sf.cglib.ASMBackend.begin_constructor(*ASMBackend.java:297*)
>
>       at net.sf.cglib.CodeGenerator.begin_constructor(*CodeGenerator.java
> :281*)
>
>       at net.sf.cglib.CodeGenerator.begin_constructor(*CodeGenerator.java
> :274*)
>
>       at net.sf.cglib.CodeGenerator.generateNullConstructor(*
> CodeGenerator.java:970*)
>
>       at net.sf.cglib.KeyFactoryGenerator.generate(*
> KeyFactoryGenerator.java:105*)
>
>       at net.sf.cglib.CodeGenerator.define(*CodeGenerator.java:163*)
>
>       at net.sf.cglib.KeyFactory.create(*KeyFactory.java:114*)
>
>       at net.sf.hibernate.impl.SessionFactoryImpl.<clinit>(*
> SessionFactoryImpl.java:297*)
>
>       at net.sf.hibernate.cfg.Configuration.buildSessionFactory(*
> Configuration.java:627*)
>
>       at com.symcor.wlbx.util.ServiceLocator.getDataSource(*
> ServiceLocator.java:196*)
>
>       at
> com.symcor.wlbx.web.servlet.ReportServlet.initializeResourceLookups(*
> ReportServlet.java:912*)
>
>       at com.symcor.wlbx.web.servlet.ReportServlet.init(*
> ReportServlet.java:668*)
>
>       at org.apache.catalina.core.StandardWrapper.loadServlet(*
> StandardWrapper.java:1105*)
>
>       at org.apache.catalina.core.StandardWrapper.load(*
> StandardWrapper.java:932*)
>
>       at org.apache.catalina.core.StandardContext.loadOnStartup(*
> StandardContext.java:3915*)
>
>       at org.apache.catalina.core.StandardContext.start(*
> StandardContext.java:4176*)
>
>       at org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(*
> GeronimoStandardContext.java:67*)
>
>       at
> org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke
> (*GeronimoStandardContext.java:337*)
>
>       at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(
> *GeronimoBeforeAfterValve.java:31*)
>
>       at org.apache.geronimo.tomcat.GeronimoStandardContext.start(*
> GeronimoStandardContext.java:192*)
>
>       at org.apache.catalina.core.ContainerBase.addChildInternal(*
> ContainerBase.java:759*)
>
>       at org.apache.catalina.core.ContainerBase.addChild(*
> ContainerBase.java:739*)
>
>       at org.apache.catalina.core.StandardHost.addChild(*StandardHost.java
> :524*)
>
>       at org.apache.geronimo.tomcat.TomcatContainer.addContext(*
> TomcatContainer.java:313*)
>
>       at
> org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.invoke
> (<generated>)
>
>       at net.sf.cglib.reflect.FastMethod.invoke(*FastMethod.java:53*)
>
>       at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(*
> FastMethodInvoker.java:38*)
>
>       at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(*
> GBeanOperation.java:122*)
>
> 13:44:45,969 INFO  [PropertyMessageResources] Initializing, config='
> org.apache.struts.util.LocalStrings', returnNull=true
>
> 13:44:45,969 INFO  [PropertyMessageResources] Initializing, config='
> org.apache.struts.action.ActionResources', returnNull=true
>
> 13:44:46,751 INFO  [PropertyMessageResources] Initializing,
> config='ApplicationResources', returnNull=true
>
> 13:44:46,813 INFO  [ValidatorPlugIn] Loading validation rules file from
> '/WEB-INF/validator-rules.xml'
>
> 13:44:46,938 INFO  [ValidatorPlugIn] Loading validation rules file from
> '/WEB-INF/validation.xml'
>
> 13:44:47,125 INFO  [ImportFTPClient] Default save path is @FTP_TO_PATH@\
>
> *java.lang.NumberFormatException*: For input string:
> "@IMPORT_TASK_PERIOD@"
>
>       at java.lang.NumberFormatException.forInputString(Unknown Source)
>
>       at java.lang.Long.parseLong(Unknown Source)
>
>       at java.lang.Long.<init>(Unknown Source)
>
>       at com.symcor.wlbx.web.servlet.ImportServlet.init(*
> ImportServlet.java:137*)
>
>       at javax.servlet.GenericServlet.init(*GenericServlet.java:168*)
>
>       at org.apache.catalina.core.StandardWrapper.loadServlet(*
> StandardWrapper.java:1105*)
>
>       at org.apache.catalina.core.StandardWrapper.load(*
> StandardWrapper.java:932*)
>
>       at org.apache.catalina.core.StandardContext.loadOnStartup(*
> StandardContext.java:3915*)
>
>       at org.apache.catalina.core.StandardContext.start(*
> StandardContext.java:4176*)
>
>       at org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(*
> GeronimoStandardContext.java:67*)
>
>       at
> org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke
> (*GeronimoStandardContext.java:337*)
>
>       at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(
> *GeronimoBeforeAfterValve.java:31*)
>
>       at org.apache.geronimo.tomcat.GeronimoStandardContext.start(*
> GeronimoStandardContext.java:192*)
>
>       at org.apache.catalina.core.ContainerBase.addChildInternal(*
> ContainerBase.java:759*)
>
>       at org.apache.catalina.core.ContainerBase.addChild(*
> ContainerBase.java:739*)
>
>       at org.apache.catalina.core.StandardHost.addChild(*StandardHost.java
> :524*)
>
>       at org.apache.geronimo.tomcat.TomcatContainer.addContext(*
> TomcatContainer.java:313*)
>
>       at
> org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.invoke
> (<generated>)
>
>       at net.sf.cglib.reflect.FastMethod.invoke(*FastMethod.java:53*)
>
>       at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(*
> FastMethodInvoker.java:38*)
>
> java.lang.NoClassDefFoundError
>
>       at net.sf.hibernate.cfg.Configuration.buildSessionFactory(*
> Configuration.java:627*)
>
>       at com.symcor.wlbx.util.ServiceLocator.getDataSource(*
> ServiceLocator.java:196*)
>
>       at com.symcor.wlbx.dao.core.DataSourceUtils.getDataSourceFromJNDI(*
> DataSourceUtils.java:62*)
>
>       at com.symcor.wlbx.dao.core.DAOFactory.getDAOFactory(*
> DAOFactory.java:105*)
>
>       at com.symcor.wlbx.dao.imp.ImportProfileTask.loadCachedData(*
> ImportProfileTask.java:156*)
>
>       at com.symcor.wlbx.dao.imp.ImportProfileTask.<init>(*
> ImportProfileTask.java:233*)
>
>       at com.symcor.wlbx.web.servlet.ImportServlet.init(*
> ImportServlet.java:144*)
>
>       at javax.servlet.GenericServlet.init(*GenericServlet.java:168*)
>
>       at org.apache.catalina.core.StandardWrapper.loadServlet(*
> StandardWrapper.java:1105*)
>
>       at org.apache.catalina.core.StandardWrapper.load(*
> StandardWrapper.java:932*)
>
>       at org.apache.catalina.core.StandardContext.loadOnStartup(*
> StandardContext.java:3915*)
>
>       at org.apache.catalina.core.StandardContext.start(*
> StandardContext.java:4176*)
>
>       at org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(*
> GeronimoStandardContext.java:67*)
>
>       at
> org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke
> (*GeronimoStandardContext.java:337*)
>
>       at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(
> *GeronimoBeforeAfterValve.java:31*)
>
>       at org.apache.geronimo.tomcat.GeronimoStandardContext.start(*
> GeronimoStandardContext.java:192*)
>
>       at org.apache.catalina.core.ContainerBase.addChildInternal(*
> ContainerBase.java:759*)
>
>       at org.apache.catalina.core.ContainerBase.addChild(*
> ContainerBase.java:739*)
>
>       at org.apache.catalina.core.StandardHost.addChild(*StandardHost.java
> :524*)
>
>       at org.apache.geronimo.tomcat.TomcatContainer.addContext(*
> TomcatContainer.java:313*)
>
>       at
> org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.invoke
> (<generated>)
>
>       at net.sf.cglib.reflect.FastMethod.invoke(*FastMethod.java:53*)
>
>       at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(*
> FastMethodInvoker.java:38*)
>
>       at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(*
> GBeanOperation.java:122*)
>
>
>
> Thanks and Regards,
>
> Kamal
>  **************** CAUTION - Disclaimer *****************
> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
> solely for the use of the addressee(s). If you are not the intended
> recipient, please notify the sender by e-mail and delete the original
> message. Further, you are not to copy, disclose, or distribute this e-mail
> or its contents to any other person and any such actions are unlawful. This
> e-mail may contain viruses. Infosys has taken every reasonable precaution to
> minimize this risk, but is not liable for any damage you may sustain as a
> result of any virus in this e-mail. You should carry out your own virus
> checks before opening the e-mail or attachment. Infosys reserves the right
> to monitor and review the content of all messages sent to or from this
> e-mail address. Messages sent to or from this e-mail address may be stored
> on the Infosys e-mail system.
> ***INFOSYS******** End of Disclaimer ********INFOSYS***
>

Mime
View raw message