Hello!
I'm trying to get the SAP conntector to work.
I try to run the sample code from the PDK documentation.
It compiles fine, but when I run the sample code in the portal I get a runtime error (sorry it's in german):
Portal-Laufzeitfehler
Fehler aufgetreten bei der Verarbeitung eines Request für :
iView : N/A
Komponentenname : N/A
com/sapportals/portal/ivs/cg/IConnectorService.
Exception id: 09:54_17/11/04_0001
See the details for the exception ID in the log file
This is the code that causes the error:
IConnectorService connectorservice = (IConnectorService)PortalRuntime.getRuntimeResources().getService( IConnectorService.KEY);
IConnectorGatewayService cgService = connectorservice.getIConnectorGatewayService();
Any ideas how I can get this code to work?
Hi again,
I have had exactly the same problem and solved it by updating the SharingReference in the portalapp.xml file as follows:
<property name="SharingReference" value="htmlb, com.sap.portal.runtime.config, com.sap.portal.runtime.config.component, usermanagement, com.sap.netweaver.bc.crt, com.sap.netweaver.bc.util, com.sap.netweaver.bc.sf, com.sap.netweaver.bc.rf, com.sap.netweaver.bc.sf.service, com.sap.netweaver.bc.rf.service, com.sap.portal.ivs.connectorservice"/>
Thank you for your answer Elvez!
Which portalapp.xml file did you update? I changed the portalapp.xml in my project (in eclipse, dist/PORTAL-INF/portalapp.xml), but I'm still getting this runtime error. Do I have to change a portalapp.xml file on the server? I searched for the file on our EP server and got 308 search results.
I don't know if the system is running correctly (I did not set up the system, I'm just a trainee, never worked with portals or SAP R3 before). It's not only the connector framework which is throwing runtime errors: I get runtime errors when I try to use htmlb, too.
When I start the preinstalled samples from the PDK, they are running without any runtime errors. So the needed libraries seem to exist on the server.
Any further ideas how to solve the problem? I begin to become desperate...
Add a comment