Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-1462

Unified invoker config needs to expose basic settings

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • JBossAS-5.0.0.Beta1
    • JBossAS-5.0.0.Beta1
    • Remoting
    • None

    Description

      A simple ejb testcase that has the bean method sleep for 90 seconds:

      public void useCallerForAuth()
      {
      try
      {
      Thread.sleep(90*1000);

      ...

      fails with a timeout from the transport layer.

      java.net.SocketTimeoutException: Read timed out; nested exception is:
      java.rmi.ConnectException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
      java.net.SocketTimeoutException: Read timed out" type="java.rmi.ServerException">java.rmi.ServerException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
      java.net.SocketTimeoutException: Read timed out; nested exception is:
      java.rmi.ConnectException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
      java.net.SocketTimeoutException: Read timed out
      at org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.invoke(UnifiedInvokerProxy.java:118)
      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96)
      at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
      at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:97)
      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:87)
      at $Proxy3.useCallerForAuth(Unknown Source)
      at org.jboss.test.jca.test.SecurityContextUnitTestCase.testCallerIdentityPropagation(SecurityContextUnitTestCase.java:65)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
      at junit.extensions.TestSetup.run(TestSetup.java:23)
      Caused by: java.rmi.ConnectException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
      java.net.SocketTimeoutException: Read timed out
      at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:264)
      at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:116)
      at org.jboss.remoting.Client.invoke(Client.java:197)
      at org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.invoke(UnifiedInvokerProxy.java:102)
      ... 28 more
      Caused by: java.net.SocketTimeoutException: Read timed out
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.read(SocketInputStream.java:129)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
      at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2133)
      at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2423)
      at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2433)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1245)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
      at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:35)
      at org.jboss.invocation.unified.marshall.InvocationUnMarshaller.read(InvocationUnMarshaller.java:31)
      at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:242)
      ... 31 more

      Basic configuration settings like timeout, port, bind address, socket factories, etc. need to be made manifest in the conf/jboss-service.xml with the attributes/config commented out if needed so that its simple to update these settings.

      Attachments

        Activity

          People

            tom.elrod_jira Tom Elrod (Inactive)
            starksm64 Scott Stark (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: