You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Don Steinberg (JIRA)" <ji...@apache.org> on 2019/04/04 12:56:00 UTC

[jira] [Commented] (CXF-7375) Nonce cache FileNotFoundException

    [ https://issues.apache.org/jira/browse/CXF-7375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16809819#comment-16809819 ] 

Don Steinberg commented on CXF-7375:
------------------------------------

We are also seeing this issue randomly appear, with a similar stack trace, on various installations since January 2018.  At present we have encountered the problem on at least 6 different installations, both in-house and in production.  The installations where we have encountered the problem were all running fine for long periods of time before the problem was encountered.   No space issues were found.  We are running with CXF 3.1.10.  The application runs in JBoss EAP 7.      

Example stack trace:

 

thrown exception, unwinding now: net.sf.ehcache.CacheException: java.io.FileNotFoundException: /tmp/cxf710474778/ws-security%002esaml%002ecache%002einstance-1932588703.data (No such file or directory)

        at net.sf.ehcache.store.disk.DiskStorageFactory.<init>(DiskStorageFactory.java:146) [ehcache-2.9.0.jar:2.9.0]

        at net.sf.ehcache.store.disk.DiskStore.create(DiskStore.java:154) [ehcache-2.9.0.jar:2.9.0]

        at net.sf.ehcache.store.disk.DiskStore.createCacheStore(DiskStore.java:182) [ehcache-2.9.0.jar:2.9.0]

        at net.sf.ehcache.Cache.initialise(Cache.java:1199) [ehcache-2.9.0.jar:2.9.0]

        at net.sf.ehcache.CacheManager.initializeEhcache(CacheManager.java:1370) [ehcache-2.9.0.jar:2.9.0]

        at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:1436) [ehcache-2.9.0.jar:2.9.0]

        at net.sf.ehcache.CacheManager.addCacheIfAbsent(CacheManager.java:1936) [ehcache-2.9.0.jar:2.9.0]

        at org.apache.wss4j.common.cache.EHCacheReplayCache.<init>(EHCacheReplayCache.java:54) [wss4j-ws-security-common-2.1.1.jar:2.1.1]

We have been working around the issue by disabling the ehcache by adding '-Dnet.sf.ehcache.disabled=true' to JAVA_OPTS when starting JBoss.  While this works, we would like to see this issue fixed if possible.

> Nonce cache FileNotFoundException
> ---------------------------------
>
>                 Key: CXF-7375
>                 URL: https://issues.apache.org/jira/browse/CXF-7375
>             Project: CXF
>          Issue Type: Bug
>            Reporter: Suchithra Adaikkalavan
>            Assignee: Daniel Kulp
>            Priority: Major
>             Fix For: Invalid
>
>
> Hi We are running a CXF secure webservice. This has been running in production for a few months now. We have 6 servers where the same code is running. But we are getting the below error only from one of the servers when a request is posted.
> unwinding now: net.sf.ehcache.CacheException: java.io.FileNotFoundException: /tmp/cxf446961026/ws-security%002enonce%002ecache%002einstance-678998632.data (No such file or directory) 
>         at net.sf.ehcache.store.disk.DiskStorageFactory.<init>(DiskStorageFactory.java:144) 
>         at net.sf.ehcache.store.disk.DiskStore.create(DiskStore.java:134) 
>         at net.sf.ehcache.store.DiskBackedMemoryStore.createDiskStore(DiskBackedMemoryStore.java:61) 
>         at net.sf.ehcache.store.DiskBackedMemoryStore.create(DiskBackedMemoryStore.java:49) 
>         at net.sf.ehcache.Cache.initialise(Cache.java:1097) 
>         at net.sf.ehcache.CacheManager.initializeEhcache(CacheManager.java:1306) 
>         at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:1337) 
>         at net.sf.ehcache.CacheManager.addCacheIfAbsent(CacheManager.java:1838) 
>         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:115) 
>         at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.getReplayCache(WSS4JInInterceptor.java:848) 
>         at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.configureReplayCaches(WSS4JInInterceptor.java:443) 
>         at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessageInternal(WSS4JInInterceptor.java:254) 
>         at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessage(WSS4JInInterceptor.java:190) 
>         at org.apache.cxf.ws.security.wss4j.PolicyBasedWSS4JInInterceptor.handleMessage(PolicyBasedWSS4JInInterceptor.java:127) 
>         at org.apache.cxf.ws.security.wss4j.PolicyBasedWSS4JInInterceptor.handleMessage(PolicyBasedWSS4JInInterceptor.java:112) 
>         at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307) 
>         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.servlet.ServletController.invokeDestination(ServletController.java:234) 
>         at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208) 
>         at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160) 
>         at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:171) 
>         at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:293) 
>         at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:212) 
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) 
>         at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:268) 
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) 
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) 
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231) 
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) 
>         at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) 
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150) 
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) 
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) 
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) 
>         at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:490) 
>         at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:420) 
>         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) 
>         at java.lang.Thread.run(Thread.java:745) 
> Caused by: java.io.FileNotFoundException: /tmp/cxf446961026/ws-security%002enonce%002ecache%002einstance-678998632.data (No such file or directory) 
>         at java.io.RandomAccessFile.open0(Native Method) 
>         at java.io.RandomAccessFile.open(RandomAccessFile.java:316) 
>         at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243) 
>         at net.sf.ehcache.store.disk.DiskStorageFactory.allocateRandomAccessFiles(DiskStorageFactory.java:206) 
>         at net.sf.ehcache.store.disk.DiskStorageFactory.<init>(DiskStorageFactory.java:142) 



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