java.lang.illegalargumentexception failed to properly unregister

When you have JDBC connection pool name same as application name in config.xml we are running into the issue.

1. Create JDBC connection pool named ‘FINAPP’.

2. Deploy an application with same name ‘FINAPP’ as JDBC connection pool in admin console.

Deployment is successful but you can find error in server log and stdout.

And if you reboot WebLogic Server and the first time you login to AdminConsole, the Error appears to the Server log and Stdout.

 

<Jul 16, 2012 10:40:50 AM EDT> <Warning> <JMX> <BEA-149517> <An attempt was made to unregister an mbean that was already unregistered: [email protected]>

<Jul 16, 2012 10:40:50 AM EDT> <Error> <Deployer> <BEA-149250> <Unable to unprepare application ‘FINAPP’.

weblogic.management.DeploymentException:

at weblogic.application.internal.flow.ApplicationRuntimeMBeanFlow.unprepare(ApplicationRuntimeMBeanFlow.java:64)

at weblogic.application.internal.BaseDeployment$1.previous(BaseDeployment.java:615)

at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:148)

at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:138)

at weblogic.application.internal.BaseDeployment.unprepare(BaseDeployment.java:249)

Truncated. see log file for complete stacktrace

During the shutdown following message is being logged.


 

This Mbean is not properly being unregistered which is causing the issue during the startup.

 

java.lang.IllegalArgumentException: Failed to properly unregister [email protected] for ObjectName com.bea:ServerRuntime=service_doc_den,Name=default,ApplicationRuntime=FINAPP,Type=WorkManagerRuntime

at weblogic.management.jmx.ObjectNameManagerBase.unregisterObject(ObjectNameManagerBase.java:219)

at weblogic.management.jmx.ObjectNameManagerBase.unregisterObjectInstance(ObjectNameManagerBase.java:192)

at weblogic.management.mbeanservers.internal.RuntimeMBeanAgent$1.unregisteredInternal(RuntimeMBeanAgent.java:124)

at weblogic.management.mbeanservers.internal.RuntimeMBeanAgent$1.unregistered(RuntimeMBeanAgent.java:108)

at weblogic.management.provider.core.RegistrationManagerBase.invokeRegistrationHandlers(RegistrationManagerBase.java:187)

Truncated. see log file for complete stacktrace

 

Probable Solution:

Please change the jdbc name or app deployment name so that they do not match.

Sample Configuration which is giving error:

 

<app-deployment>

<name>FINAPP</name>

<target>service_doc_den</target>

<module-type>war</module-type>

<source-path>servers/service_doc_den/upload/FINAPP.war</source-path>

<security-dd-model>DDOnly</security-dd-model>

</app-deployment>

<admin-server-name>service_doc_den</admin-server-name>

<jdbc-system-resource>

<name>FINAPP</name>

<target>service_doc_den</target>

<descriptor-file-name>jdbc/FINAPP-8529-jdbc.xml</descriptor-file-name>

</jdbc-system-resource>

 

change it to following in order to resolve the issue.

 

<app-deployment>

<name>FINAPP-Sample</name>

<target>service_doc_den</target>

<module-type>war</module-type>

<source-path>servers/service_doc_den/upload/FINAPP.war</source-path>

<security-dd-model>DDOnly</security-dd-model>

</app-deployment>

<admin-server-name>service_doc_den</admin-server-name>

<jdbc-system-resource>

<name>FINAPP</name>

<target>service_doc_den</target>

<descriptor-file-name>jdbc/FINAPP-8529-jdbc.xml</descriptor-file-name>

</jdbc-system-resource>

 

 

FEW Other Errors whcih comes due to this or similar issue:

 

af83e24ee6011dc0:51470d67:13cc9277762:-8000-0000000000015eb3> <1360735896045> <BEA-149250> <Unable to unprepare application ‘FinApp’.

weblogic.management.DeploymentException:

at weblogic.application.internal.BaseDeployment.throwAppException(BaseDeployment.java:82)

at weblogic.application.internal.BaseDeployment.unprepare(BaseDeployment.java:257)

at weblogic.application.internal.EarDeployment.unprepare(EarDeployment.java:59)

at weblogic.application.internal.DeploymentStateChecker.unprepare(DeploymentStateChec

…………..

…………..

at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)

at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

Caused By: weblogic.utils.ErrorCollectionException:

There are 3 nested errors:

weblogic.application.ModuleException:

at weblogic.xml.registry.XMLModule.unprepare(XMLModule.java:199)

at weblogic.application.internal.flow.ModuleListenerInvoker.unprepare(ModuleListenerInvoker.java:285)

……………

……………

java.lang.IllegalArgumentException: Failed to properly unregister w[email protected]11874d4b for ObjectName com.bea:ServerRuntime=FinServ1,Name=FinServ1_FinApp_APP-INF/lib/oracle.ucm.ridc-11.1.1.jar,ApplicationRuntime=FinApp,Type=AppClientComponentRuntime

at weblogic.management.jmx.ObjectNameManagerBase.unregisterObject(ObjectNameManagerBase.java:219)

at weblogic.management.jmx.ObjectNameManagerBase.unregisterObjectInstance(ObjectNameManagerBase.java:192)

at weblogic.management.mbeanservers.internal.RuntimeMBeanAgent$1.unregisteredInternal(RuntimeMBeanAgent.java:124)

at weblogic.management.mbeanservers.internal.RuntimeMBeanAgent$1.unregistered(RuntimeMBeanAgent.java:108)

at weblogic.management.provider.core.RegistrationManagerBase.invokeRegistrationHandlers(RegistrationManagerBase.java:187)

at weblogic.management.provider.core.RegistrationManagerBase.unregister(RegistrationManagerBase.java:126)

at weblogic.management.runtime.RuntimeMBeanDelegate.unregister(RuntimeMBeanDelegate.java:287)

at weblogic.j2ee.ComponentRuntimeMBeanImpl.unregister(ComponentRuntimeMBeanImpl.java:126)

at weblogic.application.internal.AppClientModule.destroy(AppClientModule.java:83)

at weblogic.application.internal.flow.ModuleListenerInvoker.destroy(ModuleListenerInvoker.java:305)

at weblogic.application.internal.flow.InitModulesFlow.destroy(InitModulesFlow.java:420)

at weblogic.application.internal.flow.InitModulesFlow.unprepare(InitModulesFlow.java:387)

at weblogic.application.internal.BaseDeployment$1.previous(BaseDeployment.java:655)

at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:223)

at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:216)

at weblogic.application.internal.BaseDeployment.unprepare(BaseDeployment.java:255)

at weblogic.application.internal.EarDeployment.unprepare(EarDeployment.java:59)

at weblogic.application.internal.DeploymentStateChecker.unprepare(DeploymentStateChecker.java:206)

at weblogic.deploy.internal.targetserver.AppContainerInvoker.unprepare(AppContainerInvoker.java:117)

at weblogic.deploy.internal.targetserver.BasicDeployment.unprepare(BasicDeployment.java:287)

at weblogic.management.deploy.internal.DeploymentAdapter$1.doUnprepare(DeploymentAdapter.java:82)

at weblogic.management.deploy.internal.DeploymentAdapter.unprepare(DeploymentAdapter.java:224)

at weblogic.management.deploy.internal.AppTransition$7.transitionApp(AppTransition.java:76)

at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)

at weblogic.management.deploy.internal.ConfiguredDeployments.unprepare(ConfiguredDeployments.java:205)

at weblogic.management.deploy.internal.ConfiguredDeployments.undeploy(ConfiguredDeployments.java:193)

at weblogic.management.deploy.internal.DeploymentServerService.shutdownApps(DeploymentServerService.java:195)

at weblogic.management.deploy.internal.DeploymentServerService.shutdownHelper(DeploymentServerService.java:127)

at weblogic.application.ApplicationShutdownService.halt(ApplicationShutdownService.java:143)

at weblogic.t3.srvr.ServerServicesManager.haltInternal(ServerServicesManager.java:504)

at weblogic.t3.srvr.ServerServicesManager.halt(ServerServicesManager.java:336)

at weblogic.t3.srvr.T3Srvr.shutdown(T3Srvr.java:1120)

at weblogic.t3.srvr.T3Srvr.forceShutdown(T3Srvr.java:1025)

at weblogic.t3.srvr.ServerRuntime.forceShutdown(ServerRuntime.java:349)

at weblogic.server.RemoteLifeCycleOperationsImpl.forceShutdown(RemoteLifeCycleOperationsImpl.java:59)

at weblogic.server.RemoteLifeCycleOperationsImpl_WLSkel.invoke(Unknown Source)

Leave a Reply

  1. My family members all the time say that I am wasting my time here at net, except I know I am getting know-how all the time by reading such fastidious articles.