Symptom
You are facing exceptions while trying to use the p4 connection/port.
Exceptions like:
- com.sap.engine.frame.core.configuration.NameNotFoundException: A config entry with the name XXXXXXXXXX could not be found in the configuration "P4_PersistentObject".
at com.sap.engine.core.configuration.impl.ReadAccessConfiguration.getConfigEntry(ReadAccessConfiguration.java:1104)
at com.sap.engine.services.rmi_p4.server.ServerDispatchImpl.writeEntry(ServerDispatchImpl.java:344)
at com.sap.engine.services.rmi_p4.server.ServerDispatchImpl.checkDB(ServerDispatchImpl.java:430)
at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:389)
at com.sap.engine.services.rmi_p4.server.ServerDispatchImpl.run(ServerDispatchImpl.java:69)
at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:72)
- com.sap.engine.services.rmi_p4.server.P4ServerObjectInfo toObject MSG:class com.sap.engine.services.jndi.implserver.ServerContextImpl:com.sap.engine.core.service630.container.ComponentClassLoader@492d49e0@common:service:iiop;service:naming;service:p4;service:ts incompatible with class com.sap.engine.services.rmi_p4.StubBase:com.sap.engine.core.service630.container.ComponentClassLoader@492d49e0@common:service:iiop;service:naming;service:p4;service:ts
- SystemMessageProcessor.openConnection() : Failed to open a connection to 2:1:232.212.40.74:50004, reason: connection refused
Cannot connect stub via connection profile None:232.212.40.74:50004. Exception: com.sap.engine.services.rmi_p4.P4IOException:
java.io.IOException: Failed to open a connection to 2:1:232.212.40.74:50004, reason: connection refused
at com.sap.engine.services.cross.fca.SystemMessageProcessor.openConnection(SystemMessageProcessor.java:246 -
java.lang.IllegalArgumentException: interface com.sap.engine.services.rmi_p4.RemoteRef is not visible from class loader
at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:589)
at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:566)
at java.lang.reflect.WeakCache$Factory.get(WeakCache.java:228)
at java.lang.reflect.WeakCache.get(WeakCache.java:126)
at java.lang.reflect.Proxy.getProxyClass0(Proxy.java:430)
at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:705)
at com.sap.engine.services.rmi_p4.server.P4ObjectBrokerServerImpl.loadLocalStub(P4ObjectBrokerServerImpl.java:748)
at com.sap.engine.services.rmi_p4.server.P4ObjectBrokerServerImpl.narrow(P4ObjectBrokerServerImpl.java:598)
at com.sap.engine.services.rmi_p4.server.P4ObjectBrokerServerImpl.narrow(P4ObjectBrokerServerImpl.java:523)
at com.sap.engine.services.rmi_p4.ReplicateInputStream.resolveObject(ReplicateInputStream.java:169)
at java.io.ObjectInputStream.checkResolve(ObjectInputStream.java:1386)
class com.sap.engine.services.rmi_p4.server.P4ObjectBrokerServerImpl narrow() info class : class com.sun.proxy.$Proxy34 stubClass : interface java.rmi.Remote <> classloader : null -
Resolving of initial object from remote side failed. Check InitialContext's properties. Check exception for details: com.sap.engine.services.rmi_p4.P4RuntimeException: Cannot replicate parameters or return value of local stub
at com.sap.engine.services.rmi_p4.StubImpl.p4_initializeStreams(StubImpl.java:347)
at com.sap.engine.services.rmi_p4.StubImpl.p4_replicate(StubImpl.java:332)
at com.sap.engine.services
Caused by: java.lang.ClassNotFoundException: com.sap.engine.services.dsr.server.DSRTransferable------------------ Loader Info -------------------------
ClassLoader name: [library:p4lib]
Loader * code: 2ccd12ac
Living status: alive
Direct parent loaders:
[system:Frame]
[library:httpclient]
[interface:cross]
Resources:
/usr/sap/XXX/J00/j2ee/cluster/bin/ext/p4lib/lib/sap.com p4lib.jar
---------------------------------------------------------------
at com.sap.engine.boot.loader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:278)
at com.sap.engine.boot.loader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:247)
at com.sap.engine.services.rmi_p4.ReplicateInputStream.resolveClass(ReplicateInputStream.java:93)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1580)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1501)
at java.io.ObjectInputStream.readClass(ObjectInputStream.java:1467)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1317)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:356)
at com.sap.engine.services.rmi_p4.StubImpl.p4_initializeStreams(StubImpl.java:342)
The exceptions can happen during a connection attempt, which can be manual, or automatic, requested by an application. It can also happen during a connection test with note 2134934.
Read more...
Environment
SAP NetWeaver Application Server Java
Product
Keywords
NameNotFoundException, P4_PersistentObject, A config entry with the name, could not be found in the configuration, P4ServerObjectInfo toObject, Failed to open a connection to, reason: connection refused, IllegalArgumentException, interface is not visible from class loader, interface java.rmi.Remote <> classloader : null, P4ObjectBrokerServerImpl, Resolving of initial object from remote side failed, Cannot replicate parameters or return value of local stub , KBA , BC-JAS-COR-RMT , RMI, P4, CORBA, IIOP , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview