geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Mulder (JIRA)" <...@geronimo.apache.org>
Subject [jira] Commented: (GERONIMO-1590) CORBA for EJB with Local interface only causes NPE
Date Mon, 06 Feb 2006 05:36:05 GMT
    [ http://issues.apache.org/jira/browse/GERONIMO-1590?page=comments#action_12365240 ] 

Aaron Mulder commented on GERONIMO-1590:
----------------------------------------

Proposed fix (no diff b/c I don't have the SVN checkout yet and CVS seems to be history)...

Add this to SessionBuilder:328

        if(tssBeanObjectName != null && (!sessionBean.isSetRemote() || !sessionBean.isSetHome()))
{
            throw new DeploymentException("A session bean without a remote interface cannot
be exposed via CORBA");
        }

And add to EntityBuilder:139

        if(tssBeanObjectName != null && (!entityBean.isSetRemote() || !entityBean.isSetHome()))
{
            throw new DeploymentException("An entity bean without a remote interface cannot
be exposed via CORBA");
        }

And change CMPEntityBuilder:188 to:

            ObjectName tssBean = getTssBeanObjectName(openejbEntityBean, earContext);
            if(tssBean != null && (!entityBean.isSetRemote() || !entityBean.isSetHome()))
{
                throw new DeploymentException("An entity bean without a remote interface cannot
be exposed via CORBA");
            }
            GBeanData gbean = builder.createConfiguration(containerObjectName, earContext.getTransactionContextManagerObjectName(),
earContext.getConnectionTrackerObjectName(), tssBean);


> CORBA for EJB with Local interface only causes NPE
> --------------------------------------------------
>
>          Key: GERONIMO-1590
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1590
>      Project: Geronimo
>         Type: Bug
>   Components: CORBA, OpenEJB
>     Versions: 1.0
>     Reporter: Aaron Mulder
>      Fix For: 1.0.1, 1.1

>
> I have an EJB with a local interface and I tried applying CORBA settings.  It blows up
during deployment.  My guess is that it wants a remote interface to be there, but somehow,
the checks in StandardServant:126 are not working and the interface just comes up as null.
> Caused by: java.lang.NullPointerException
>         at org.openejb.corba.util.Util.getAllInterfaces(Util.java:593)
>         at org.openejb.corba.util.Util.getAllMethods(Util.java:815)
>         at org.openejb.corba.util.Util.iiopMap(Util.java:608)
>         at org.openejb.corba.util.Util.mapOperationToMethod(Util.java:604)
>         at org.openejb.corba.StandardServant.<init>(StandardServant.java:135)
>         at org.openejb.corba.StandardServant.<init>(StandardServant.java:116)
>         at org.openejb.corba.Adapter.<init>(Adapter.java:100)
>         ... 67 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message