Question

prpc expose utility is giving com.pega.pegarules.pub.PRRuntimeError: Can't get a PublicAPI reference. error

https://pdn.pega.com/sites/pdn.pega.com/files/legacy/DevNet/PRPCv6/KB/images/26168_run.jpg

[java] Dec 05, 2017 4:04:19 PM com.pega.pegarules.internal.bootstrap.PRBootstrap

[java] SEVERE: Problem during method invocation (main)

[java] com.pega.pegarules.pub.PRRuntimeError: Can't get a PublicAPI reference.

[java] at com.pega.pegarules.priv.rulemgmt.ReindexAndExposeOptions.getTools(ReindexAndExposeOptions.java:672)

[java] at com.pega.pegarules.priv.rulemgmt.ReindexAndExposeOptions.validateStartEndDates(ReindexAndExposeOptions.java:642)

[java] at com.pega.pegarules.priv.rulemgmt.ReindexAndExposeOptions.validate(ReindexAndExposeOptions.java:594)

[java] at com.pega.pegarules.deploy.internal.exposecols.tasks.ExposeOptionsReader.loadIndexOptions(ExposeOptionsReader.java:128)

[java] at com.pega.pegarules.deploy.internal.util.ExposeCols.main(ExposeCols.java:252)

[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

[java] at java.lang.reflect.Method.invoke(Method.java:498)

[java] at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:370)

[java] at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:411)

[java] at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:224)

[java] at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethod(AppServerBridgeToPega.java:273)

[java] at com.pega.pegarules.pub.PegaRULES.main(PegaRULES.java:85)

[java]

[java] Dec 05, 2017 4:04:19 PM com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega

[java] SEVERE: Problem during method invocation (main)

[java] com.pega.pegarules.pub.PRRuntimeError: Can't get a PublicAPI reference.

[java] at com.pega.pegarules.priv.rulemgmt.ReindexAndExposeOptions.getTools(ReindexAndExposeOptions.java:672)

[java] at com.pega.pegarules.priv.rulemgmt.ReindexAndExposeOptions.validateStartEndDates(ReindexAndExposeOptions.java:642)

[java] at com.pega.pegarules.priv.rulemgmt.ReindexAndExposeOptions.validate(ReindexAndExposeOptions.java:594)

[java] at com.pega.pegarules.deploy.internal.exposecols.tasks.ExposeOptionsReader.loadIndexOptions(ExposeOptionsReader.java:128)

[java] at com.pega.pegarules.deploy.internal.util.ExposeCols.main(ExposeCols.java:252)

[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

[java] at java.lang.reflect.Method.invoke(Method.java:498)

[java] at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:370)

[java] at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:411)

[java] at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:224)

[java] at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethod(AppServerBridgeToPega.java:273)

[java] at com.pega.pegarules.pub.PegaRULES.main(PegaRULES.java:85)

[java]

[java] Exception in thread "main" java.lang.RuntimeException: Problem during method invocation (main)

[java] at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethod(AppServerBridgeToPega.java:279)

[java] at com.pega.pegarules.pub.PegaRULES.main(PegaRULES.java:85)

[java] Caused by: com.pega.pegarules.pub.PRRuntimeError: Can't get a PublicAPI reference.

[java] at com.pega.pegarules.priv.rulemgmt.ReindexAndExposeOptions.getTools(ReindexAndExposeOptions.java:672)

[java] at com.pega.pegarules.priv.rulemgmt.ReindexAndExposeOptions.validateStartEndDates(ReindexAndExposeOptions.java:642)

[java] at com.pega.pegarules.priv.rulemgmt.ReindexAndExposeOptions.validate(ReindexAndExposeOptions.java:594)

[java] at com.pega.pegarules.deploy.internal.exposecols.tasks.ExposeOptionsReader.loadIndexOptions(ExposeOptionsReader.java:128)

[java] at com.pega.pegarules.deploy.internal.util.ExposeCols.main(ExposeCols.java:252)

[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

[java] at java.lang.reflect.Method.invoke(Method.java:498)

[java] at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:370)

[java] at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:411)

[java] at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:224)

[java] at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethod(AppServerBridgeToPega.java:273)

[java] ... 1 more

[echo]

[echo]

[echo] ************************************************************************************************************************

[echo]

[echo] Performing 'expose' on system using properties /app/PEGA721/Pega721/scripts/utils/prpcUtils.properties failed.

[echo] Cause:

[echo] The following error occurred while executing this line:

[echo] /app/PEGA721/Pega721/scripts/utils/prpcUtils.xml:1126: Java returned: 1

[echo]

[echo] ************************************************************************************************************************

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

December 7, 2017 - 7:49am

Please post the prpcUtils.properties file (you can xxx out the password) and complete log.

December 7, 2017 - 10:20am

Thanks for the reply @CelesteDufresne_GCS.

Please check the attached Files, it includes LOGS and PRPCUTILS.SETPROPERTIES

December 7, 2017 - 12:44pm

In your properties file you have these parameters set with *******.  See the same value for username in the log file.  Did you have this set to a valid Pega operator/password and just change it before you posted?  Please try without any values set for these properties or with a valid operator instead of ****** if that is what you used.

# Use the following properties if you want to use a user's access group
# to determine runtime context instead of the App Requestor's access group
pega.user.username=******
pega.user.password=******

December 7, 2017 - 1:56pm
Response to CelesteDufresne_GCS

Hi,

I have used valid operator details.Just before posting I have masked the details.

December 7, 2017 - 2:40pm

Then try blanking those 2 properties out and see if you see the same error.

December 7, 2017 - 3:56pm
Response to CelesteDufresne_GCS

Even after blanking out those properties still the same error.

December 29, 2017 - 1:30pm

I don't know if you are still having issues with this but I ran into the same error message. There was two changes I made for a successful run. One change was removing the time in the start date and end date properties. The other was setting the expose.declareIndex.accessgroup property and removing the username and password. Hopefully either one of those works for you.