2 Replies Latest reply on May 22, 2013 11:28 PM by jaikiran

    Maximum SLSBean parameter size

    iliax

      Hello everyone!

      Today I found an interesting restriction in Jboss remoting(?) system. I have stateless session bean with method with 1 param which type is byte []. When i'm trying to call this method with array wich size is bigger than 25K through RMI, my client application freezes. For this moment i have no exception thrown, but when i'm killing client a have this trace in server logs :

       

      17:13:10,217 ERROR [org.jboss.as.ejb3] (Remoting "astra" task-1) JBAS014248: Exception on channel Channel ID 075e73af (inbound) of Remoting connection 692466b8 to null from message org.jboss.remoting3.remote.InboundMessage$3@76d5daf9: java.io.IOException: JBAS014560: Could not open message outputstream for writing to Channel

              at org.jboss.as.ejb3.remote.protocol.versionone.AbstractMessageHandler.writeException(AbstractMessageHandler.java:101)

              at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.processMessage(MethodInvocationMessageHandler.java:165)

              at org.jboss.as.ejb3.remote.protocol.versionone.VersionOneProtocolChannelReceiver.handleMessage(VersionOneProtocolChannelReceiver.java:180)

              at org.jboss.remoting3.remote.RemoteConnectionChannel$5.run(RemoteConnectionChannel.java:435) [jboss-remoting-3.2.14.GA.jar:3.2.14.GA]

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_04]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_04]

              at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_04]

      Caused by: org.jboss.remoting3.NotOpenException: Writes closed

              at org.jboss.remoting3.remote.RemoteConnectionChannel.openOutboundMessage(RemoteConnectionChannel.java:108) [jboss-remoting-3.2.14.GA.jar:3.2.14.GA]

              at org.jboss.remoting3.remote.RemoteConnectionChannel.writeMessage(RemoteConnectionChannel.java:297) [jboss-remoting-3.2.14.GA.jar:3.2.14.GA]

              at org.jboss.as.ejb3.remote.protocol.versionone.ChannelAssociation.acquireChannelMessageOutputStream(ChannelAssociation.java:68)

              at org.jboss.as.ejb3.remote.protocol.versionone.AbstractMessageHandler.writeException(AbstractMessageHandler.java:99)

              ... 6 more

       

      With small arrays i have no problems..

      Is it a bug? Or can I configure max argument size in config files?

      Thanks a lot!)