[JBoss AS 7.2.0 alpha] [org.jboss.as.configadmin] JBAS014803: Duplicate resource
cberger Dec 5, 2012 7:26 AMHi, it's me again
I've got this stack trace after restarting my server. I did not change my configuration manually or anything like that. I just did a restart.
That's the config which has been stored in configadmin subsystem by jboss config admin:
<subsystem xmlns="urn:jboss:domain:configadmin:1.0"> | |
<configuration pid="com.mwaysolutions.gofer2.database.datasource.jndi.JndiDataSource.57bf06aa-7896-4e3d-ac29-3f9cb41e5ee2"> | |
<property name="service.pid" value="com.mwaysolutions.gofer2.database.datasource.jndi.JndiDataSource.57bf06aa-7896-4e3d-ac29-3f9cb41e5ee2"/> | |
<property name=".transient.serial.id" value="1"/> | |
<property name="name" value="java:jboss/datasources/GoferDS"/> | |
<property name="service.factoryPid" value="com.mwaysolutions.gofer2.database.datasource.jndi.JndiDataSource"/> | |
<property name=".transient.skip.cm.update" value="true"/> | |
<property name="usage" value="main"/> | |
</configuration> | |
<configuration pid="com.mwaysolutions.gofer2.database.datasource.jndi.JndiDataSource.factory"> | |
<property name="factory.pid" value="com.mwaysolutions.gofer2.database.datasource.jndi.JndiDataSource"/> | |
<property name=".transient.serial.id" value="1"/> | |
<property name=".transient.skip.cm.update" value="true"/> | |
</configuration> | |
<configuration pid="jettyConnectorService.cee661c1-edb3-4d87-828e-2f78bb7340dd"> | |
<property name="service.factoryPid" value="jettyConnectorService"/> | |
<property name="port" value="8080"/> | |
<property name="stats" value="false"/> | |
<property name="description" value="Jetty"/> | |
<property name="connectorClassName" value="org.eclipse.jetty.server.nio.SelectChannelConnector"/> | |
<property name="goferServiceName" value="Main\ HTTP\ Connector"/> | |
</configuration> | |
<configuration pid="jettyConnectorService.factory"> | |
<property name="factory.pid" value="jettyConnectorService"/> | |
<property name=".transient.serial.id" value="1"/> | |
<property name=".transient.skip.cm.update" value="true"/> | |
</configuration> | |
</subsystem> |
After that, my components were up and running. But after restarting the server I've got this stack trace:
12:07:46,616 ERROR [org.jboss.osgi.framework] (MSC service thread 1-2) JBOSGI011026: Framework Error: org.osgi.framework.BundleException: JBOSGI011254: Cannot start bundle: jboss-as-osgi-configadmin:7.2.0.Alpha1-SNAPSHOT at org.jboss.osgi.framework.internal.DefaultBundleLifecycleHandler.start(DefaultBundleLifecycleHandler.java:110) [jbosgi-framework-core-2.0.1.Final.jar:2.0.1.Final] at org.jboss.as.osgi.service.BundleLifecycleIntegration.start(BundleLifecycleIntegration.java:167) at org.jboss.osgi.framework.internal.HostBundleState.transitionToActive(HostBundleState.java:292) [jbosgi-framework-core-2.0.1.Final.jar:2.0.1.Final] at org.jboss.osgi.framework.internal.HostBundleState.startInternal(HostBundleState.java:228) [jbosgi-framework-core-2.0.1.Final.jar:2.0.1.Final] at org.jboss.osgi.framework.internal.AbstractBundleState.start(AbstractBundleState.java:522) [jbosgi-framework-core-2.0.1.Final.jar:2.0.1.Final] at org.jboss.osgi.framework.internal.DefaultStartLevelPlugin.increaseStartLevel(DefaultStartLevelPlugin.java:265) [jbosgi-framework-core-2.0.1.Final.jar:2.0.1.Final] at org.jboss.osgi.framework.internal.FrameworkActive.start(FrameworkActive.java:131) [jbosgi-framework-core-2.0.1.Final.jar:2.0.1.Final] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_37] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_37] at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_37] Caused by: java.util.ConcurrentModificationException at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:373) [rt.jar:1.6.0_37] at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:384) [rt.jar:1.6.0_37] at org.jboss.as.configadmin.service.ConfigAdminServiceImpl.addListener(ConfigAdminServiceImpl.java:249) at org.jboss.as.osgi.configadmin.DomainModelPersistenceManager.start(DomainModelPersistenceManager.java:68) at org.jboss.osgi.framework.internal.DefaultBundleLifecycleHandler.start(DefaultBundleLifecycleHandler.java:84) [jbosgi-framework-core-2.0.1.Final.jar:2.0.1.Final] ... 11 more 12:07:46,632 DEBUG [org.jboss.osgi.framework] (MSC service thread 1-2) Starting bundle: org.apache.felix.shell:1.4.2 12:07:46,632 DEBUG [org.jboss.osgi.framework] (MSC service thread 1-2) Register service: ServiceState{service.id=35, objectClass=[org.apache.felix.shell.ShellService, org.ungoverned.osgi.service.shell.ShellService]} 12:07:46,632 ERROR [jboss-as-osgi-configadmin] (Thread-68) FrameworkEvent ERROR: org.apache.felix.log.LogException: org.osgi.framework.BundleException: JBOSGI011254: Cannot start bundle: jboss-as-osgi-configadmin:7.2.0.Alpha1-SNAPSHOT at org.jboss.osgi.framework.internal.DefaultBundleLifecycleHandler.start(DefaultBundleLifecycleHandler.java:110) [jbosgi-framework-core-2.0.1.Final.jar:2.0.1.Final] at org.jboss.as.osgi.service.BundleLifecycleIntegration.start(BundleLifecycleIntegration.java:167) at org.jboss.osgi.framework.internal.HostBundleState.transitionToActive(HostBundleState.java:292) [jbosgi-framework-core-2.0.1.Final.jar:2.0.1.Final] at org.jboss.osgi.framework.internal.HostBundleState.startInternal(HostBundleState.java:228) [jbosgi-framework-core-2.0.1.Final.jar:2.0.1.Final] at org.jboss.osgi.framework.internal.AbstractBundleState.start(AbstractBundleState.java:522) [jbosgi-framework-core-2.0.1.Final.jar:2.0.1.Final] at org.jboss.osgi.framework.internal.DefaultStartLevelPlugin.increaseStartLevel(DefaultStartLevelPlugin.java:265) [jbosgi-framework-core-2.0.1.Final.jar:2.0.1.Final] at org.jboss.osgi.framework.internal.FrameworkActive.start(FrameworkActive.java:131) [jbosgi-framework-core-2.0.1.Final.jar:2.0.1.Final] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_37] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_37] at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_37] Caused by: java.util.ConcurrentModificationException at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:373) [rt.jar:1.6.0_37] at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:384) [rt.jar:1.6.0_37] at org.jboss.as.configadmin.service.ConfigAdminServiceImpl.addListener(ConfigAdminServiceImpl.java:249) at org.jboss.as.osgi.configadmin.DomainModelPersistenceManager.start(DomainModelPersistenceManager.java:68) at org.jboss.osgi.framework.internal.DefaultBundleLifecycleHandler.start(DefaultBundleLifecycleHandler.java:84) [jbosgi-framework-core-2.0.1.Final.jar:2.0.1.Final] ... 11 more . . . . 12:07:48,254 ERROR [org.jboss.as.configadmin] (ConfigAdmin Management Thread) JBAS016206: Cannot update configuration: com.mwaysolutions.gofer2.database.datasource.jndi.JndiDataSource.factory: java.lang.IllegalStateException: JBAS014803: Duplicate resource [ ("subsystem" => "configadmin"), ("configuration" => "com.mwaysolutions.gofer2.database.datasource.jndi.JndiDataSource.factory") ] at org.jboss.as.configadmin.service.ConfigAdminServiceImpl$ConfigAdminOperationTask.run(ConfigAdminServiceImpl.java:305) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) [rt.jar:1.6.0_37] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_37] at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_37] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_37] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_37] at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_37] 12:07:48,254 ERROR [org.jboss.as.configadmin] (ConfigAdmin Management Thread) JBAS016207: Cannot restore configuration: com.mwaysolutions.gofer2.database.datasource.jndi.JndiDataSource.factory: java.lang.NullPointerException at org.jboss.as.configadmin.service.ConfigAdminState.put(ConfigAdminState.java:76) at org.jboss.as.configadmin.service.ConfigAdminServiceImpl$3.call(ConfigAdminServiceImpl.java:182) at org.jboss.as.configadmin.service.ConfigAdminServiceImpl$ConfigAdminOperationTask.run(ConfigAdminServiceImpl.java:312) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) [rt.jar:1.6.0_37] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_37] at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_37] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_37] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_37] at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_37]
I try to provide a test case....
cheers
chris
-
server.log.zip 20.2 KB