|
From: Amir K. <am...@de...> - 2006-05-08 10:33:51
|
Hi,
I've struggled to get this working but right now I have the webapp
deployed in tomcat. I am using MySQL and have imported the schema(s).
What I've found is that I can send a loop back test to the server. and I
see a file appear in the repository folders, however when deserializing
the XML back to an object the AS2 engine seems to have a problem with
classcasting.
e.g.
2006-05-08 11:04:45 [Thread-6 ] <DEBUG> <AS2 Message
[20060508-110432-34101@127.0.0.1, From: Sender, To: Receiver] is being
captured>
2006-05-08 11:04:45 [Thread-6 ] <DEBUG> <Clearing cache of AS2
Message [20060508-110432-34101@127.0.0.1, From: Sender, To: Receiver]: true>
2006-05-08 11:04:46 [Thread-7 ] <ERROR> <Outgoing message task failure>
java.lang.ClassCastException
at
hk.hku.cecid.edi.as2.dao.RepositoryDataSourceDVO.getContent(RepositoryDataSourceDVO.java:34)
at
hk.hku.cecid.edi.as2.module.OutgoingMessageTask.execute(OutgoingMessageTask.java:75)
at
hk.hku.cecid.piazza.commons.module.ActiveThread.run(ActiveThread.java:90)
at
hk.hku.cecid.piazza.commons.module.ActiveTaskModule.execute(ActiveTaskModule.java:150)
at
hk.hku.cecid.piazza.commons.module.ActiveModule.run(ActiveModule.java:205)
at java.lang.Thread.run(Thread.java:534)
2006-05-08 11:05:32 [-Processor24] <INFO > <Message Receiver received
request - From: Sender, To: Receiver, Number of Messages: -1>
2006-05-08 11:05:46 [Thread-7 ] <ERROR> <Outgoing message task failure>
hk.hku.cecid.edi.as2.AS2Exception: No repository found for outgoing AS2
message: 20060508-110432-34101@127.0.0.1
at
hk.hku.cecid.edi.as2.module.OutgoingMessageTask.execute(OutgoingMessageTask.java:112)
at
hk.hku.cecid.piazza.commons.module.ActiveThread.run(ActiveThread.java:90)
at
hk.hku.cecid.piazza.commons.module.ActiveTaskModule.execute(ActiveTaskModule.java:150)
at
hk.hku.cecid.piazza.commons.module.ActiveModule.run(ActiveModule.java:205)
at java.lang.Thread.run(Thread.java:534)
Looking in the database the message table is empty (unsure why we have
this if we are persisting to the file system??). Looking in the file
system i see
as2-incoming-repository <-- empty after message send.
as2-message-repository <- messages appear in here
as2-outgoing-repository <-- empty
Here is the run log (from client)
[amir@khan server_test]$ ./loopback.sh as2
- Module 'Corvus Partnership' initialized successfully.
Start sending AS2 loopback test case.
Sent AS2 loopback test case with returned message ID
20060508-110432-34101@127.0.0.1.
Start checking the received list.
No messages.
End checking the received list.
============================
AS2 loop back test finished.
============================
[amir@khan server_test]$
|