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

UWL: getRuntimeResources().getService() causes Exception



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();


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=""/>

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,