[jboss-jira] [JBoss JIRA] (AS7-5133) "Once a process is reloaded, always reloaded" exception when reloading AS7

Jean-Frederic Clere (JIRA) jira-events at lists.jboss.org
Tue Oct 23 02:37:02 EDT 2012


     [ https://issues.jboss.org/browse/AS7-5133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Frederic Clere reopened AS7-5133:
--------------------------------------



In fact I reproduce it using arquillian and testing the following:
+++
        updates = new ArrayList<ModelNode>();
        op = new ModelNode();
        op.get(OP).set("reload");
        updates.add(op);
        applyUpdates(updates, client);
+++
and
+++
    public static void applyUpdates(final List<ModelNode> updates, final ModelControllerClient client) throws Exception {
        for (ModelNode update : updates) {
            log.info("+++ Update on " + client + ":\n" + update.toString());
            ModelNode result = client.execute(new OperationBuilder(update).build());
            if (result.hasDefined("outcome") && "success".equals(result.get("outcome").asString())) {
                if (result.hasDefined("result"))
                    log.info(result.get("result"));
            } else if (result.hasDefined("failure-description")) {
                throw new RuntimeException(result.get("failure-description").toString());
            } else {
                throw new RuntimeException("Operation not successful; outcome = " + result.get("outcome"));
            }
        }
    }
+++

The command causes the exception and the running server doesn't restart.
                
> "Once a process is reloaded, always reloaded" exception when reloading AS7
> --------------------------------------------------------------------------
>
>                 Key: AS7-5133
>                 URL: https://issues.jboss.org/browse/AS7-5133
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Domain Management
>            Reporter: Galder Zamarreño
>            Assignee: Brian Stansberry
>
> In a master build, once an server started in admin mode is reloaded, it throws:
> {code}16:52:31,576 ERROR [org.jboss.msc.service] MSC00002: Invocation of listener "org.jboss.as.controller.operations.common.ProcessReloadHandler$1$1 at 16e3a921" failed: java.lang.AssertionError: Once a process is reloaded, always reloaded!
> 	at org.jboss.as.controller.RunningModeControl.setReloaded(RunningModeControl.java:53) [jboss-as-controller-7.x.incremental.432.jar:7.x.incremental.432]
> 	at org.jboss.as.server.operations.ServerProcessReloadHandler$1.doReload(ServerProcessReloadHandler.java:72)
> 	at org.jboss.as.server.operations.ServerProcessReloadHandler$1.doReload(ServerProcessReloadHandler.java:63)
> 	at org.jboss.as.controller.operations.common.ProcessReloadHandler$1$1.transition(ProcessReloadHandler.java:95) [jboss-as-controller-7.x.incremental.432.jar:7.x.incremental.432]
> 	at org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1416) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
> 	at org.jboss.msc.service.ServiceControllerImpl.access$2700(ServiceControllerImpl.java:49) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
> 	at org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:1954) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_31]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_31]
> 	at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_31]{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the jboss-jira mailing list