|
From: Michal S. <sa...@se...> - 2003-06-23 17:03:30
|
Hi Patrick, I tried to change code so that there is only one program running but it still didn't help. HempClient now implements MessageListener and creates request with itself as a listener. But it still throws RequestException when I try to create that request. Problem arises when I change getClientUrl() from returning null to returning a path to a local folder. I tried running it with getClientUrl() returning null sending messages to itself and it returned all messages as undelivered. I'd guess it was caused by getClientUrl() returning null. Source files of both Client and MessageListener are attached. Michal ----- Original Message ----- > Hi Michal, > > Is you HempClientMessageListener implementing MessageListener interface? > Or it extends from MessageListenerImpl? If possible, please attach the > source code to us so that we can have a better understanding on your > situation. Thanks. > > Regards, -Patrick > P.S. I am forwarding this to the mailing list dedicated to Hermes > discussions. You may want to subscribe to it at > http://sourceforge.net/projects/ebxmlms. > > > Michal Sankot wrote: > > >Hi, > >I dowloaded Hermes installation from freebXML.org and tried to develop some > >simple client using ebMS. > >I get en error message though when I try to run it. As your email address is > >the only one I found related to Hermes, I address my enquiry to you. > > > >My program consist of 2 files so far - HempClient and > >HempClientMessageListener. > >Problem arises when HempClient passes HempClientMessageListener to Request > >constructor. I get an error message: > > > >-------------------------------------------------------------------------- > >Cannot create request object. RequestException. > >hk.hku.cecid.phoenix.message.handler.RequestException: > > Failed to send query to MSH. > > HTTP response code = 409 > > HTTP response message = HTTP POST submitted to MessageServiceHandler failed: java.lang.ClassNotFoundException: hemp.HempClient > > at hk.hku.cecid.phoenix.message.handler.Request.expectMapResponse(Request.java: 1777) > > at hk.hku.cecid.phoenix.message.handler.Request.sendMessageServiceHandlerConfig (Request.java:1270) > > at hk.hku.cecid.phoenix.message.handler.Request.register(Request.java:1179) > > at hk.hku.cecid.phoenix.message.handler.Request.<init>(Request.java:839) > > at hemp.HempClient.initializeClient(HempClient.java:116) > > at hemp.HempClient.run(HempClient.java:73) > > at hemp.HempClient.main(HempClient.java:63) > >Process terminated with exit code 0 > >-------------------------------------------------------------------------- > > > >Why is it so ? I thought that I register MessageListener to react on > >messages on CLIENT side, not server side, so there shouldn't be any problem > >with classpath. > >Please tell me where the problem is, or forward my enquery to a person who > >would be able to solve it. > > > >Thank you > >Michal Sankot > >Ireland |