5 Replies Latest reply on Feb 17, 2002 9:27 PM by Fusayuki Minamoto

    mysql-service : Object name cannot be null

    Ever Tang Newbie

      I retrived mysql-service.xml from the cvs repository (http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/manual/src/examples/resources/jca/mysql-service.xml)
      and made some modification and put it to jboss3.0/deploy folder. When I start the jboss, following error occurs :


      [00:05:33,634,AutoDeployer] Auto deploy of file:/home/ever/jboss/deploy/mysql-service.xml
      [00:05:33,653,ServiceCreator] About to create the beanjboss.jca:service=ConnectionFactoryLoader,name=TxMYSQL
      [00:05:33,654,ServiceCreator] Created the beanjboss.jca:service=ConnectionFactoryLoader,name=TxMYSQL
      [00:05:33,662,ConnectionFactoryLoader] Starting
      [00:05:33,663,TxMYSQL] Stopped
      javax.management.RuntimeOperationsException: Object name cannot be null
      at com.sun.management.jmx.MBeanServerImpl.isRegistered(MBeanServerImpl.java:1096)
      at org.jboss.resource.ConnectionFactoryLoader.startService(ConnectionFactoryLoader.java:402)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:117)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:775)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:479)
      at org.jboss.system.ServiceController.registerAndStartService(ServiceController.java:273)
      at org.jboss.system.ServiceController.deploy(ServiceController.java:257)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.deployment.ServiceDeployer.invoke(ServiceDeployer.java:732)
      at org.jboss.deployment.ServiceDeployer.addMBeans(ServiceDeployer.java:668)
      at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:215)
      at org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport.java:107)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:654)
      at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:327)
      at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:509)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:117)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:775)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:479)
      at org.jboss.system.ServiceController.registerAndStartService(ServiceController.java:273)
      at org.jboss.system.ServiceController.deploy(ServiceController.java:257)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.deployment.ServiceDeployer.invoke(ServiceDeployer.java:732)
      at org.jboss.deployment.ServiceDeployer.addMBeans(ServiceDeployer.java:668)
      at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:215)
      at org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport.java:107)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.Main.(Main.java:199)
      at org.jboss.Main$1.run(Main.java:411)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:406)

      [00:05:33,727,Default] javax.management.RuntimeOperationsException: Object name cannot be null
      [00:05:33,730,Default] at com.sun.management.jmx.MBeanServerImpl.isRegistered(MBeanServerImpl.java:1096)
      [00:05:33,731,Default] at org.jboss.resource.ConnectionFactoryLoader.startService(ConnectionFactoryLoader.java:402)
      [00:05:33,733,Default] at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:117)
      [00:05:33,736,Default] at java.lang.reflect.Method.invoke(Native Method)
      [00:05:33,737,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [00:05:33,740,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [00:05:33,742,Default] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:775)
      [00:05:33,744,Default] at $Proxy0.start(Unknown Source)
      [00:05:33,746,Default] at org.jboss.system.ServiceController.start(ServiceController.java:479)
      [00:05:33,748,Default] at org.jboss.system.ServiceController.registerAndStartService(ServiceController.java:273)
      [00:05:33,749,Default] at org.jboss.system.ServiceController.deploy(ServiceController.java:257)
      [00:05:33,752,Default] at java.lang.reflect.Method.invoke(Native Method)
      [00:05:33,754,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [00:05:33,756,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [00:05:33,758,Default] at org.jboss.deployment.ServiceDeployer.invoke(ServiceDeployer.java:732)
      [00:05:33,760,Default] at org.jboss.deployment.ServiceDeployer.addMBeans(ServiceDeployer.java:668)
      [00:05:33,762,Default] at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:215)
      [00:05:33,763,Default] at org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport.java:107)
      [00:05:33,766,Default] at java.lang.reflect.Method.invoke(Native Method)
      [00:05:33,768,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [00:05:33,770,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [00:05:33,771,Default] at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:654)
      [00:05:33,772,Default] at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:327)
      [00:05:33,773,Default] at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:509)
      [00:05:33,775,Default] at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:117)
      [00:05:33,778,Default] at java.lang.reflect.Method.invoke(Native Method)
      [00:05:33,780,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [00:05:33,782,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [00:05:33,784,Default] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:775)
      [00:05:33,786,Default] at $Proxy0.start(Unknown Source)
      [00:05:33,788,Default] at org.jboss.system.ServiceController.start(ServiceController.java:479)
      [00:05:33,789,Default] at org.jboss.system.ServiceController.registerAndStartService(ServiceController.java:273)
      [00:05:33,791,Default] at org.jboss.system.ServiceController.deploy(ServiceController.java:257)
      [00:05:33,794,Default] at java.lang.reflect.Method.invoke(Native Method)
      [00:05:33,796,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [00:05:33,798,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [00:05:33,800,Default] at org.jboss.deployment.ServiceDeployer.invoke(ServiceDeployer.java:732)
      [00:05:33,802,Default] at org.jboss.deployment.ServiceDeployer.addMBeans(ServiceDeployer.java:668)
      [00:05:33,803,Default] at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:215)
      [00:05:33,805,Default] at org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport.java:107)
      [00:05:33,808,Default] at java.lang.reflect.Method.invoke(Native Method)
      [00:05:33,810,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [00:05:33,812,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [00:05:33,814,Default] at org.jboss.Main.(Main.java:199)
      [00:05:33,817,Default] at org.jboss.Main$1.run(Main.java:411)
      [00:05:33,819,Default] at java.security.AccessController.doPrivileged(Native Method)
      [00:05:33,821,Default] at org.jboss.Main.main(Main.java:406)
      [00:05:33,822,ServiceController] javax.management.RuntimeOperationsException: Object name cannot be null
      [00:05:33,823,AutoDeployer] Started
      [00:05:33,824,Default] JBoss 3.0.0alpha(200111202304) [RABBIT-HOLE] Started in 0m:9s:265ms

      Here is my modified mysql-service.xml, i only added username and password.








      ConnectionURL=jdbc:mysql://10.10.10.105/test DriverClass=org.gjt.mm.mysql.Driver
      UserName=ever Password=ever
      TxMYSQL
      java:/TransactionManager
      <depends optional-attribute-name="ResourceAdapterName">jboss.jca:service=RARDeployment,name=Minerva JDBC LocalTransaction ResourceAdapter
      <depends optional-attribute-name="ConnectionManagerFactoryLoaderName">jboss.jca:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory
      #
      #Wed Aug 15 16:17:29 EDT 2001
      BlockingTimeoutMillis=500000
      IdleTimeoutMinutes=30
      MaxSize=10
      CleanupIntervalMinutes=10
      MinSize=0
      MaxIdleTimeoutPercent=1.0


      org.jboss.resource.security.ManyToOnePrincipalMapping

      UserName=ever






      I also changed standardjbosscmp-jdbc.xml

      ....
      <jbosscmp-jdbc>


      java:/TxMYSQL
      <type-mapping>mySQL</type-mapping>
      true

      ....

      Am I missing anything in the mysql-service.xml?

        • 1. Re: mysql-service : Object name cannot be null
          Albena Newbie

          Ha!
          What a coincidence :) I have the same problem. I am trying to use CMP with MSSQL6.5 database instead of the default Hypersonic that comes with JBoss. Here is my mssql-service.xml file





          ConnectionURL=jdbc:inetdae://devbensrv2/test
          UserName=webfarm_wtrg
          Password=we8tr09
          Driver=com.inet.tds.TdsDriver
          MSSQL65DS
          java:/TransactionManager
          <depends optional-attribute-name="ResourceAdapterName">jboss.jca:service=RARDeployment,name=Minerva
          JDBC LocalTransaction ResourceAdapter
          <depends optional-attribute-name="ConnectionManagerFactoryLoaderName">jboss.jca:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory
          #
          #Wed Aug 15 16:17:29 EDT 2001
          BlockingTimeoutMillis=50000
          IdleTimeoutMinutes=30
          MaxSize=10
          CleanupIntervalMinutes=10
          MinSize=0
          MaxIdleTimeoutPercent=1.0


          org.jboss.resource.security.ManyToOnePrincipalMapping

          userName=webfarm_wtrg
          password=we8tr09




          Then I get exactelly the same error as evertang, which is shown in my server.log

          [2002-01-28 16:25:42,578,AutoDeployer,DEBUG] Received notification of mbean ZClassLoaders:id=859623288's deployment.
          [2002-01-28 16:25:42,578,ServiceCreator,INFO] About to create the beanjboss.jca:service=ConnectionFactoryLoader,name=MSSQL65DS
          [2002-01-28 16:25:42,593,AutoDeployer,DEBUG] Received notification of mbean jboss.jca:service=ConnectionFactoryLoader,name=MSSQL65DS's deployment.
          [2002-01-28 16:25:42,593,ServiceCreator,INFO] Created the beanjboss.jca:service=ConnectionFactoryLoader,name=MSSQL65DS
          [2002-01-28 16:25:42,796,Configurator,DEBUG] ManagedConnectionFactoryProperties set to ConnectionURL=jdbc:inetdae:devbensrv2
          UserName=webfarm_wtrg
          Password=we8tr09
          Driver=com.inet.tds.TdsDriver in jboss.jca:service=ConnectionFactoryLoader,name=MSSQL65DS
          [2002-01-28 16:25:42,890,Configurator,DEBUG] JndiName set to MSSQL65DS in jboss.jca:service=ConnectionFactoryLoader,name=MSSQL65DS
          [2002-01-28 16:25:43,093,Configurator,DEBUG] TransactionManagerName set to java:/TransactionManager in jboss.jca:service=ConnectionFactoryLoader,name=MSSQL65DS
          [2002-01-28 16:25:43,125,Configurator,DEBUG] ConnectionManagerProperties set to #
          #Wed Aug 15 16:17:29 EDT 2001
          BlockingTimeoutMillis=50000
          IdleTimeoutMinutes=30
          MaxSize=10
          CleanupIntervalMinutes=10
          MinSize=0
          MaxIdleTimeoutPercent=1.0 in jboss.jca:service=ConnectionFactoryLoader,name=MSSQL65DS
          [2002-01-28 16:25:43,171,Configurator,DEBUG] PrincipalMappingClass set to org.jboss.resource.security.ManyToOnePrincipalMapping in jboss.jca:service=ConnectionFactoryLoader,name=MSSQL65DS
          [2002-01-28 16:25:43,203,Configurator,DEBUG] PrincipalMappingProperties set to userName=webfarm_wtrg
          password=we8tr09 in jboss.jca:service=ConnectionFactoryLoader,name=MSSQL65DS
          [2002-01-28 16:25:43,203,Configurator,DEBUG] found 0 mbean-ref elements
          [2002-01-28 16:25:43,203,ConnectionFactoryLoader,INFO] Starting


          [2002-01-28 16:25:43,218,MSSQL65DS,ERROR] Stopped
          javax.management.RuntimeOperationsException: Object name cannot be null

          at com.sun.management.jmx.MBeanServerImpl.isRegistered(MBeanServerImpl.java:1096)
          at org.jboss.resource.ConnectionFactoryLoader.startService(ConnectionFactoryLoader.java:402)
          at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:117)
          at java.lang.reflect.Method.invoke(Native Method)
          at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
          at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
          at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:775)
          at $Proxy0.start(Unknown Source)
          at org.jboss.system.ServiceController.start(ServiceController.java:479)
          at org.jboss.system.ServiceController.registerAndStartService(ServiceController.java:273)
          at org.jboss.system.ServiceController.deploy(ServiceController.java:257)
          at java.lang.reflect.Method.invoke(Native Method)
          at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
          at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
          at org.jboss.deployment.ServiceDeployer.invoke(ServiceDeployer.java:732)
          at org.jboss.deployment.ServiceDeployer.addMBeans(ServiceDeployer.java:668)
          at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:215)
          at org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport.java:107)
          at java.lang.reflect.Method.invoke(Native Method)
          at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
          at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
          at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:654)
          at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:327)
          at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:509)
          at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:117)
          at java.lang.reflect.Method.invoke(Native Method)
          at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
          at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
          at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:775)
          at $Proxy0.start(Unknown Source)
          at org.jboss.system.ServiceController.start(ServiceController.java:479)
          at org.jboss.system.ServiceController.registerAndStartService(ServiceController.java:273)
          at org.jboss.system.ServiceController.deploy(ServiceController.java:257)
          at java.lang.reflect.Method.invoke(Native Method)
          at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
          at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
          at org.jboss.deployment.ServiceDeployer.invoke(ServiceDeployer.java:732)
          at org.jboss.deployment.ServiceDeployer.addMBeans(ServiceDeployer.java:668)
          at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:215)
          at org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport.java:107)
          at java.lang.reflect.Method.invoke(Native Method)
          at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
          at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
          at org.jboss.Main.(Main.java:199)
          at org.jboss.Main$1.run(Main.java:411)
          at java.security.AccessController.doPrivileged(Native Method)
          at org.jboss.Main.main(Main.java:406)
          [2002-01-28 16:25:43,234,Default,ERROR] javax.management.RuntimeOperationsException: Object name cannot be null
          [2002-01-28 16:25:43,234,Default,ERROR] at com.sun.management.jmx.MBeanServerImpl.isRegistered(MBeanServerImpl.java:1096)
          [2002-01-28 16:25:43,234,Default,ERROR] at org.jboss.resource.ConnectionFactoryLoader.startService(ConnectionFactoryLoader.java:402)
          [2002-01-28 16:25:43,234,Default,ERROR] at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:117)
          [2002-01-28 16:25:43,234,Default,ERROR] at java.lang.reflect.Method.invoke(Native Method)
          [2002-01-28 16:25:43,234,Default,ERROR] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
          [2002-01-28 16:25:43,234,Default,ERROR] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
          [2002-01-28 16:25:43,234,Default,ERROR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:775)
          [2002-01-28 16:25:43,234,Default,ERROR] at $Proxy0.start(Unknown Source)
          [2002-01-28 16:25:43,234,Default,ERROR] at org.jboss.system.ServiceController.start(ServiceController.java:479)
          [2002-01-28 16:25:43,234,Default,ERROR] at org.jboss.system.ServiceController.registerAndStartService(ServiceController.java:273)
          [2002-01-28 16:25:43,234,Default,ERROR] at org.jboss.system.ServiceController.deploy(ServiceController.java:257)
          [2002-01-28 16:25:43,234,Default,ERROR] at java.lang.reflect.Method.invoke(Native Method)
          [2002-01-28 16:25:43,234,Default,ERROR] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
          [2002-01-28 16:25:43,234,Default,ERROR] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
          [2002-01-28 16:25:43,234,Default,ERROR] at org.jboss.deployment.ServiceDeployer.invoke(ServiceDeployer.java:732)
          [2002-01-28 16:25:43,234,Default,ERROR] at org.jboss.deployment.ServiceDeployer.addMBeans(ServiceDeployer.java:668)
          [2002-01-28 16:25:43,234,Default,ERROR] at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:215)
          [2002-01-28 16:25:43,250,Default,ERROR] at org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport.java:107)
          [2002-01-28 16:25:43,250,Default,ERROR] at java.lang.reflect.Method.invoke(Native Method)
          [2002-01-28 16:25:43,250,Default,ERROR] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
          [2002-01-28 16:25:43,250,Default,ERROR] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
          [2002-01-28 16:25:43,250,Default,ERROR] at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:654)
          [2002-01-28 16:25:43,250,Default,ERROR] at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:327)
          [2002-01-28 16:25:43,250,Default,ERROR] at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:509)
          [2002-01-28 16:25:43,250,Default,ERROR] at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:117)
          [2002-01-28 16:25:43,250,Default,ERROR] at java.lang.reflect.Method.invoke(Native Method)
          [2002-01-28 16:25:43,250,Default,ERROR] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
          [2002-01-28 16:25:43,250,Default,ERROR] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
          [2002-01-28 16:25:43,250,Default,ERROR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:775)
          [2002-01-28 16:25:43,250,Default,ERROR] at $Proxy0.start(Unknown Source)
          [2002-01-28 16:25:43,250,Default,ERROR] at org.jboss.system.ServiceController.start(ServiceController.java:479)
          [2002-01-28 16:25:43,250,Default,ERROR] at org.jboss.system.ServiceController.registerAndStartService(ServiceController.java:273)
          [2002-01-28 16:25:43,250,Default,ERROR] at org.jboss.system.ServiceController.deploy(ServiceController.java:257)
          [2002-01-28 16:25:43,250,Default,ERROR] at java.lang.reflect.Method.invoke(Native Method)
          [2002-01-28 16:25:43,250,Default,ERROR] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
          [2002-01-28 16:25:43,250,Default,ERROR] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
          [2002-01-28 16:25:43,250,Default,ERROR] at org.jboss.deployment.ServiceDeployer.invoke(ServiceDeployer.java:732)
          [2002-01-28 16:25:43,250,Default,ERROR] at org.jboss.deployment.ServiceDeployer.addMBeans(ServiceDeployer.java:668)
          [2002-01-28 16:25:43,250,Default,ERROR] at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:215)
          [2002-01-28 16:25:43,250,Default,ERROR] at org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport.java:107)
          [2002-01-28 16:25:43,250,Default,ERROR] at java.lang.reflect.Method.invoke(Native Method)
          [2002-01-28 16:25:43,250,Default,ERROR] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
          [2002-01-28 16:25:43,250,Default,ERROR] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
          [2002-01-28 16:25:43,250,Default,ERROR] at org.jboss.Main.(Main.java:199)
          [2002-01-28 16:25:43,250,Default,ERROR] at org.jboss.Main$1.run(Main.java:411)
          [2002-01-28 16:25:43,250,Default,ERROR] at java.security.AccessController.doPrivileged(Native Method)
          [2002-01-28 16:25:43,250,Default,ERROR] at org.jboss.Main.main(Main.java:406)
          [2002-01-28 16:25:43,265,ServiceController,ERROR] javax.management.RuntimeOperationsException: Object name cannot be null
          [2002-01-28 16:25:43,265,AutoDeployer,INFO] Started
          [2002-01-28 16:25:43,265,Default,INFO] JBoss 3.0.0alpha(200111202304) [RABBIT-HOLE] Started in 0m:16s:328ms



          Any help would be highly appreciated. Thanx! Fairy

          • 2. Re: mysql-service : Object name cannot be null
            Chris Richard Newbie

            If you go through pervious posts in this forum, you will find out its an issue with mbean-ref and depends tags. As soon as you fix this in mysqlservice.xml, this msg. will go away.

            Chris.

            • 3. Re: mysql-service : Object name cannot be null
              Ever Tang Newbie

              Fixed! Thanks for the hints.

              I changed the tag name of "depends optional-attribute-name" to "mbean-ref name" as the "depends" tag name is for the newest CVS version , not the 3.0alphs.


              <depends optional-attribute-name="ResourceAdapterName">jboss.jca:service=RARDeployment,name=Minerva JDBC LocalTransaction ResourceAdapter
              <depends optional-attribute-name="ConnectionManagerFactoryLoaderName">jboss.jca:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory

              --->

              <mbean-ref name="ResourceAdapterName">jboss.jca:service=RARDeployment,name=Minerva JDBC LocalTransaction ResourceAdapter</mbean-ref>
              <mbean-ref name="ConnectionManagerFactoryLoaderName">jboss.jca:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory</mbean-ref>

              • 4. Re: mysql-service : Object name cannot be null
                Albena Newbie

                Hey thanx guys/gals for helping me out. I've solved the
                mysql-service : Object name cannot be null. the way Chris70 pointed it out.
                Now when jboss-3.0.0alpha is started I have luckily no errors reported.
                But, my datasource mbean is still not bound :(

                When I deploy the example class.jar from Jboss3.0 documentation, chapter 6 on Customizing JAWS, I get this error:

                [2002-01-29 18:12:02,921,ContainerFactory,ERROR] Could not deploy file:/D:/java/jboss-3.0.0alpha/deploy/Default/class.jar
                org.jboss.ejb.DeploymentException: MSSQL65DS not bound

                I will include my mysql-service.xml file







                ConnectionURL=jdbc:inetdae://devbensrv2/TestAlbena;uid=albena;pwd=albena
                DriverClass=com.inet.tds.TdsDriver

                MSSQL65DS
                java:/TransactionManager
                <mbean-ref name="ResourceAdapterName">jboss.jca:service=RARDeployment,name=Minerva
                JDBC LocalTransaction ResourceAdapter</mbean-ref>
                <mbean-ref name="ConnectionManagerFactoryLoaderName">jboss.jca:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory</mbean-ref>
                #
                #Wed Aug 15 16:17:29 EDT 2001
                BlockingTimeoutMillis=50000
                IdleTimeoutMinutes=30
                MaxSize=10
                CleanupIntervalMinutes=10
                MinSize=0
                MaxIdleTimeoutPercent=1.0


                org.jboss.resource.security.ManyToOnePrincipalMapping

                userName=albena
                password=albena



                and the relevant part from the jaws.xml file



                MSSQL65DS
                <type-mapping>MS SQLSERVER</type-mapping>
                true
                <enterprise-beans>

                <ejb-name>ClassBean</ejb-name>

                ...


                I have tried to find an answer in the previous activity of these forums, but was not very successful, I am afraid.
                Any help much appreciated.
                Nice day!
                The Fairy

                • 5. Re: mysql-service : Object name cannot be null
                  Fusayuki Minamoto Apprentice

                  I've resolved this problem with following fixes:

                  1. <mbean code="org.jboss.resource.ConnectionFactoryLoader"
                  name="jboss.jca:service=ConnectionFactoryLoader,name=MSSQL65DS">

                  Replace the jboss.jca with JBOSS-SYSTEM.

                  2. <mbean-ref name="ResourceAdapterName">jboss.jca:service=RARDeployment,name=Minerva
                  JDBC LocalTransaction ResourceAdapter</mbean-ref>

                  Replace the jboss.jca with JCA.

                  3. <mbean-ref name="ConnectionManagerFactoryLoaderName">jboss.jca:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory</mbean-ref>

                  Replace the jboss.jca with JCA again.

                  Miki