[jboss-user] [Installation, Configuration & Deployment] - Strange problem while upgrading Jboss 3.2.3 to Jboss 4.0.5

indra_adak do-not-reply at jboss.com
Mon Jun 4 10:10:56 EDT 2007


Hello,

I am having a strange problem with Jboss 4.0.5.
This is about an application running successfully on 3.2.3.
While upgrading the application to Jboss 4.0.5,
I am finding the following problem.

It looks like the service attempts to start before the JDBC Resource Adapter
(JNDI Name java:udc/ucportal/jdbc/DataSource) fully starts.

It is evident from the log below. The following statement executes starts after the Exception.

18:39:18,514 INFO  [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca
:name=udc/ucportal/jdbc/DataSource,service=DataSourceBinding' to JNDI name 'java
:udc/ucportal/jdbc/DataSource'


18:39:15,900 INFO  [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca
:name=DefaultDS,service=DataSourceBinding' to JNDI name 'java:DefaultDS'
18:39:16,181 INFO  [A] Bound to JNDI name: queue/A
18:39:16,191 INFO  [B] Bound to JNDI name: queue/B
18:39:16,191 INFO  [C] Bound to JNDI name: queue/C
18:39:16,191 INFO  [D] Bound to JNDI name: queue/D
18:39:16,191 INFO  [ex] Bound to JNDI name: queue/ex
18:39:16,241 INFO  [testTopic] Bound to JNDI name: topic/testTopic
18:39:16,241 INFO  [securedTopic] Bound to JNDI name: topic/securedTopic
18:39:16,251 INFO  [testDurableTopic] Bound to JNDI name: topic/testDurableTopic

18:39:16,251 INFO  [testQueue] Bound to JNDI name: queue/testQueue
18:39:16,321 INFO  [UILServerILService] JBossMQ UIL service available at : /0.0.
0.0:8093
18:39:16,371 INFO  [DLQ] Bound to JNDI name: queue/DLQ
18:39:16,561 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
oss.jca:name=JmsXA,service=ConnectionFactoryBinding' to JNDI name 'java:JmsXA'
18:39:16,802 INFO  [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca
:name=udc/ucauditViewer/jdbc/DataSource,service=DataSourceBinding' to JNDI name
'java:udc/ucauditViewer/jdbc/DataSource'
18:39:16,912 INFO  [UCPortalService] Starting up all services
18:39:16,952 INFO  [PortalDataSource] Context Not Found: Defaulting to Audit Pro
perties
18:39:17,012 INFO  [PortalRequestSynchronizer] spinning up
18:39:17,022 INFO  [DataSourceConnection] Initializing
18:39:17,032 INFO  [AuditManager] Starting
18:39:18,054 INFO  [DataSourceConnection] Initializing
18:39:18,054 INFO  [DataSourceConnection] using DataSource 'java:/udc/ucportal/j
dbc/DataSource'
18:39:18,054 WARN  [ServiceController] Problem starting service udc.ucportal:ser
vice=UCPortalService
java.lang.IllegalThreadStateException: Exception while writing to UC Portal Data
base
        at com.hp.uc.audit.api.AuditManager.start(AuditManager.java:185)
        at com.hp.uc.gw.service.UCPortalService.startAuditManager(UCPortalServic
e.java:148)
        at com.hp.uc.gw.service.UCPortalService.start(UCPortalService.java:69)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
ler.java:995)
        at $Proxy0.start(Unknown Source)
        at org.jboss.system.ServiceController.start(ServiceController.java:417)
        at org.jboss.system.ServiceController.start(ServiceController.java:435)
        at org.jboss.system.ServiceController.start(ServiceController.java:435)
        at org.jboss.system.ServiceController.start(ServiceController.java:435)
        at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy4.start(Unknown Source)
        at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
or.java:133)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
BeanOperationInterceptor.java:142)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy26.start(Unknown Source)
        at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:197)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
        at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
or.java:133)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
BeanOperationInterceptor.java:142)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy6.deploy(Unknown Source)
        at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
tScanner.java:421)
        at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
canner.java:634)
        at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
doScan(AbstractDeploymentScanner.java:263)
        at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
bstractDeploymentScanner.java:336)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
upport.java:289)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
eanSupport.java:245)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
ler.java:978)
        at $Proxy0.start(Unknown Source)
        at org.jboss.system.ServiceController.start(ServiceController.java:417)
        at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy4.start(Unknown Source)
        at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
or.java:133)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
BeanOperationInterceptor.java:142)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy5.deploy(Unknown Source)
        at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
        at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
        at org.jboss.Main.boot(Main.java:200)
        at org.jboss.Main$1.run(Main.java:490)
        at java.lang.Thread.run(Thread.java:534)
18:39:18,514 INFO  [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca
:name=udc/ucportal/jdbc/DataSource,service=DataSourceBinding' to JNDI name 'java
:udc/ucportal/jdbc/DataSource'
18:39:18,735 INFO  [TomcatDeployer] deploy, ctxPath=/UCControlPanel, warUrl=.../
deploy/UCControlPanel.war/
18:39:22,891 INFO  [TomcatDeployer] deploy, ctxPath=/images, warUrl=.../deploy/i
mages.war/
18:39:23,212 INFO  [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../dep
loy/jmx-console.war/
18:39:23,562 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- Packages waiting for a deployer ---
org.jboss.deployment.DeploymentInfo at 869ed947 { url=file:/C:/opt/HP/jboss/server/
default/deploy/jboss.remove/ }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/C:/opt/HP/jboss/server/default/deploy/jboss.remove/
  altDD: null
  lastDeployed: 1180962563562
  lastModified: 1180956282696
  mbeans:

--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo at 869ed947 { url=file:/C:/opt/HP/jboss/server/
default/deploy/jboss.remove/ }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/C:/opt/HP/jboss/server/default/deploy/jboss.remove/
  altDD: null
  lastDeployed: 1180962563562
  lastModified: 1180956282696
  mbeans:

--- MBeans waiting for other MBeans ---
ObjectName: udc.ucportal:service=UCPortalService
  State: FAILED
  Reason: java.lang.IllegalThreadStateException: Exception while writing to UC P
ortal Database
  I Depend On:
    jboss.jca:name=udc/ucportal/jdbc/DataSource,service=LocalTxCM
    jboss:service=ClientUserTransaction

ObjectName: jboss.jdbc:datasource=DefaultDS,service=metadata
  State: CONFIGURED
  I Depend On:
    jboss.jdbc:service=metadata

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: udc.ucportal:service=UCPortalService
  State: FAILED
  Reason: java.lang.IllegalThreadStateException: Exception while writing to UC P
ortal Database
  I Depend On:
    jboss.jca:name=udc/ucportal/jdbc/DataSource,service=LocalTxCM
    jboss:service=ClientUserTransaction

ObjectName: jboss.jdbc:service=metadata
  State: NOTYETINSTALLED
  Depends On Me:
    jboss.jdbc:datasource=DefaultDS,service=metadata

Can anyone explain what could be the problem?

Ironically the same configuration works fine with Jboss 3.2.3
Is there a change in naming convention of JNDI Elements?

This is a bit urgent.
I saw a similar problem reported at http://www.theserverside.com/discussions/thread.tss?thread_id=41242

Thanks in advance
Indranil


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050970#4050970

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050970



More information about the jboss-user mailing list