You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Panda, Akshaya Kumar (Cognizant)" <ak...@cognizant.com> on 2005/11/24 08:58:54 UTC

org.omg.CORBA.MARSHAL: java.lang.ClassCastException thrown while marshaling the reply

Hi,
I am trying to access a session bean deployed on Geronimo1.0M5 from a orbacus4.3.0 c++ client in  fedora core3.

1. The client side corba url is: corbaname:iiop:1.2@localhost:1050#cts/sample/SampleSessionBean

2. The ejb deploment plan as follows:
<?xml version="1.0" encoding="UTF-8"?>

<application

    xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.0"

    configId="SampleSession-configid"

    parentId="org/apache/geronimo/ServerCORBA">



    <import>

        <uri>org/apache/geronimo/Security</uri>

    </import>



    <module>

        <ejb>CTS_SAMPLE_SESSION_GERONIMO.jar</ejb>

        <openejb-jar

            xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.0"

            configId="ejb-SampleSessionBean-configid"

            parentId="org/apache/geronimo/ServerCORBA">



            <enterprise-beans>

                <session>

                    <ejb-name>SampleSessionBean</ejb-name>

                    <jndi-name>cts/sample/SampleSessionBean</jndi-name>

                    <tss-link>IdentityTokenNoSecurity</tss-link>

                </session>

            </enterprise-beans>

        </openejb-jar>

    </module>

</application>


3. The orb->string_to_object() is successfull in client side and able to get the home reference. but the home->create() fails. The geronimo stack trace as follows:

12:14:48,102 INFO  [Daemon] Server startup completed
12:14:54,635 DEBUG [ServerSecurityInterceptor] receive_request_service_contexts()
12:14:54,651 DEBUG [ServiceContextInterceptor] Looking for SSL Session
12:14:54,684 DEBUG [ServerSecurityInterceptor] receive_request(create [geronimo.server:EJBModule=ejb-SampleSessionBean-configid,J2EEApplication=null,J2EEServer=geronimo,j2eeType=StatelessSessionBean,name=SampleSessionBean]
12:14:54,685 DEBUG [ServerSecurityInterceptor] Found server policy
12:14:54,711 DEBUG [ServerSecurityInterceptor] No security service context found
12:14:54,712 DEBUG [ServerSecurityInterceptor]    Subject:
	Principal: public-properties-realm:[org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal:guest]
	Principal: public-properties-realm:[org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal:guest]

12:14:54,717 DEBUG [StandardServant] Calling create
12:14:54,884 DEBUG [ServerSecurityInterceptor] send_reply()
12:14:54,937 DEBUG [ClientSecurityInterceptor] Checking if target _is_a has a security policy
12:14:55,012 DEBUG [ClientSecurityInterceptor] Target has a security policy
12:14:55,020 DEBUG [ClientTransactionInterceptor] Checking if target _is_a has a transaction policy
12:14:55,020 DEBUG [ClientTransactionInterceptor] Target has a transaction policy
12:14:55,079 DEBUG [ServerSecurityInterceptor] receive_request_service_contexts()
12:14:55,079 DEBUG [ServiceContextInterceptor] Looking for SSL Session
12:14:55,079 DEBUG [ServerSecurityInterceptor] receive_request(_is_a [geronimo.server:EJBModule=ejb-SampleSessionBean-configid,J2EEApplication=null,J2EEServer=geronimo,j2eeType=StatelessSessionBean,name=SampleSessionBean]
12:14:55,079 DEBUG [ServerSecurityInterceptor] Found server policy
12:14:55,079 DEBUG [ServerSecurityInterceptor] No security service context found
12:14:55,079 DEBUG [ServerSecurityInterceptor]    Subject:
	Principal: public-properties-realm:[org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal:guest]
	Principal: public-properties-realm:[org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal:guest]

12:14:55,079 INFO  [MappedServerTransactionPolicyConfig] No tx mapping for operation: _is_a
12:14:55,079 DEBUG [ServerSecurityInterceptor] send_reply()
12:14:55,097 DEBUG [Util] Exception in result copy
org.omg.CORBA.MARSHAL: java.lang.ClassCastException thrown while marshaling the reply: null  vmcid: 0x0  minor code: 0  completed: Yes
	at org.openejb.corba.CorbaApplicationServer.getEJBObject(CorbaApplicationServer.java:72)
	at org.openejb.server.ServerFederation.getEJBObject(ServerFederation.java:119)
	at org.openejb.proxy.ReplacementStrategy$1.writeReplace(ReplacementStrategy.java:73)
	at org.openejb.proxy.SerializationHandler.writeReplace(SerializationHandler.java:99)
	at org.openejb.proxy.EJBObjectImpl.writeReplace(EJBObjectImpl.java:115)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:896)
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1011)
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
	at org.openejb.proxy.SerializationHandler.copyObj(SerializationHandler.java:111)
	at org.openejb.corba.util.Util.writeObject(Util.java:463)
	at org.openejb.corba.StandardServant._invoke(StandardServant.java:322)
	at com.sun.corba.se.internal.POA.GenericPOAServerSC.dispatchToServant(GenericPOAServerSC.java:517)
	at com.sun.corba.se.internal.POA.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java:207)
	at com.sun.corba.se.internal.POA.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:109)
	at com.sun.corba.se.internal.iiop.ORB.process(ORB.java:280)
	at com.sun.corba.se.internal.iiop.RequestProcessor.process(RequestProcessor.java:81)
	at com.sun.corba.se.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:106) 


can anyone please help me what went wrong?


Thanks
Akshay





This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com