I am attempting to deploy an EAR that contains annotated EJB3 beans. I have 
already done this on several instances of JBoss, but this one is causing me 
problems. I am getting the following exception.

  | javax.naming.NamingException: Could not dereference object [Root exception 
is java.lang.RuntimeException: Exception while trying to locate proxy factory 
in JNDI, at key 
ProxyFactory/risk-server/UserContextManagementBean/kdr/remote/UserContextManagement/KDR]
  | 

I have checked the JNDI tree in the web-console using JNDIView and can see the 
name that I am looking up (i.e. kdr/remote/UserContextManagement) registered 
with what appear to the the appropriate bindings.

I turned up the logging to trace on org.jboss.ha.jndi and got the following 
output:

  | 2009-10-27 13:38:56,522 TRACE [org.jboss.ha.jndi.HANamingService] (JBoss 
System Threads(1)-4) Accepted bootstrap client: 
Socket[addr=/192.168.11.3,port=51953,localport=1100]
  | 2009-10-27 13:38:57,086 TRACE 
[org.jboss.ha.jndi.impl.jbc.JBossCacheDistributedTreeManager] (RMI TCP 
Connection(4)-192.168.11.3) lookup, name=kdr/remote/UserContextManagement
  | 2009-10-27 13:38:57,087 TRACE [org.jboss.ha.jndi.HAJNDI] (RMI TCP 
Connection(4)-192.168.11.3) lookupLocally, name=kdr/remote/UserContextManagement
  | 2009-10-27 13:38:57,124 TRACE 
[org.jboss.ha.jndi.impl.jbc.JBossCacheDistributedTreeManager] (RMI TCP 
Connection(4)-192.168.11.3) lookup, 
name=ProxyFactory/risk-server/UserContextManagementBean/kdr/remote/UserContextManagement/KDR
  | 2009-10-27 13:38:57,125 TRACE [org.jboss.ha.jndi.HAJNDI] (RMI TCP 
Connection(4)-192.168.11.3) lookupLocally, 
name=ProxyFactory/risk-server/UserContextManagementBean/kdr/remote/UserContextManagement/KDR
  | 2009-10-27 13:38:57,125 TRACE [org.jboss.ha.jndi.HAJNDI] (RMI TCP 
Connection(4)-192.168.11.3) lookupLocally failed, 
name=ProxyFactory/risk-server/UserContextManagementBean/kdr/remote/UserContextManagement/KDR
  | javax.naming.NameNotFoundException: ProxyFactory not bound
  |     at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
  |     at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
  |     at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
  |     at org.jnp.server.NamingServer.lookup(NamingServer.java:396)
  |     at org.jboss.ha.jndi.HAJNDI.lookupLocally(HAJNDI.java:131)
  |     at org.jboss.ha.jndi.HAJNDI.lookup(HAJNDI.java:202)
  |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     at java.lang.reflect.Method.invoke(Method.java:597)
  |     at 
org.jboss.ha.framework.server.HARMIServerImpl.invoke(HARMIServerImpl.java:209)
  |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     at java.lang.reflect.Method.invoke(Method.java:597)
  |     at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
  |     at sun.rmi.transport.Transport$1.run(Transport.java:159)
  |     at java.security.AccessController.doPrivileged(Native Method)
  |     at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
  |     at 
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
  |     at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
  |     at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
  |     at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
  |     at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
  |     at java.lang.Thread.run(Thread.java:619)
  | 2009-10-27 13:38:57,125 TRACE [org.jboss.ha.jndi.HAJNDI] (RMI TCP 
Connection(4)-192.168.11.3) calling 
lookupLocally(ProxyFactory/risk-server/UserContextManagementBean/kdr/remote/UserContextManagement/KDR)
 on HAJNDI cluster
  | 2009-10-27 13:38:57,132 TRACE [org.jboss.ha.jndi.HAJNDI] (RMI TCP 
Connection(4)-192.168.11.3) Returned results size: 0
  | 

It looks like an internal caching issue of the proxy. This is going a bit 
deeper than I can spend time looking at right now. If anyone has any ideas what 
is going on here, I would be grateful for some suggestions.

Karl

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4262491
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to