[jboss-jira] [JBoss JIRA] (AS7-5010) Stack overflow in management API with many Bundles deployed
Brian Stansberry (JIRA)
jira-events at lists.jboss.org
Tue Jun 19 09:39:12 EDT 2012
[ https://issues.jboss.org/browse/AS7-5010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12702214#comment-12702214 ]
Brian Stansberry commented on AS7-5010:
---------------------------------------
To avoid this problem, instead of using this variant that results in recursion:
operationContext.completeStep();
use this variant:
/**
* Complete a step, while registering for
* {@link RollbackHandler#handleRollback(OperationContext, ModelNode)} a notification if the work done by the
* caller needs to be rolled back}.
*
* @param rollbackHandler the handler for any rollback notification. Cannot be {@code null}.
*/
void completeStep(RollbackHandler rollbackHandler);
If the handler wouldn't do anything on rollback, use:
operationContext.completeStep(RollbackHandler.NOOP_ROLLBACK_HANDLER);
Otherwise, pass in an anonymous inner class that implements the RollbackHandler interface.
> Stack overflow in management API with many Bundles deployed
> -----------------------------------------------------------
>
> Key: AS7-5010
> URL: https://issues.jboss.org/browse/AS7-5010
> Project: Application Server 7
> Issue Type: Bug
> Components: Domain Management, OSGi
> Affects Versions: 7.1.1.Final
> Reporter: Thomas Diesler
> Assignee: Brian Stansberry
> Fix For: 7.2.0.Alpha1
>
>
> Bernd says
> {quote}
> My Java 7 JVM is crashing in a Stack Overflow (which is a Bug initself). But while inspecting the hs_err file (attached) I noticed that the OSGi Parser has a extremly deep stack. I wonder if this is a endless loop bug or if it is caused by the many OSGi modules I have deployed in this 7.1.1.final AS7.
> I am not entirely shure what triggered the problem, at is happening after startup. But I think it was related with clicking the OSGi Runtime Management in the JBoss Managagement Console. There are roughly 250 bundles in the deployment list of the server group.
> {quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list