users@glassfish.java.net

Re: Object Serialization Performance 2

From: <glassfish_at_javadesktop.org>
Date: Fri, 22 Jan 2010 11:36:41 PST

Unfortunately the performance was the same.

Also, I tried again the property:

com.sun.corba.ee.encoding.ORBEnableJavaSerialization=true

in both, server and client, but i get this exception in the client's console:

**************************************************
Caused by: javax.naming.CommunicationException: Can't find SerialContextProvider [Root exception is org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 260 completed: No]
        at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:164)
        at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:409)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:997)
        at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
        at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
        ... 19 more
Caused by: org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 260 completed: No
        at com.sun.corba.ee.impl.logging.ORBUtilSystemException.javaSerializationException(ORBUtilSystemException.java:9764)
        at com.sun.corba.ee.impl.logging.ORBUtilSystemException.javaSerializationException(ORBUtilSystemException.java:9783)
        at com.sun.corba.ee.impl.encoding.IDLJavaSerializationInputStream.read_boolean(IDLJavaSerializationInputStream.java:406)
        at com.sun.corba.ee.impl.encoding.IDLJavaSerializationInputStream.consumeEndian(IDLJavaSerializationInputStream.java:875)
        at com.sun.corba.ee.impl.encoding.CDRInputStream.consumeEndian(CDRInputStream.java:530)
        at com.sun.enterprise.iiop.CSIV2TaggedComponentInfo.getSecurityMechanisms(CSIV2TaggedComponentInfo.java:776)
        at com.sun.enterprise.iiop.security.SecurityMechanismSelector.selectSecurityMechanism(SecurityMechanismSelector.java:969)
        at com.sun.enterprise.iiop.security.SecurityMechanismSelector.getSSLPort(SecurityMechanismSelector.java:229)
        at com.sun.enterprise.iiop.security.SecurityMechanismSelector.selectSecurityContext(SecurityMechanismSelector.java:463)
        at com.sun.enterprise.iiop.security.SecurityServiceImpl.getSecurityContext(SecurityServiceImpl.java:115)
        at com.sun.enterprise.iiop.security.SecClientRequestInterceptor.send_request(SecClientRequestInterceptor.java:268)
        at com.sun.corba.ee.impl.interceptors.InterceptorInvoker.invokeClientInterceptorStartingPoint(InterceptorInvoker.java:271)
        at com.sun.corba.ee.impl.interceptors.PIHandlerImpl.invokeClientPIStartingPoint(PIHandlerImpl.java:348)
        at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:284)
        at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:181)
        at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:325)
        at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
        at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)
        at com.sun.enterprise.naming.SerialContext.narrowProvider(SerialContext.java:134)
        at com.sun.enterprise.naming.SerialContext.getCachedProvider(SerialContext.java:259)
        at com.sun.enterprise.naming.SerialContext.getRemoteProvider(SerialContext.java:228)
        at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:159)
        ... 26 more
Caused by: java.io.StreamCorruptedException: invalid type code: 00
        at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2464)
        at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2499)
        at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2571)
        at java.io.ObjectInputStream$BlockDataInputStream.readBoolean(ObjectInputStream.java:2712)
        at java.io.ObjectInputStream.readBoolean(ObjectInputStream.java:884)
        at com.sun.corba.ee.impl.encoding.IDLJavaSerializationInputStream.read_boolean(IDLJavaSerializationInputStream.java:400)
        ... 45 more
**************************************************

Any ideas?
[Message sent by forum member 'jrico' (jnrico_at_gmail.com)]

http://forums.java.net/jive/thread.jspa?messageID=382457