Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 97220 invoked from network); 26 Nov 2005 14:50:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Nov 2005 14:50:29 -0000 Received: (qmail 58493 invoked by uid 500); 26 Nov 2005 14:50:28 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 57787 invoked by uid 500); 26 Nov 2005 14:50:26 -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 57776 invoked by uid 99); 26 Nov 2005 14:50:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Nov 2005 06:50:26 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [203.99.193.22] (HELO ctsincsisxia.cts.com) (203.99.193.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Nov 2005 06:51:56 -0800 Received: from ctsinchnsxua.cts.com ([10.237.5.61]) by ctsincsisxia.cts.com with InterScan Messaging Security Suite; Sat, 26 Nov 2005 20:20:01 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C5F298.ADB42E5A" Subject: org.omg.CORBA.MARSHAL: java.lang.ClassCastException thrown while marshaling the reply Date: Sat, 26 Nov 2005 20:19:01 +0530 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: org.omg.CORBA.MARSHAL: java.lang.ClassCastException thrown while marshaling the reply Thread-Index: AcXymIo/+pTVVh1mRkenl649dxpsUg== From: "Panda, Akshaya Kumar \(Cognizant\)" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------_=_NextPart_001_01C5F298.ADB42E5A Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable i think it didn't get posted earlier properly. forwarding again... =0D =0D 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: org/apache/geronimo/Security CTS_SAMPLE_SESSION_GERONIMO.jar 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= =3Dejb-SampleSessionBean-configid,J2EEApplication=3Dnull,J2EEServer= =3Dgeronimo,j2eeType=3DStatelessSessionBean,name=3DSampleSessionBean] 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.Gero= nimoUserPrincipal:guest] Principal:= public-properties-realm:[org.apache.geronimo.security.realm.providers.Gero= nimoUserPrincipal: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= =3Dejb-SampleSessionBean-configid,J2EEApplication=3Dnull,J2EEServer= =3Dgeronimo,j2eeType=3DStatelessSessionBean,name=3DSampleSessionBean] 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.Gero= nimoUserPrincipal:guest] Principal:= public-properties-realm:[org.apache.geronimo.security.realm.providers.Gero= nimoUserPrincipal: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(CorbaApplicationServ= er.java:72) at= org.openejb.server.ServerFederation.getEJBObject(ServerFederation.java:119= ) at= org.openejb.proxy.ReplacementStrategy$1.writeReplace(ReplacementStrategy.j= ava:73) at= org.openejb.proxy.SerializationHandler.writeReplace(SerializationHandler.j= ava: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(DelegatingMethodAccessorIm= pl.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:1= 11) 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(Generic= POAServerSC.java:517) at= com.sun.corba.se.internal.POA.GenericPOAServerSC.internalDispatch(GenericP= OAServerSC.java:207) at= com.sun.corba.se.internal.POA.GenericPOAServerSC.dispatch(GenericPOAServer= SC.java:109) at com.sun.corba.se.internal.iiop.ORB.process(ORB.java:280) at= com.sun.corba.se.internal.iiop.RequestProcessor.process(RequestProcessor.j= ava:81) at= com.sun.corba.se.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.j= ava:106)=0D 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.=0D 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=0D prohibited and may be unlawful. Visit us at http://www.cognizant.com ------_=_NextPart_001_01C5F298.ADB42E5A Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
i think it didn't get=0D posted earlier properly. forwarding again...
 
 
Hi,
I am trying to access a session= bean=0D deployed on Geronimo1.0M5 from a orbacus4.3.0 c++ client in  fedora=0D core3.

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

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

<application

   = xmlns=3D"http://geronimo.apache.org/xml/ns/j2ee/application-1.0"
   =0D configId=3D"SampleSession-configid"

   =0D parentId= =3D"org/apache/geronimo/ServerCORBA">



   = =0D <import>

       =0D <uri>org/apache/geronimo/Security</uri>

  &nbs= p;=0D </import>



   =0D <module>

       =0D <ejb>CTS_SAMPLE_SESSION_GERONIMO.jar</ejb>

  &= nbsp;    =0D <openejb-jar

        &nbs= p;  =0D xmlns=3D"http://www.openejb.org/xml/ns/openejb-jar-2.0"

 &= nbsp;         =0D configId= =3D"ejb-SampleSessionBean-configid"

     &n= bsp;     =0D parentId= =3D"org/apache/geronimo/ServerCORBA">



   &= nbsp;       =0D <enterprise-beans>

       &= nbsp;       =0D <session>

        &nbs= p;          =0D <ejb-name>SampleSessionBean</ejb-name>

   = ;            &n= bsp;   =0D <jndi-name>cts/sample/SampleSessionBean</jndi-name>

&nbs= p;            &= nbsp;     =0D <tss-link>IdentityTokenNoSecurity</tss-link>

  = ;            &n= bsp;=0D </session>

        &nb= sp;  =0D </enterprise-beans>

       = =0D </openejb-jar>

   =0D </module>

</application>


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

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

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

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


can=0D anyone please help me what went=0D 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
------_=_NextPart_001_01C5F298.ADB42E5A--