Hello,
you have too change run method by this one :
******************************************************
public void run() {
try {
System.out.println("Sending request.");
String request =
"<getLoanQuoteRequest
xmlns='urn:logicblaze:soa:loanbroker'>\n" +
" <ssn>102-24532-53254</ssn>\n" +
" <amount>" + Math.random() * 100000 + "</amount>\n"
+
" <duration>" + (int) Math.random() * 48 +
"</duration>\n" +
"</getLoanQuoteRequest>";
TextMessage out =
requestor.getSession().createTextMessage(request);
TextMessage in = (TextMessage)
requestor.request(null, out);
if (in == null) {
System.out.println("Response timed
out.");
}
else {
System.out.println("Response: " +
in.getText());
}
} catch (Exception e) {
e.printStackTrace();
} finally {
if (latch != null) {
latch.countDown();
}
}
}
******************************************************
--- gaolinb <[EMAIL PROTECTED]> a écrit :
>
> Hi,
> I have deployed the example loan-broker-bpel
> successfully in the fuse
> platform? And then I used the class JMSClient
> provided by the loanbroker
> example to test the loanbroker-bpel example in the
> fuse platform.
> After i have successfully started loan-broker-sa,I
> run the Java aplication
> with main method JMSClient,but then there was some
> exceptions
> in the console:
>
> Connecting to JMS server.
> log4j:WARN No appenders could be found for logger
>
(org.apache.activemq.transport.WireFormatNegotiator).
> log4j:WARN Please initialize the log4j system
> properly.
> Sending request.
> javax.jms.JMSException:
> EDU.oswego.cs.dl.util.concurrent.TimeoutException
> at
>
org.logicblaze.lingo.jms.impl.MultiplexingRequestor.createJMSException(MultiplexingRequestor.java:155)
> at
>
org.logicblaze.lingo.jms.impl.MultiplexingRequestor.request(MultiplexingRequestor.java:107)
> Closing.
> at
>
org.logicblaze.lingo.jms.impl.MultiplexingRequestor.request(MultiplexingRequestor.java:82)
> at JMSClient.run(JMSClient.java:98)
> at JMSClient.main(JMSClient.java:58)
>
> The following is the information in the fuse server
> console:
>
> ERROR - BaseLifeCycle.onMessageExchange(45) | Error
> processing exchange
> InOut[
> id: ID:lenovo-d15c3c11-1622-1168761374984-34:0
> status: Active
> role: provider
> service:
> {urn:logicblaze:soa:loanbroker}LoanBrokerService
> endpoint: loanbroker
> operation:
> {urn:logicblaze:soa:loanbroker}getLoanQuote
> in: null
> ]
> javax.xml.transform.TransformerException: Unable to
> convert DOM node to a
> Document
> at
>
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMDocument(SourceTransformer.java:434)
> at
>
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMDocument(SourceTransformer.java:386)
> at
>
org.apache.servicemix.bpe.BPEEndpoint.process(BPEEndpoint.java:122)
> at
>
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:410)
> at
>
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:43)
> at
>
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:623)
> at
>
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:169)
> at
>
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:177)
> at
>
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:227)
> at
>
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:291)
> at
>
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
> Source)
> at java.lang.Thread.run(Thread.java:595)
>
> Facing the above problem,now I am very
> confused.Because i don't know how to
> do the following work,can anyone help me?
> Thank you very much!
>
> --
> View this message in context:
>
http://www.nabble.com/How-to-solve-the--JMSException-of-using-JMSClient-to-test-the-the-loanbroker-bpel-example--tf2992421s12049.html#a8340314
> Sent from the ServiceMix - User mailing list archive
> at Nabble.com.
>
>
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur
Yahoo! Questions/Réponses
http://fr.answers.yahoo.com