0 Replies Latest reply on Apr 22, 2005 11:19 AM by alex pollo

    Using JAXR in an EJB

    alex pollo Newbie

      Hi,
      I'm trying to connect to a UDDI Server from within a stateful session bean using JAXR.
      The bean (Ping) is deployed on jboss4.0.1. The following code leads to an error:

      ConnectionFactory factory=ConnectionFactory.newInstance();


      2005-04-22 17:06:08,375 INFO [STDOUT] javax.xml.registry.JAXRException: Failed to create instance of: null
      2005-04-22 17:06:08,375 INFO [STDOUT] at javax.xml.registry.ConnectionFactory.newInstance(ConnectionFactory.java:60)
      2005-04-22 17:06:08,375 INFO [STDOUT] at client.PolymorphicProxyStubImpl.remoteInvoke(PolymorphicProxyStubImpl.java:83)
      2005-04-22 17:06:08,375 INFO [STDOUT] at Ping.ping(Ping.java:72)
      2005-04-22 17:06:08,375 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2005-04-22 17:06:08,375 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2005-04-22 17:06:08,375 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2005-04-22 17:06:08,375 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324)
      2005-04-22 17:06:08,375 INFO [STDOUT] at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
      2005-04-22 17:06:08,375 INFO [STDOUT] at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulSessionContainer.java:584)
      2005-04-22 17:06:08,375 INFO [STDOUT] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:122)
      2005-04-22 17:06:08,375 INFO [STDOUT] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
      2005-04-22 17:06:08,375 INFO [STDOUT] at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
      2005-04-22 17:06:08,375 INFO [STDOUT] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
      2005-04-22 17:06:08,375 INFO [STDOUT] at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:153)
      2005-04-22 17:06:08,375 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:62)
      2005-04-22 17:06:08,375 INFO [STDOUT] at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:294)
      2005-04-22 17:06:08,375 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
      2005-04-22 17:06:08,375 INFO [STDOUT] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
      2005-04-22 17:06:08,375 INFO [STDOUT] at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
      2005-04-22 17:06:08,375 INFO [STDOUT] at org.jboss.ejb.Container.invoke(Container.java:870)
      2005-04-22 17:06:08,375 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2005-04-22 17:06:08,390 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2005-04-22 17:06:08,390 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2005-04-22 17:06:08,390 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324)
      2005-04-22 17:06:08,390 INFO [STDOUT] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
      2005-04-22 17:06:08,390 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      2005-04-22 17:06:08,390 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      2005-04-22 17:06:08,390 INFO [STDOUT] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
      2005-04-22 17:06:08,390 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
      2005-04-22 17:06:08,390 INFO [STDOUT] at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805)
      2005-04-22 17:06:08,390 INFO [STDOUT] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406)
      2005-04-22 17:06:08,390 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2005-04-22 17:06:08,390 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2005-04-22 17:06:08,390 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2005-04-22 17:06:08,390 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324)
      2005-04-22 17:06:08,390 INFO [STDOUT] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
      2005-04-22 17:06:08,390 INFO [STDOUT] at sun.rmi.transport.Transport$1.run(Transport.java:148)
      2005-04-22 17:06:08,390 INFO [STDOUT] at java.security.AccessController.doPrivileged(Native Method)
      2005-04-22 17:06:08,390 INFO [STDOUT] at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
      2005-04-22 17:06:08,390 INFO [STDOUT] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
      2005-04-22 17:06:08,390 INFO [STDOUT] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
      2005-04-22 17:06:08,390 INFO [STDOUT] at java.lang.Thread.run(Thread.java:534)
      2005-04-22 17:06:08,390 INFO [STDOUT] Caused by: java.lang.NullPointerException
      2005-04-22 17:06:08,390 INFO [STDOUT] at EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap.hash(ConcurrentReaderHashMap.java:298)
      2005-04-22 17:06:08,390 INFO [STDOUT] at EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap.get(ConcurrentReaderHashMap.java:410)
      2005-04-22 17:06:08,390 INFO [STDOUT] at org.jboss.mx.loading.UnifiedLoaderRepository3.getCachedClass(UnifiedLoaderRepository3.java:178)
      2005-04-22 17:06:08,390 INFO [STDOUT] at org.jboss.mx.loading.LoaderRepositoryClassLoader.loadClass(LoaderRepositoryClassLoader.java:69)
      2005-04-22 17:06:08,390 INFO [STDOUT] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
      2005-04-22 17:06:08,390 INFO [STDOUT] at org.jboss.util.loading.DelegatingClassLoader.loadClass(DelegatingClassLoader.java:77)
      2005-04-22 17:06:08,390 INFO [STDOUT] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
      2005-04-22 17:06:08,390 INFO [STDOUT] at javax.xml.registry.ConnectionFactory.newInstance(ConnectionFactory.java:55)
      2005-04-22 17:06:08,390 INFO [STDOUT] ... 41 more


      Can someone help me?

      Thanx