WebLogic外部JNDI提供程序名称

时间:2017-12-11 12:22:14

标签: java weblogic jndi weblogic12c

当我尝试使用Local&的相同JNDI名称创建外部JNDI数据源时远程链接,我得到一个递归调用的Stackoverflow异常:

这可能是预期的行为,但我无法验证它。

因此,是否必须为Local& Remote?

设置不同的JNDI名称
java.lang.StackOverflowError
    at com.bea.common.security.internal.utils.Delegator$ProxyInvocationHandler.invoke(Delegator.java:64)
    at com.sun.proxy.$Proxy55.isAccessAllowed(Unknown Source)
    at weblogic.security.service.WLSAuthorizationServiceWrapper.isAccessAllowed(WLSAuthorizationServiceWrapper.java:158)
    at weblogic.security.service.AuthorizationManager.isAccessAllowed(AuthorizationManager.java:316)
    at weblogic.security.service.AuthorizationManager.isAccessAllowed(AuthorizationManager.java:379)
    at weblogic.jndi.internal.ServerNamingNode.checkPermission(ServerNamingNode.java:452)
    at weblogic.jndi.internal.ServerNamingNode.checkLookup(ServerNamingNode.java:434)
    at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:185)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:210)
    at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:253)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:426)
    at javax.naming.InitialContext.lookup(InitialContext.java:411)
    at weblogic.jndi.internal.ForeignOpaqueReference.getReferent(ForeignOpaqueReference.java:74)
    at weblogic.jndi.internal.WLNamingManager.getObjectInstance(WLNamingManager.java:92)
    at weblogic.jndi.internal.ServerNamingNode.resolveObject(ServerNamingNode.java:388)
    at weblogic.jndi.internal.BasicNamingNode.resolveObject(BasicNamingNode.java:886)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:219)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:224)
    at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:253)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:426)
    at javax.naming.InitialContext.lookup(InitialContext.java:411)
    at weblogic.jndi.internal.ForeignOpaqueReference.getReferent(ForeignOpaqueReference.java:74)
    at weblogic.jndi.internal.WLNamingManager.getObjectInstance(WLNamingManager.java:92)
    at weblogic.jndi.internal.ServerNamingNode.resolveObject(ServerNamingNode.java:388)
    at weblogic.jndi.internal.BasicNamingNode.resolveObject(BasicNamingNode.java:886)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:219)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:224)
    at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:253)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:426)
    at javax.naming.InitialContext.lookup(InitialContext.java:411)

1 个答案:

答案 0 :(得分:0)

JNDI名称是:

unique, people-friendly names

有关更多详细信息,请参阅Oracle文档:

https://docs.oracle.com/cd/E19747-01/819-0076/jndi.html