我已在客户端和服务器上禁用“启用管理安全性”。使用Cport,我可以看到连接已建立。但是,我仍然收到Connection拒绝
请帮助并挽救我的一天。下面是客户端日志
18:34:49:235 IST] 000000ba SystemErr R,位于com.ibm.ws.util.ThreadPool $ Worker.run(ThreadPool.java:1909) [4/25/19 18:34:49:236 IST] 000000ba SystemErr R原因:javax.naming.NamingException:获取WsnNameService属性时出错[根异常是org.omg.CORBA.TRANSIENT:初始和转发的IOR无法访问的vmcid: IBM次要代码:E07完成:否] [4/25/19 18:34:49:237 IST] com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1688)上的000000ba SystemErr R [4/25/19 18:34:49:237 IST] com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:1177)上的000000ba SystemErr R [4/25/19 18:34:49:237 IST] com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:1086)上的000000ba SystemErr R [4/25/19 18:34:49:237 IST] com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:630)上的000000ba SystemErr R [4/25/19 18:34:49:238 IST] com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:128)上的000000ba SystemErr R [4/25/19 18:34:49:238 IST] com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:765)上的000000ba SystemErr R [4/25/19 18:34:49:238 IST] com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)上的000000ba SystemErr R [4/25/19 18:34:49:239 IST] com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)上的000000ba SystemErr R [4/25/19 18:34:49:239 IST] 000000ba SystemErr R,位于org.apache.aries.jndi.DelegateContext.lookup(DelegateContext.java:161) [4/25/19 18:34:49:239 IST] 000000ba SystemErr R,位于javax.naming.InitialContext.lookup(InitialContext.java:428) [4/25/19 18:34:49:239 IST] com.xxx.technology.ejbconnector.jWebsphere85Provider.lookupRemoteBean(jWebsphere85Provider.java:213)上的000000ba SystemErr R [4/25/19 18:34:49:239 IST] com.XXX.technology.ejbconnector.jWebsphere85Provider.getRemoteBean(jWebsphere85Provider.java:188)上的000000ba SystemErr R [4/25/19 18:34:49:240 IST] 000000ba SystemErr R ...还有47个 [4/25/19 18:34:49:240 IST] 000000ba SystemErr R原因:org.omg.CORBA.TRANSIENT:初始和转发的IOR无法访问vmcid:IBM次要代码:E07已完成:否 [4/25/19 18:34:49:240 IST] com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1139)上的000000ba SystemErr R [4/25/19 18:34:49:241 IST] com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1514)上的000000ba SystemErr R [4/25/19 18:34:49:241 IST] com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1028)上的000000ba SystemErr R [4/25/19 18:34:49:241 IST] com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1480)上的000000ba SystemErr R [4/25/19 18:34:49:241 IST] com.ibm.rmi.corba.ClientDelegate.request(ClientDelegate.java:1658)上的000000ba SystemErr R [4/25/19 18:34:49:241 IST] com.ibm.CORBA.iiop.ClientDelegate.request(ClientDelegate.java:1436)的000000ba SystemErr R [4/25/19 18:34:49:242 IST] 000000ba SystemErr R,位于org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:458) [4/25/19 18:34:49:242 IST] com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(_WsnNameServiceStub.java:38)上的000000ba SystemErr R [4/25/19 18:34:49:242 IST] com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1685)上的000000ba SystemErr R [4/25/19 18:34:49:242 IST] 000000ba SystemErr R ... 58另外 [4/25/19 18:34:49:243 IST] 000000ba SystemErr R原因:java.net.ConnectException:连接被拒绝:connect [4/25/19 18:34:49:243 IST] 000000ba SystemErr R,位于java.net.DualStackPlainSocketImpl.waitForConnect(本机方法) [4/25/19 18:34:49:244 IST] 000000ba SystemErr R,位于java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:96) [4/25/19 18:34:49:244 IST] 000000ba SystemErr R,位于java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:380) [4/25/19 18:34:49:244 IST] 000000ba SystemErr R,位于java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:236) [4/25/19 18:34:49:244 IST] 000000ba SystemErr R,位于java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:218) [4/25/19 18:34:49:244 IST] 000000ba SystemErr R,位于java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183) [4/25/19 18:34:49:245 IST] 000000ba SystemErr R,位于java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403) [4/25/19 18:34:49:245 IST] 000000ba SystemErr R,位于java.net.Socket.connect(Socket.java:666) [4/25/19 18:34:49:245 IST] com.ibm.ws.orbimpl.transport.WSTCPTransportConnection.createSocket(WSTCPTransportConnection.java:403)上的000000ba SystemErr R [4/25/19 18:34:49:245 IST] com.ibm.CORBA.transport.TransportConnectionBase.connect(TransportConnectionBase.java:355)上的000000ba SystemErr R [4/25/19 18:34:49:245 IST] 000000ba SystemErr R,位于com.ibm.ws.orbimpl.transport.WSTransport.getConnection(WSTransport.java:437) [4/25/19 18:34:49:245 IST] com.ibm.CORBA.transport.TransportBase.getConnection(TransportBase.java:182)的000000ba SystemErr R [4/25/19 18:34:49:245 IST] 000000ba SystemErr R,位于com.ibm.rmi.iiop.TransportManager.get(TransportManager.java:98) [4/25/19 18:34:49:246 IST] com.ibm.rmi.iiop.GIOPImpl.getConnection(GIOPImpl.java:134)的000000ba SystemErr R [4/25/19 18:34:49:246 IST] com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:230)的000000ba SystemErr R [4/25/19 18:34:49:246 IST] com.ibm.rmi.corba.ClientDelegate.locate(ClientDelegate.java:1740)上的000000ba SystemErr R [4/25/19 18:34:49:246 IST] com.ibm.rmi.corba.ClientDelegate._createRequest(ClientDelegate.java:1765)上的000000ba SystemErr R [4/25/19 18:34:49:246 IST] com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1050)上的000000ba SystemErr R [4/25/19 18:34:49:247 IST] com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1135)上的000000ba SystemErr R [4/25/19 18:34:49:247 IST] 000000ba SystemErr R ... 66更多
答案 0 :(得分:0)
如果在启用安全性之前此方法工作正常,则可能的原因是您的客户端未正确配置为使用SSL连接(服务器现在需要),并且正在尝试连接到0端口(打开ORB跟踪将确认这一点)。参见https://www-01.ibm.com/support/docview.wss?uid=swg21237101#ConnR,方案#4。