Question

2
Replies
99
Views
Kuresh Surury (suruk)
PEGA

Pegasystems Inc.
suruk Member since 2016 1 post
PEGA
Posted: August 17, 2017
Last activity: September 1, 2017
Posted: 17 Aug 2017 23:23 EDT
Last activity: 1 Sep 2017 10:41 EDT
Closed

Error in Generating Application profile

HI All,



After we did a changes on Application to add the setting "database/drivers" to the prconfig.xml file to specify oracle driver path and restarted the application server we are facing issues while generating Application profile


It doesn't seem the above change is related or cause of the issue but that was the instance post which we started observing the issue



Pega Edition is 7.2


DB server is SQL 2014



As per the logs it seems there are some parameters which are not getting passed to pzGenerateQuickDoc which is spawned off as a child thread when application profile is requested



Error form Logs below



2017-08-18 11:49:46,329 [ PegaRULES-Batch-2] [ STANDARD] [ ] [ PegaRULES:07.10] (pages.DeclarativePageUtilsImpl) WARN Administrator@pega.com - Required parameter'TopAppName' for data page 'D_pzApplicationStackNoPega' cannot be blank.


2017-08-18 11:49:46,329 [ PegaRULES-Batch-2] [ STANDARD] [ ] [ PegaRULES:07.10] (pages.DeclarativePageUtilsImpl) WARN Administrator@pega.com - Required parameter'TopAppVersion' for data page 'D_pzApplicationStackNoPega' cannot be blank.


Show More

HI All,

After we did a changes on Application to add the setting "database/drivers" to the prconfig.xml file to specify oracle driver path and restarted the application server we are facing issues while generating Application profile

It doesn't seem the above change is related or cause of the issue but that was the instance post which we started observing the issue

Pega Edition is 7.2

DB server is SQL 2014

As per the logs it seems there are some parameters which are not getting passed to pzGenerateQuickDoc which is spawned off as a child thread when application profile is requested

Error form Logs below

2017-08-18 11:49:46,329 [ PegaRULES-Batch-2] [ STANDARD] [ ] [ PegaRULES:07.10] (pages.DeclarativePageUtilsImpl) WARN Administrator@pega.com - Required parameter'TopAppName' for data page 'D_pzApplicationStackNoPega' cannot be blank.

2017-08-18 11:49:46,329 [ PegaRULES-Batch-2] [ STANDARD] [ ] [ PegaRULES:07.10] (pages.DeclarativePageUtilsImpl) WARN Administrator@pega.com - Required parameter'TopAppVersion' for data page 'D_pzApplicationStackNoPega' cannot be blank.

2017-08-18 11:49:51,478 [ PegaRULES-Batch-2] [ STANDARD] [ ] [ PegaRULES:07.10] ( rd.resolve.SqlReportResolver) ERROR Administrator@pega.com - An error occured during resolving the report definition - An application name is specified. Please specify a corresponding application version.

com.pega.pegarules.data.internal.rd.resolve.UserResolveReportException: An application name is specified. Please specify a corresponding application version.

at com.pega.pegarules.data.internal.rd.utils.ValidationUtils.throwException(ValidationUtils.java:479)

at com.pega.pegarules.data.internal.rd.resolve.AppContextResolver.validate(AppContextResolver.java:154)

at com.pega.pegarules.data.internal.rd.resolve.AppContextResolver.resolveAppContext(AppContextResolver.java:73)

at com.pega.pegarules.data.internal.rd.resolve.AppContextResolver.resolve(AppContextResolver.java:62)

at com.pega.pegarules.data.internal.rd.resolve.SqlReportResolver.resolve(SqlReportResolver.java:85)

at com.pega.pegarules.data.internal.rd.resolve.SqlReportResolver.resolve(SqlReportResolver.java:37)

at com.pega.pegarules.data.internal.rd.SQLExecutorResultsCP.resolve(SQLExecutorResultsCP.java:63)

at com.pega.pegarules.data.internal.rd.SqlReportExecutor.executeMainReport(SqlReportExecutor.java:98)

at com.pega.pegarules.data.internal.rd.SqlReportExecutor.execute(SqlReportExecutor.java:77)

at com.pega.pegarules.data.internal.rd.SqlReportExecutor.execute(SqlReportExecutor.java:50)

at com.pega.pegarules.data.internal.PRDataProviderImpl.executeReport(PRDataProviderImpl.java:1242)

at com.pega.pegarules.session.internal.mgmt.Executable.executeReport(Executable.java:10853)

at com.pegarules.generated.definition.ra_action_pzgetrequirementskeysfordoc_7b381a84fa68ee13ca9c35cbe4d58d13.perform(ra_action_pzgetrequirementskeysfordoc_7b381a84fa68ee13ca9c35cbe4d58d13.java:50)

at com.pega.pegarules.session.internal.mgmt.Executable.doAction(Executable.java:3315)

at com.pegarules.generated.activity.ra_action_pxretrievereportdata_9cbb46a60a82a8ed15c681966b6722ba.step32_circum0(ra_action_pxretrievereportdata_9cbb46a60a82a8ed15c681966b6722ba.java:3576)

at com.pegarules.generated.activity.ra_action_pxretrievereportdata_9cbb46a60a82a8ed15c681966b6722ba.perform(ra_action_pxretrievereportdata_9cbb46a60a82a8ed15c681966b6722ba.java:676)

at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3510)

at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10587)

at com.pegarules.generated.activity.ra_action_pzgetrequirementsfordoc_e331a4adf28932253d26c1fe2261090f.step2_circum0(ra_action_pzgetrequirementsfordoc_e331a4adf28932253d26c1fe2261090f.java:244)

at com.pegarules.generated.activity.ra_action_pzgetrequirementsfordoc_e331a4adf28932253d26c1fe2261090f.perform(ra_action_pzgetrequirementsfordoc_e331a4adf28932253d26c1fe2261090f.java:93)

at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3510)

at com.pegarules.generated.html_section.ra_stream_pzdocumentrequirementstable_ad8f772bafdd93c6f9bbf93e07aa4124.executeStream_2(ra_stream_pzdocumentrequirementstable_ad8f772bafdd93c6f9bbf93e07aa4124.java:624)

at com.pegarules.generated.html_section.ra_stream_pzdocumentrequirementstable_ad8f772bafdd93c6f9bbf93e07aa4124.execute(ra_stream_pzdocumentrequirementstable_ad8f772bafdd93c6f9bbf93e07aa4124.java:94)

at com.pega.pegarules.session.internal.mgmt.Executable.getStream(Executable.java:4043)

at com.pega.pegarules.session.internal.mgmt.Executable.getStream(Executable.java:3871)

at com.pegarules.generated.pzGenerateDocument_071023_dSLPXrcgAB5qg_dKXBlK_w$1DocumentParser.fetchHtmlStreamFromPegaTag(pzGenerateDocument_071023_dSLPXrcgAB5qg_dKXBlK_w.java:708)

at com.pegarules.generated.pzGenerateDocument_071023_dSLPXrcgAB5qg_dKXBlK_w$1DocumentParser.parseAndPopulate(pzGenerateDocument_071023_dSLPXrcgAB5qg_dKXBlK_w.java:350)

at com.pegarules.generated.pzGenerateDocument_071023_dSLPXrcgAB5qg_dKXBlK_w$1DocumentParser.generateDocument(pzGenerateDocument_071023_dSLPXrcgAB5qg_dKXBlK_w.java:192)

at com.pegarules.generated.pzGenerateDocument_071023_dSLPXrcgAB5qg_dKXBlK_w.pzGenerateDocument07_10_23(pzGenerateDocument_071023_dSLPXrcgAB5qg_dKXBlK_w.java:1085)

at com.pegarules.generated.pzGenerateDocument_071023_dSLPXrcgAB5qg_dKXBlK_w.invoke(pzGenerateDocument_071023_dSLPXrcgAB5qg_dKXBlK_w.java:74)

at com.pega.pegarules.generation.internal.library.LibraryRuntime.resolveAndinvokeFunctionViaReflection(LibraryRuntime.java:133)

at com.pega.pegarules.generation.internal.library.LibraryRuntime.invokeLibraryRuntime(LibraryRuntime.java:110)

at com.pega.pegarules.session.internal.mgmt.Executable.invokeLibraryRuntime(Executable.java:9017)

at com.pega.pegarules.priv.generator.LibrarySupport.resolveAndInvokeFunctionViaReflection(LibrarySupport.java:181)

at com.pegarules.generated.pega_appdefinition_documentapp.pzGenerateDocument(pega_appdefinition_documentapp.java:604)

at com.pegarules.generated.activity.ra_action_pzgeneratequickappprofiledoc_b29140ba5aa1c800a7bc8452489310c1.step1_circum0(ra_action_pzgeneratequickappprofiledoc_b29140ba5aa1c800a7bc8452489310c1.java:188)

at com.pegarules.generated.activity.ra_action_pzgeneratequickappprofiledoc_b29140ba5aa1c800a7bc8452489310c1.perform(ra_action_pzgeneratequickappprofiledoc_b29140ba5aa1c800a7bc8452489310c1.java:72)

at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3510)

at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10587)

at com.pegarules.generated.activity.ra_action_pzgeneratequickdoc_c4ad2dde9279bb93d08e764e70cb2223.step14_circum0(ra_action_pzgeneratequickdoc_c4ad2dde9279bb93d08e764e70cb2223.java:1253)

at com.pegarules.generated.activity.ra_action_pzgeneratequickdoc_c4ad2dde9279bb93d08e764e70cb2223.perform(ra_action_pzgeneratequickdoc_c4ad2dde9279bb93d08e764e70cb2223.java:353)

at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3510)

at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:646)

at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivities(ThreadRunner.java:572)

at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.runActivities(PRThreadImpl.java:458)

at com.pega.pegarules.session.internal.async.agent.QueueProcessor.executeBatchTask(QueueProcessor.java:257)

at com.pega.pegarules.session.internal.async.agent.QueueProcessor.execute(QueueProcessor.java:321)

at com.pega.pegarules.session.internal.async.BatchRequestorTask.run(BatchRequestorTask.java:967)

at com.pega.pegarules.session.internal.PRSessionProviderImpl.performTargetActionWithLock(PRSessionProviderImpl.java:1266)

at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:1015)

at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:908)

at com.pega.pegarules.session.internal.async.BatchRequestorTask.run(BatchRequestorTask.java:684)

at com.pega.jsr166backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:991)

at com.pega.jsr166backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:532)

at java.lang.Thread.run(Unknown Source)

To be sure its not a applicaiton specific issue we also tried generating the App profile from Administrator@pega.com but in that scenario also it failed with same error

Only difference we noticed between application specify ID and Administrator@pega.com is that in latters case the progress bar went till 100% and then displayed this message"Document generation failed. Please see logs for more details." but in case of former ID the progress bar was always showing 0% with no error message

Update :-

On analysis we found the document are getting generated in serviceexport folder

We also verified the access setting for folder and the ID on which tomcat was running as service

The ID has complete access to the folder and we also marked the folders to be accessible by everyone and gave all ID's complete access

-Kuresh

Show Less
Data Integration Java and Activities
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.