java.io.FileNotFoundException: C:\croot\Rootnet\JavaCllientFixGateWay\store\FIX.4.2-CROOT-JETPAC.session (Access is denied)

QuickFIX/J JIRA | wangsheng | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    2015-02-25 01:58:48,906 [QFJ Timer] ERROR quickfix.ThreadedSocketAcceptor 289 - Error during timer processing quickfix.RuntimeError: java.io.FileNotFoundException: C:\croot\Rootnet\JavaCllientFixGateWay\store\FIX.4.2-CROOT-JETPAC.session (Access is denied) at quickfix.SessionState.reset(SessionState.java:379) at quickfix.Session.resetState(Session.java:2325) at quickfix.Session.reset(Session.java:798) at quickfix.Session.next(Session.java:1773) at quickfix.mina.SessionConnector$SessionTimerTask.run(SessionConnector.java:283) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) 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:662) Caused by: java.io.FileNotFoundException: C:\croot\Rootnet\JavaCllientFixGateWay\store\FIX.4.2-CROOT-JETPAC.session (Access is denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:194) at java.io.FileOutputStream.<init>(FileOutputStream.java:116) at quickfix.FileStore.storeSessionTimeStamp(FileStore.java:143) at quickfix.FileStore.initializeSessionCreateTime(FileStore.java:138) at quickfix.FileStore.initializeCache(FileStore.java:119) at quickfix.FileStore.initialize(FileStore.java:112) at quickfix.FileStore.reset(FileStore.java:447) at quickfix.SessionState.reset(SessionState.java:377) ... 13 more

    QuickFIX/J JIRA | 2 years ago | wangsheng
    java.io.FileNotFoundException: C:\croot\Rootnet\JavaCllientFixGateWay\store\FIX.4.2-CROOT-JETPAC.session (Access is denied)
  2. 0

    The FileStore like all the other stores are not synchronized. The access to this store, at times, can be done by 2 threads concurrently. When a session is about to be estabilished, logon request is sent to the server, if the request is not answered by the server in within the timeout period the connection is closed and the reconnect timer starts. The problem is that when the Timeout Timer [QFJ Timer] fires it also releases [QFJ Message Processor] thread which tries to process EndOfFille/Stream event, both threads will try to reset the MessageStore on next(). During the reset() the FileStore is (re)initialized which causes the following actions: close existing files, open the files, read stores. When done in parallel, one thread may try to open or read while the other is closing the files resulting in: 1. Read corrupted data from message stores 2. Leak file handles Some proof: 16:18:28.763 [QFJ Timer] INFO quickfix.FileStore - initialize() called from. at quickfix.FileStore.initialize(FileStore.java:111) [quickfixj-core-1.6.2.jar:1.6.2] at quickfix.FileStore.reset(FileStore.java:465) [quickfixj-core-1.6.2.jar:1.6.2] at quickfix.SessionState.reset(SessionState.java:382) [quickfixj-core-1.6.2.jar:1.6.2] at quickfix.Session.resetState(Session.java:2503) [quickfixj-core-1.6.2.jar:1.6.2] at quickfix.Session.disconnect(Session.java:1968) [quickfixj-core-1.6.2.jar:1.6.2] at quickfix.Session.next(Session.java:1808) [quickfixj-core-1.6.2.jar:1.6.2] at quickfix.mina.SessionConnector$SessionTimerTask.run(SessionConnector.java:278) [quickfixj-core-1.6.2.jar:1.6.2] And from: 16:18:28.788 [QFJ Message Processor] INFO quickfix.FileStore - initialize() called from. at quickfix.FileStore.initialize(FileStore.java:111) [quickfixj-core-1.6.2.jar:1.6.2] at quickfix.FileStore.reset(FileStore.java:465) [quickfixj-core-1.6.2.jar:1.6.2] at quickfix.SessionState.reset(SessionState.java:382) [quickfixj-core-1.6.2.jar:1.6.2] at quickfix.Session.resetState(Session.java:2503) [quickfixj-core-1.6.2.jar:1.6.2] at quickfix.Session.disconnect(Session.java:1968) [quickfixj-core-1.6.2.jar:1.6.2] at quickfix.Session.next(Session.java:882) [quickfixj-core-1.6.2.jar:1.6.2] at quickfix.Session.next(Session.java:1109) [quickfixj-core-1.6.2.jar:1.6.2] at quickfix.mina.SingleThreadedEventHandlingStrategy$SessionMessageEvent.processMessage(SingleThreadedEventHandlingStrategy.java:144) [quickfixj-core-1.6.2.jar:1.6.2] at quickfix.mina.SingleThreadedEventHandlingStrategy.block(SingleThreadedEventHandlingStrategy.java:91) [quickfixj-core-1.6.2.jar:1.6.2] at quickfix.mina.SingleThreadedEventHandlingStrategy$1.run(SingleThreadedEventHandlingStrategy.java:125) [quickfixj-core-1.6.2.jar:1.6.2] Out of file handles: ERROR [QFJ Timer] quickfix.SocketInitiator Error during timer processing quickfix.RuntimeError: java.io.FileNotFoundException: [/..../Session].header (Too many open files) at quickfix.SessionState.reset(SessionState.java:384) ~[quickfixj-core-1.6.2.jar:1.6.2] at quickfix.Session.resetState(Session.java:2499) ~[quickfixj-core-1.6.2.jar:1.6.2] at quickfix.Session.disconnect(Session.java:1967) ~[quickfixj-core-1.6.2.jar:1.6.2] at quickfix.Session.next(Session.java:1808) ~[quickfixj-core-1.6.2.jar:1.6.2] at quickfix.mina.SessionConnector$SessionTimerTask.run(SessionConnector.java:278) [quickfixj-core-1.6.2.jar:1.6.2] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_74] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:1.8.0_74] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_74] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:1.8.0_74] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_74] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_74] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_74] Caused by: java.io.FileNotFoundException: [/.../Session].header (Too many open files) at java.io.FileOutputStream.open0(Native Method) ~[?:1.8.0_74] at java.io.FileOutputStream.open(FileOutputStream.java:270) ~[?:1.8.0_74] at java.io.FileOutputStream.<init>(FileOutputStream.java:213) ~[?:1.8.0_74] at java.io.FileOutputStream.<init>(FileOutputStream.java:133) ~[?:1.8.0_74] at quickfix.FileStore.initializeMessageIndex(FileStore.java:198) ~[quickfixj-core-1.6.2.jar:1.6.2] at quickfix.FileStore.initializeCache(FileStore.java:121) ~[quickfixj-core-1.6.2.jar:1.6.2] at quickfix.FileStore.initialize(FileStore.java:116) ~[quickfixj-core-1.6.2.jar:1.6.2] at quickfix.FileStore.reset(FileStore.java:442) ~[quickfixj-core-1.6.2.jar:1.6.2] at quickfix.SessionState.reset(SessionState.java:382) ~[quickfixj-core-1.6.2.jar:1.6.2] ... 11 more

    QuickFIX/J JIRA | 2 weeks ago | Constantin Florescu
    java.io.FileNotFoundException: [/..../Session].header (Too many open files)
  3. 0

    2015-02-25 01:58:48,906 [QFJ Timer] ERROR quickfix.ThreadedSocketAcceptor 289 - Error during timer processing quickfix.RuntimeError: java.io.FileNotFoundException: C:\croot\Rootnet\JavaCllientFixGateWay\store\FIX.4.2-CROOT-JETPAC.session (Access is denied) at quickfix.SessionState.reset(SessionState.java:379) at quickfix.Session.resetState(Session.java:2325) at quickfix.Session.reset(Session.java:798) at quickfix.Session.next(Session.java:1773) at quickfix.mina.SessionConnector$SessionTimerTask.run(SessionConnector.java:283) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) 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:662) Caused by: java.io.FileNotFoundException: C:\croot\Rootnet\JavaCllientFixGateWay\store\FIX.4.2-CROOT-JETPAC.session (Access is denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:194) at java.io.FileOutputStream.<init>(FileOutputStream.java:116) at quickfix.FileStore.storeSessionTimeStamp(FileStore.java:143) at quickfix.FileStore.initializeSessionCreateTime(FileStore.java:138) at quickfix.FileStore.initializeCache(FileStore.java:119) at quickfix.FileStore.initialize(FileStore.java:112) at quickfix.FileStore.reset(FileStore.java:447) at quickfix.SessionState.reset(SessionState.java:377) ... 13 more

    QuickFIX/J JIRA | 2 years ago | wangsheng
    quickfix.RuntimeError: java.io.FileNotFoundException: C:\croot\Rootnet\JavaCllientFixGateWay\store\FIX.4.2-CROOT-JETPAC.session (Access is denied)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    QuickFIX/J Jira

    quickfixj.org | 8 months ago
    quickfix.RuntimeError: java.io.FileNotFoundException: C:\croot\Rootnet\JavaCllientFixGateWay\store\FIX.4.2-CROOT-JETPAC.session (Access is denied)
  6. 0

    Error: "setFile(null,false) call failed" when using log4j

    Stack Overflow | 5 years ago | Shashank Jain
    java.io.FileNotFoundException: logs (Access is denied)
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.FileNotFoundException

    C:\croot\Rootnet\JavaCllientFixGateWay\store\FIX.4.2-CROOT-JETPAC.session (Access is denied)

    at java.io.FileOutputStream.open()
  2. Java RT
    FileOutputStream.<init>
    1. java.io.FileOutputStream.open(Native Method)
    2. java.io.FileOutputStream.<init>(FileOutputStream.java:194)
    3. java.io.FileOutputStream.<init>(FileOutputStream.java:116)
    3 frames
  3. Apache ServiceMix :: Bundles :: ${pkgArtifactId}
    SessionConnector$SessionTimerTask.run
    1. quickfix.FileStore.storeSessionTimeStamp(FileStore.java:143)
    2. quickfix.FileStore.initializeSessionCreateTime(FileStore.java:138)
    3. quickfix.FileStore.initializeCache(FileStore.java:119)
    4. quickfix.FileStore.initialize(FileStore.java:112)
    5. quickfix.FileStore.reset(FileStore.java:447)
    6. quickfix.SessionState.reset(SessionState.java:377)
    7. quickfix.Session.resetState(Session.java:2325)
    8. quickfix.Session.reset(Session.java:798)
    9. quickfix.Session.next(Session.java:1773)
    10. quickfix.mina.SessionConnector$SessionTimerTask.run(SessionConnector.java:283)
    10 frames
  4. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    2. java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
    3. java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
    4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
    5. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
    6. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
    7. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    8. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    9. java.lang.Thread.run(Thread.java:662)
    9 frames