You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Akshaya Panda <ak...@cognizant.com> on 2005/12/09 05:57:10 UTC

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

david,
yes started working now. It was my mistake, didn't set CORBA & SSL flags
in JVM :)

thanks
akshay


On Sat, 2005-11-26 at 13:12 -0800, David Jencks wrote:
> Unfortunately I can't give you any advice except to trace through the  
> code to try to figure out what is going wrong.  Are you fairly sure you  
> have csiv2 set up on your c++ client compatible with the TSS setup you  
> have specified?  I would sort of expect a different exception if this  
> is the problem, but it often seems to me that the sun corba  
> implementation is written with the primary goal of concealing the cause  
> of problems.
> 
> Please keep us informed of your progress!
> 
> thanks
> david jencks
> 
> On Nov 26, 2005, at 6:49 AM, Panda, Akshaya Kumar ((Cognizant)) wrote:
> 
> > i think it didn't get posted earlier properly. forwarding again...
> >  
> >  
> > 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=StatelessSes 
> > sionBean,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=StatelessSes 
> > sionBean,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(CorbaApplicationS 
> > erver.java:72)
> >         at  
> > org.openejb.server.ServerFederation.getEJBObject(ServerFederation.java: 
> > 119)
> >         at  
> > org.openejb.proxy.ReplacementStrategy$1.writeReplace(ReplacementStrateg 
> > y.java:73)
> >         at  
> > org.openejb.proxy.SerializationHandler.writeReplace(SerializationHandle 
> > r.java:99)
> >         at  
> > org.openejb.proxy.EJBObjectImpl.writeReplace(EJBObjectImpl.java:115)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at  
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
> > va:39)
> >         at  
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
> > rImpl.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.jav 
> > a: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(Gene 
> > ricPOAServerSC.java:517)
> >         at  
> > com.sun.corba.se.internal.POA.GenericPOAServerSC.internalDispatch(Gener 
> > icPOAServerSC.java:207)
> >         at  
> > com.sun.corba.se.internal.POA.GenericPOAServerSC.dispatch(GenericPOASer 
> > verSC.java:109)
> >         at com.sun.corba.se.internal.iiop.ORB.process(ORB.java:280)
> >         at  
> > com.sun.corba.se.internal.iiop.RequestProcessor.process(RequestProcesso 
> > r.java:81)
> >         at  
> > com.sun.corba.se.internal.orbutil.ThreadPool$PooledThread.run(ThreadPoo 
> > l.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
> 
-- 
Akshaya Panda <ak...@cognizant.com>
Cognizant Technology Solutions

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