cancel
Showing results for 
Search instead for 
Did you mean: 

UWL: getRuntimeResources().getService() causes Exception

Former Member
0 Kudos
55

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I am still interested in answers to this topic.

Please advice why I get this NullPointerException?

Regards,

Iris