[JBoss-dev] AbstractKernelController behavior inconsistent

Anil Saldhana anil.saldhana at jboss.com
Sat Aug 19 16:04:25 EDT 2006


Hi,
   There seems to be an inconsistent behavior in the
AbstractKernelController.

My test case code:

========================================================================
=
prepareTestDynamicLoginConfig(server, 
            new ObjectName("jboss:service=TestDynamicLoginConfig"),
null);
      try
      {
         server.invoke(serviceOName,"create", new Object[0], new
String[0]); 
         server.invoke(serviceOName,"start", new Object[0], new
String[0]);
         fail("Service should not have started");
      }
      catch(Throwable t)
      {
         log.debug("Service has rightly disagreed to start",t); 
      }
========================================================================
Is failing now because the MC instead of throwing an exception(unable to
start a service), is only logging the error as follows:

------------------------------------------------------------------
14:50:19,015 ERROR [AbstractKernelController] Error installing to Start:
name=jb
oss:service=TestDynamicLoginConfig state=Create mode=Manual
requiredState=Installed
java.lang.IllegalStateException: AuthConfig is defaulting to
conf/login-config.xml. Please check your archive.
        at
org.jboss.security.auth.login.DynamicLoginConfig.validateAuthConfigUR
L(DynamicLoginConfig.java:271)
        at
org.jboss.security.auth.login.DynamicLoginConfig.startService(Dynamic
LoginConfig.java:219)
        at
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
upport.java:289)
        at
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
eanSupport.java:245)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        ...

...org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
        at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
        at
org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java
:167)
        at $Proxy0.start(Unknown Source)
        at
org.jboss.system.microcontainer.StartStopLifecycleAction.installActio
n(StartStopLifecycleAction.java:42)
        at
org.jboss.system.microcontainer.ServiceControllerContextAction.instal
l(ServiceControllerContextAction.java:46)
        at
org.jboss.dependency.plugins.AbstractControllerContextActions.install
(AbstractControllerContextActions.java:51)
        at
org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
ctControllerContext.java:226)
-----------------------------------------------------------------

Please advice on this inconsistent behavior.

Regards,
Anil




More information about the jboss-development mailing list