Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 99011 invoked from network); 9 Dec 2005 05:01:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Dec 2005 05:01:08 -0000 Received: (qmail 20857 invoked by uid 500); 9 Dec 2005 05:01:07 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 20150 invoked by uid 500); 9 Dec 2005 05:01:04 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 20139 invoked by uid 99); 9 Dec 2005 05:01:04 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2005 21:01:04 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [203.99.193.23] (HELO ctsintcosxid.cts.com) (203.99.193.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2005 21:01:03 -0800 Received: from ctsinchnsxua.cts.com ([10.237.5.61]) by ctsintcosxid.cts.com with InterScan Message Security Suite; Fri, 09 Dec 2005 10:30:19 +0530 Received: from 10.239.32.96 ([10.239.32.96]) by ctsinchnsxua.cts.com ([10.237.5.61]) with Microsoft Exchange Server HTTP-DAV ; Fri, 9 Dec 2005 05:00:16 +0000 Received: from pcidl07239 by ctsinchnsxua.cts.com; 09 Dec 2005 10:27:13 +0530 Subject: Re: org.omg.CORBA.MARSHAL: java.lang.ClassCastException thrown while marshaling the reply From: Akshaya Panda Reply-To: akshaya.panda@cognizant.com To: dev@geronimo.apache.org In-Reply-To: <9e2b0ca2c2232d838d1ec75cb35d31c9@yahoo.com> References: <9e2b0ca2c2232d838d1ec75cb35d31c9@yahoo.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Cognizant Technology Solutions Date: Fri, 09 Dec 2005 10:27:10 +0530 Message-Id: <1134104231.30783.11.camel@pcidl07239> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-3) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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: > > > > > > > > > xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.0" > > > > configId="SampleSession-configid" > > > > parentId="org/apache/geronimo/ServerCORBA"> > > > > > > > > > > > > org/apache/geronimo/Security > > > > > > > > > > > > > > > > CTS_SAMPLE_SESSION_GERONIMO.jar > > > > > > > xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.0" > > > > configId="ejb-SampleSessionBean-configid" > > > > parentId="org/apache/geronimo/ServerCORBA"> > > > > > > > > > > > > > > > > SampleSessionBean > > > > cts/sample/SampleSessionBean > > > > IdentityTokenNoSecurity > > > > > > > > > > > > > > > > > > > > > > > > > > 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 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