[jboss-jira] [JBoss JIRA] Updated: (JBVFS-107) UnsupportedOperationException on iterator.remove() call in AbstractVFSContext.getTempInfos() occurs during parsing of jboss-structure.xml during redeploy of war
Ian Springer (JIRA)
jira-events at lists.jboss.org
Fri Apr 17 10:38:22 EDT 2009
[ https://jira.jboss.org/jira/browse/JBVFS-107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ian Springer updated JBVFS-107:
-------------------------------
Attachment: JBVFS-107.patch
The attached patch should fix the issue by removing the invalid TempInfos post-iteration.
> UnsupportedOperationException on iterator.remove() call in AbstractVFSContext.getTempInfos() occurs during parsing of jboss-structure.xml during redeploy of war
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: JBVFS-107
> URL: https://jira.jboss.org/jira/browse/JBVFS-107
> Project: JBoss VFS
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 2.2.0.Alpha
> Reporter: Ian Springer
> Assignee: Ales Justin
> Attachments: JBVFS-107.patch
>
>
> Here's the stack. Looks like iterator.remove() is failing because the underlying List is a CopyOnWriteArrayList, which does not support iterator.remove().
> 09:42:04,629 WARN [HDScanner] Failed to process changes
> java.lang.RuntimeException: Error while adding re-deployments
> at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:688)
> at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
> at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:338)
> at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:231)
> 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:181)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
> 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:619)
> Caused by: org.jboss.deployers.spi.DeploymentException: Error determining structure: jbas5-admin-console.war
> at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
> at org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure.determineStructure(DeclaredStructure.java:89)
> at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73)
> at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:196)
> at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:221)
> at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77)
> at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1004)
> at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:440)
> at org.jboss.deployers.plugins.main.MainDeployerImpl.processToDeploy(MainDeployerImpl.java:345)
> at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:684)
> ... 12 more
> Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: vfsfile:/C:/opt/jboss-5.1.0.CR1-SNAPSHOT/server/default/deploy/jbas5-admin-console.war
> /META-INF/jboss-structure.xml
> at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:177)
> at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:201)
> at org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure.determineStructure(DeclaredStructure.java:74)
> ... 20 more
> Caused by: java.lang.UnsupportedOperationException
> at java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove(CopyOnWriteArrayList.java:1004)
> at org.jboss.virtual.plugins.context.AbstractVFSContext.getTempInfos(AbstractVFSContext.java:444)
> at org.jboss.virtual.plugins.registry.DefaultVFSRegistry.getFile(DefaultVFSRegistry.java:75)
> at org.jboss.virtual.plugins.registry.DefaultVFSRegistry.getFile(DefaultVFSRegistry.java:121)
> at org.jboss.virtual.protocol.AbstractVFSHandler.openConnection(AbstractVFSHandler.java:71)
> at java.net.URL.openConnection(URL.java:945)
> at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
> at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
> at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:173)
> ... 22 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list