My Oracle Support Banner

OES11g- Getting NullPointerException trying to perform Policy Distribution Programatically (Doc ID 2339386.1)

Last updated on OCTOBER 15, 2019

Applies to:

Oracle Entitlements Server - Version and later
Information in this document applies to any platform.


On : version

When attempting to distribute the application using the MAPI with out the pdp.service in the jps-config.xml  the following error occurs.

using the ( Custom code) REST API to doing the distribute application . To  distribute Application, passing the jps-config.xml to the code, The  jps-config.xml has the following ( pdp.service and Policystore) . so that it will check these values in the jps-config.xml and it will do distributes and works fine

<serviceInstance name="policystore.rdbms" provider="policy.rdbms">
<property name="jdbc.driver" value="oracle.jdbc.OracleDriver"/>

<property name="jdbc.url" value="connectionstring"/>
<property name="" value="cn=<OPSS_ROOT_CONTAINER>"/>
<property name="" value="cn=<FARM>"/>
<property name="jdbc.user" value="<PREFIX>_OPSS"/>
<property name="jdbc.password" value="<PASSWORD>"/>

<serviceInstance name="pdp.service" provider="pdp.service.provider">
<description>Runtime PDP service instance</description>
<property name="" value="controlled-pull"/>
<property name="" value="<SM_NAME>"/>
<property name="" value="java"/>
<property name=""value="true"/>

<property name="" value="600"/>
<property name="jdbc.driver" value="oracle.jdbc.driver.OracleDriver"/>
<property name="jdbc.url" value="jdbc:oracle:thin:@<HOST>:<PORT>/SID>"/>
<property name="" value="cn=<OPSS_ROOT_CONTAINER>"/>
<property name="" value="cn=cn=<FARM>"/>
<property name="" value="<MAPNAME>"/>
<property name="" value="<KEYNAME>"/>
<property name="policystore.type" value="DB_ORACLE"/>

<jpsContexts default="default">
<jpsContext name="default">
<serviceInstanceRef ref="pdp.service"/>
<serviceInstanceRef ref="policystore.rdbms"/>

The above works fine, when having one Java Security Module.

When having multiple Java Security Modules, i.e: Java SM1, Java SM2, etc , it is not possible set multiple pdp.service section for each Java Security Module to distribute.

When removing the pdp.service section, seeing below error:


How distribute the Application for all Java SM at one shot without using the pdp.service instances in jps-config.xml, like distributing the application from OES console?


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.