Am 07.12.12 14:25 schrieb "lawkai" unter <kai....@gmail.com>:

>Hi,
>
>I am completely new to Camel, and while I am going through the example,
>I got this exception while running
>org.apache.camel.component.quickfixj.examples.RequestReplyExample
>
>
>Exception in thread "main" java.io.IOException: Server returned HTTP
>response code: 500 for URL:
>http://localhost:9123/order/status?sessionID=FIX.4.2:TRADER->MARKET&orderI
>D=abc
>       at
>sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnecti
>on.java:1436)
>       at
>org.apache.camel.component.quickfixj.examples.RequestReplyExample.run(Requ
>estReplyExample.java:108)
>       at
>org.apache.camel.component.quickfixj.examples.RequestReplyExample.main(Req
>uestReplyExample.java:65)
>
>
>Does anyone know what went wrong? Or is there some settings that I missed?
>
>Any help would be appreciated.
>

Hi

I tracked this example back to the time as it was donated by Steve Bate:

https://issues.apache.org/jira/browse/CAMEL-4038

"Bad news": yes you're right the example doesn't work, "good news" it
never used to work,
meaning we have not broken any regression by this component which's a good
think to know.

As these examples don't include any unit-tests apparently no body realized
this as it was
integrated into the Apache Camel source. Nevertheless there're three other
examples inside
the same package you can look at (which all work). BTW to see the server
side error (jetty)
you should change the log4j appender to log into the console:

https://svn.apache.org/repos/asf/camel/trunk/components/camel-quickfix/src/
test/resources/log4j.properties

Then you will see the server side exception, part of which is:

2012-12-09 20:11:58,965 [qtp584886224-26] ERROR DefaultErrorHandler
    - Failed delivery for (MessageId:
ID-Babaks-iMac-local-50486-1355080314212-0-18 on ExchangeId:
ID-Babaks-iMac-local-50486-1355080314212-0-17). Exhausted after delivery
attempt: 1 caught: org.apache.camel.ExchangeTimedOutException: The OUT
message was not received within: 1000 millis. Exchange[Message:
8=FIX.4.29=8235=H34=249=TRADER52=20121209-19:11:57.95856=MARKET11=XYZ37=abc
54=155=GOOG10=167]
org.apache.camel.ExchangeTimedOutException: The OUT message was not
received within: 1000 millis. Exchange[Message:
8=FIX.4.29=8235=H34=249=TRADER52=20121209-19:11:57.95856=MARKET11=XYZ37=abc
54=155=GOOG10=167]
        at 
org.apache.camel.component.quickfixj.MessageCorrelator$1.call(MessageCorrel
ator.java:49)
        at 
org.apache.camel.component.quickfixj.MessageCorrelator$1.call(MessageCorrel
ator.java:1)
Š



The problem is that a callback does not happen on MessageCorrelator (for
whatever reason)
causing a missing response. Patches are more than welcome, if you want to
dig into this
and fix this example:

http://camel.apache.org/contributing.html

IMHO in the worst case we could also remove this example from the
repository as it never used
to work and we've got three other examples inside the same package which
do work.

Babak


>
>
>
>
>--
>View this message in context:
>http://camel.465427.n5.nabble.com/camel-quickfix-RequestReplyExample-java-
>io-IOException-tp5723769.html
>Sent from the Camel - Users mailing list archive at Nabble.com.


Reply via email to