You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2021/06/28 13:24:00 UTC
[jira] [Commented] (POOL-318)
java.util.ConcurrentModificationException
[ https://issues.apache.org/jira/browse/POOL-318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17370582#comment-17370582 ]
Gary D. Gregory commented on POOL-318:
--------------------------------------
Also, please do try with our current release, 2.4.2 is quite old!
> java.util.ConcurrentModificationException
> -----------------------------------------
>
> Key: POOL-318
> URL: https://issues.apache.org/jira/browse/POOL-318
> Project: Commons Pool
> Issue Type: Bug
> Affects Versions: 2.4.2
> Reporter: Sanjeev
> Priority: Major
>
> I am using commons.pool.2.4.2 and once size of existing pool reduces to certain number, application runs perparePool()
> I can see some instances of java.util.ConcurrentModificationException in error logs.
> at org.apache.commons.pool2.BasePooledObjectFactory.makeObject(BasePooledObjectFactory.java:60)
> at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:868)
> at org.apache.commons.pool2.impl.GenericObjectPool.ensureIdle(GenericObjectPool.java:927)
> at org.apache.commons.pool2.impl.GenericObjectPool.ensureMinIdle(GenericObjectPool.java:906)
> at org.apache.commons.pool2.impl.GenericObjectPool.preparePool(GenericObjectPool.java:844)
> .....
> at java.lang.Thread.run(Thread.java:722)
> Caused by: java.util.ConcurrentModificationException
> at java.util.HashMap$HashIterator.nextEntry(HashMap.java:894)
> at java.util.HashMap$EntryIterator.next(HashMap.java:934)
> at java.util.HashMap$EntryIterator.next(HashMap.java:932)
> at org.jboss.util.TimedCachePolicy.getValidKeys(TimedCachePolicy.java:364)
> at org.jboss.virtual.plugins.cache.IterableTimedVFSCache.findContext(IterableTimedVFSCache.java:65)
> at org.jboss.virtual.plugins.cache.CombinedVFSCache.findContext(CombinedVFSCache.java:116)
> at org.jboss.virtual.plugins.registry.DefaultVFSRegistry.getContext(DefaultVFSRegistry.java:132)
> at org.jboss.virtual.VFS.getVFS(VFS.java:203)
> at org.jboss.virtual.VFS.createNewRoot(VFS.java:228)
> at org.jboss.virtual.VFS.getRoot(VFS.java:244)
> at org.jboss.virtual.VFS.getRoot(VFS.java:313)
> at org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.resolveVirtualFile(VirtualFileURLConnection.java:105)
> at org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.getVirtualFile(VirtualFileURLConnection.java:118)
> at org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.getInputStream(VirtualFileURLConnection.java:93)
> at org.springframework.core.io.UrlResource.getInputStream(UrlResource.java:123)
> at org.apache.cxf.bus.spring.BusApplicationContext.getConfigResources(BusApplicationContext.java:115)
> at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:107)
> at org.apache.cxf.bus.spring.BusApplicationContext.loadBeanDefinitions(BusApplicationContext.java:262)
> at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
> at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
> at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
> at org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext.java:91)
> at org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBusFactory.java:102)
> at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:93)
> at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:86)
> at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:64)
> at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:53)
> at org.jboss.wsf.stack.cxf.client.ProviderImpl.setValidThreadDefaultBus(ProviderImpl.java:60)
> at org.jboss.wsf.stack.cxf.client.ProviderImpl.createServiceDelegate(ProviderImpl.java:41)
> at javax.xml.ws.Service.<init>(Service.java:56)
> at javax.xml.ws.Service.create(Service.java:680)
> Application runs preparePool () in new thread. and next statement is to borrow instance from pool. Borrowing does not fail but few poolPrepartion fail log is in error log.
> Any suggestions please?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)