[EJB3] - Size limit on Remote EJB Calls
by Justin Hayes
Justin Hayes [https://community.jboss.org/people/justinhayes] created the discussion
"Size limit on Remote EJB Calls"
To view the discussion, visit: https://community.jboss.org/message/787159#787159
--------------------------------------------------------------
I have a SLSB that I invoke remotely and there appears to be a limit on how large the argument I can pass in a method call is. I'm using EAP 6.0.1 (jboss as 7.1.2 Final) and deploying my ejb as part of an ear. My client runs in a separete JVM and uses jboss-ejb-client 1.0.5.Final.
EJB3 interface:
public String ingest(NATLog[] values);
EJB3 impl:
@Override
public String ingest(NATLog[] values) {
//do something
}
NATLog is a simple POJO with 11 String member variables. The total size of one of these fully populated is about 300 bytes.
When I use an array up to about 150 NATLog objects, the EJB call works fine. When I pass in an array of 200 NATLog objects, the EJB call just hangs. And when I finally kill the client via ctrl-c, I get the following error message in the server's console.
15:49:56,740 ERROR [org.jboss.as.ejb3] (Remoting "cirries-3001" task-1) JBAS014248: Exception on channel Channel ID 699cd0be (inbound) of Remoting connection 58f368dc to null from message org.jboss.remoting3.remote.InboundMessage$3@41c61c91: org.jboss.remoting3.MessageCancelledException
at org.xnio.streams.BufferPipeInputStream.checkFailure(BufferPipeInputStream.java:280) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]
at org.xnio.streams.BufferPipeInputStream.read(BufferPipeInputStream.java:125) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]
at org.jboss.remoting3.remote.InboundMessage$3.read(InboundMessage.java:122) [jboss-remoting-3.2.14.GA-redhat-1.jar:3.2.14.GA-redhat-1]
at java.io.DataInputStream.readByte(DataInputStream.java:265) [rt.jar:1.6.0_24]
at org.jboss.as.ejb3.remote.protocol.versionone.AbstractMessageHandler$2.read(AbstractMessageHandler.java:249)
at java.io.InputStream.read(InputStream.java:170) [rt.jar:1.6.0_24]
at java.io.FilterInputStream.read(FilterInputStream.java:133) [rt.jar:1.6.0_24]
at org.jboss.marshalling.SimpleDataInput.read(SimpleDataInput.java:92) [jboss-marshalling-1.3.15.GA-redhat-1.jar:1.3.15.GA-redhat-1]
at org.jboss.marshalling.UTFUtils.readUTFBytes(UTFUtils.java:155) [jboss-marshalling-1.3.15.GA-redhat-1.jar:1.3.15.GA-redhat-1]
at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:281)
at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)
at org.jboss.marshalling.river.RiverUnmarshaller.readFields(RiverUnmarshaller.java:1678)
at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1594)
at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1236)
at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)
at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)
at org.jboss.marshalling.river.RiverUnmarshaller.doReadCollectionObject(RiverUnmarshaller.java:180)
at org.jboss.marshalling.river.RiverUnmarshaller.doReadObjectArray(RiverUnmarshaller.java:1503)
at org.jboss.marshalling.river.RiverUnmarshaller.doReadArray(RiverUnmarshaller.java:1542)
at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:326)
at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)
at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:37) [jboss-marshalling-1.3.15.GA-redhat-1.jar:1.3.15.GA-redhat-1]
at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.processMessage(MethodInvocationMessageHandler.java:162)
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-redhat-1.jar:3.2.14.GA-redhat-1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.6.0_24]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.6.0_24]
at java.lang.Thread.run(Thread.java:679) [rt.jar:1.6.0_24]
Caused by: an exception which occurred:
in field origIP
in object of type org.jboss.tusk.juniper.ispn.NATLog
in element at index [107] of size [200]
1. Is there a size limit for the data passed in via remote EJB3 calls?
2. Are there any settings I can do in JBoss to tune the behavior with regard to EJB calls?
Thanks,
Justin
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/787159#787159]
Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months
[jBPM] - jbpm 5.4 installation problems with eclipse
by David Harris
David Harris [https://community.jboss.org/people/dmwpepper] created the discussion
"jbpm 5.4 installation problems with eclipse"
To view the discussion, visit: https://community.jboss.org/message/800693#800693
--------------------------------------------------------------
Hello,
I need some help getting Eclipse to work with the jbpm installation. I downloaded and unzipped jpemo-5.4.0.final-installer-full.zip. I then ran ant install.demo and the build failed when getting to the Eclipse installation part. The error message is in red bold below:
[unzip] Expanding: C:\jbpm\jbpm-installer\lib\jboss-as-7.1.1.Final.zip into C:\jbpm\jbpm-installer
1. check.jboss.version:
1. download.db.driver.check:
[echo] Checking if db driver jar has been downloaded ....//db/driver/h2.jar
1. download.db.driver:
1. install.db.files:
1. download.drools.guvnor.check:
[echo] Checking Drools Guvnor download ...
1. download.drools.guvnor:
1. install.guvnor.into.jboss:
[mkdir] Created dir: C:\jbpm\jbpm-installer\target
[unzip] Expanding: C:\jbpm\jbpm-installer\lib\guvnor-distribution-wars-5.5.0.Final.war into C:\jbpm\jbpm-installer\target
[copy] Copying 1 file to C:\jbpm\jbpm-installer\target\WEB-INF\classes
[zip] Building zip: C:\jbpm\jbpm-installer\target\guvnor-distribution-wars-5.5.0.Final.war
[copy] Copying 1 file to C:\jbpm\jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments
[delete] Deleting directory C:\jbpm\jbpm-installer\target
1. download.designer.check:
[echo] Checking Designer download ...
1. download.designer:
1. install.designer.into.jboss:
[copy] Copying 1 file to C:\jbpm\jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments
1. check.jboss.version:
1. created.designer.deployment.as7:
[touch] Creating C:\jbpm\jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments\designer.war.dodeploy
1. download.jBPM.gwt-console.check:
[echo] Checking jBPM gwt-console download ...EE6
1. download.jBPM.gwt-console:
1. install.jBPM-gwt-console.into.jboss:
1. check.jboss.version:
1. download.transport.lib.check:
1. install.transport.lib:
1. install.jBPM-gwt-console.into.jboss5:
1. check.jboss.version:
1. install.jBPM-gwt-console.into.jboss7:
1. check.birt.as7:
1. download.birt.check.as7:
[echo] Checking birt reporting engine download for as7 ...
1. download.birt.as7:
[mkdir] Created dir: C:\jbpm\jbpm-installer\target
[mkdir] Created dir: C:\jbpm\jbpm-installer\target\jbpm-gwt-console-server-war
[unzip] Expanding: C:\jbpm\jbpm-installer\lib\jbpm-gwt-console-server-5.4.0.Final-EE6.war into C:\jbpm\jbpm-installer\target\jbpm-gwt-console-server-war
[copy] Copying 1 file to C:\jbpm\jbpm-installer\target\jbpm-gwt-console-server-war\WEB-INF\lib
[copy] Copying 5 files to C:\jbpm\jbpm-installer\target\jbpm-gwt-console-server-war\WEB-INF\classes
[copy] Warning: Could not find file C:\jbpm\jbpm-installer\db\jbpm-persistence.xml to copy.
[copy] Copying 1 file to C:\jbpm\jbpm-installer\target\jbpm-gwt-console-server-war\WEB-INF\classes\META-INF
1. check.birt.as7:
1. install.reporting.into.jboss7:
[mkdir] Created dir: C:\jbpm\jbpm-installer\birt
[unzip] Expanding: C:\jbpm\jbpm-installer\lib\birt-runtime-3_7_0.zip into C:\jbpm\jbpm-installer\birt
[copy] Copying 77 files to C:\jbpm\jbpm-installer\target\jbpm-gwt-console-server-war\WEB-INF\lib
[mkdir] Created dir: C:\jbpm\jbpm-installer\target\jbpm-gwt-console-server-war\WEB-INF\output
[mkdir] Created dir: C:\jbpm\jbpm-installer\target\jbpm-gwt-console-server-war\WEB-INF\reports
[copy] Copying 1 file to C:\jbpm\jbpm-installer\target\jbpm-gwt-console-server-war\WEB-INF\reports
[delete] Deleting directory C:\jbpm\jbpm-installer\birt
1. install.dependencies:
[zip] Building zip: C:\jbpm\jbpm-installer\target\jbpm-gwt-console-server-5.4.0.Final.war
[copy] Copying 1 file to C:\jbpm\jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments
[copy] Copying 1 file to C:\jbpm\jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments
[delete] Deleting directory C:\jbpm\jbpm-installer\target
[copy] Copying 1 file to C:\jbpm\jbpm-installer\jboss-as-7.1.1.Final\standalone\configuration
[copy] Copying 1 file to C:\jbpm\jbpm-installer\jboss-as-7.1.1.Final\standalone\configuration
[copy] Copying 1 file to C:\jbpm\jbpm-installer\jboss-as-7.1.1.Final\standalone\configuration
1. download.jBPM.ht-war.check:
[echo] Checking jBPM human task war download ...
1. download.jBPM-ht.war:
1. download.transport.lib.check:
1. install.transport.lib:
1. install.jBPM-ht.into.jboss:
1. install.ht.war.into.jboss5:
1. install.ht.war.into.jboss7:
[mkdir] Created dir: C:\jbpm\jbpm-installer\target
[mkdir] Created dir: C:\jbpm\jbpm-installer\target\jbpm-human-task-war
[unzip] Expanding: C:\jbpm\jbpm-installer\lib\jbpm-human-task-war-5.4.0.Final-EE6.war into C:\jbpm\jbpm-installer\target\jbpm-human-task-war
[copy] Copying 1 file to C:\jbpm\jbpm-installer\target\jbpm-human-task-war\WEB-INF
[copy] Warning: Could not find file C:\jbpm\jbpm-installer\db\task-persistence.xml to copy.
[copy] Warning: Could not find file C:\jbpm\jbpm-installer\db\Taskorm.xml to copy.
[zip] Building zip: C:\jbpm\jbpm-installer\target\jbpm-5.4.0.Final-human-task-war.war
[copy] Copying 1 file to C:\jbpm\jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments
[delete] Deleting directory C:\jbpm\jbpm-installer\target
1. download.form.builder.check:
[echo] Checking Form Builder download ...
1. download.form.builder:
1. install.form.builder.into.jboss:
[mkdir] Created dir: C:\jbpm\jbpm-installer\target
[mkdir] Created dir: C:\jbpm\jbpm-installer\target\jbpm-form-builder-war
[unzip] Expanding: C:\jbpm\jbpm-installer\lib\jbpm-5.4.0.Final-form-builder.war into C:\jbpm\jbpm-installer\target\jbpm-form-builder-war
[copy] Copying 1 file to C:\jbpm\jbpm-installer\target\jbpm-form-builder-war\WEB-INF\classes
[copy] Copying 1 file to C:\jbpm\jbpm-installer\target\jbpm-form-builder-war\WEB-INF\classes
[zip] Building zip: C:\jbpm\jbpm-installer\target\jbpm-5.4.0.Final-form-builder.war
[copy] Copying 1 file to C:\jbpm\jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments
[delete] Deleting directory C:\jbpm\jbpm-installer\target
1. *download.eclipse.check:*
* [echo] Checking Eclipse download ...*
**
1. *download.eclipse:*
* [echo] Getting Eclipse ...*
*[get] Getting: http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/e... http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/e...
*[get] To: C:\jbpm\jbpm-installer\lib\eclipse-java-helios-SR2-win32.zip*
*[get] Error opening connection java.io.FileNotFoundException: http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/e... http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/e...
*[get] Error opening connection java.io.FileNotFoundException: http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/e... http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/e...
*[get] Error opening connection java.io.FileNotFoundException: http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/e... http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/e...
*[get] Can't get http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/e... http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/e... to C:\jbpm\jbpm-installer\lib\eclipse-java-helios-SR2-win*
1. *32.zip*
**
*BUILD FAILED*
*C:\jbpm\jbpm-installer\build.xml:254: Can't get http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/e... http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/e... to C:\jbpm\jbpm-installer\lib\e*
*clipse-java-helios-SR2-win32.zip*
Total time: 1 minute 9 seconds
C:\jbpm\jbpm-installer>
It looks like it can’t find the Helios version. Can I use a later version of Eclipse, like Indigo or Juno? How do I get the jbpm package into Eclipse? Do you have a different installer that uses the latest version of Eclipse? Thanks very much.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/800693#800693]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 6 months