Class Cast exception on received message

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Class Cast exception on received message

Ishmael Rufus
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



I seem to be running into an issue on a resend request for the message below:

<20150921-20:20:46, FIX.4.2:[REDACTED]->Gateway, incoming> (8=FIX.4.2^A9=602^A35=8^A49=[REDACTED]^A56=[REDACTED]^A34=332^A57=[REDACTED]^A129=[REDACTED]^A43=Y^A52=20150921-20:20:46.514^A122=20150921-20:00:00.133^A150=2^A20=0^A20026=[REDACTED]^A1=[REDACTED]^A37=471783589^A198=6F0D-40E4A39AAAAAAAAB^A20111=20150921-20:00:00.097^A20029=471783589^A39=2^A40=1^A55=F.US.EPZ15^A54=2^A14=1.0000^A151=0.0000^A38=1.0000^A59=0^A1028=N^A17=784032739^A60=20150921-20:00:00.127^A50526=OrderID471783589^A6=1957.00000000^A31=1957.00000000^A32=1.0000^A11=CQG_471783589^A15=USD^A20023=20150921-00:00:00.000^A50715=20150921-00:00:00.000^A20027=59519639^A20122=118CA-40E4A39AAAAAAAAB_20150921^A20014=[REDACTED]^A20010=[REDACTED]^A10=018^A)

Which throws the following error:

<20150921-20:20:46, FIX.4.2:[REDACTED]->Gateway, error> (java.lang.ClassCastException
quickfix.RuntimeError: java.lang.ClassCastException
        at quickfix.Session.next(Session.java:1095)
        at quickfix.mina.SingleThreadedEventHandlingStrategy$SessionMessageEvent.processMessage(SingleThreadedEventHandlingStrategy.java:114)
        at quickfix.mina.SingleThreadedEventHandlingStrategy.block(SingleThreadedEventHandlingStrategy.java:77)
        at quickfix.mina.SingleThreadedEventHandlingStrategy$1.run(SingleThreadedEventHandlingStrategy.java:94)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassCastException

I'm not sure why this seems to occur on a resend request. Yet after this exception gets thrown my application continues to try to get the last message but ends up stuck in a request loop with this exception being thrown each time.

--
Ishmael Rufus - Programmer 
Ditto Holdings, Inc. 
200 W. Monroe St. 
Suite 1430
Chicago, IL 60606
(312)263-5400

------------------------------------------------------------------------------

_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Class Cast exception on received message

Christoph John
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


Hi,

is this the full stack trace? Which version of QFJ are you using? Did you try a newer one (if youare
not already using 1.6.1)

Cheers,
Chris.



On 22/09/15 19:30, Ishmael Rufus wrote:

> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
>
>
> *I seem to be running into an issue on a resend request for the message below:
> *
> <20150921-20:20:46, FIX.4.2:[REDACTED]->Gateway, incoming>
> (8=FIX.4.2^A9=602^A35=8^A49=[REDACTED]^A56=[REDACTED]^A34=332^A57=[REDACTED]^A129=[REDACTED]^A43=Y^A52=20150921-20:20:46.514^A122=20150921-20:00:00.133^A150=2^A20=0^A20026=[REDACTED]^A1=[REDACTED]^A37=471783589^A198=6F0D-40E4A39AAAAAAAAB^A20111=20150921-20:00:00.097^A20029=471783589^A39=2^A40=1^A55=F.US.EPZ15^A54=2^A14=1.0000^A151=0.0000^A38=1.0000^A59=0^A1028=N^A17=784032739^A60=20150921-20:00:00.127^A50526=OrderID471783589^A6=1957.00000000^A31=1957.00000000^A32=1.0000^A11=CQG_471783589^A15=USD^A20023=20150921-00:00:00.000^A50715=20150921-00:00:00.000^A20027=59519639^A20122=118CA-40E4A39AAAAAAAAB_20150921^A20014=[REDACTED]^A20010=[REDACTED]^A10=018^A)
>
> *Which throws the following error:*
>
> <20150921-20:20:46, FIX.4.2:[REDACTED]->Gateway, error> (java.lang.ClassCastException
> quickfix.RuntimeError: java.lang.ClassCastException
>         at quickfix.Session.next(Session.java:1095)
>         at
> quickfix.mina.SingleThreadedEventHandlingStrategy$SessionMessageEvent.processMessage(SingleThreadedEventHandlingStrategy.java:114)
>         at
> quickfix.mina.SingleThreadedEventHandlingStrategy.block(SingleThreadedEventHandlingStrategy.java:77)
>         at
> quickfix.mina.SingleThreadedEventHandlingStrategy$1.run(SingleThreadedEventHandlingStrategy.java:94)
>         at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.ClassCastException
>
> I'm not sure why this seems to occur on a resend request. Yet after this exception gets thrown my
> application continues to try to get the last message but ends up stuck in a request loop with this
> exception being thrown each time.
>
> --
> Ishmael Rufus - Programmer
> Ditto Holdings, Inc.
> 200 W. Monroe St.
> Suite 1430
> Chicago, IL 60606
> (312)263-5400
>
>
> ------------------------------------------------------------------------------
>
>
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:[hidden email]
       


http://www.macd.com <http://www.macd.com/>
----------------------------------------------------------------------------------------------------
       
----------------------------------------------------------------------------------------------------
MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
         Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald
----------------------------------------------------------------------------------------------------
       
----------------------------------------------------------------------------------------------------

take care of the environment - print only if necessary

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Class Cast exception on received message

Charles Briquel
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


Hi,
 
Can't help on this pbm, but may be you can update the quickfix.LogUtil::logThrowable(Log log, String message, Throwable t) method like this to print the stack trace of the cause of the exception…
 
 
    public static void logThrowable(Log log, String message, Throwable t) {
        final StringWriter stringWriter = new StringWriter();
        final PrintWriter printWriter = new PrintWriter(stringWriter);
        printWriter.println(message);
        t.printStackTrace(printWriter);
        if(t.getCause() != null) {
            printWriter.println("\nCause: " + t.getCause().getMessage());
            t.getCause().printStackTrace(printWriter);
        }
        log.onErrorEvent(stringWriter.toString());
    }
 
Regards,
 
Charles



> Le 23 sept. 2015 à 11:49, Christoph John <[hidden email]> a écrit :
>
> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
> Hi,
>
> is this the full stack trace? Which version of QFJ are you using? Did you try a newer one (if youare
> not already using 1.6.1)
>
> Cheers,
> Chris.
>
>
>
>> On 22/09/15 19:30, Ishmael Rufus wrote:
>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
>> QuickFIX/J Support: http://www.quickfixj.org/support/
>>
>>
>>
>>
>> *I seem to be running into an issue on a resend request for the message below:
>> *
>> <20150921-20:20:46, FIX.4.2:[REDACTED]->Gateway, incoming>
>> (8=FIX.4.2^A9=602^A35=8^A49=[REDACTED]^A56=[REDACTED]^A34=332^A57=[REDACTED]^A129=[REDACTED]^A43=Y^A52=20150921-20:20:46.514^A122=20150921-20:00:00.133^A150=2^A20=0^A20026=[REDACTED]^A1=[REDACTED]^A37=471783589^A198=6F0D-40E4A39AAAAAAAAB^A20111=20150921-20:00:00.097^A20029=471783589^A39=2^A40=1^A55=F.US.EPZ15^A54=2^A14=1.0000^A151=0.0000^A38=1.0000^A59=0^A1028=N^A17=784032739^A60=20150921-20:00:00.127^A50526=OrderID471783589^A6=1957.00000000^A31=1957.00000000^A32=1.0000^A11=CQG_471783589^A15=USD^A20023=20150921-00:00:00.000^A50715=20150921-00:00:00.000^A20027=59519639^A20122=118CA-40E4A39AAAAAAAAB_20150921^A20014=[REDACTED]^A20010=[REDACTED]^A10=018^A)
>>
>> *Which throws the following error:*
>>
>> <20150921-20:20:46, FIX.4.2:[REDACTED]->Gateway, error> (java.lang.ClassCastException
>> quickfix.RuntimeError: java.lang.ClassCastException
>>        at quickfix.Session.next(Session.java:1095)
>>        at
>> quickfix.mina.SingleThreadedEventHandlingStrategy$SessionMessageEvent.processMessage(SingleThreadedEventHandlingStrategy.java:114)
>>        at
>> quickfix.mina.SingleThreadedEventHandlingStrategy.block(SingleThreadedEventHandlingStrategy.java:77)
>>        at
>> quickfix.mina.SingleThreadedEventHandlingStrategy$1.run(SingleThreadedEventHandlingStrategy.java:94)
>>        at java.lang.Thread.run(Thread.java:619)
>> Caused by: java.lang.ClassCastException
>>
>> I'm not sure why this seems to occur on a resend request. Yet after this exception gets thrown my
>> application continues to try to get the last message but ends up stuck in a request loop with this
>> exception being thrown each time.
>>
>> --
>> Ishmael Rufus - Programmer
>> Ditto Holdings, Inc.
>> 200 W. Monroe St.
>> Suite 1430
>> Chicago, IL 60606
>> (312)263-5400
>>
>>
>> ------------------------------------------------------------------------------
>>
>>
>> _______________________________________________
>> Quickfixj-users mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/quickfixj-users
>
> --
> Christoph John
> Development & Support
> Direct: +49 241 557080-28
> Mailto:[hidden email]
>    
>
>
> http://www.macd.com <http://www.macd.com/>
> ----------------------------------------------------------------------------------------------------
>    
> ----------------------------------------------------------------------------------------------------
> MACD GmbH
> Oppenhoffallee 103
> D-52066 Aachen
> Tel: +49 241 557080-0 | Fax: +49 241 557080-10
>     Amtsgericht Aachen: HRB 8151
> Ust.-Id: DE 813021663
>
> Geschäftsführer: George Macdonald
> ----------------------------------------------------------------------------------------------------
>    
> ----------------------------------------------------------------------------------------------------
>
> take care of the environment - print only if necessary
>
> ------------------------------------------------------------------------------
> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> Get real-time metrics from all of your servers, apps and tools
> in one place.
> SourceForge users - Click here to start your Free Trial of Datadog now!
> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Class Cast exception on received message

Ishmael Rufus
In reply to this post by Christoph John
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



"Which version of QFJ are you using?"

1.5.3.  I will try to see if i get the same issue in 1.6.1

On Wed, Sep 23, 2015 at 4:49 AM, Christoph John <[hidden email]> wrote:
QuickFIX/J Documentation: <a href="http://www.quickfixj.org/documentation/ QuickFIX/J" rel="noreferrer" target="_blank">http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


Hi,

is this the full stack trace? Which version of QFJ are you using? Did you try a newer one (if youare
not already using 1.6.1)

Cheers,
Chris.



On 22/09/15 19:30, Ishmael Rufus wrote:
> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
>
>
> *I seem to be running into an issue on a resend request for the message below:
> *
> <<a href="tel:20150921-20" value="+12015092120">20150921-20:20:46, FIX.4.2:[REDACTED]->Gateway, incoming>
> (8=FIX.4.2^A9=602^A35=8^A49=[REDACTED]^A56=[REDACTED]^A34=332^A57=[REDACTED]^A129=[REDACTED]^A43=Y^A52=20150921-20:20:46.514^A122=20150921-20:00:00.133^A150=2^A20=0^A20026=[REDACTED]^A1=[REDACTED]^A37=471783589^A198=6F0D-40E4A39AAAAAAAAB^A20111=20150921-20:00:00.097^A20029=471783589^A39=2^A40=1^A55=F.US.EPZ15^A54=2^A14=1.0000^A151=0.0000^A38=1.0000^A59=0^A1028=N^A17=784032739^A60=20150921-20:00:00.127^A50526=OrderID471783589^A6=1957.00000000^A31=1957.00000000^A32=1.0000^A11=CQG_471783589^A15=USD^A20023=20150921-00:00:00.000^A50715=20150921-00:00:00.000^A20027=59519639^A20122=118CA-40E4A39AAAAAAAAB_20150921^A20014=[REDACTED]^A20010=[REDACTED]^A10=018^A)
>
> *Which throws the following error:*
>
> <<a href="tel:20150921-20" value="+12015092120">20150921-20:20:46, FIX.4.2:[REDACTED]->Gateway, error> (java.lang.ClassCastException
> quickfix.RuntimeError: java.lang.ClassCastException
>         at quickfix.Session.next(Session.java:1095)
>         at
> quickfix.mina.SingleThreadedEventHandlingStrategy$SessionMessageEvent.processMessage(SingleThreadedEventHandlingStrategy.java:114)
>         at
> quickfix.mina.SingleThreadedEventHandlingStrategy.block(SingleThreadedEventHandlingStrategy.java:77)
>         at
> quickfix.mina.SingleThreadedEventHandlingStrategy$1.run(SingleThreadedEventHandlingStrategy.java:94)
>         at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.ClassCastException
>
> I'm not sure why this seems to occur on a resend request. Yet after this exception gets thrown my
> application continues to try to get the last message but ends up stuck in a request loop with this
> exception being thrown each time.
>
> --
> Ishmael Rufus - Programmer
> Ditto Holdings, Inc.
> 200 W. Monroe St.
> Suite 1430
> Chicago, IL 60606
> (312)263-5400
>
>
> ------------------------------------------------------------------------------
>
>
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: <a href="tel:%2B49%20241%20557080-28" value="+4924155708028">+49 241 557080-28
Mailto:[hidden email]



http://www.macd.com <http://www.macd.com/>
----------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------
MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: <a href="tel:%2B49%20241%20557080-0" value="+492415570800">+49 241 557080-0 | Fax: <a href="tel:%2B49%20241%20557080-10" value="+4924155708010">+49 241 557080-10
         Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald
----------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------

take care of the environment - print only if necessary

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users



--
Ishmael Rufus - Programmer 
Ditto Holdings, Inc. 
200 W. Monroe St. 
Suite 1430
Chicago, IL 60606
(312)263-5400

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Class Cast exception on received message

Christoph John
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



OK, I thought maybe you were using 1.6.0.
With 1.5.3 I never heard of such a problem. Are you using a custom MessageFactory or similar? I cannot really tell from the stack trace but it might also be that the error is in your user code. What are you doing in fromApp() or fromAdmin()? Specifically in fromAdmin() since the problem occurs on a ResendRequest.

Chris.

On 23/09/15 20:22, Ishmael Rufus wrote:
"Which version of QFJ are you using?"

1.5.3.  I will try to see if i get the same issue in 1.6.1

On Wed, Sep 23, 2015 at 4:49 AM, Christoph John <[hidden email]> wrote:
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J
Support: http://www.quickfixj.org/support/


Hi,

is this the full stack trace? Which version of QFJ are you using? Did you try a newer one (if youare
not already using 1.6.1)

Cheers,
Chris.



On 22/09/15 19:30, Ishmael Rufus wrote:
> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
>
>
> *I seem to be running into an issue on a resend request for the message below:
> *
> <<a moz-do-not-send="true" href="tel:20150921-20" value="+12015092120">20150921-20:20:46, FIX.4.2:[REDACTED]->Gateway, incoming>
> (8=FIX.4.2^A9=602^A35=8^A49=[REDACTED]^A56=[REDACTED]^A34=332^A57=[REDACTED]^A129=[REDACTED]^A43=Y^A52=20150921-20:20:46.514^A122=20150921-20:00:00.133^A150=2^A20=0^A20026=[REDACTED]^A1=[REDACTED]^A37=471783589^A198=6F0D-40E4A39AAAAAAAAB^A20111=20150921-20:00:00.097^A20029=471783589^A39=2^A40=1^A55=F.US.EPZ15^A54=2^A14=1.0000^A151=0.0000^A38=1.0000^A59=0^A1028=N^A17=784032739^A60=20150921-20:00:00.127^A50526=OrderID471783589^A6=1957.00000000^A31=1957.00000000^A32=1.0000^A11=CQG_471783589^A15=USD^A20023=20150921-00:00:00.000^A50715=20150921-00:00:00.000^A20027=59519639^A20122=118CA-40E4A39AAAAAAAAB_20150921^A20014=[REDACTED]^A20010=[REDACTED]^A10=018^A)
>
> *Which throws the following error:*
>
> <<a moz-do-not-send="true" href="tel:20150921-20" value="+12015092120">20150921-20:20:46, FIX.4.2:[REDACTED]->Gateway, error> (java.lang.ClassCastException
> quickfix.RuntimeError: java.lang.ClassCastException
>         at quickfix.Session.next(Session.java:1095)
>         at
> quickfix.mina.SingleThreadedEventHandlingStrategy$SessionMessageEvent.processMessage(SingleThreadedEventHandlingStrategy.java:114)
>         at
> quickfix.mina.SingleThreadedEventHandlingStrategy.block(SingleThreadedEventHandlingStrategy.java:77)
>         at
> quickfix.mina.SingleThreadedEventHandlingStrategy$1.run(SingleThreadedEventHandlingStrategy.java:94)
>         at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.ClassCastException
>
> I'm not sure why this seems to occur on a resend request. Yet after this exception gets thrown my
> application continues to try to get the last message but ends up stuck in a request loop with this
> exception being thrown each time.
>
> --
> Ishmael Rufus - Programmer
> Ditto Holdings, Inc.
> 200 W. Monroe St.
> Suite 1430
> Chicago, IL 60606
> (312)263-5400
>
>
> ------------------------------------------------------------------------------
>
>
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: <a moz-do-not-send="true" href="tel:%2B49%20241%20557080-28" value="+4924155708028">+49 241 557080-28
Mailto:[hidden email]



http://www.macd.com <http://www.macd.com/>
----------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------
MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: <a moz-do-not-send="true" href="tel:%2B49%20241%20557080-0" value="+492415570800">+49 241 557080-0 | Fax: <a moz-do-not-send="true" href="tel:%2B49%20241%20557080-10" value="+4924155708010">+49 241 557080-10
         Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald
----------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------

take care of the environment - print only if necessary

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users



--
Ishmael Rufus - Programmer 
Ditto Holdings, Inc. 
200 W. Monroe St. 
Suite 1430
Chicago, IL 60606
(312)263-5400

--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:Christoph.John@...



http://www.macd.com


MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
 Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald


take care of the environment - print only if necessary

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Class Cast exception on received message

Ishmael Rufus
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



No custom message factory. In fromApp() i'm not doing much, only logging for debugging purposes.

However, in fromApp() this is where i'm checking for execution messages to hand off to another process. 

I've upgraded to 1.6.1 and seem to be running into this issue: 

java.lang.VerifyError: (class: quickfix/fix42/ExecutionReport, method: set signature: (Lquickfix/field/OrderQty2;)V) Incompatible argument to function
at quickfix.fix42.MessageFactory.create(MessageFactory.java:143)
at quickfix.DefaultMessageFactory.create(DefaultMessageFactory.java:133)
at quickfix.MessageUtils.parse(MessageUtils.java:145)
at quickfix.mina.AbstractIoHandler.messageReceived(AbstractIoHandler.java:118)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:854)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:48)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:943)
at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:405)
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:235)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:48)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:943)
at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:109)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:535)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:714)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:668)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:657)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67)
at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1121)
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)

I'm using the quickfix-bd libraries via Marketcetera Repo.

On Thu, Sep 24, 2015 at 1:51 AM, Christoph John <[hidden email]> wrote:
OK, I thought maybe you were using 1.6.0.
With 1.5.3 I never heard of such a problem. Are you using a custom MessageFactory or similar? I cannot really tell from the stack trace but it might also be that the error is in your user code. What are you doing in fromApp() or fromAdmin()? Specifically in fromAdmin() since the problem occurs on a ResendRequest.

Chris.


On 23/09/15 20:22, Ishmael Rufus wrote:
"Which version of QFJ are you using?"

1.5.3.  I will try to see if i get the same issue in 1.6.1

On Wed, Sep 23, 2015 at 4:49 AM, Christoph John <[hidden email]> wrote:
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J
Support: http://www.quickfixj.org/support/


Hi,

is this the full stack trace? Which version of QFJ are you using? Did you try a newer one (if youare
not already using 1.6.1)

Cheers,
Chris.



On 22/09/15 19:30, Ishmael Rufus wrote:
> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
>
>
> *I seem to be running into an issue on a resend request for the message below:
> *
> <<a href="tel:20150921-20" value="+12015092120" target="_blank">20150921-20:20:46, FIX.4.2:[REDACTED]->Gateway, incoming>
> (8=FIX.4.2^A9=602^A35=8^A49=[REDACTED]^A56=[REDACTED]^A34=332^A57=[REDACTED]^A129=[REDACTED]^A43=Y^A52=20150921-20:20:46.514^A122=20150921-20:00:00.133^A150=2^A20=0^A20026=[REDACTED]^A1=[REDACTED]^A37=471783589^A198=6F0D-40E4A39AAAAAAAAB^A20111=20150921-20:00:00.097^A20029=471783589^A39=2^A40=1^A55=F.US.EPZ15^A54=2^A14=1.0000^A151=0.0000^A38=1.0000^A59=0^A1028=N^A17=784032739^A60=20150921-20:00:00.127^A50526=OrderID471783589^A6=1957.00000000^A31=1957.00000000^A32=1.0000^A11=CQG_471783589^A15=USD^A20023=20150921-00:00:00.000^A50715=20150921-00:00:00.000^A20027=59519639^A20122=118CA-40E4A39AAAAAAAAB_20150921^A20014=[REDACTED]^A20010=[REDACTED]^A10=018^A)
>
> *Which throws the following error:*
>
> <<a href="tel:20150921-20" value="+12015092120" target="_blank">20150921-20:20:46, FIX.4.2:[REDACTED]->Gateway, error> (java.lang.ClassCastException
> quickfix.RuntimeError: java.lang.ClassCastException
>         at quickfix.Session.next(Session.java:1095)
>         at
> quickfix.mina.SingleThreadedEventHandlingStrategy$SessionMessageEvent.processMessage(SingleThreadedEventHandlingStrategy.java:114)
>         at
> quickfix.mina.SingleThreadedEventHandlingStrategy.block(SingleThreadedEventHandlingStrategy.java:77)
>         at
> quickfix.mina.SingleThreadedEventHandlingStrategy$1.run(SingleThreadedEventHandlingStrategy.java:94)
>         at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.ClassCastException
>
> I'm not sure why this seems to occur on a resend request. Yet after this exception gets thrown my
> application continues to try to get the last message but ends up stuck in a request loop with this
> exception being thrown each time.
>
> --
> Ishmael Rufus - Programmer
> Ditto Holdings, Inc.
> 200 W. Monroe St.
> Suite 1430
> Chicago, IL 60606
> <a href="tel:%28312%29263-5400" value="+13122635400" target="_blank">(312)263-5400
>
>
> ------------------------------------------------------------------------------
>
>
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: <a href="tel:%2B49%20241%20557080-28" value="+4924155708028" target="_blank">+49 241 557080-28
Mailto:[hidden email]



http://www.macd.com <http://www.macd.com/>
----------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------
MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: <a href="tel:%2B49%20241%20557080-0" value="+492415570800" target="_blank">+49 241 557080-0 | Fax: <a href="tel:%2B49%20241%20557080-10" value="+4924155708010" target="_blank">+49 241 557080-10
         Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald
----------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------

take care of the environment - print only if necessary

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users



--
Ishmael Rufus - Programmer 
Ditto Holdings, Inc. 
200 W. Monroe St. 
Suite 1430
Chicago, IL 60606
<a href="tel:%28312%29263-5400" value="+13122635400" target="_blank">(312)263-5400

--
Christoph John
Development & Support
Direct: <a href="tel:%2B49%20241%20557080-28" value="+4924155708028" target="_blank">+49 241 557080-28
Mailto:Christoph.John@...



http://www.macd.com


MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: <a href="tel:%2B49%20241%20557080-10" value="+4924155708010" target="_blank">+49 241 557080-10
 Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald


take care of the environment - print only if necessary



--
Ishmael Rufus - Programmer 
Ditto Holdings, Inc. 
200 W. Monroe St. 
Suite 1430
Chicago, IL 60606
(312)263-5400

------------------------------------------------------------------------------

_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Class Cast exception on received message

Ishmael Rufus
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



I checked the message and there is not Field 192 in the message it's trying to parse nor is it a required field on an execution report under the default FIX42.xml.

I'll probably try to resolve the long processing issues for now in 1.5.3. (which would cause a resend) before trying to resolve this issue in 1.6.1

On Thu, Sep 24, 2015 at 11:45 AM, Ishmael Rufus <[hidden email]> wrote:
No custom message factory. In fromApp() i'm not doing much, only logging for debugging purposes.

However, in fromApp() this is where i'm checking for execution messages to hand off to another process. 

I've upgraded to 1.6.1 and seem to be running into this issue: 

java.lang.VerifyError: (class: quickfix/fix42/ExecutionReport, method: set signature: (Lquickfix/field/OrderQty2;)V) Incompatible argument to function
at quickfix.fix42.MessageFactory.create(MessageFactory.java:143)
at quickfix.DefaultMessageFactory.create(DefaultMessageFactory.java:133)
at quickfix.MessageUtils.parse(MessageUtils.java:145)
at quickfix.mina.AbstractIoHandler.messageReceived(AbstractIoHandler.java:118)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:854)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:48)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:943)
at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:405)
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:235)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:48)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:943)
at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:109)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:535)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:714)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:668)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:657)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67)
at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1121)
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)

I'm using the quickfix-bd libraries via Marketcetera Repo.

On Thu, Sep 24, 2015 at 1:51 AM, Christoph John <[hidden email]> wrote:
OK, I thought maybe you were using 1.6.0.
With 1.5.3 I never heard of such a problem. Are you using a custom MessageFactory or similar? I cannot really tell from the stack trace but it might also be that the error is in your user code. What are you doing in fromApp() or fromAdmin()? Specifically in fromAdmin() since the problem occurs on a ResendRequest.

Chris.


On 23/09/15 20:22, Ishmael Rufus wrote:
"Which version of QFJ are you using?"

1.5.3.  I will try to see if i get the same issue in 1.6.1

On Wed, Sep 23, 2015 at 4:49 AM, Christoph John <[hidden email]> wrote:
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J
Support: http://www.quickfixj.org/support/


Hi,

is this the full stack trace? Which version of QFJ are you using? Did you try a newer one (if youare
not already using 1.6.1)

Cheers,
Chris.



On 22/09/15 19:30, Ishmael Rufus wrote:
> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
>
>
> *I seem to be running into an issue on a resend request for the message below:
> *
> <<a href="tel:20150921-20" value="+12015092120" target="_blank">20150921-20:20:46, FIX.4.2:[REDACTED]->Gateway, incoming>
> (8=FIX.4.2^A9=602^A35=8^A49=[REDACTED]^A56=[REDACTED]^A34=332^A57=[REDACTED]^A129=[REDACTED]^A43=Y^A52=20150921-20:20:46.514^A122=20150921-20:00:00.133^A150=2^A20=0^A20026=[REDACTED]^A1=[REDACTED]^A37=471783589^A198=6F0D-40E4A39AAAAAAAAB^A20111=20150921-20:00:00.097^A20029=471783589^A39=2^A40=1^A55=F.US.EPZ15^A54=2^A14=1.0000^A151=0.0000^A38=1.0000^A59=0^A1028=N^A17=784032739^A60=20150921-20:00:00.127^A50526=OrderID471783589^A6=1957.00000000^A31=1957.00000000^A32=1.0000^A11=CQG_471783589^A15=USD^A20023=20150921-00:00:00.000^A50715=20150921-00:00:00.000^A20027=59519639^A20122=118CA-40E4A39AAAAAAAAB_20150921^A20014=[REDACTED]^A20010=[REDACTED]^A10=018^A)
>
> *Which throws the following error:*
>
> <<a href="tel:20150921-20" value="+12015092120" target="_blank">20150921-20:20:46, FIX.4.2:[REDACTED]->Gateway, error> (java.lang.ClassCastException
> quickfix.RuntimeError: java.lang.ClassCastException
>         at quickfix.Session.next(Session.java:1095)
>         at
> quickfix.mina.SingleThreadedEventHandlingStrategy$SessionMessageEvent.processMessage(SingleThreadedEventHandlingStrategy.java:114)
>         at
> quickfix.mina.SingleThreadedEventHandlingStrategy.block(SingleThreadedEventHandlingStrategy.java:77)
>         at
> quickfix.mina.SingleThreadedEventHandlingStrategy$1.run(SingleThreadedEventHandlingStrategy.java:94)
>         at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.ClassCastException
>
> I'm not sure why this seems to occur on a resend request. Yet after this exception gets thrown my
> application continues to try to get the last message but ends up stuck in a request loop with this
> exception being thrown each time.
>
> --
> Ishmael Rufus - Programmer
> Ditto Holdings, Inc.
> 200 W. Monroe St.
> Suite 1430
> Chicago, IL 60606
> <a href="tel:%28312%29263-5400" value="+13122635400" target="_blank">(312)263-5400
>
>
> ------------------------------------------------------------------------------
>
>
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: <a href="tel:%2B49%20241%20557080-28" value="+4924155708028" target="_blank">+49 241 557080-28
Mailto:[hidden email]



http://www.macd.com <http://www.macd.com/>
----------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------
MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: <a href="tel:%2B49%20241%20557080-0" value="+492415570800" target="_blank">+49 241 557080-0 | Fax: <a href="tel:%2B49%20241%20557080-10" value="+4924155708010" target="_blank">+49 241 557080-10
         Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald
----------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------

take care of the environment - print only if necessary

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users



--
Ishmael Rufus - Programmer 
Ditto Holdings, Inc. 
200 W. Monroe St. 
Suite 1430
Chicago, IL 60606
<a href="tel:%28312%29263-5400" value="+13122635400" target="_blank">(312)263-5400

--
Christoph John
Development & Support
Direct: <a href="tel:%2B49%20241%20557080-28" value="+4924155708028" target="_blank">+49 241 557080-28
Mailto:Christoph.John@...



http://www.macd.com


MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: <a href="tel:%2B49%20241%20557080-10" value="+4924155708010" target="_blank">+49 241 557080-10
 Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald


take care of the environment - print only if necessary



--
Ishmael Rufus - Programmer 
Ditto Holdings, Inc. 
200 W. Monroe St. 
Suite 1430
Chicago, IL 60606
<a href="tel:%28312%29263-5400" value="+13122635400" target="_blank">(312)263-5400



--
Ishmael Rufus - Programmer 
Ditto Holdings, Inc. 
200 W. Monroe St. 
Suite 1430
Chicago, IL 60606
(312)263-5400

------------------------------------------------------------------------------

_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Class Cast exception on received message

Colin DuPlantis
In reply to this post by Ishmael Rufus
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



Your 1.6.1 error seems to be a mix of things compiled against 1.5.3 and 1.6.1, though I can't completely rule out a build issue on our part, I suppose.

I would try a clean build and see if the problem goes away.



On 9/24/15 9:45 AM, Ishmael Rufus wrote:
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/




No custom message factory. In fromApp() i'm not doing much, only logging for debugging purposes.

However, in fromApp() this is where i'm checking for execution messages to hand off to another process. 

I've upgraded to 1.6.1 and seem to be running into this issue: 

java.lang.VerifyError: (class: quickfix/fix42/ExecutionReport, method: set signature: (Lquickfix/field/OrderQty2;)V) Incompatible argument to function
at quickfix.fix42.MessageFactory.create(MessageFactory.java:143)
at quickfix.DefaultMessageFactory.create(DefaultMessageFactory.java:133)
at quickfix.MessageUtils.parse(MessageUtils.java:145)
at quickfix.mina.AbstractIoHandler.messageReceived(AbstractIoHandler.java:118)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:854)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:48)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:943)
at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:405)
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:235)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:48)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:943)
at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:109)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:535)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:714)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:668)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:657)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67)
at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1121)
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)

I'm using the quickfix-bd libraries via Marketcetera Repo.

<snip>
-- 
Colin DuPlantis
Chief Architect, Marketcetera
Download, Run, Trade
800.819.2928 x101 +1.541.306.6556
http://www.marketcetera.org

------------------------------------------------------------------------------

_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Class Cast exception on received message

Ishmael Rufus
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



UPDATE

The problem I had was with the c3p0 library was incompatible with the version of hibernate I was using.  Every once in a while c3p0 would throw an exception that would be caught by QuickfixJ and then thrown as a RuntimeException. 

My investigation lead me to ticket QFJ-572 (http://www.quickfixj.org/jira/browse/QFJ-572).

Since version 1.5.3 changes were made to restore a feature that will "keep close to the former behaviour".  Session.java:1086-1090. I could only catch the true cause being thrown by making a huge try / catch in the fromApp() override method in my Application.

Is there any reason why we didn't just log the information similar to other exceptions being thrown in the same Session class? (By using getLog() which returns SessionState.Log)

Nevertheless, I have resolved my issues.

On Thu, Sep 24, 2015 at 12:18 PM, Colin DuPlantis <[hidden email]> wrote:
QuickFIX/J Documentation: <a href="http://www.quickfixj.org/documentation/ QuickFIX/J" rel="noreferrer" target="_blank">http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



Your 1.6.1 error seems to be a mix of things compiled against 1.5.3 and 1.6.1, though I can't completely rule out a build issue on our part, I suppose.

I would try a clean build and see if the problem goes away.



On 9/24/15 9:45 AM, Ishmael Rufus wrote:
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/




No custom message factory. In fromApp() i'm not doing much, only logging for debugging purposes.

However, in fromApp() this is where i'm checking for execution messages to hand off to another process. 

I've upgraded to 1.6.1 and seem to be running into this issue: 

java.lang.VerifyError: (class: quickfix/fix42/ExecutionReport, method: set signature: (Lquickfix/field/OrderQty2;)V) Incompatible argument to function
at quickfix.fix42.MessageFactory.create(MessageFactory.java:143)
at quickfix.DefaultMessageFactory.create(DefaultMessageFactory.java:133)
at quickfix.MessageUtils.parse(MessageUtils.java:145)
at quickfix.mina.AbstractIoHandler.messageReceived(AbstractIoHandler.java:118)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:854)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:48)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:943)
at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:405)
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:235)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:48)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:943)
at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:109)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:535)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:714)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:668)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:657)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67)
at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1121)
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)

I'm using the quickfix-bd libraries via Marketcetera Repo.

<snip>
-- 
Colin DuPlantis
Chief Architect, Marketcetera
Download, Run, Trade
<a href="tel:800.819.2928%20x101" value="+18008192928" target="_blank">800.819.2928 x101 <a href="tel:%2B1.541.306.6556" value="+15413066556" target="_blank">+1.541.306.6556
http://www.marketcetera.org

------------------------------------------------------------------------------

_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users




--
Ishmael Rufus - Programmer 
Ditto Holdings, Inc. 
200 W. Monroe St. 
Suite 1430
Chicago, IL 60606
(312)263-5400

------------------------------------------------------------------------------
Full-scale, agent-less Infrastructure Monitoring from a single dashboard
Integrate with 40+ ManageEngine ITSM Solutions for complete visibility
Physical-Virtual-Cloud Infrastructure monitoring from one console
Real user monitoring with APM Insights and performance trend reports
Learn More http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Class Cast exception on received message

Charles Briquel
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



Hi Rufus,

From what I’ve seen in the code, when you thrown your exception, it was catched in a place, then another exception was thrown with yours being placed in cause of the exception.
But the code that print the exception do not look at the cause of an exception. I think it’s a mistake and it would be easy to fix.
My 2 cents...


Le 7 oct. 2015 à 18:43, Ishmael Rufus <[hidden email]> a écrit :

QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


UPDATE

The problem I had was with the c3p0 library was incompatible with the version of hibernate I was using.  Every once in a while c3p0 would throw an exception that would be caught by QuickfixJ and then thrown as a RuntimeException. 

My investigation lead me to ticket QFJ-572 (http://www.quickfixj.org/jira/browse/QFJ-572).

Since version 1.5.3 changes were made to restore a feature that will "keep close to the former behaviour".  Session.java:1086-1090. I could only catch the true cause being thrown by making a huge try / catch in the fromApp() override method in my Application.

Is there any reason why we didn't just log the information similar to other exceptions being thrown in the same Session class? (By using getLog() which returns SessionState.Log)

Nevertheless, I have resolved my issues.

On Thu, Sep 24, 2015 at 12:18 PM, Colin DuPlantis <[hidden email]> wrote:

Your 1.6.1 error seems to be a mix of things compiled against 1.5.3 and 1.6.1, though I can't completely rule out a build issue on our part, I suppose.

I would try a clean build and see if the problem goes away.



On 9/24/15 9:45 AM, Ishmael Rufus wrote:
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/




No custom message factory. In fromApp() i'm not doing much, only logging for debugging purposes.

However, in fromApp() this is where i'm checking for execution messages to hand off to another process. 

I've upgraded to 1.6.1 and seem to be running into this issue: 

java.lang.VerifyError: (class: quickfix/fix42/ExecutionReport, method: set signature: (Lquickfix/field/OrderQty2;)V) Incompatible argument to function
at quickfix.fix42.MessageFactory.create(MessageFactory.java:143)
at quickfix.DefaultMessageFactory.create(DefaultMessageFactory.java:133)
at quickfix.MessageUtils.parse(MessageUtils.java:145)
at quickfix.mina.AbstractIoHandler.messageReceived(AbstractIoHandler.java:118)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:854)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:48)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:943)
at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:405)
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:235)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:48)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:943)
at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:109)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:535)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:714)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:668)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:657)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67)
at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1121)
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)

I'm using the quickfix-bd libraries via Marketcetera Repo.

<snip>
-- 
Colin DuPlantis
Chief Architect, Marketcetera
Download, Run, Trade
<a href="tel:800.819.2928%20x101" value="+18008192928" target="_blank" class="">800.819.2928 x101 <a href="tel:%2B1.541.306.6556" value="+15413066556" target="_blank" class="">+1.541.306.6556
http://www.marketcetera.org

------------------------------------------------------------------------------

_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users




--
Ishmael Rufus - Programmer 
Ditto Holdings, Inc. 
200 W. Monroe St. 
Suite 1430
Chicago, IL 60606
(312)263-5400
------------------------------------------------------------------------------
Full-scale, agent-less Infrastructure Monitoring from a single dashboard
Integrate with 40+ ManageEngine ITSM Solutions for complete visibility
Physical-Virtual-Cloud Infrastructure monitoring from one console
Real user monitoring with APM Insights and performance trend reports
Learn More http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users


------------------------------------------------------------------------------
Full-scale, agent-less Infrastructure Monitoring from a single dashboard
Integrate with 40+ ManageEngine ITSM Solutions for complete visibility
Physical-Virtual-Cloud Infrastructure monitoring from one console
Real user monitoring with APM Insights and performance trend reports
Learn More http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Class Cast exception on received message

Christoph John
In reply to this post by Charles Briquel
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


Hi,

was already some time ago, but I have added the logging of the cause now.

Thanks,
Chris.


On 23/09/15 12:48, Charles Briquel wrote:

> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
> Hi,
>  
> Can't help on this pbm, but may be you can update the quickfix.LogUtil::logThrowable(Log log, String message, Throwable t) method like this to print the stack trace of the cause of the exception…
>  
>  
>      public static void logThrowable(Log log, String message, Throwable t) {
>          final StringWriter stringWriter = new StringWriter();
>          final PrintWriter printWriter = new PrintWriter(stringWriter);
>          printWriter.println(message);
>          t.printStackTrace(printWriter);
>          if(t.getCause() != null) {
>              printWriter.println("\nCause: " + t.getCause().getMessage());
>              t.getCause().printStackTrace(printWriter);
>          }
>          log.onErrorEvent(stringWriter.toString());
>      }
>  
> Regards,
>  
> Charles
>
>
>
>> Le 23 sept. 2015 à 11:49, Christoph John <[hidden email]> a écrit :
>>
>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
>> QuickFIX/J Support: http://www.quickfixj.org/support/
>>
>>
>> Hi,
>>
>> is this the full stack trace? Which version of QFJ are you using? Did you try a newer one (if youare
>> not already using 1.6.1)
>>
>> Cheers,
>> Chris.
>>
>>
>>
>>> On 22/09/15 19:30, Ishmael Rufus wrote:
>>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
>>> QuickFIX/J Support: http://www.quickfixj.org/support/
>>>
>>>
>>>
>>>
>>> *I seem to be running into an issue on a resend request for the message below:
>>> *
>>> <20150921-20:20:46, FIX.4.2:[REDACTED]->Gateway, incoming>
>>> (8=FIX.4.2^A9=602^A35=8^A49=[REDACTED]^A56=[REDACTED]^A34=332^A57=[REDACTED]^A129=[REDACTED]^A43=Y^A52=20150921-20:20:46.514^A122=20150921-20:00:00.133^A150=2^A20=0^A20026=[REDACTED]^A1=[REDACTED]^A37=471783589^A198=6F0D-40E4A39AAAAAAAAB^A20111=20150921-20:00:00.097^A20029=471783589^A39=2^A40=1^A55=F.US.EPZ15^A54=2^A14=1.0000^A151=0.0000^A38=1.0000^A59=0^A1028=N^A17=784032739^A60=20150921-20:00:00.127^A50526=OrderID471783589^A6=1957.00000000^A31=1957.00000000^A32=1.0000^A11=CQG_471783589^A15=USD^A20023=20150921-00:00:00.000^A50715=20150921-00:00:00.000^A20027=59519639^A20122=118CA-40E4A39AAAAAAAAB_20150921^A20014=[REDACTED]^A20010=[REDACTED]^A10=018^A)
>>>
>>> *Which throws the following error:*
>>>
>>> <20150921-20:20:46, FIX.4.2:[REDACTED]->Gateway, error> (java.lang.ClassCastException
>>> quickfix.RuntimeError: java.lang.ClassCastException
>>>         at quickfix.Session.next(Session.java:1095)
>>>         at
>>> quickfix.mina.SingleThreadedEventHandlingStrategy$SessionMessageEvent.processMessage(SingleThreadedEventHandlingStrategy.java:114)
>>>         at
>>> quickfix.mina.SingleThreadedEventHandlingStrategy.block(SingleThreadedEventHandlingStrategy.java:77)
>>>         at
>>> quickfix.mina.SingleThreadedEventHandlingStrategy$1.run(SingleThreadedEventHandlingStrategy.java:94)
>>>         at java.lang.Thread.run(Thread.java:619)
>>> Caused by: java.lang.ClassCastException
>>>
>>> I'm not sure why this seems to occur on a resend request. Yet after this exception gets thrown my
>>> application continues to try to get the last message but ends up stuck in a request loop with this
>>> exception being thrown each time.
>>>
>>> --
>>> Ishmael Rufus - Programmer
>>> Ditto Holdings, Inc.
>>> 200 W. Monroe St.
>>> Suite 1430
>>> Chicago, IL 60606
>>> (312)263-5400
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>>
>>> _______________________________________________
>>> Quickfixj-users mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/quickfixj-users
>> --
>> Christoph John
>> Development & Support
>> Direct: +49 241 557080-28
>> Mailto:[hidden email]
>>    
>>
>>
>> http://www.macd.com <http://www.macd.com/>
>> ----------------------------------------------------------------------------------------------------
>>    
>> ----------------------------------------------------------------------------------------------------
>> MACD GmbH
>> Oppenhoffallee 103
>> D-52066 Aachen
>> Tel: +49 241 557080-0 | Fax: +49 241 557080-10
>>      Amtsgericht Aachen: HRB 8151
>> Ust.-Id: DE 813021663
>>
>> Geschäftsführer: George Macdonald
>> ----------------------------------------------------------------------------------------------------
>>    
>> ----------------------------------------------------------------------------------------------------
>>
>> take care of the environment - print only if necessary
>>
>> ------------------------------------------------------------------------------
>> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
>> Get real-time metrics from all of your servers, apps and tools
>> in one place.
>> SourceForge users - Click here to start your Free Trial of Datadog now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
>> _______________________________________________
>> Quickfixj-users mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/quickfixj-users
> ------------------------------------------------------------------------------
> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> Get real-time metrics from all of your servers, apps and tools
> in one place.
> SourceForge users - Click here to start your Free Trial of Datadog now!
> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users
>
> --
> Christoph John
> Development & Support
> Direct: +49 241 557080-28
> Mailto:[hidden email]
>
>
>
> http://www.macd.com <http://www.macd.com/>
> ----------------------------------------------------------------------------------------------------
>
> ----------------------------------------------------------------------------------------------------
> MACD GmbH
> Oppenhoffallee 103
> D-52066 Aachen
> Tel: +49 241 557080-0 | Fax: +49 241 557080-10
> Amtsgericht Aachen: HRB 8151
> Ust.-Id: DE 813021663
>
> Geschäftsführer: George Macdonald
> ----------------------------------------------------------------------------------------------------
>
> ----------------------------------------------------------------------------------------------------
>
> take care of the environment - print only if necessary

------------------------------------------------------------------------------
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Loading...