You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Jacek Laskowski <ja...@hp.com> on 2004/01/16 00:46:07 UTC
java.lang.NoSuchMethodException-->o.a.g.security.EJBModuleConfiguration$$...()
Hi,
Got it while deploying PetStore. This is why I mentioned earlier no-arg
constructors of *Configuration are required. Finally, I spot it.
[java] 00:34:09,554 DEBUG [GeronimoMBean]
geronimo.security:type=EJBModuleConfiguration,contextID=null State
changed from stopped to starting
[java] 00:34:09,554 DEBUG [GeronimoMBean]
geronimo.security:type=EJBModuleConfiguration,contextID=null State
changed from starting to running
[java] RuntimeException caught from handleNotification
[java] net.sf.cglib.core.CodeGenerationException:
java.lang.NoSuchMethodException-->org.apache.geronimo.security.EJBModuleConfiguration$$EnhancerByCGLIB$$dec8c711.<init>()
[java] at
net.sf.cglib.core.ReflectUtils.getConstructor(ReflectUtils.java:259)
[java] at
net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:235)
[java] at
net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:231)
[java] at
net.sf.cglib.proxy.Enhancer.firstInstance(Enhancer.java:277)
[java] at
net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:209)
[java] at
net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:246)
[java] at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:204)
[java] at
org.apache.geronimo.kernel.service.GeronimoMBeanEndpointConnection.<init>(GeronimoMBeanEndpointConnection.java:162)
[java] at
org.apache.geronimo.kernel.service.GeronimoMBeanEndpoint.addConnection(GeronimoMBeanEndpoint.java:722)
[java] at
org.apache.geronimo.kernel.service.GeronimoMBeanEndpoint.handleNotification(GeronimoMBeanEndpoint.java:675)
[java] at
mx4j.server.interceptor.NotificationListenerMBeanServerInterceptor$ListenerWrapper.handleNotification(NotificationListenerMBeanServerInterceptor.java:57)
[java] at
javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:343)
[java] at
javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:317)
[java] at
org.apache.geronimo.kernel.service.AbstractManagedObject2.sendNotification(AbstractManagedObject2.java:294)
[java] at
org.apache.geronimo.kernel.service.AbstractManagedObject2.attemptFullStart(AbstractManagedObject2.java:546)
[java] at
org.apache.geronimo.kernel.service.AbstractManagedObject2.start(AbstractManagedObject2.java:331)
[java] at
org.apache.geronimo.kernel.service.GeronimoMBean$$FastClassByCGLIB$$4f04d8fb.invoke(<generated>)
[java] at
net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87)
[java] at
org.apache.geronimo.kernel.service.GeronimoMBean.invoke(GeronimoMBean.java:580)
[java] at
mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:224)
[java] at
mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121)
[java] at
mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanServerInterceptor.java:86)
[java] at
mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121)
[java] at
mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121)
[java] at
mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(ContextClassLoaderMBeanServerInterceptor.java:205)
[java] at
mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1077)
[java] at
org.apache.geronimo.kernel.deployment.task.StartMBeanInstance.perform(StartMBeanInstance.java:102)
[java] at
org.apache.geronimo.kernel.deployment.DeploymentPlan.execute(DeploymentPlan.java:107)
[java] at
org.apache.geronimo.kernel.deployment.DeploymentController.executePlans(DeploymentController.java:270)
[java] at
org.apache.geronimo.kernel.deployment.DeploymentController.executeJob(DeploymentController.java:194)
[java] at
org.apache.geronimo.kernel.deployment.DeploymentController.access$200(DeploymentController.java:89)
[java] at
org.apache.geronimo.kernel.deployment.DeploymentController$DeploymentWaiter.run(DeploymentController.java:324)
[java] at java.lang.Thread.run(Thread.java:534)
[java] Caused by: java.lang.NoSuchMethodException:
org.apache.geronimo.security.EJBModuleConfiguration$$EnhancerByCGLIB$$dec8c711.<init>()
[java] at java.lang.Class.getConstructor0(Class.java:1929)
[java] at java.lang.Class.getConstructor(Class.java:1019)
[java] at
net.sf.cglib.core.ReflectUtils.getConstructor(ReflectUtils.java:257)
[java] ... 32 more
Jacek
Re: java.lang.NoSuchMethodException-->o.a.g.security.EJBModuleConfiguration$$...()
Posted by David Jencks <da...@coredevelopers.net>.
I'll fix this. Usually the best solution is to supply an interface as
the endpoint class. If not available, then a no-arg constructor for a
concrete class is indeed needed.
david jencks
On Thursday, January 15, 2004, at 03:46 PM, Jacek Laskowski wrote:
> Hi,
>
> Got it while deploying PetStore. This is why I mentioned earlier
> no-arg constructors of *Configuration are required. Finally, I spot > it.
>
> [java] 00:34:09,554 DEBUG [GeronimoMBean]
> geronimo.security:type=EJBModuleConfiguration,contextID=null State
> changed from stopped to starting
> [java] 00:34:09,554 DEBUG [GeronimoMBean]
> geronimo.security:type=EJBModuleConfiguration,contextID=null State
> changed from starting to running
> [java] RuntimeException caught from handleNotification
> [java] net.sf.cglib.core.CodeGenerationException:
> java.lang.NoSuchMethodException--
> >org.apache.geronimo.security.EJBModuleConfiguration$$EnhancerByCGLIB$$
> dec8c711.<init>()
> [java] at
> net.sf.cglib.core.ReflectUtils.getConstructor(ReflectUtils.java:259)
> [java] at
> net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:235)
> [java] at
> net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:231)
> [java] at
> net.sf.cglib.proxy.Enhancer.firstInstance(Enhancer.java:277)
> [java] at
> net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.
> java:209)
> [java] at
> net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:246)
> [java] at
> net.sf.cglib.proxy.Enhancer.create(Enhancer.java:204)
> [java] at
> org.apache.geronimo.kernel.service.GeronimoMBeanEndpointConnection.<ini
> t>(GeronimoMBeanEndpointConnection.java:162)
> [java] at
> org.apache.geronimo.kernel.service.GeronimoMBeanEndpoint.addConnection(
> GeronimoMBeanEndpoint.java:722)
> [java] at
> org.apache.geronimo.kernel.service.GeronimoMBeanEndpoint.handleNotifica
> tion(GeronimoMBeanEndpoint.java:675)
> [java] at
> mx4j.server.interceptor.NotificationListenerMBeanServerInterceptor$List
> enerWrapper.handleNotification(NotificationListenerMBeanServerIntercept
> or.java:57)
> [java] at
> javax.management.NotificationBroadcasterSupport.handleNotification(Noti
> ficationBroadcasterSupport.java:343)
> [java] at
> javax.management.NotificationBroadcasterSupport.sendNotification(Notifi
> cationBroadcasterSupport.java:317)
> [java] at
> org.apache.geronimo.kernel.service.AbstractManagedObject2.sendNotificat
> ion(AbstractManagedObject2.java:294)
> [java] at
> org.apache.geronimo.kernel.service.AbstractManagedObject2.attemptFullSt
> art(AbstractManagedObject2.java:546)
> [java] at
> org.apache.geronimo.kernel.service.AbstractManagedObject2.start(Abstrac
> tManagedObject2.java:331)
> [java] at
> org.apache.geronimo.kernel.service.GeronimoMBean$$FastClassByCGLIB$$4f0
> 4d8fb.invoke(<generated>)
> [java] at
> net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87)
> [java] at
> org.apache.geronimo.kernel.service.GeronimoMBean.invoke(GeronimoMBean.j
> ava:580)
> [java] at
> mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBe
> anServerInterceptor.java:224)
> [java] at
> mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBe
> anServerInterceptor.java:121)
> [java] at
> mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityM
> BeanServerInterceptor.java:86)
> [java] at
> mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBe
> anServerInterceptor.java:121)
> [java] at
> mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBe
> anServerInterceptor.java:121)
> [java] at
> mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke
> (ContextClassLoaderMBeanServerInterceptor.java:205)
> [java] at
> mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1077)
> [java] at
> org.apache.geronimo.kernel.deployment.task.StartMBeanInstance.perform(S
> tartMBeanInstance.java:102)
> [java] at
> org.apache.geronimo.kernel.deployment.DeploymentPlan.execute(Deployment
> Plan.java:107)
> [java] at
> org.apache.geronimo.kernel.deployment.DeploymentController.executePlans
> (DeploymentController.java:270)
> [java] at
> org.apache.geronimo.kernel.deployment.DeploymentController.executeJob(D
> eploymentController.java:194)
> [java] at
> org.apache.geronimo.kernel.deployment.DeploymentController.access$200(D
> eploymentController.java:89)
> [java] at
> org.apache.geronimo.kernel.deployment.DeploymentController$DeploymentWa
> iter.run(DeploymentController.java:324)
> [java] at java.lang.Thread.run(Thread.java:534)
> [java] Caused by: java.lang.NoSuchMethodException:
> org.apache.geronimo.security.EJBModuleConfiguration$$EnhancerByCGLIB$$d
> ec8c711.<init>()
> [java] at java.lang.Class.getConstructor0(Class.java:1929)
> [java] at java.lang.Class.getConstructor(Class.java:1019)
> [java] at
> net.sf.cglib.core.ReflectUtils.getConstructor(ReflectUtils.java:257)
> [java] ... 32 more
>
> Jacek
>