Quantcast

QF/J 1.6.1 RuntimeError

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

QF/J 1.6.1 RuntimeError

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


Under moderately high msg traffic with QF/J 1.6.1 I get a disconnect
sometimes followed by this exception.  Sometimes it reconnects ok instead.  


Application: onLogout FIX.4.2:AM_algo1->XXX
Exception in thread "main" Oct 08, 2015 1:15:01 PM
org.apache.mina.core.filterchain.DefaultIoFilterChain
callNextExceptionCaught
WARNING: Unexpected exception from exceptionCaught handler.
quickfix.RuntimeError: java.io.IOException: Stream Closed
        at quickfix.SessionState.reset(SessionState.java:384)
        at quickfix.Session.resetState(Session.java:2490)
        at quickfix.Session.disconnect(Session.java:1967)
        at quickfix.mina.AbstractIoHandler.exceptionCaught(AbstractIoHandler.java:79)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.exceptionCaught(DefaultIoFilterChain.java:824)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:48)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:933)
        at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:102)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:48)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:933)
        at org.apache.mina.filter.ssl.SslFilter.exceptionCaught(SslFilter.java:573)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:48)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:933)
        at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:102)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireExceptionCaught(DefaultIoFilterChain.java:580)
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:741)
        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.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Stream Closed
        at java.io.FileOutputStream.writeBytes(Native Method)
        at java.io.FileOutputStream.write(FileOutputStream.java:315)
        at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
        at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
        at java.io.DataOutputStream.flush(DataOutputStream.java:123)
        at java.io.FilterOutputStream.close(FilterOutputStream.java:158)
        at quickfix.FileStore.closeOutputStream(FileStore.java:238)
        at quickfix.FileStore.close(FileStore.java:223)
        at quickfix.FileStore.deleteFiles(FileStore.java:243)
        at quickfix.FileStore.initialize(FileStore.java:108)
        at quickfix.FileStore.reset(FileStore.java:442)
        at quickfix.SessionState.reset(SessionState.java:382)
        ... 27 more
        Suppressed: java.io.IOException: Stream Closed
                at java.io.FileOutputStream.writeBytes(Native Method)
                at java.io.FileOutputStream.write(FileOutputStream.java:315)
                at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
                at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
                at java.io.FilterOutputStream.close(FilterOutputStream.java:158)
                at java.io.FilterOutputStream.close(FilterOutputStream.java:159)
                ... 33 more

java.lang.NullPointerException
        at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
        at quickfix.Session.lookupSession(Session.java:662)
        at quickfix.Session.sendToTarget(Session.java:630)
        at cts_fix.Application.secDef(Application.java:151)
        at cts_fix.Application.allFutures(Application.java:126)
        at cts_fix.Main.readInput(Main.java:79)
        at cts_fix.Main.main(Main.java:177)

------------------------------------------------------------------------------
_______________________________________________
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: QF/J 1.6.1 RuntimeError

Kimpton, C (Chris)
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


Hi Andrew,

Not seen this myself, but then we are not doing that high a volume.

What do you call "moderately high msg traffic" - 10 per second, 1000s per second?  Is it sending and receiving at the same time?
What connection are you using - on the same machine, over the internet, SSL involved?

Did you see this behaviour with earlier versions?

Cheers,
Chris

-----Original Message-----
From: Andrew Munn [mailto:[hidden email]]
Sent: 08 October 2015 19:36
To: [hidden email]
Subject: [Quickfixj-users] QF/J 1.6.1 RuntimeError

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


Under moderately high msg traffic with QF/J 1.6.1 I get a disconnect sometimes followed by this exception.  Sometimes it reconnects ok instead.  


Application: onLogout FIX.4.2:AM_algo1->XXX
Exception in thread "main" Oct 08, 2015 1:15:01 PM
org.apache.mina.core.filterchain.DefaultIoFilterChain
callNextExceptionCaught
WARNING: Unexpected exception from exceptionCaught handler.
quickfix.RuntimeError: java.io.IOException: Stream Closed
        at quickfix.SessionState.reset(SessionState.java:384)
        at quickfix.Session.resetState(Session.java:2490)
        at quickfix.Session.disconnect(Session.java:1967)
        at quickfix.mina.AbstractIoHandler.exceptionCaught(AbstractIoHandler.java:79)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.exceptionCaught(DefaultIoFilterChain.java:824)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:48)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:933)
        at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:102)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:48)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:933)
        at org.apache.mina.filter.ssl.SslFilter.exceptionCaught(SslFilter.java:573)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:48)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:933)
        at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:102)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireExceptionCaught(DefaultIoFilterChain.java:580)
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:741)
        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.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Stream Closed
        at java.io.FileOutputStream.writeBytes(Native Method)
        at java.io.FileOutputStream.write(FileOutputStream.java:315)
        at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
        at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
        at java.io.DataOutputStream.flush(DataOutputStream.java:123)
        at java.io.FilterOutputStream.close(FilterOutputStream.java:158)
        at quickfix.FileStore.closeOutputStream(FileStore.java:238)
        at quickfix.FileStore.close(FileStore.java:223)
        at quickfix.FileStore.deleteFiles(FileStore.java:243)
        at quickfix.FileStore.initialize(FileStore.java:108)
        at quickfix.FileStore.reset(FileStore.java:442)
        at quickfix.SessionState.reset(SessionState.java:382)
        ... 27 more
        Suppressed: java.io.IOException: Stream Closed
                at java.io.FileOutputStream.writeBytes(Native Method)
                at java.io.FileOutputStream.write(FileOutputStream.java:315)
                at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
                at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
                at java.io.FilterOutputStream.close(FilterOutputStream.java:158)
                at java.io.FilterOutputStream.close(FilterOutputStream.java:159)
                ... 33 more

java.lang.NullPointerException
        at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
        at quickfix.Session.lookupSession(Session.java:662)
        at quickfix.Session.sendToTarget(Session.java:630)
        at cts_fix.Application.secDef(Application.java:151)
        at cts_fix.Application.allFutures(Application.java:126)
        at cts_fix.Main.readInput(Main.java:79)
        at cts_fix.Main.main(Main.java:177)

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

This email (including any attachments to it) is confidential, legally privileged, subject to copyright and is sent for the personal attention of the intended recipient only. If you have received this email in error, please advise us immediately and delete it. You are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Although we have taken reasonable precautions to ensure no viruses are present in this email, we cannot accept responsibility for any loss or damage arising from the viruses in this email or attachments. We exclude any liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided in this email or its attachments, unless that information is subsequently confirmed in writing.
_________________________________________________________________________________

------------------------------------------------------------------------------
_______________________________________________
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: QF/J 1.6.1 RuntimeError

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


Hi,

looks like you are still trying to send messages to a Session via your application while it is
removed from the list of Sessions. I can see SessionState.reset() in the stack trace. Do these
disconnections happen when the session time ends or do you reset sequence numbers on every
connection attempt?

Cheers,
Christoph.

On 08/10/15 20:36, Andrew Munn wrote:

> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
> Under moderately high msg traffic with QF/J 1.6.1 I get a disconnect
> sometimes followed by this exception.  Sometimes it reconnects ok instead.
>
>
> Application: onLogout FIX.4.2:AM_algo1->XXX
> Exception in thread "main" Oct 08, 2015 1:15:01 PM
> org.apache.mina.core.filterchain.DefaultIoFilterChain
> callNextExceptionCaught
> WARNING: Unexpected exception from exceptionCaught handler.
> quickfix.RuntimeError: java.io.IOException: Stream Closed
>          at quickfix.SessionState.reset(SessionState.java:384)
>          at quickfix.Session.resetState(Session.java:2490)
>          at quickfix.Session.disconnect(Session.java:1967)
>          at quickfix.mina.AbstractIoHandler.exceptionCaught(AbstractIoHandler.java:79)
>          at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.exceptionCaught(DefaultIoFilterChain.java:824)
>          at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
>          at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:48)
>          at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:933)
>          at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:102)
>          at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
>          at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:48)
>          at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:933)
>          at org.apache.mina.filter.ssl.SslFilter.exceptionCaught(SslFilter.java:573)
>          at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
>          at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:48)
>          at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:933)
>          at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:102)
>          at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
>          at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireExceptionCaught(DefaultIoFilterChain.java:580)
>          at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:741)
>          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.runWorker(ThreadPoolExecutor.java:1142)
>          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>          at java.lang.Thread.run(Thread.java:745)
> Caused by: java.io.IOException: Stream Closed
>          at java.io.FileOutputStream.writeBytes(Native Method)
>          at java.io.FileOutputStream.write(FileOutputStream.java:315)
>          at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
>          at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
>          at java.io.DataOutputStream.flush(DataOutputStream.java:123)
>          at java.io.FilterOutputStream.close(FilterOutputStream.java:158)
>          at quickfix.FileStore.closeOutputStream(FileStore.java:238)
>          at quickfix.FileStore.close(FileStore.java:223)
>          at quickfix.FileStore.deleteFiles(FileStore.java:243)
>          at quickfix.FileStore.initialize(FileStore.java:108)
>          at quickfix.FileStore.reset(FileStore.java:442)
>          at quickfix.SessionState.reset(SessionState.java:382)
>          ... 27 more
>          Suppressed: java.io.IOException: Stream Closed
>                  at java.io.FileOutputStream.writeBytes(Native Method)
>                  at java.io.FileOutputStream.write(FileOutputStream.java:315)
>                  at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
>                  at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
>                  at java.io.FilterOutputStream.close(FilterOutputStream.java:158)
>                  at java.io.FilterOutputStream.close(FilterOutputStream.java:159)
>                  ... 33 more
>
> java.lang.NullPointerException
> at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
>          at quickfix.Session.lookupSession(Session.java:662)
>          at quickfix.Session.sendToTarget(Session.java:630)
>          at cts_fix.Application.secDef(Application.java:151)
>          at cts_fix.Application.allFutures(Application.java:126)
>          at cts_fix.Main.readInput(Main.java:79)
>          at cts_fix.Main.main(Main.java:177)
>
> ------------------------------------------------------------------------------
> _______________________________________________
> 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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: QF/J 1.6.1 RuntimeError

Andrew Munn
In reply to this post by Kimpton, C (Chris)
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


This is over the internet using SSL.  I was not running this connection on
prior versions of QFJ.  I am senging and receiving simultaneously and
sending a batch of several thousand messages at the time.

On Fri, 9 Oct 2015, Kimpton, C (Chris) wrote:

> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
> Hi Andrew,
>
> Not seen this myself, but then we are not doing that high a volume.
>
> What do you call "moderately high msg traffic" - 10 per second, 1000s per second?  Is it sending and receiving at the same time?
> What connection are you using - on the same machine, over the internet, SSL involved?
>
> Did you see this behaviour with earlier versions?
>
> Cheers,
> Chris
>
> -----Original Message-----
> From: Andrew Munn [mailto:[hidden email]]
> Sent: 08 October 2015 19:36
> To: [hidden email]
> Subject: [Quickfixj-users] QF/J 1.6.1 RuntimeError
>
> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
> Under moderately high msg traffic with QF/J 1.6.1 I get a disconnect sometimes followed by this exception.  Sometimes it reconnects ok instead.  
>
>
> Application: onLogout FIX.4.2:AM_algo1->XXX
> Exception in thread "main" Oct 08, 2015 1:15:01 PM
> org.apache.mina.core.filterchain.DefaultIoFilterChain
> callNextExceptionCaught
> WARNING: Unexpected exception from exceptionCaught handler.
> quickfix.RuntimeError: java.io.IOException: Stream Closed
>         at quickfix.SessionState.reset(SessionState.java:384)
>         at quickfix.Session.resetState(Session.java:2490)
>         at quickfix.Session.disconnect(Session.java:1967)
>         at quickfix.mina.AbstractIoHandler.exceptionCaught(AbstractIoHandler.java:79)
>         at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.exceptionCaught(DefaultIoFilterChain.java:824)
>         at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
>         at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:48)
>         at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:933)
>         at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:102)
>         at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
>         at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:48)
>         at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:933)
>         at org.apache.mina.filter.ssl.SslFilter.exceptionCaught(SslFilter.java:573)
>         at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
>         at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:48)
>         at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:933)
>         at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:102)
>         at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
>         at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireExceptionCaught(DefaultIoFilterChain.java:580)
>         at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:741)
>         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.runWorker(ThreadPoolExecutor.java:1142)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
> Caused by: java.io.IOException: Stream Closed
>         at java.io.FileOutputStream.writeBytes(Native Method)
>         at java.io.FileOutputStream.write(FileOutputStream.java:315)
>         at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
>         at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
>         at java.io.DataOutputStream.flush(DataOutputStream.java:123)
>         at java.io.FilterOutputStream.close(FilterOutputStream.java:158)
>         at quickfix.FileStore.closeOutputStream(FileStore.java:238)
>         at quickfix.FileStore.close(FileStore.java:223)
>         at quickfix.FileStore.deleteFiles(FileStore.java:243)
>         at quickfix.FileStore.initialize(FileStore.java:108)
>         at quickfix.FileStore.reset(FileStore.java:442)
>         at quickfix.SessionState.reset(SessionState.java:382)
>         ... 27 more
>         Suppressed: java.io.IOException: Stream Closed
>                 at java.io.FileOutputStream.writeBytes(Native Method)
>                 at java.io.FileOutputStream.write(FileOutputStream.java:315)
>                 at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
>                 at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
>                 at java.io.FilterOutputStream.close(FilterOutputStream.java:158)
>                 at java.io.FilterOutputStream.close(FilterOutputStream.java:159)
>                 ... 33 more
>
> java.lang.NullPointerException
> at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
>         at quickfix.Session.lookupSession(Session.java:662)
>         at quickfix.Session.sendToTarget(Session.java:630)
>         at cts_fix.Application.secDef(Application.java:151)
>         at cts_fix.Application.allFutures(Application.java:126)
>         at cts_fix.Main.readInput(Main.java:79)
>         at cts_fix.Main.main(Main.java:177)
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users
> _________________________________________________________________________________
>
> This email (including any attachments to it) is confidential, legally privileged, subject to copyright and is sent for the personal attention of the intended recipient only. If you have received this email in error, please advise us immediately and delete it. You are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Although we have taken reasonable precautions to ensure no viruses are present in this email, we cannot accept responsibility for any loss or damage arising from the viruses in this email or attachments. We exclude any liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided in this email or its attachments, unless that information is subsequently confirmed in writing.
> _________________________________________________________________________________
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users
>

------------------------------------------------------------------------------
_______________________________________________
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: QF/J 1.6.1 RuntimeError

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


This disconnect happens when a larger volume of message is sent.  It does
not have to do with session stop times.

Andrew

On Fri, 9 Oct 2015, Christoph John wrote:

> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
> Hi,
>
> looks like you are still trying to send messages to a Session via your application while it is
> removed from the list of Sessions. I can see SessionState.reset() in the stack trace. Do these
> disconnections happen when the session time ends or do you reset sequence numbers on every
> connection attempt?
>
> Cheers,
> Christoph.
>
> On 08/10/15 20:36, Andrew Munn wrote:
> > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> > QuickFIX/J Support: http://www.quickfixj.org/support/
> >
> >
> > Under moderately high msg traffic with QF/J 1.6.1 I get a disconnect
> > sometimes followed by this exception.  Sometimes it reconnects ok instead.
> >
> >
> > Application: onLogout FIX.4.2:AM_algo1->XXX
> > Exception in thread "main" Oct 08, 2015 1:15:01 PM
> > org.apache.mina.core.filterchain.DefaultIoFilterChain
> > callNextExceptionCaught
> > WARNING: Unexpected exception from exceptionCaught handler.
> > quickfix.RuntimeError: java.io.IOException: Stream Closed
> >          at quickfix.SessionState.reset(SessionState.java:384)
> >          at quickfix.Session.resetState(Session.java:2490)
> >          at quickfix.Session.disconnect(Session.java:1967)
> >          at quickfix.mina.AbstractIoHandler.exceptionCaught(AbstractIoHandler.java:79)
> >          at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.exceptionCaught(DefaultIoFilterChain.java:824)
> >          at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
> >          at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:48)
> >          at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:933)
> >          at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:102)
> >          at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
> >          at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:48)
> >          at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:933)
> >          at org.apache.mina.filter.ssl.SslFilter.exceptionCaught(SslFilter.java:573)
> >          at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
> >          at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:48)
> >          at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:933)
> >          at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:102)
> >          at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
> >          at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireExceptionCaught(DefaultIoFilterChain.java:580)
> >          at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:741)
> >          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.runWorker(ThreadPoolExecutor.java:1142)
> >          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> >          at java.lang.Thread.run(Thread.java:745)
> > Caused by: java.io.IOException: Stream Closed
> >          at java.io.FileOutputStream.writeBytes(Native Method)
> >          at java.io.FileOutputStream.write(FileOutputStream.java:315)
> >          at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
> >          at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
> >          at java.io.DataOutputStream.flush(DataOutputStream.java:123)
> >          at java.io.FilterOutputStream.close(FilterOutputStream.java:158)
> >          at quickfix.FileStore.closeOutputStream(FileStore.java:238)
> >          at quickfix.FileStore.close(FileStore.java:223)
> >          at quickfix.FileStore.deleteFiles(FileStore.java:243)
> >          at quickfix.FileStore.initialize(FileStore.java:108)
> >          at quickfix.FileStore.reset(FileStore.java:442)
> >          at quickfix.SessionState.reset(SessionState.java:382)
> >          ... 27 more
> >          Suppressed: java.io.IOException: Stream Closed
> >                  at java.io.FileOutputStream.writeBytes(Native Method)
> >                  at java.io.FileOutputStream.write(FileOutputStream.java:315)
> >                  at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
> >                  at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
> >                  at java.io.FilterOutputStream.close(FilterOutputStream.java:158)
> >                  at java.io.FilterOutputStream.close(FilterOutputStream.java:159)
> >                  ... 33 more
> >
> > java.lang.NullPointerException
> > at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
> >          at quickfix.Session.lookupSession(Session.java:662)
> >          at quickfix.Session.sendToTarget(Session.java:630)
> >          at cts_fix.Application.secDef(Application.java:151)
> >          at cts_fix.Application.allFutures(Application.java:126)
> >          at cts_fix.Main.readInput(Main.java:79)
> >          at cts_fix.Main.main(Main.java:177)
> >
> > ------------------------------------------------------------------------------
> > _______________________________________________
> > 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
>

------------------------------------------------------------------------------
_______________________________________________
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: QF/J 1.6.1 RuntimeError

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


I think what's going on it that the message volume causes an error and
disconnect but my application continues trying to send.  I don't know if
the original disconnect is caused by my side or the remote side but in
either case it seems like there is a race on my side between the
disconnect taking place and the session gracefully refusing to send
without a RuntimeError afterward.  Does that seem right?

Andrew

On Sat, 10 Oct 2015, Andrew Munn wrote:

> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
> This disconnect happens when a larger volume of message is sent.  It does
> not have to do with session stop times.
>
> Andrew
>
> On Fri, 9 Oct 2015, Christoph John wrote:
>
> > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> > QuickFIX/J Support: http://www.quickfixj.org/support/
> >
> >
> > Hi,
> >
> > looks like you are still trying to send messages to a Session via your application while it is
> > removed from the list of Sessions. I can see SessionState.reset() in the stack trace. Do these
> > disconnections happen when the session time ends or do you reset sequence numbers on every
> > connection attempt?
> >
> > Cheers,
> > Christoph.
> >
> > On 08/10/15 20:36, Andrew Munn wrote:
> > > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> > > QuickFIX/J Support: http://www.quickfixj.org/support/
> > >
> > >
> > > Under moderately high msg traffic with QF/J 1.6.1 I get a disconnect
> > > sometimes followed by this exception.  Sometimes it reconnects ok instead.
> > >
> > >
> > > Application: onLogout FIX.4.2:AM_algo1->XXX
> > > Exception in thread "main" Oct 08, 2015 1:15:01 PM
> > > org.apache.mina.core.filterchain.DefaultIoFilterChain
> > > callNextExceptionCaught
> > > WARNING: Unexpected exception from exceptionCaught handler.
> > > quickfix.RuntimeError: java.io.IOException: Stream Closed
> > >          at quickfix.SessionState.reset(SessionState.java:384)
> > >          at quickfix.Session.resetState(Session.java:2490)
> > >          at quickfix.Session.disconnect(Session.java:1967)
> > >          at quickfix.mina.AbstractIoHandler.exceptionCaught(AbstractIoHandler.java:79)
> > >          at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.exceptionCaught(DefaultIoFilterChain.java:824)
> > >          at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
> > >          at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:48)
> > >          at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:933)
> > >          at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:102)
> > >          at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
> > >          at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:48)
> > >          at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:933)
> > >          at org.apache.mina.filter.ssl.SslFilter.exceptionCaught(SslFilter.java:573)
> > >          at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
> > >          at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:48)
> > >          at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:933)
> > >          at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:102)
> > >          at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
> > >          at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireExceptionCaught(DefaultIoFilterChain.java:580)
> > >          at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:741)
> > >          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.runWorker(ThreadPoolExecutor.java:1142)
> > >          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> > >          at java.lang.Thread.run(Thread.java:745)
> > > Caused by: java.io.IOException: Stream Closed
> > >          at java.io.FileOutputStream.writeBytes(Native Method)
> > >          at java.io.FileOutputStream.write(FileOutputStream.java:315)
> > >          at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
> > >          at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
> > >          at java.io.DataOutputStream.flush(DataOutputStream.java:123)
> > >          at java.io.FilterOutputStream.close(FilterOutputStream.java:158)
> > >          at quickfix.FileStore.closeOutputStream(FileStore.java:238)
> > >          at quickfix.FileStore.close(FileStore.java:223)
> > >          at quickfix.FileStore.deleteFiles(FileStore.java:243)
> > >          at quickfix.FileStore.initialize(FileStore.java:108)
> > >          at quickfix.FileStore.reset(FileStore.java:442)
> > >          at quickfix.SessionState.reset(SessionState.java:382)
> > >          ... 27 more
> > >          Suppressed: java.io.IOException: Stream Closed
> > >                  at java.io.FileOutputStream.writeBytes(Native Method)
> > >                  at java.io.FileOutputStream.write(FileOutputStream.java:315)
> > >                  at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
> > >                  at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
> > >                  at java.io.FilterOutputStream.close(FilterOutputStream.java:158)
> > >                  at java.io.FilterOutputStream.close(FilterOutputStream.java:159)
> > >                  ... 33 more
> > >
> > > java.lang.NullPointerException
> > > at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
> > >          at quickfix.Session.lookupSession(Session.java:662)
> > >          at quickfix.Session.sendToTarget(Session.java:630)
> > >          at cts_fix.Application.secDef(Application.java:151)
> > >          at cts_fix.Application.allFutures(Application.java:126)
> > >          at cts_fix.Main.readInput(Main.java:79)
> > >          at cts_fix.Main.main(Main.java:177)
> > >
> > > ------------------------------------------------------------------------------
> > > _______________________________________________
> > > 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
> >
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users
>

------------------------------------------------------------------------------
_______________________________________________
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: QF/J 1.6.1 RuntimeError

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



If you take too long to process messages on the QFJ thread it can cause a disconnect. Maybe try offloading to another thread?

On Oct 10, 2015 3:22 PM, "Andrew Munn" <[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/


I think what's going on it that the message volume causes an error and
disconnect but my application continues trying to send.  I don't know if
the original disconnect is caused by my side or the remote side but in
either case it seems like there is a race on my side between the
disconnect taking place and the session gracefully refusing to send
without a RuntimeError afterward.  Does that seem right?

Andrew

On Sat, 10 Oct 2015, Andrew Munn wrote:

> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
> This disconnect happens when a larger volume of message is sent.  It does
> not have to do with session stop times.
>
> Andrew
>
> On Fri, 9 Oct 2015, Christoph John wrote:
>
> > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> > QuickFIX/J Support: http://www.quickfixj.org/support/
> >
> >
> > Hi,
> >
> > looks like you are still trying to send messages to a Session via your application while it is
> > removed from the list of Sessions. I can see SessionState.reset() in the stack trace. Do these
> > disconnections happen when the session time ends or do you reset sequence numbers on every
> > connection attempt?
> >
> > Cheers,
> > Christoph.
> >
> > On 08/10/15 20:36, Andrew Munn wrote:
> > > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> > > QuickFIX/J Support: http://www.quickfixj.org/support/
> > >
> > >
> > > Under moderately high msg traffic with QF/J 1.6.1 I get a disconnect
> > > sometimes followed by this exception.  Sometimes it reconnects ok instead.
> > >
> > >
> > > Application: onLogout FIX.4.2:AM_algo1->XXX
> > > Exception in thread "main" Oct 08, 2015 1:15:01 PM
> > > org.apache.mina.core.filterchain.DefaultIoFilterChain
> > > callNextExceptionCaught
> > > WARNING: Unexpected exception from exceptionCaught handler.
> > > quickfix.RuntimeError: java.io.IOException: Stream Closed
> > >          at quickfix.SessionState.reset(SessionState.java:384)
> > >          at quickfix.Session.resetState(Session.java:2490)
> > >          at quickfix.Session.disconnect(Session.java:1967)
> > >          at quickfix.mina.AbstractIoHandler.exceptionCaught(AbstractIoHandler.java:79)
> > >          at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.exceptionCaught(DefaultIoFilterChain.java:824)
> > >          at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
> > >          at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:48)
> > >          at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:933)
> > >          at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:102)
> > >          at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
> > >          at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:48)
> > >          at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:933)
> > >          at org.apache.mina.filter.ssl.SslFilter.exceptionCaught(SslFilter.java:573)
> > >          at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
> > >          at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:48)
> > >          at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:933)
> > >          at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:102)
> > >          at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:590)
> > >          at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireExceptionCaught(DefaultIoFilterChain.java:580)
> > >          at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:741)
> > >          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.runWorker(ThreadPoolExecutor.java:1142)
> > >          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> > >          at java.lang.Thread.run(Thread.java:745)
> > > Caused by: java.io.IOException: Stream Closed
> > >          at java.io.FileOutputStream.writeBytes(Native Method)
> > >          at java.io.FileOutputStream.write(FileOutputStream.java:315)
> > >          at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
> > >          at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
> > >          at java.io.DataOutputStream.flush(DataOutputStream.java:123)
> > >          at java.io.FilterOutputStream.close(FilterOutputStream.java:158)
> > >          at quickfix.FileStore.closeOutputStream(FileStore.java:238)
> > >          at quickfix.FileStore.close(FileStore.java:223)
> > >          at quickfix.FileStore.deleteFiles(FileStore.java:243)
> > >          at quickfix.FileStore.initialize(FileStore.java:108)
> > >          at quickfix.FileStore.reset(FileStore.java:442)
> > >          at quickfix.SessionState.reset(SessionState.java:382)
> > >          ... 27 more
> > >          Suppressed: java.io.IOException: Stream Closed
> > >                  at java.io.FileOutputStream.writeBytes(Native Method)
> > >                  at java.io.FileOutputStream.write(FileOutputStream.java:315)
> > >                  at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
> > >                  at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
> > >                  at java.io.FilterOutputStream.close(FilterOutputStream.java:158)
> > >                  at java.io.FilterOutputStream.close(FilterOutputStream.java:159)
> > >                  ... 33 more
> > >
> > > java.lang.NullPointerException
> > >   at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
> > >          at quickfix.Session.lookupSession(Session.java:662)
> > >          at quickfix.Session.sendToTarget(Session.java:630)
> > >          at cts_fix.Application.secDef(Application.java:151)
> > >          at cts_fix.Application.allFutures(Application.java:126)
> > >          at cts_fix.Main.readInput(Main.java:79)
> > >          at cts_fix.Main.main(Main.java:177)
> > >
> > > ------------------------------------------------------------------------------
> > > _______________________________________________
> > > 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
> >
> > ------------------------------------------------------------------------------
> > _______________________________________________
> > Quickfixj-users mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/quickfixj-users
> >
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users
>

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

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

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