|
From: Patrick Y. <kc...@ce...> - 2003-07-18 12:20:52
|
Hi, Have you got the Request/Config/URL property in msh_client.properties.xml set properly? This property should hold a value pointing to the URL of your MSH. If the problem is still there, you can take a look at the log file. The log file location is specified at MSH/Log properties. There may be some clues. For further questions, please send to ebx...@li.... This is the mailing list dedicated for questions and comments on Hermes. You can subscribe to the list at http://sourceforge.net/projects/ebxmlms. Regards, -Patrick KRISHNAMURTHY.SANJIV KUMAR wrote: > Hi, > > We are trying to deploy Hermes on to Sun ONE Application Server7 and > we are encountering the following exceptions : > > hk.hku.cecid.phoenix.message.handler.RequestException: > Failed to send query to MSH. > HTTP response code = 200 > HTTP response message = OK > at java.lang.Throwable.fillInStackTrace(Native Method) > at java.lang.Throwable.fillInStackTrace(Compiled Code) > at java.lang.Throwable.<init>(Compiled Code) > at java.lang.Exception.<init>(Compiled Code) > at > hk.hku.cecid.phoenix.message.handler.RequestException.<init>(RequestException.java:81) > > at > hk.hku.cecid.phoenix.message.handler.Request.expectMapResponse(Compiled > Code) > at > hk.hku.cecid.phoenix.message.handler.Request.sendMessageServiceHandlerConfig(Request.java:1271) > > at > hk.hku.cecid.phoenix.message.handler.Request.register(Request.java:1180) > at > hk.hku.cecid.phoenix.message.handler.Request.<init>(Request.java:840) > at > hk.hku.cecid.phoenix.message.handler.Request.<init>(Request.java:702) > at LoopBack.run(LoopBack.java:31) > at LoopBack.main(LoopBack.java:11) > > > We got this far by modifying the source Request.java @ - > > /** > * Send configuration information to the message service handler. > * > * @param mshConfig > * @throws RequestException > */ > private static boolean > sendMessageServiceHandlerConfig(MessageServiceHandlerConfig > mshConfig) > throws RequestException { > final Command command = > new Command(CommandConstants.REGISTER_MSH_CONFIG, mshConfig); > final HttpURLConnection connection = sendCommand(command); > Map result = expectMapResponse(connection, > "Cannot register application to MSH"); > String regResult = (String)result.get > (MessageServiceHandler.QUERY_RESULT_REGISTRATION); > > //return regResult.equals("1"); > // ***** OUR MODIFICATION - force return true *****// > System.out.println("return true !"); > return true; > } > > If we do not do the above modification we always get the > NullPointerException @ "return regResult.equals("1")". > > Any help is appreciated. > > Regards, > Peter/Sanjiv. > |