[jboss-jira] [JBoss JIRA] Updated: (JBAS-3804) JDK 1.6 causes StreamCorruptedException

Tarek Hammoud (JIRA) jira-events at jboss.com
Wed Nov 1 10:44:41 EST 2006


     [ http://jira.jboss.com/jira/browse/JBAS-3804?page=all ]

Tarek Hammoud updated JBAS-3804:
--------------------------------

    Attachment: test.zip

Test case.

> JDK 1.6 causes StreamCorruptedException
> ---------------------------------------
>
>                 Key: JBAS-3804
>                 URL: http://jira.jboss.com/jira/browse/JBAS-3804
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: JBossAS-4.0.5.GA, JBossAS-4.0.4.GA
>         Environment: Linux FC4 JDK 1.6
>            Reporter: Tarek Hammoud
>         Attachments: test.zip
>
>
> @Stateless
> @RemoteBinding (jndiBinding="ejb/EJBTestServiceServiceBean/remote")
> public class TestServiceBean implements TestService {
>     private Logger logger = Logger.getLogger(getClass());
>     @TransactionAttribute(TransactionAttributeType.REQUIRED)
>     public Format getFormat() {
>         logger.info("get format");
>         return DateFormat.getDateInstance(DateFormat.SHORT);
>     }
> }
> Calling this service method causes (On the client):
> java.lang.reflect.UndeclaredThrowableException
>         at $Proxy0.getFormat(Unknown Source)
>         at com.enfusion.ejbtest.test.Main.main(Main.java:18)
> Caused by: java.rmi.MarshalException: Failed to communicate.  Problem during marshalling/unmarshalling; nested exception is:
>         java.io.StreamCorruptedException: invalid type code: 00
>         at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:306)
>         at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
>         at org.jboss.remoting.Client.invoke(Client.java:525)
>         at org.jboss.remoting.Client.invoke(Client.java:488)
>         at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:61)
>         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
>         at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
>         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
>         at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:55)
>         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
>         at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:77)
>         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
>         at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list