Symptom:
case I
- I get ObjectNotExistsException when clicking on a service in the Application Communication UI after updating to a newer SP.
- I get ObjectNotExistsException when clicking on a service in the Application Communication UI after redeploying an application/DC.
case II
- I get ObjectNotExistsException when clicking on a service definition in the Single Service Administration UI.
case III
- The configuration of the Service Group fails with ObjectNotExistsException
case IV
I can see re-occuring errors in the default traces like this one:
Message: Could not get default logical port [EXCEPTION] com.sap.esi.esp.lib.mm.config.exceptions.ObjectNotExistsException: No default logical port.
case V
- I get ObjectNotExistsException when deploying an application with service references and at least one of these service references points to a service group, which is declared in another application/development component.
case VI
I get ObjectNotExistsException in the trace files similar to this:
Caused by: com.sap.esi.esp.lib.mm.config.exceptions.ObjectNotExistsException: SOAObjectId type = CONSUMER_GROUP local = new_undefined_sg_2 ns = sap.com/tc~bpm~myapp~main processingState = INITIAL delete = false (processingTraceId=null, processingLogId=null) at com.sap.esi.esp.service.server.SOAConfigurationManagerImpl.read (SOAConfigurationManagerImpl.java:178) at com.sap.esi.esp.service.server.mass.SOAObjectAccessor.readSOAObject (SOAObjectAccessor.java:191)
In NWA, Business Scenario Communication view I can see similar error messages.
Problem Description:
case I
This issue occurs only in case of an application containing both a service reference and a Web Service.
After deployment I assigned a communication profile to the service in the Application Communication UI. The configurations were generated successfully and could be seen in the UI. After redeployment of the application when I clicked on the same service in the same UI, I get the exception.
case II
The combination of the name of the service and the name of the application/DC is too long, which causes this failure.
case III
After redeployment of an application/DC containing a JAX-WS Proxy or a CAF application and a Service Group (which was already assigned to a provider system before the redeployment) the configuration of the Service Group fails with an exception com.sap.esi.esp.lib.mm.config.exceptions.ObjectNotExistsException
case IV
There is no default logical port for the ServicesRegistrySi proxy.
case V
The application that is being deployed contains a service reference that points to a Service Group, which is declared in a different application/DC. In order this to work at deployment, one needs to have a deploy and a runtime dependency to the application that contains the service group.
case VI
The default Business Scenario contains Service Group(s) with invalid service references.
Solution:
case I
- Update your system as follows:
- For NetWeaver CE 7.2, to SP6 (or later).
- For NetWeaver 7.3, to SP4 (or later).
- There is also a workaround to undeploy the application completely, then deploy it, and create the provider assignment again (assign the service to the profile).
case II
See SAP Note #1496077 – Missing service definition
case III
See SAP Note #1383750 – After update of WSClinetApp with ServiceRef, assignment fails
case IV
In general this will not stop your system from working properly.
In order to get rid of the error messages in the default traces, you have to set a default logical port.
Go to NWA -> SOA Management -> Application and Scenario Communication -> Single Service Administration -> Consumer Proxies tab -> Search for "ServicesRegistrySi" proxy -> set the logical port as default.
case V
You have to add a deploy+runtime dependency to the application that deploys the Service Group.
case VI
1. Go to NWA -> Troubleshooting -> Logs and Traces -> Log Configuration and set Debug severity for the tracing location com.sap.esi.esp.itsam.ui.soa.biz. If that location is not visible use some parent location (com.sap.esi.esp.itsam.ui, com.sap.esi.esp.itsam, etc.). Then click "Copy to Subtree" button and save the configuration.
2. If you do so and visit again Business Scenario Communication then you will see a default configuration appearing.
3. Edit and save any entry here. This will regenerate the business assignments, and so the error should not appear any more.
4. Revert the severity you have set in point 1.
Additional Information
case I
The system displays the following error:
com.sap.esi.esp.lib.mm.config.exceptions.ObjectNotExistsException: Runtime Configuration <POChangedMessage_IN_SAP_DEFAULT_PROFILE_Service> for Service Definition <ip~iap.bpm.approval_process_POChangedMessage_IN_sapcom2Fip2Fiapbpmapprovalprocess2FPOChanged_POChangedMessage_IN>
com.sap.esi.esp.lib.mm.config.impl.ConfigurationRootImpl.getRuntimeConfiguration(ConfigurationRootImpl.java:314)
at com.sap.esi.esp.service.server.WSConfigurationImpl.readRuntimeConfiguration(WSConfigurationImpl.java:3344)
at com.sap.esi.esp.service.server.WSConfigurationImpl.getBindingWSDL(WSConfigurationImpl.java:1764)
at com.sap.esi.esp.service.server.SOAConfigurationLinkManagerImpl.getSEInfo(SOAConfigurationLinkManagerImpl.java:296)
at com.sap.esi.esp.service.server.SOAConfigurationLinkManagerImpl.getServiceEndpoints(SOAConfigurationLinkManagerImpl.java:268)
at com.sap.esi.esp.lib.mass.utils.ConfigurationScenariosManipulator.getServiceEndpoints(ConfigurationScenariosManipulator.java:276)
at com.sap.esi.esp.lib.mass.entity.javabeans.SDAssignments.addAssignment(SDAssignments.java:46)
at com.sap.esi.esp.lib.mass.entity.javabeans.SDAssignments.<init>(SDAssignments.java:37)at com.sap.esi.esp.lib.mass.entity.ConfigurationAssignments.addProviderSideAssignment(ConfigurationAssignments.java:219)
at com.sap.esi.esp.lib.mass.entity.ConfigurationAssignments.addProviderSideAssignments(ConfigurationAssignments.java:236)
at com.sap.esi.esp.lib.mass.entity.ScenarioAssignments.load(ScenarioAssignments.java:122)
at com.sap.esi.esp.lib.mass.entity.ScenarioAssignments.<init>(ScenarioAssignments.java:34)
at com.sap.esi.esp.itsam.ui.soa.biz.wd.soacompositeconfigcomp.SOACompositeConfigCompView.onEventClassificationSelected(SOACompositeConfigCompView.java:335)
at com.sap.esi.esp.itsam.ui.soa.biz.wd.soacompositeconfigcomp.wdp.InternalSOACompositeConfigCompView.wdInvokeEventHandler(InternalSOACompositeConfigCompView.java:209)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:142)
at com.sap.tc.webdynpro.progmodel.components.Component.fireEvent(Component.java:492)
at com.sap.esi.esp.itsam.ui.soa.biz.wd.soacompositeconfigcomp.wdp.InternalSOACompositeConfigComp.wdFireEventClassificationSelected(InternalSOACompositeConfigComp.java:819)
at com.sap.esi.esp.itsam.ui.soa.biz.wd.soacompositeconfigcomp.SOACompositeConfigComp.fireClassificationSelected(SOACompositeConfigComp.java:266)
at com.sap.esi.esp.itsam.ui.soa.biz.wd.soacompositeconfigcomp.wdp.InternalSOACompositeConfigComp.fireClassificationSelected(InternalSOACompositeConfigComp.java:635)
at com.sap.esi.esp.itsam.ui.soa.biz.wd.soacompositeconfigcomp.BrowseSRClassifications.onActionClassificationSelected(BrowseSRClassifications.java:452)
at com.sap.esi.esp.itsam.ui.soa.biz.wd.soacompositeconfigcomp.wdp.InternalBrowseSRClassifications.wdInvokeEventHandler(InternalBrowseSRClassifications.java:271)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:142)
at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:75)
at com.sap.tc.webdynpro.clientserver.phases.ProcessingEventPhase.doHandleActionEvent(ProcessingEventPhase.java:159)
case IV
The system displays the following error:
Could not get default logical port
[EXCEPTION]
com.sap.esi.esp.lib.mm.config.exceptions.ObjectNotExistsException: No default logical port
at com.sap.esi.esp.service.server.ESPServiceInterfaceImpl.getDefaultLogicalPort(ESPServiceInterfaceImpl.java:535)
at com.sap.engine.services.webservices.tools.wsil.SOACentralSRPublisherImpl.isSrConnectionConfigured(SOACentralSRPublisherImpl.java:2388)
case V
The system displays an error whose root cause is:
com.sap.esi.esp.lib.mm.config.exceptions.ObjectNotExistsException: Matching ServiceGroup for name <NameOfServiceGroup> is not found. ServiceGroup is searched in following namespaces: <a list with all applications, this application depends on>
at com.sap.esi.esp.service.server.deploy.cfgar.ConsumerGroupsRegistryImpl.getMatchingConsumerGroup(ConsumerGroupsRegistryImpl.java:635)
at com.sap.esi.esp.service.server.deploy.cfgar.ConsumerGroupsRegistryImpl.addServiceReferences(ConsumerGroupsRegistryImpl.java:441)
at com.sap.esi.esp.service.server.deploy.cfgar.actions.AbstractServiceReferencesUpdater.perform(AbstractServiceReferencesUpdater.java:78)