Limitation of Message Size in Hermes2

96 views
Skip to first unread message

Phearin Sok

unread,
Apr 22, 2014, 1:06:28 AM4/22/14
to cecid-...@googlegroups.com
Dear all,

I'm currently trying to develop an application which uses Hermes2. But it seems that using Hermes2 I couldn't send ebXML messages with larger size (more than 1024kb message size).
My question is that if there are any other configurations to enable sending messages with larger size in Hermes2?

Any helps or ideas are highly appreciated.

Thanks

Torsten Kirschner

unread,
Apr 22, 2014, 4:30:16 AM4/22/14
to cecid-...@googlegroups.com
Not that I remember. What was the error message/exception you got?
--
You received this message because you are subscribed to the Google Groups "Hermes 2.0 Discussion List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cecid-hermes...@googlegroups.com.
To post to this group, send email to cecid-...@googlegroups.com.
Visit this group at http://groups.google.com/group/cecid-hermes2.
For more options, visit https://groups.google.com/d/optout.

Phearin Sok

unread,
Apr 22, 2014, 4:48:58 AM4/22/14
to cecid-...@googlegroups.com
There was no error shown. The message id is null in return once i send a message with the size larger than 1mb, and i couldn't find the message in the database.
The following is the output of running the sample script (ebms-send.sh):
herms_user@ubuntu-gnome:~/local/jentrata-msh-tomcat/sample$ ./ebms-send.sh 
./config/ebms-partnership.xml ./config/ebms-send/ebms-request.xml ./logs/ebms-send.log ./config/ebms-send/testpayload
/home/asyw/local/jdk1.6.0_31/bin/java -cp ./lib/commons-codec-1.3.jar:./lib/commons-fileupload-1.2.jar:./lib/commons-httpclient-3.1.jar:./lib/commons-logging-1.0.4.jar:./lib/corvus-ws-util.jar:./lib/dom4j-1.6.1.jar:./lib/jaxen-1.1.1.jar:./lib/jentrata-commons-2.x-SNAPSHOT.jar:./lib/jentrata-commons-ext-2.x-SNAPSHOT.jar:./lib/jtidy-4aug2000r7-dev.jar:./lib/log4j-1.2.13.jar:./lib/mail-1.4.1.jar:./lib/slf4j-api-1.4.3.jar:./lib/slf4j-log4j12-1.4.3.jar: hk.hku.cecid.corvus.ws.EBMSMessageSender ./config/ebms-partnership.xml ./config/ebms-send/ebms-request.xml ./logs/ebms-send.log ./config/ebms-send/testpayload
----------------------------------------------------
          EbMS sender web service client            
----------------------------------------------------
Initialize Logger ... 
Importing  ebMS sending parameters ... ./config/ebms-send/ebms-request.xml
Importing  ebMS partnership parameters ... ./config/ebms-partnership.xml
Initialize ebMS web service client... 
Adding     payload in the ebMS message... 
Sending    ebMS sending request ... 

                    Sending Done:                   
----------------------------------------------------
New message id: null

But if the message size is less than 1mb, Hermes2 will generate an id for the sent message. 

On Tuesday, April 22, 2014 3:30:16 PM UTC+7, T.K. wrote:
Not that I remember. What was the error message/exception you got?

Den tirsdag 22. april 2014 skrev Phearin Sok <phear...@gmail.com> følgende:
Dear all,

I'm currently trying to develop an application which uses Hermes2. But it seems that using Hermes2 I couldn't send ebXML messages with larger size (more than 1024kb message size).
My question is that if there are any other configurations to enable sending messages with larger size in Hermes2?

Any helps or ideas are highly appreciated.

Thanks

--
You received this message because you are subscribed to the Google Groups "Hermes 2.0 Discussion List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cecid-hermes2+unsubscribe@googlegroups.com.

med Web-Developper

unread,
Apr 22, 2014, 5:41:55 AM4/22/14
to cecid-...@googlegroups.com
Good morning,

Please try to write the log for this file when you send the message: /logs/ebms-send.log 
Also can i know the content of the message is it image or text ? 
Thanks.

HK Tan

unread,
Apr 22, 2014, 10:34:48 PM4/22/14
to cecid-...@googlegroups.com
Hi Phearin
My setup is using MySQL
Hermes stores it as a BLOB in the MySQL
You may need to change the property of the max_allowed_packet needs to be changed to 32MB and restart the MySQL
if you see jdbc errors in the heremes log
 


--
You received this message because you are subscribed to the Google Groups "Hermes 2.0 Discussion List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cecid-hermes...@googlegroups.com.

Phearin Sok

unread,
Apr 22, 2014, 11:31:34 PM4/22/14
to cecid-...@googlegroups.com
Dear all,

Thanks very much for your helps.
it works fine now after I have tried to set max_allowed_packet in mysql as kopi recommended as following:

Change in the my.ini file (or my.conf for lampstack). Include the single line under [mysqld] in the file

max_allowed_packet=32M

now restart the MySQL service and it's done

Reply all
Reply to author
Forward
0 new messages