Is there any naming recommendation for the interface?  I've seen 
and used "FooMBean" as the interface for GBean "Foo", but what with trying 
to get away from JMX and all...

        Also, it would be accurate to say that the no-arg constructor must 
be present but will never be used on a "real live" GBean, right?

Thanks,
        Aaron

On Mon, 22 Nov 2004, David Jencks wrote:
> This one is fairly well explained by the message if you know what is  
> expected.
> 
> It's saying there is no default constructor.  You are trying to  
> construct a proxy to a gbean, using the gbean class itself as the class  
> the proxy exposes.  The class a  proxy exposes must either be an  
> interface or be a class with a default constructor.
> 
> thanks
> david jencks
> 
> On Nov 22, 2004, at 3:38 AM, Srinath Perera wrote:
> 
> > Hi All;
> >
> > Am getting this net.sf.cglib.core.CodeGenerationException:  quite
> > regulerly. I know that means something wrong with the GBean I am
> > trying to start! but spending long times to find where is the error.
> >
> > Is there any way to get more error messages? or  may be should write a
> > "Gbean verifier" to  check for the conditions and give better error
> > messages!
> > Thought?
> > Srinath
> >
> >
> > Caused by: net.sf.cglib.core.CodeGenerationException:
> > java.lang.NoSuchMethodException-- 
> > >org.apache.geronimo.kernel.config.Configuration$$EnhancerByCGLIB$$8021 
> > e1df.<init>()
> >     at  
> > net.sf.cglib.core.ReflectUtils.getConstructor(ReflectUtils.java:281)
> >     at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:255)
> >     at  
> > net.sf.cglib.proxy.Enhancer.createUsingReflection(Enhancer.java:386)
> >     at net.sf.cglib.proxy.Enhancer.nextInstance(Enhancer.java:366)
> >     at  
> > net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator. 
> > java:200)
> >     at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:330)
> >     at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:265)
> >     at  
> > org.apache.geronimo.gbean.jmx.CGLibProxyFactory.create(CGLibProxyFactor 
> > y.java:53)
> >     at  
> > org.apache.geronimo.gbean.jmx.CGLibProxyFactory.create(CGLibProxyFactor 
> > y.java:47)
> >     at  
> > org.apache.geronimo.gbean.jmx.SingleProxy.<init>(SingleProxy.java:78)
> >     at  
> > org.apache.geronimo.gbean.jmx.GBeanMBeanReference.online(GBeanMBeanRefe 
> > rence.java:165)
> >     at  
> > org.apache.geronimo.gbean.jmx.GBeanMBean.preRegister(GBeanMBean.java: 
> > 534)
> >     at  
> > mx4j.server.interceptor.InvokerMBeanServerInterceptor.registration(Invo 
> > kerMBeanServerInterceptor.java:158)
> >     at  
> > mx4j.server.interceptor.DefaultMBeanServerInterceptor.registration(Defa 
> > ultMBeanServerInterceptor.java:111)
> >     at  
> > mx4j.server.interceptor.SecurityMBeanServerInterceptor.registration(Sec 
> > urityMBeanServerInterceptor.java:135)
> >     at  
> > mx4j.server.interceptor.DefaultMBeanServerInterceptor.registration(Defa 
> > ultMBeanServerInterceptor.java:111)
> >     at  
> > mx4j.server.interceptor.DefaultMBeanServerInterceptor.registration(Defa 
> > ultMBeanServerInterceptor.java:111)
> >     at  
> > mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.regist 
> > ration(ContextClassLoaderMBeanServerInterceptor.java:161)
> >     at mx4j.server.MX4JMBeanServer.registerImpl(MX4JMBeanServer.java:801)
> >     at  
> > mx4j.server.MX4JMBeanServer.registerMBeanImpl(MX4JMBeanServer.java: 
> > 745)
> >     at mx4j.server.MX4JMBeanServer.registerMBean(MX4JMBeanServer.java:729)
> >     at org.apache.geronimo.kernel.Kernel.loadGBean(Kernel.java:355)
> >     ... 16 more
> > Caused by: java.lang.NoSuchMethodException:
> > org.apache.geronimo.kernel.config.Configuration$$EnhancerByCGLIB$$8021e 
> > 1df.<init>()
> >     at java.lang.Class.getConstructor0(Class.java:1937)
> >     at java.lang.Class.getConstructor(Class.java:1027)
> >     at  
> > net.sf.cglib.core.ReflectUtils.getConstructor(ReflectUtils.java:279)
> >     ... 37 more
> >
> 
> 

Reply via email to