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:[EMAIL PROTECTED]: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 [Serv
RE: org.omg.CORBA.MARSHAL: java.lang.ClassCastException thrown while marshaling the reply
--- Begin Message --- thanks david, let me check TSS and csiv2 setup and revert back akshay -Original Message- From: David Jencks [mailto:[EMAIL PROTECTED] Sent: Sun 11/27/2005 2:42 AM To: dev@geronimo.apache.org Subject: Re: org.omg.CORBA.MARSHAL: java.lang.ClassCastException thrown while marshaling the reply 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:[EMAIL PROTECTED]: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 [MappedSer
Re: org.omg.CORBA.MARSHAL: java.lang.ClassCastException thrown while marshaling the reply
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:[EMAIL PROTECTED]:1050#cts/sample/SampleSessionBean 2. The ejb deploment plan as follows: 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 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
org.omg.CORBA.MARSHAL: java.lang.ClassCastException thrown while marshaling the reply
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:[EMAIL PROTECTED]:1050#cts/sample/SampleSessionBean2. 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 completed12:14:54,635 DEBUG [ServerSecurityInterceptor] receive_request_service_contexts()12:14:54,651 DEBUG [ServiceContextInterceptor] Looking for SSL Session12: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 policy12:14:54,711 DEBUG [ServerSecurityInterceptor] No security service context found12: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 create12:14:54,884 DEBUG [ServerSecurityInterceptor] send_reply()12:14:54,937 DEBUG [ClientSecurityInterceptor] Checking if target _is_a has a security policy12:14:55,012 DEBUG [ClientSecurityInterceptor] Target has a security policy12:14:55,020 DEBUG [ClientTransactionInterceptor] Checking if target _is_a has a transaction policy12:14:55,020 DEBUG [ClientTransactionInterceptor] Target has a transaction policy12:14:55,079 DEBUG [ServerSecurityInterceptor] receive_request_service_contexts()12:14:55,079 DEBUG [ServiceContextInterceptor] Looking for SSL Session12: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 policy12:14:55,079 DEBUG [ServerSecurityInterceptor] No security service context found12: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_a12:14:55,079 DEBUG [ServerSecurityInterceptor] send_reply()12:14:55,097 DEBUG [Util] Exception in result copyorg.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)
org.omg.CORBA.MARSHAL: java.lang.ClassCastException thrown while marshaling the reply
Title: 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:[EMAIL PROTECTED]: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=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.op