0 Replies Latest reply on Jul 8, 2002 10:02 AM by alexander nyssen

    jboss 3.0.0 MBEAN SerializableException NameNotFoundExceptio

    alexander nyssen Newbie

      Hi,

      i deployed my mbean and I am getting the serializable exception. My bean is definitely not serializable. Therefore I am using the NonSerializableFactory in my MBEAN. Maybe there is a failure in my jboss-service xml, as a NameNotFoundException is thrown by the NonSerializableFactory.

      My jboss-service.xml looks like this:
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE server>




      java:/JmsXnmGatewayClient




      the stacktrace is the following:

      2002-07-08 15:03:11,569 INFO [com.datus.dom.jms.JmsXnmGatewayClient] Creating
      2002-07-08 15:03:11,579 INFO [com.datus.dom.jms.JmsXnmGatewayClient] Created
      2002-07-08 15:03:11,579 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying JmsXnmGatewayClient.sar
      2002-07-08 15:03:11,579 DEBUG [org.jboss.deployment.MainDeployer] start step for deployment file:/D:/Entwicklung/Java/jboss-3.0.0_tomcat-4.0.3/server/sybase_XNM_EADS_01/deploy/JmsXnmGatewayClient.sar
      2002-07-08 15:03:11,579 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, start step: url file:/D:/Entwicklung/Java/jboss-3.0.0_tomcat-4.0.3/server/sybase_XNM_EADS_01/deploy/JmsXnmGatewayClient.sar
      2002-07-08 15:03:11,579 INFO [STDOUT] Starting JmsXnmGatewayClient ... (c) by ANy and JNN
      2002-07-08 15:03:11,579 INFO [STDOUT] fullName=java:/JmsXnmGatewayClient
      2002-07-08 15:03:11,619 ERROR [org.jboss.deployment.SARDeployer] start operation failed on package file:/D:/Entwicklung/Java/jboss-3.0.0_tomcat-4.0.3/server/sybase_XNM_EADS_01/deploy/JmsXnmGatewayClient.sar
      javax.naming.CommunicationException. Root exception is
      java.io.NotSerializableException: com.datus.dom.jms.JmsXnmGatewayClient
      at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1148)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
      at java.rmi.MarshalledObject.(MarshalledObject.java:95)
      at org.jnp.interfaces.MarshalledValuePair.(MarshalledValuePair.java:23)
      at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:355)
      at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:334)
      at javax.naming.InitialContext.rebind(InitialContext.java:366)
      at com.datus.dom.jms.JmsXnmGatewayClient.start(JmsXnmGatewayClient.java:127)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:894)
      at $Proxy6.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:340)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:243)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy4.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:405)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:586)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:465)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:237)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:894)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:340)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:243)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:465)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:314)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
      at org.jboss.Main.boot(Main.java:142)
      at org.jboss.Main$1.run(Main.java:375)
      at java.lang.Thread.run(Thread.java:484)
      2002-07-08 15:03:11,849 DEBUG [org.jboss.deployment.SARDeployer] undeploying document file:/D:/Entwicklung/Java/jboss-3.0.0_tomcat-4.0.3/server/sybase_XNM_EADS_01/deploy/JmsXnmGatewayClient.sar
      2002-07-08 15:03:11,849 DEBUG [org.jboss.deployment.SARDeployer] stopping mbean jboss:service=JmsXnmGatewayClient
      2002-07-08 15:03:11,849 DEBUG [org.jboss.system.ServiceController] stopping service: jboss:service=JmsXnmGatewayClient
      2002-07-08 15:03:11,849 DEBUG [org.jboss.deployment.SARDeployer] destroying mbean jboss:service=JmsXnmGatewayClient
      2002-07-08 15:03:11,849 DEBUG [org.jboss.system.ServiceController] destroying service: jboss:service=JmsXnmGatewayClient
      2002-07-08 15:03:11,849 DEBUG [org.jboss.deployment.SARDeployer] removing mbean jboss:service=JmsXnmGatewayClient
      2002-07-08 15:03:11,849 DEBUG [org.jboss.system.ServiceController] removing service: jboss:service=JmsXnmGatewayClient
      2002-07-08 15:03:11,849 DEBUG [org.jboss.system.ServiceController] removing jboss:service=JmsXnmGatewayClient from server
      2002-07-08 15:03:11,849 ERROR [STDERR] javax.naming.NameNotFoundException: java:/JmsXnmGatewayClient was not found in the NonSerializableFactory map
      2002-07-08 15:03:11,849 ERROR [STDERR] at org.jboss.naming.NonSerializableFactory.unbind(NonSerializableFactory.java:114)
      2002-07-08 15:03:11,859 ERROR [STDERR] at com.datus.dom.jms.JmsXnmGatewayClient.unbind(JmsXnmGatewayClient.java:113)
      2002-07-08 15:03:11,869 ERROR [STDERR] at com.datus.dom.jms.JmsXnmGatewayClient.stop(JmsXnmGatewayClient.java:170)
      2002-07-08 15:03:11,869 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.postDeregister(ServiceMBeanSupport.java:290)
      2002-07-08 15:03:11,879 ERROR [STDERR] at org.jboss.mx.server.registry.BasicMBeanRegistry.unregisterMBean(BasicMBeanRegistry.java:382)
      2002-07-08 15:03:11,879 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.unregisterMBean(MBeanServerImpl.java:307)
      2002-07-08 15:03:11,889 ERROR [STDERR] at org.jboss.system.ServiceCreator.remove(ServiceCreator.java:124)
      2002-07-08 15:03:11,889 ERROR [STDERR] at org.jboss.system.ServiceController.remove(ServiceController.java:539)
      2002-07-08 15:03:11,899 ERROR [STDERR] at java.lang.reflect.Method.invoke(Native Method)
      2002-07-08 15:03:11,909 ERROR [STDERR] at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      2002-07-08 15:03:11,909 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      2002-07-08 15:03:11,919 ERROR [STDERR] at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      2002-07-08 15:03:11,919 ERROR [STDERR] at $Proxy3.remove(Unknown Source)
      2002-07-08 15:03:11,929 ERROR [STDERR] at org.jboss.deployment.SARDeployer.destroy(SARDeployer.java:549)
      2002-07-08 15:03:11,929 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:250)
      2002-07-08 15:03:11,939 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
      2002-07-08 15:03:11,939 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513)
      2002-07-08 15:03:11,949 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481)

      Thanks,
      Alex