geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geronimo User" <>
Subject Can't addReference() to MailGBean because no no-arg constructor?
Date Fri, 09 Feb 2007 02:09:30 GMT

I'm trying to load a GBean in which I have done this in the static {} section:

		infoFactory.addReference("MyMailGBean", MailGBean.class,

(I have a setter method for the property for the reference.)

When I load the GBean into Geronimo it says:

java.lang.IllegalArgumentException: Cannot find matching method/constructor
	at org.apache.geronimo.mail.MailGBean$$EnhancerByCGLIB$$31749e1f$$FastClassByCGLIB$$340be7b9.newInstance(<generated>)
	at net.sf.cglib.reflect.FastClass.newInstance(
	at org.apache.geronimo.kernel.basic.BasicProxyManager$ManagedProxyFactory.createProxy(
	at org.apache.geronimo.kernel.basic.BasicProxyManager.createProxy(
etc. etc.

I found a JIRA issue
which says
"Specifying a reference to DirectoryGBean.class fails because DirectoryGBean
doesn't have a no-arg constructor."

Neither does MailGBean, if I am correct.

Is the absence of the no-arg constructor the cause of my problem and
how can I work around this.


View raw message