[JBoss JIRA] Commented: (EMBJOPR-282) Datasouces reported as DOWN - EAP5 + RHQ 1.4.0 SN
by Ondrej Žižka (JIRA)
[ https://jira.jboss.org/browse/EMBJOPR-282?page=com.atlassian.jira.plugin.... ]
Ondrej Žižka commented on EMBJOPR-282:
--------------------------------------
Charles Crouch:
> Ian, can you link this one to the related JBAS bugs?
> Also I thought the underlying profile service bug is meant to be fixed in 5.1? Ondrej, can you confirm?
Fixed in EAP 5.1.0.CR1. Closing.
> Datasouces reported as DOWN - EAP5 + RHQ 1.4.0 SN
> -------------------------------------------------
>
> Key: EMBJOPR-282
> URL: https://jira.jboss.org/browse/EMBJOPR-282
> Project: Embedded Jopr
> Issue Type: Bug
> Environment: EAP 5.0 GA
> RHQ 1.4.0 SN fd9664ea0c7a8053f367e1b4d1bc69ddca0a9be0
> Reporter: Ondrej Žižka
> Assignee: Ondrej Žižka
>
> Pre-existing datasources and those created in EmbJopr are reported as DOWN.
> Server log contains no errors, only:
> 17:07:24,891 INFO [DeployHandler] Handle stream, deploymentTarget: names=[myDS-ds.xml], description=vfsfile:/tmp/DsDataSourceTemplate2118984155330907703-ds.xml
> 17:07:24,938 INFO [DeployHandler] End handle stream, repositoryName: vfsfile:/home/brq/ozizka/JoprEmbedded/EAP5-GA/server/default/deploy/myDS-ds.xml
> 17:07:24,947 INFO [DeployHandler] Begin start, [vfsfile:/home/brq/ozizka/JoprEmbedded/EAP5-GA/server/default/deploy/myDS-ds.xml]
> 17:07:25,236 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=myDS' to JNDI name 'java:myDS'
> 17:07:25,239 INFO [DeployHandler] End start, [vfsfile:/home/brq/ozizka/JoprEmbedded/EAP5-GA/server/default/deploy/myDS-ds.xml]
> Hot-deployed -ds.xml datasources work:
> 17:19:14,564 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=MetricsInitialConnectionExistingFile' to JNDI name 'java:MetricsInitialConnectionExistingFile'
> 17:20:10,375 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=MetricsInitialConnectionExistingFile' from JNDI name 'java:MetricsInitialConnectionExistingFile'
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 5 months
[JBoss JIRA] Assigned: (EMBJOPR-282) Datasouces reported as DOWN - EAP5 + RHQ 1.4.0 SN
by Ondrej Žižka (JIRA)
[ https://jira.jboss.org/browse/EMBJOPR-282?page=com.atlassian.jira.plugin.... ]
Ondrej Žižka reassigned EMBJOPR-282:
------------------------------------
Assignee: Ondrej Žižka
> Datasouces reported as DOWN - EAP5 + RHQ 1.4.0 SN
> -------------------------------------------------
>
> Key: EMBJOPR-282
> URL: https://jira.jboss.org/browse/EMBJOPR-282
> Project: Embedded Jopr
> Issue Type: Bug
> Environment: EAP 5.0 GA
> RHQ 1.4.0 SN fd9664ea0c7a8053f367e1b4d1bc69ddca0a9be0
> Reporter: Ondrej Žižka
> Assignee: Ondrej Žižka
>
> Pre-existing datasources and those created in EmbJopr are reported as DOWN.
> Server log contains no errors, only:
> 17:07:24,891 INFO [DeployHandler] Handle stream, deploymentTarget: names=[myDS-ds.xml], description=vfsfile:/tmp/DsDataSourceTemplate2118984155330907703-ds.xml
> 17:07:24,938 INFO [DeployHandler] End handle stream, repositoryName: vfsfile:/home/brq/ozizka/JoprEmbedded/EAP5-GA/server/default/deploy/myDS-ds.xml
> 17:07:24,947 INFO [DeployHandler] Begin start, [vfsfile:/home/brq/ozizka/JoprEmbedded/EAP5-GA/server/default/deploy/myDS-ds.xml]
> 17:07:25,236 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=myDS' to JNDI name 'java:myDS'
> 17:07:25,239 INFO [DeployHandler] End start, [vfsfile:/home/brq/ozizka/JoprEmbedded/EAP5-GA/server/default/deploy/myDS-ds.xml]
> Hot-deployed -ds.xml datasources work:
> 17:19:14,564 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=MetricsInitialConnectionExistingFile' to JNDI name 'java:MetricsInitialConnectionExistingFile'
> 17:20:10,375 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=MetricsInitialConnectionExistingFile' from JNDI name 'java:MetricsInitialConnectionExistingFile'
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 5 months
[JBoss JIRA] Closed: (EMBJOPR-301) NPE's on shutdown - EWP 5.0.1 CR2
by Ian Springer (JIRA)
[ https://jira.jboss.org/browse/EMBJOPR-301?page=com.atlassian.jira.plugin.... ]
Ian Springer closed EMBJOPR-301.
--------------------------------
Assignee: Ian Springer
Resolution: Duplicate Issue
We'll track this in RHQ Bugzilla from here on out.
> NPE's on shutdown - EWP 5.0.1 CR2
> ----------------------------------
>
> Key: EMBJOPR-301
> URL: https://jira.jboss.org/browse/EMBJOPR-301
> Project: Embedded Jopr
> Issue Type: Bug
> Reporter: Ondrej Žižka
> Assignee: Ian Springer
>
> 14:21:58,822 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
> 14:21:59,285 INFO [Http11Protocol] Pausing Coyote HTTP/1.1 on http-0.0.0.0-8080
> 14:21:59,287 INFO [Http11Protocol] Stopping Coyote HTTP/1.1 on http-0.0.0.0-8080
> 14:22:00,079 INFO [AjpProtocol] Pausing Coyote AJP/1.3 on ajp-0.0.0.0-8009
> 14:22:00,084 INFO [AjpProtocol] Stopping Coyote AJP/1.3 on ajp-0.0.0.0-8009
> 14:22:00,538 INFO [TomcatDeployment] undeploy, ctxPath=/jbossws
> 14:22:00,604 INFO [TomcatDeployment] undeploy, ctxPath=/admin-console
> 14:22:00,659 INFO [BootstrapAction] Shutting down Administration Console...
> 14:22:00,766 WARN [InventoryManager] Failure during discovery for [Service Binding Manager] Resources - failed after 525 ms.
> java.lang.NullPointerException
> at org.rhq.core.pc.util.DiscoveryComponentProxyFactory$ResourceDiscoveryComponentInvocationHandler.invokeInNewThread(DiscoveryComponentProxyFactory.java:204)
> at org.rhq.core.pc.util.DiscoveryComponentProxyFactory$ResourceDiscoveryComponentInvocationHandler.invoke(DiscoveryComponentProxyFactory.java:193)
> at $Proxy142.discoverResources(Unknown Source)
> at org.rhq.core.pc.inventory.InventoryManager.invokeDiscoveryComponent(InventoryManager.java:279)
> at org.rhq.core.pc.inventory.InventoryManager.executeComponentDiscovery(InventoryManager.java:1855)
> at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.discoverForResource(RuntimeDiscoveryExecutor.java:239)
> at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.runtimeDiscover(RuntimeDiscoveryExecutor.java:141)
> at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.call(RuntimeDiscoveryExecutor.java:98)
> at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.call(RuntimeDiscoveryExecutor.java:55)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
> 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)
> 14:22:00,882 WARN [PluginClassLoader] Failed to purge embedded jars directory. Cause: java.io.IOException: Failed to delete file or directory: /home/brq/ozizka/work/JON/jboss-ewp-5.0/server/default/tmp/embjopr/jopr-jboss-as-5-plugin-2.3.0.EmbJopr.1.3.0-4.jar3341543028101815950.classloader
> 14:22:00,997 WARN [PluginClassLoader] Failed to purge embedded jars directory. Cause: java.io.IOException: Failed to delete file or directory: /home/brq/ozizka/work/JON/jboss-ewp-5.0/server/default/tmp/embjopr/rhq-jmx-plugin-1.3.0.EmbJopr.1.3.0-4.jar4976930695679864498.classloader
> 14:22:01,003 WARN [PluginClassLoader] Failed to purge embedded jars directory. Cause: java.io.IOException: Failed to delete file or directory: /home/brq/ozizka/work/JON/jboss-ewp-5.0/server/default/tmp/embjopr/jopr-jboss-as-5-plugin-2.3.0.EmbJopr.1.3.0-4.jar3341543028101815950.classloader/.nfs0000000000c553d8000011d8
> 14:22:01,040 WARN [PluginContainer] Failed to purge contents of temporary directory - cause: java.io.IOException: Failed to delete file or directory: /home/brq/ozizka/work/JON/jboss-ewp-5.0/server/default/tmp/embjopr/rhq-jmx-plugin-1.3.0.EmbJopr.1.3.0-4.jar4976930695679864498.classloader/.nfs0000000000c553d5000011df
> 14:22:01,045 ERROR [RuntimeDiscoveryExecutor] Error in runtime discovery
> java.lang.NullPointerException
> at org.rhq.core.pc.inventory.InventoryManager.removeResourceAndIndicateIfScanIsNeeded(InventoryManager.java:952)
> at org.rhq.core.pc.inventory.InventoryManager.removeResourceAndIndicateIfScanIsNeeded(InventoryManager.java:944)
> at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.removeStaleResources(RuntimeDiscoveryExecutor.java:276)
> at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.discoverForResource(RuntimeDiscoveryExecutor.java:257)
> at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.runtimeDiscover(RuntimeDiscoveryExecutor.java:141)
> at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.call(RuntimeDiscoveryExecutor.java:98)
> at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.call(RuntimeDiscoveryExecutor.java:55)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
> 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)
> 14:22:01,064 ERROR [RuntimeDiscoveryExecutor] Error in runtime discovery
> java.lang.NullPointerException
> at org.rhq.core.pc.plugin.PluginComponentFactory.getDiscoveryComponent(PluginComponentFactory.java:81)
> at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.discoverForResource(RuntimeDiscoveryExecutor.java:222)
> at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.runtimeDiscover(RuntimeDiscoveryExecutor.java:141)
> at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.call(RuntimeDiscoveryExecutor.java:98)
> at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.call(RuntimeDiscoveryExecutor.java:55)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
> 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)
> 14:22:01,065 INFO [TomcatDeployment] undeploy, ctxPath=/
> 14:22:01,065 ERROR [RuntimeDiscoveryExecutor] Error in runtime discovery
> java.lang.NullPointerException
> at org.rhq.core.pc.plugin.PluginComponentFactory.getDiscoveryComponent(PluginComponentFactory.java:81)
> at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.discoverForResource(RuntimeDiscoveryExecutor.java:222)
> at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.runtimeDiscover(RuntimeDiscoveryExecutor.java:141)
> at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.call(RuntimeDiscoveryExecutor.java:98)
> at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.call(RuntimeDiscoveryExecutor.java:55)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
> 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)
> 14:22:01,116 INFO [TomcatDeployment] undeploy, ctxPath=/jmx-console
> 14:22:01,249 INFO [TomcatDeployment] undeploy, ctxPath=/EarWithWar-Counter-war
> 14:22:01,252 INFO [TomcatDeployment] undeploy, ctxPath=/test
> 14:22:01,252 WARN [TomcatDeployment] Failed to map vhost: snert.home.pilhuhn.de
> 14:22:01,252 WARN [TomcatDeployment] Failed to map vhost: snert.home.bsd.de
> 14:22:01,257 INFO [StandardService] Stopping service jboss.web
> 14:22:01,609 INFO [MailService] Mail service 'java:/Mail' removed from JNDI
> 14:22:01,649 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' from JNDI name 'java:DefaultDS'
> 14:22:02,148 INFO [TransactionManagerService] Stopping transaction recovery manager
> 14:22:02,149 INFO [TransactionManagerService] Destroying TransactionManagerService
> 14:22:02,482 INFO [HypersonicDatabase] Database standalone closed clean
> 14:22:05,276 INFO [ServerImpl] Shutdown complete
> Shutdown complete
> Halting VM
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 5 months
[JBoss JIRA] Resolved: (EMBJOPR-299) rhq-parent 3.0.0 breaks EmbJopr build: Maven's "generate-build-number-properties" execution
by Ian Springer (JIRA)
[ https://jira.jboss.org/browse/EMBJOPR-299?page=com.atlassian.jira.plugin.... ]
Ian Springer resolved EMBJOPR-299.
----------------------------------
Fix Version/s: 1.4.0
Resolution: Done
This is fixed via the previously mentioned workaround. I've created https://bugzilla.redhat.com/show_bug.cgi?id=613767 to track the suggested improvement to the rhq root pom.
> rhq-parent 3.0.0 breaks EmbJopr build: Maven's "generate-build-number-properties" execution
> ---------------------------------------------------------------------------------------------
>
> Key: EMBJOPR-299
> URL: https://jira.jboss.org/browse/EMBJOPR-299
> Project: Embedded Jopr
> Issue Type: Bug
> Affects Versions: 1.3.2
> Reporter: Ondrej Žižka
> Assignee: Ian Springer
> Fix For: 1.4.0
>
> Attachments: generate-build-number-only-if-git.patch
>
>
> This
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>exec-maven-plugin</artifactId>
> <executions>
> <execution>
> <id>generate-build-number-properties</id>
> <phase>generate-resources</phase>
> <goals>
> <goal>exec</goal>
> </goals>
> <configuration>
> <executable>git</executable>
> <arguments>
> <argument>log</argument>
> <argument>--pretty=format:buildNumber = %h</argument>
> <argument>-n1</argument>
> </arguments>
> <outputFile>${project.build.directory}/build-number.properties</outputFile>
> </configuration>
> </execution>
> </executions>
> </plugin>
> breaks EmbJopr build:
> [INFO] [exec:exec {execution: generate-build-number-properties}]
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Result of /bin/sh -c cd /mnt/hudson_workspace/workspace/EmbJopr-noajax/embjopr && git log '--pretty=format:buildNumber = %h' -n1 execution is: '128'.
> [INFO] ------------------------------------------------------------------------
> I need it to be moved to some profile or anything I can disable conditionally.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 5 months
[JBoss JIRA] Resolved: (EMBJOPR-275) AS6: Seam StackOverflowException, then HTTP 302 loop.
by Shelly McGowan (JIRA)
[ https://jira.jboss.org/browse/EMBJOPR-275?page=com.atlassian.jira.plugin.... ]
Shelly McGowan resolved EMBJOPR-275.
------------------------------------
Resolution: Duplicate Issue
This should be RESOLVED. Duplicate of EMBJOPR-269. Ondra, if you find otherwise, pls reopen
> AS6: Seam StackOverflowException, then HTTP 302 loop.
> -----------------------------------------------------
>
> Key: EMBJOPR-275
> URL: https://jira.jboss.org/browse/EMBJOPR-275
> Project: Embedded Jopr
> Issue Type: Bug
> Environment: AS6 SNAPSHOT r99498
> RHQ and Jopr 1.4.0 commit 6a59e0f19febd2d316872a2d1af27e14d0d65247
> Reporter: Ondrej Žižka
> Assignee: Charles Crouch
>
> Upon first request to http://localhost:8080/admin-console/ , a StackOverflowException is thrown; Seam does a redirect, but that throws the same, and the Admin Console end up in a HTTP 302 loop.
> ------------------------------------------------------------------------------
> 00:47:16,265 WARN [org.jboss.seam.web.ExceptionFilter] exception root cause
> 00:47:16,265 WARN [org.jboss.seam.web.ExceptionFilter] running exception handlers
> 00:47:16,305 WARN [org.jboss.seam.web.ExceptionFilter] handling uncaught exception: javax.servlet.ServletException
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:325)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:336)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
> at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:38)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
> at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
> at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
> at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
> at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
> at org.jboss.on.embedded.LazyStartupFilter.doFilter(LazyStartupFilter.java:87)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:276)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
> at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
> at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
> at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:366)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:872)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.StackOverflowError
> at org.jboss.logmanager.Logger.log(Logger.java:811)
> at org.jboss.logmanager.log4j.BridgeLogger.debug(BridgeLogger.java:96)
> at org.jboss.seam.interop.jul.Log4JConversionFilter.logWithoutThrowable(Log4JConversionFilter.java:145)
> at org.jboss.seam.interop.jul.Log4JConversionFilter.isLoggable(Log4JConversionFilter.java:72)
> at org.jboss.logmanager.Logger.logRaw(Logger.java:836)
> at org.jboss.logmanager.Logger.log(Logger.java:799)
> at org.jboss.logmanager.Logger.log(Logger.java:811)
> ...
> at org.jboss.logmanager.Logger.log(Logger.java:811)
> at org.jboss.logmanager.log4j.BridgeLogger.debug(BridgeLogger.java:96)
> at org.jboss.seam.interop.jul.Log4JConversionFilter.logWithoutThrowable(Log4JConversionFilter.java:145)
> at org.jboss.seam.interop.jul.Log4JConversionFilter.isLoggable(Log4JConversionFilter.java:72)
> at org.jboss.logmanager.Logger.logRaw(Logger.java:836)
> at org.jboss.logmanager.Logger.log(Logger.java:799)
> at org.jboss.logmanager.Logger.log(Logger.java:811)
> at org.jboss.logmanager.log4j.BridgeLogger.debug(BridgeLogger.java:96)
> at org.jboss.seam.interop.jul.Log4JConversionFilter.logWithoutThrowable(Log4JConversionFilter.java:145)
> at org.jboss.seam.interop.jul.Log4JConversionFilter.isLoggable(Log4JConversionFilter.java:72)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 5 months
[JBoss JIRA] Commented: (EMBJOPR-124) ConcurrentModificationException on Resource.childResources during response rendering
by Ondrej Žižka (JIRA)
[ https://jira.jboss.org/browse/EMBJOPR-124?page=com.atlassian.jira.plugin.... ]
Ondrej Žižka commented on EMBJOPR-124:
--------------------------------------
Could EmbJopr catch the exception and do something reasonable, like, re-directing to the same URL, or at least show a custom error page?
> ConcurrentModificationException on Resource.childResources during response rendering
> -------------------------------------------------------------------------------------
>
> Key: EMBJOPR-124
> URL: https://jira.jboss.org/browse/EMBJOPR-124
> Project: Embedded Jopr
> Issue Type: Bug
> Components: Core Infrastructure
> Affects Versions: 1.1
> Reporter: Ian Springer
> Assignee: Ian Springer
> Priority: Critical
> Fix For: 1.2
>
>
> I got the below stack trace on a Facelets error page immediately after logging into the Admin Console:
> 13:39:11,991 ERROR [viewhandler] Error Rendering View[/secure/resourceTypeSummary.xhtml]
> java.util.ConcurrentModificationException
> at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:373)
> at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:384)
> at java.util.HashSet.writeObject(HashSet.java:267)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> at org.rhq.core.domain.resource.Resource.writeExternal(Resource.java:1509)
> at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1421)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1390)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> at org.rhq.core.domain.resource.Resource.writeExternal(Resource.java:1494)
> at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1421)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1390)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> at java.util.ArrayList.writeObject(ArrayList.java:570)
> at sun.reflect.GeneratedMethodAccessor359.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> at java.util.HashMap.writeObject(HashMap.java:1001)
> at sun.reflect.GeneratedMethodAccessor301.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> at com.sun.faces.renderkit.ResponseStateManagerImpl.writeState(ResponseStateManagerImpl.java:269)
> at javax.faces.render.ResponseStateManager.writeState(ResponseStateManager.java:166)
> at org.ajax4jsf.application.AjaxStateManager.writeState(AjaxStateManager.java:294)
> at org.ajax4jsf.application.AjaxStateManager.writeState(AjaxStateManager.java:256)
> at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:620)
> at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
> at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
> at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
> at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
> at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:38)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
> at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
> at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)
> at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
> at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:51)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
> at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
> at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
> at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at java.lang.Thread.run(Thread.java:619)
>
> I've only seen this once, so I think it's fairly rare. It looks to me like the fix would be changing:
> if (childResources != null && childResources.getClass().getName().contains("hibernate")) {
> out.writeObject(new LinkedHashSet<Resource>(childResources));
> } else {
> out.writeObject(childResources);
> }
> in Resource.writeExternal() to:
> out.writeObject(new LinkedHashSet<Resource>(childResources));
> to eliminate the chance of CMEs when some other thread tries to modify the childResources Set at the same time out.writeObject() is iterating it.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 5 months
[JBoss JIRA] Commented: (EMBJOPR-124) ConcurrentModificationException on Resource.childResources during response rendering
by John Mazzitelli (JIRA)
[ https://jira.jboss.org/browse/EMBJOPR-124?page=com.atlassian.jira.plugin.... ]
John Mazzitelli commented on EMBJOPR-124:
-----------------------------------------
We actually removed our externalizable implementations from our domain objects due to our switch over to GWT. I bet this goes away in the next release.
> ConcurrentModificationException on Resource.childResources during response rendering
> -------------------------------------------------------------------------------------
>
> Key: EMBJOPR-124
> URL: https://jira.jboss.org/browse/EMBJOPR-124
> Project: Embedded Jopr
> Issue Type: Bug
> Components: Core Infrastructure
> Affects Versions: 1.1
> Reporter: Ian Springer
> Assignee: Ian Springer
> Priority: Critical
> Fix For: 1.2
>
>
> I got the below stack trace on a Facelets error page immediately after logging into the Admin Console:
> 13:39:11,991 ERROR [viewhandler] Error Rendering View[/secure/resourceTypeSummary.xhtml]
> java.util.ConcurrentModificationException
> at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:373)
> at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:384)
> at java.util.HashSet.writeObject(HashSet.java:267)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> at org.rhq.core.domain.resource.Resource.writeExternal(Resource.java:1509)
> at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1421)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1390)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> at org.rhq.core.domain.resource.Resource.writeExternal(Resource.java:1494)
> at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1421)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1390)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> at java.util.ArrayList.writeObject(ArrayList.java:570)
> at sun.reflect.GeneratedMethodAccessor359.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> at java.util.HashMap.writeObject(HashMap.java:1001)
> at sun.reflect.GeneratedMethodAccessor301.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> at com.sun.faces.renderkit.ResponseStateManagerImpl.writeState(ResponseStateManagerImpl.java:269)
> at javax.faces.render.ResponseStateManager.writeState(ResponseStateManager.java:166)
> at org.ajax4jsf.application.AjaxStateManager.writeState(AjaxStateManager.java:294)
> at org.ajax4jsf.application.AjaxStateManager.writeState(AjaxStateManager.java:256)
> at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:620)
> at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
> at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
> at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
> at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
> at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:38)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
> at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
> at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)
> at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
> at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:51)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
> at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
> at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
> at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at java.lang.Thread.run(Thread.java:619)
>
> I've only seen this once, so I think it's fairly rare. It looks to me like the fix would be changing:
> if (childResources != null && childResources.getClass().getName().contains("hibernate")) {
> out.writeObject(new LinkedHashSet<Resource>(childResources));
> } else {
> out.writeObject(childResources);
> }
> in Resource.writeExternal() to:
> out.writeObject(new LinkedHashSet<Resource>(childResources));
> to eliminate the chance of CMEs when some other thread tries to modify the childResources Set at the same time out.writeObject() is iterating it.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 5 months
[JBoss JIRA] Commented: (EMBJOPR-124) ConcurrentModificationException on Resource.childResources during response rendering
by Ondrej Žižka (JIRA)
[ https://jira.jboss.org/browse/EMBJOPR-124?page=com.atlassian.jira.plugin.... ]
Ondrej Žižka commented on EMBJOPR-124:
--------------------------------------
So now when I get this CMEx, I should not care as it's rather a rare case?
> ConcurrentModificationException on Resource.childResources during response rendering
> -------------------------------------------------------------------------------------
>
> Key: EMBJOPR-124
> URL: https://jira.jboss.org/browse/EMBJOPR-124
> Project: Embedded Jopr
> Issue Type: Bug
> Components: Core Infrastructure
> Affects Versions: 1.1
> Reporter: Ian Springer
> Assignee: Ian Springer
> Priority: Critical
> Fix For: 1.2
>
>
> I got the below stack trace on a Facelets error page immediately after logging into the Admin Console:
> 13:39:11,991 ERROR [viewhandler] Error Rendering View[/secure/resourceTypeSummary.xhtml]
> java.util.ConcurrentModificationException
> at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:373)
> at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:384)
> at java.util.HashSet.writeObject(HashSet.java:267)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> at org.rhq.core.domain.resource.Resource.writeExternal(Resource.java:1509)
> at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1421)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1390)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> at org.rhq.core.domain.resource.Resource.writeExternal(Resource.java:1494)
> at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1421)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1390)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> at java.util.ArrayList.writeObject(ArrayList.java:570)
> at sun.reflect.GeneratedMethodAccessor359.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> at java.util.HashMap.writeObject(HashMap.java:1001)
> at sun.reflect.GeneratedMethodAccessor301.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> at com.sun.faces.renderkit.ResponseStateManagerImpl.writeState(ResponseStateManagerImpl.java:269)
> at javax.faces.render.ResponseStateManager.writeState(ResponseStateManager.java:166)
> at org.ajax4jsf.application.AjaxStateManager.writeState(AjaxStateManager.java:294)
> at org.ajax4jsf.application.AjaxStateManager.writeState(AjaxStateManager.java:256)
> at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:620)
> at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
> at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
> at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
> at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
> at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:38)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
> at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
> at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)
> at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
> at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:51)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
> at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
> at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
> at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at java.lang.Thread.run(Thread.java:619)
>
> I've only seen this once, so I think it's fairly rare. It looks to me like the fix would be changing:
> if (childResources != null && childResources.getClass().getName().contains("hibernate")) {
> out.writeObject(new LinkedHashSet<Resource>(childResources));
> } else {
> out.writeObject(childResources);
> }
> in Resource.writeExternal() to:
> out.writeObject(new LinkedHashSet<Resource>(childResources));
> to eliminate the chance of CMEs when some other thread tries to modify the childResources Set at the same time out.writeObject() is iterating it.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 5 months