Skip to Content
0
Former Member
Jan 15, 2009 at 04:23 PM

UWL: getRuntimeResources().getService() causes Exception

18 Views

Hello,

I am developing a new connector for UWL using the UWL API.

At the moment I am trying to test the connector only in CE 7.1. The connector is not deployed to portal now.

Could this be the reason why the following code causes an NullPointerException?

IPortalRuntimeResources res = PortalRuntime.getRuntimeResources();

res.getService(IUWLService.ALIAS_KEY);

This code is included in the method afterinit() from the class connectorRegistrationService which implements IconnectorRegistrationService as suggested by UWL-API.

I have checked which object causes the NullPointerException. The value of res = null. And I got also null after PortalRuntime.getVersion();

In portalapp.xml ther e is include: <property name="ServicesReference" value="com.sap.netweaver.bc.uwl"/>

Can anybody tell me if there is an opportunity to avoid such a NullPointerException during testing the connector in the CE 7.1?

Will the exception disappear after deploying the connector into portal?

Who can give advice?

Best Regards,

Iris