[ 
https://issues.apache.org/jira/browse/GERONIMO-2698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Jencks closed GERONIMO-2698.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1

We don't use proxies any more for gbean references, so you wouldn't run into a 
problem like this in a current geronimo release.

> DirectoryGBean not referenceable as a GBean
> -------------------------------------------
>
>                 Key: GERONIMO-2698
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2698
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: naming
>    Affects Versions: 1.1.1
>            Reporter: Chris Curtis
>            Priority: Minor
>             Fix For: 2.1
>
>
> Specifying a reference to DirectoryGBean.class fails because DirectoryGBean 
> doesn't have a no-arg constructor. Example:
> {{...}}
> {{infoFactory.addReference("DirectoryGBean", DirectoryGBean.class);}}
> {{...}}
> At load time, this throws:
> {{java.lang.IllegalArgumentException: Cannot find matching 
> method/constructor}}
>       {{at 
> org.apache.geronimo.directory.DirectoryGBean$$EnhancerByCGLIB$$f37d2ade$$FastClassByCGLIB$$dc9cb3c5.newInstance(<generated>)}}
> The cleanest way to resolve this seems like it would be to pull up the 
> relevant attributes/operations to an interface, which would be usable as a 
> reference classspec.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to