[ 
https://issues.apache.org/jira/browse/CXF-7576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vinay Khatri updated CXF-7576:
------------------------------
    Comment: was deleted

(was: This is mostly on multiple server instances. Where request is initiated 
by a server instance(and some file is stored in tmp folder), and due to load 
balancing the response is handled by another server instance. Since a file 
stored on initiator node is not available here fileNotFoundException occurs.)

> ws-security enonce ecache einstance data not found
> --------------------------------------------------
>
>                 Key: CXF-7576
>                 URL: https://issues.apache.org/jira/browse/CXF-7576
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 3.1.6
>            Reporter: Soumya Panda
>            Assignee: Colm O hEigeartaigh
>            Priority: Major
>
> _Hi Team,
> We are seeing a weird issue. It was working fine and nothing change but now 
> it started failing with  below error :
> _
> _{color:red}net.sf.ehcache.CacheException: java.io.FileNotFoundException: 
> /tmp/cxf745201861/ws-security%002enonce%002ecache%002einstance-
> {color}_1663277296.data (No such file or directory)
>         at 
> net.sf.ehcache.store.disk.DiskStorageFactory.<init>(DiskStorageFactory.java:146)
>         at net.sf.ehcache.store.disk.DiskStore.create(DiskStore.java:154)
>         at 
> net.sf.ehcache.store.disk.DiskStore.createCacheStore(DiskStore.java:182)
>         at net.sf.ehcache.Cache.initialise(Cache.java:1199)
>         at 
> net.sf.ehcache.CacheManager.initializeEhcache(CacheManager.java:1370)
>         at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:1436)
>         at 
> net.sf.ehcache.CacheManager.addCacheIfAbsent(CacheManager.java:1936)
>         at 
> org.apache.wss4j.common.cache.EHCacheReplayCache.<init>(EHCacheReplayCache.java:54)
>         at 
> org.apache.cxf.ws.security.cache.CXFEHCacheReplayCache.<init>(CXFEHCacheReplayCache.java:37)
>         at 
> org.apache.cxf.ws.security.wss4j.WSS4JUtils.getReplayCache(WSS4JUtils.java:124)
>         at 
> org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.getReplayCache(WSS4JInInterceptor.java:776)
>         at 
> org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.configureReplayCaches(WSS4JInInterceptor.java:413)
>         at 
> org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessageInternal(WSS4JInInterceptor.java:249)
>         at 
> org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessage(WSS4JInInterceptor.java:184)
>         at 
> com.sbc.cc.clarify.api.util.cxf.interceptors.security.WebInInterceptor.handleMessage(WebInInterceptor.java:60)
>         at 
> com.sbc.cc.clarify.api.util.cxf.interceptors.security.WebInInterceptor.handleMessage(WebInInterceptor.java:19)
>         at 
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
>         at 
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
>         at 
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:251)
>         at 
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:234)
>         at 
> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)
>         at 
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1129)
>         at 
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1065)
>         at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
>         at 
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
>         at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
>         at org.eclipse.jetty.server.Server.handle(Server.java:499)
>         at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
>         at 
> org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
>         at 
> org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
>         at 
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
>         at 
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
>         at java.lang.Thread.run(Thread.java:798)
> _{color:red}Caused by:
> java.io.FileNotFoundException: 
> /tmp/cxf745201861/ws-security%002enonce%002ecache%002einstance-1663277296.data
>  (No such file or directory){color}_
>         at java.io.RandomAccessFile.open(Native Method)
>         at java.io.RandomAccessFile.<init>(RandomAccessFile.java:253)
>         at 
> net.sf.ehcache.store.disk.DiskStorageFactory.allocateRandomAccessFiles(DiskStorageFactory.java:207)
>         at 
> net.sf.ehcache.store.disk.DiskStorageFactory.<init>(DiskStorageFactory.java:144)
>         ... 32 more



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to