run sample

60 views
Skip to first unread message

mic

unread,
Feb 2, 2009, 5:23:05 AM2/2/09
to Hermes 2.0 Discussion List
I have already deployed hermes2 on a Glassfish server and could
successfully access to the hermes2 administration console page. Then,
i tried to run the sample provided by hermes2 but got the following
error in ebms.log. The message is in pending status and couldn't be
sent to the inbox. Any ideas? thanks

2009-02-02 17:35:00 [read-48755-1] <INFO > <cecid.ebms.spa> <Store
outgoing message: 2009
0202-173...@192.168.18.13>
2009-02-02 17:35:00 [read-48755-1] <INFO > <cecid.ebms.spa> <Outbound
payload processed -
cpaId: cpaid, service: http://localhost:48755/corvus/httpd/ebms/inbound,
action: action,
convId: convId, fromPartyId: fromPartyId, fromPartyType:
fromPartyType, toPartyId: toPar
tyId, toPartyType: toPartyType, refToMessageId: null>
2009-02-02 17:35:01 [Thread-30 ] <ERROR> <cecid.ebms.spa> <Internal
Server Error: >
hk.hku.cecid.piazza.commons.dao.DAOException: Error in executing
hk.hku.cecid.ebms.spa.da
o.MessageDataSourceDAO::Process@ee7417
by hk.hku.cecid.piazza.commons.dao.DAOException: Error in
executing update: UPDAT
E message SET ref_to_message_id=?, message_id=?, sync_reply=?,
timeout_time_stamp=?, sequ
ence_status=?, to_party_role=?, status=?, service=?, time_to_live=?,
message_type=?, mess
age_box=?, from_party_role=?, to_party_id=?, sequence_group=?,
dup_elimination=?, cpa_id=
?, status_description=?, from_party_id=?, sequence_no=?,
ack_sign_requested=?, action=?,
time_stamp=?, conv_id=?, ack_requested=? WHERE message_id=? AND
message_box=?
by hk.hku.cecid.piazza.commons.dao.DAOException: Error
occurred when executing up
date at row 0 of the specified parameter array
by java.lang.NullPointerException
at hk.hku.cecid.piazza.commons.dao.ds.DataSourceProcess.start
(DataSourceProcess.j
ava:97)
at hk.hku.cecid.piazza.commons.dao.ds.DataSourceProcess.start
(DataSourceProcess.j
ava:97)
at
hk.hku.cecid.piazza.commons.dao.ds.DataSourceDAO.executeUpdate
(DataSourceDAO.j
ava:588)
at
hk.hku.cecid.piazza.commons.dao.ds.DataSourceDAO.executeUpdate
(DataSourceDAO.j
ava:548)
at
hk.hku.cecid.piazza.commons.dao.ds.DataSourceDAO.executeUpdate
(DataSourceDAO.j
ava:528)
at hk.hku.cecid.piazza.commons.dao.ds.DataSourceDAO.persist
(DataSourceDAO.java:67
2)
at hk.hku.cecid.piazza.commons.dao.ds.DataSourceDAO.persist
(DataSourceDAO.java:65
1)
at hk.hku.cecid.ebms.spa.dao.MessageDataSourceDAO.updateMessage
(MessageDataSource
DAO.java:52)
at hk.hku.cecid.ebms.spa.task.OutboxTask.<init>
(OutboxTask.java:148)
at hk.hku.cecid.ebms.spa.task.OutboxCollector.getTaskList
(OutboxCollector.java:68
)
at hk.hku.cecid.piazza.commons.module.ActiveTaskModule.execute
(ActiveTaskModule.j
ava:137)
at hk.hku.cecid.piazza.commons.module.ActiveModule.run
(ActiveModule.java:213)
at java.lang.Thread.run(Thread.java:619)
:

Philip Wong

unread,
Feb 4, 2009, 10:23:32 AM2/4/09
to Hermes 2.0 Discussion List
Hi,

I have no idea what happened yet honestly.
How about any error showed in other log, e.g. server.log?

Philip

On Feb 2, 6:23 pm, mic <mic0...@yahoo.com.hk> wrote:
> I have already deployed hermes2 on a Glassfish server and could
> successfully access to the hermes2 administration console page. Then,
> i tried to run the sample provided by hermes2 but got the following
> error in ebms.log. The message is in pending status and couldn't be
> sent to the inbox. Any ideas? thanks
>
> 2009-02-02 17:35:00 [read-48755-1] <INFO > <cecid.ebms.spa> <Store
> outgoing message: 2009
> 0202-173455-16...@192.168.18.13>

Philip Wong

unread,
Feb 4, 2009, 10:41:34 AM2/4/09
to Hermes 2.0 Discussion List
Please check corvus.log in Hermes home /logs also.

mic

unread,
Feb 4, 2009, 10:30:01 PM2/4/09
to Hermes 2.0 Discussion List
Problem has been solved after applying the updated jdbc driver. But I
encountered another problem. Here is the error shown in the ebms.log

2009-02-05 10:45:44 [Thread-549 ] <ERROR> <cecid.ebms.spa> <Error in
outbox task>
hk.hku.cecid.ebms.spa.task.MessageValidationException: Cannot
reconstruct the message 20090205-1
04543...@192.168.18.13 from repository
by com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to
internalize message
by java.lang.Exception: Missing Start Boundary, or boundary
does not start on a new line
at
hk.hku.cecid.ebms.spa.handler.EbxmlMessageDAOConvertor.getEbxmlMessage
(EbxmlMessageDA
OConvertor.java:369)
at hk.hku.cecid.ebms.spa.task.OutboxTask.execute
(OutboxTask.java:348)
at hk.hku.cecid.piazza.commons.module.ActiveThread.run
(ActiveThread.java:90)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to
internalize message
at com.sun.xml.messaging.saaj.soap.MessageImpl.init
(MessageImpl.java:506)
at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>
(MessageImpl.java:309)
at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.<init>
(Message1_1Impl.java:99)
at
com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.createMessage
(SOAPMe
ssageFactory1_1Impl.java:93)
at
hk.hku.cecid.ebms.spa.handler.EbxmlMessageDAOConvertor.getEbxmlMessage
(EbxmlMessageDA
OConvertor.java:363)
... 3 more
Caused by: java.lang.Exception: Missing Start Boundary, or boundary
does not start on a new line
at
com.sun.xml.messaging.saaj.packaging.mime.internet.BMMimeMultipart.getNextPart
(BMMime
Multipart.java:268)
at com.sun.xml.messaging.saaj.soap.MessageImpl.init
(MessageImpl.java:460)
... 7 more

I have found the solution from the internet and followed it to replace
the saaj-api.jar and saaj-impl.jar file in both corvus/WEB-INF/lib and
hermes/sample/lib directories with a new version (version 1.3 is
used). But it still doesn't work. Do you have any idea? Thanks. (JDK
1.6 is used)

Philip Wong

unread,
Feb 5, 2009, 1:56:56 AM2/5/09
to Hermes 2.0 Discussion List
Hi,

We have tried using Glassfish with JDK1.5
To do that, we moved these libraries from corvus webapp to <GLASSFISH>/
lib/endorsed
- mail.jar
- saaj-impl.jar
- saaj-api.jar

I think it may not work in JDK1.6

However, there's a good news for you.
H2O will officially support JDK1.6 very soon. And it has been testing
using Glassfish with JDK1.6
So, I hope you can wait a while.

Let me know if any problem.

Thanks,
Philip


On Feb 5, 11:30 am, mic <mic0...@yahoo.com.hk> wrote:
> Problem has been solved after applying the updated jdbc driver. But I
> encountered another problem. Here is the error shown in the ebms.log
>
> 2009-02-05 10:45:44 [Thread-549  ] <ERROR> <cecid.ebms.spa> <Error in
> outbox task>
> hk.hku.cecid.ebms.spa.task.MessageValidationException: Cannot
> reconstruct the message 20090205-1
> 04543-00...@192.168.18.13 from repository

mic

unread,
Feb 5, 2009, 5:43:51 AM2/5/09
to Hermes 2.0 Discussion List
I have tried your solution with JDK 1.6 but still got the same error.
Someone said that the problem can be fixed by passing the environment
parameters. Do you have any idea on it? thanks
http://forums.sun.com/thread.jspa?threadID=5224427&tstart=195

Philip Wong

unread,
Feb 5, 2009, 11:00:55 AM2/5/09
to Hermes 2.0 Discussion List
You're right, the reason of the problem is the change of interface /
package in SAAJ.
The solution from Java forum may fix it as well, I think worth to try.

Philip
Reply all
Reply to author
Forward
0 new messages