Question

DevOps implementation

Correct Answer
October 25, 2017 - 6:40am

Hi Sameera,

Fyi, i had shared the successfully implemented using jenkins-build.xml file along with the process document for import/export in my blog which you have shared above. I would suggest you to cross check with my jenkins-build.xml file as i can see so many differences with your build file.

Regards

Mahesh

Comments

Keep up to date on this post and subscribe to comments

October 23, 2017 - 1:33am

Hi,

Looks like there is an issue in build file. Request validation url is empty. Could you please check the build file and provide the correct details.

October 25, 2017 - 5:10am
Response to Mahesh_Muddasani

How to find the proper jenkin-build.xml format.

October 25, 2017 - 5:34am
Response to SameeraSilva

Bellow is my jenkins-build.xml file.After setting prpcServiceUtils.properties.xml file in prpcServiceUtils only pega.rest.server.url get the url  and also other properties.

October 25, 2017 - 6:40am
Response to SameeraSilva

Hi Sameera,

Fyi, i had shared the successfully implemented using jenkins-build.xml file along with the process document for import/export in my blog which you have shared above. I would suggest you to cross check with my jenkins-build.xml file as i can see so many differences with your build file.

Regards

Mahesh

November 1, 2017 - 12:53am
Response to Mahesh Midthuru

Thank you.

October 7, 2018 - 7:00am
Response to Mahesh Midthuru

Hi Mahesh,

 

Can you share the link which you are saying is posted in you blog.

Regard

Gouri Shankar K

December 7, 2018 - 3:35pm
Response to SameeraSilva

I am having a similar issue. My url is not completely empty, but it say illegal arguments.

15:51:49      [echo] *** JVM Arguments -XX:MaxHeapSize=1280m ***
15:51:49 
15:51:49 _callService:
15:51:50      [java] 15:51:50.499 [main] INFO  [a.pegarules.serviceclient.ClientSettings] - -action export -propFileDir C:\prpcServiceUtils\scripts\utils/generated -poolSize ${prpcserviceutils.pool.size} -requestTimeOut ${prpcserviceutils.request.timeout} -tempDir C:\windows\TEMP\/PegaInstallTemp-06-December-2018-15.51.48 -artifactsDir C:\prpcServiceUtils 
15:51:50      [java] 15:51:50.510 [main] INFO  [a.pegarules.serviceclient.ClientSettings] - Setting Thread Pool Size to default 5
15:51:50      [java] 15:51:50.510 [main] INFO  [a.pegarules.serviceclient.ClientSettings] - Setting Request TimeOut to default 300
15:51:50      [java] 15:51:50.523 [main] INFO  [.pega.pegarules.serviceclient.ClientMain] - Initializing client Current Operation = EXPORT; Thread Pool Size = 5; RequestTimeOut = 300; TemporaryDirectory = C:\windows\TEMP\/PegaInstallTemp-06-December-2018-15.51.48
15:51:50      [java] 15:51:50.525 [main] INFO  [viceclient.requestmanager.RequestManager] - Initializing Request Manager
15:51:50      [java] 15:51:50.527 [main] INFO  [viceclient.requestmanager.RequestManager] - Initializing ExecutorService with pool size 5 
15:51:50      [java] 15:51:50.532 [main] INFO  [viceclient.requestmanager.RequestManager] - Performing EXPORT with params [System Name = jenkins-freeJob1-23 Parameters = {export.async=false, manageRestorePoints.restorePointLabel=, user.temp.dir=C:/pega_temp, import.commitRate=100, hotfix.bypassSchema=false, pega.rest.password=*****, import.allowInheritedConnections=false, pega.rest.response.type=json, import.mode=import, import.nofailonerror=false, export.branchAppContext=, hotfix.force=false, import.importFromRepository=false, export.applicationVersion=${applicationVersion}, pega.rest.username=0000000, expose.reindexType=nonpega, export.exportToRepository=false, pega.rest.proxy.port=, hotfix.async=true, import.archive.path=, import.compileLibraries=true, import.insecureOperators=, rollback.downloadLogToFile=true, export.productName=EBS, expose.async=true, updateAccessGroup.applicationVersion=, import.preserveOrder=true, getstatus.operationName=, export.branchName=, expose.startDate=, export.productVersion=01.01.04, import.allowImportWithMissingDependencies=false, rollback.async=true, expose.reindex=true, updateAccessGroup.applicationName=, expose.includedClasses=, updateAccessGroup.groupList=, expose.endKey=, expose.excludeDescendents=true, expose.numOfThreads=1, export.archiveName=EBS01.01.04, getstatus.jobID=, expose.excludedClasses=, import.artifactType=, expose.includeDescendents=true, pega.rest.server.url=c0000000.test.abcd.pqrs.com:8080/prweb/PRRestService/, import.existingInstances=skip, manageRestorePoints.restorePointName=, import.async=true, expose.endDate=, rollback.restorePointName=, manageTrackedData.operation=, hotfix.dlFilePath=, import.skipBackup=false, pega.rest.proxy.workstation=, pega.rest.proxy.password=*****, import.archivePath=, hotfix.catalogPath=, import.codesetName=Customer, hotfix.operation=, pega.rest.proxy.domain=, expose.commitRate=100, pega.rest.proxy.host=, import.repositoryName=, rollback.action=SystemRollback, export.applicationName=${applicationName}, expose.startKey=, manageRestorePoints.action=, pega.rest.proxy.username=, export.repositoryName=, import.codesetVersion=06-01-01, import.bypassSchema=}]
15:51:50      [java] 15:51:50.544 [main] INFO  [viceclient.requestmanager.RequestManager] - Request on system jenkins-freeJob1-23 failed
15:51:50      [java] 15:51:50.545 [main] ERROR [viceclient.requestmanager.RequestManager] - Request on system jenkins-freeJob1-23 failed
15:51:50      [java] java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Invalid URL provided for system jenkins-freeJob1-23 URL:c0000000.test.abcd.pqrs.com:8080/prweb/PRRestService/
15:51:50      [java] 	at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_192]
15:51:50      [java] 	at java.util.concurrent.FutureTask.get(FutureTask.java:206) ~[?:1.8.0_192]
15:51:50      [java] 	at com.pega.pegarules.serviceclient.requestmanager.RequestManager.processResponse(RequestManager.java:156) [prdeploy.jar:?]
15:51:50      [java] 	at com.pega.pegarules.serviceclient.requestmanager.RequestManager.doOperation(RequestManager.java:141) [prdeploy.jar:?]
15:51:50      [java] 	at com.pega.pegarules.serviceclient.ClientMain.executeAndHandleResponse(ClientMain.java:100) [prdeploy.jar:?]
15:51:50      [java] 	at com.pega.pegarules.serviceclient.ClientMain.main(ClientMain.java:61) [prdeploy.jar:?]
15:51:50      [java] Caused by: java.lang.IllegalArgumentException: Invalid URL provided for system jenkins-freeJob1-23 URL:c0000000.test.abcd.pqrs.com:8080/prweb/PRRestService/
15:51:50      [java] 	at com.pega.pegarules.serviceclient.operation.AbstractOperation.parseURL(AbstractOperation.java:97) ~[prdeploy.jar:?]
15:51:50      [java] 	at com.pega.pegarules.serviceclient.operation.AbstractOperation.validateInputParameters(AbstractOperation.java:229) ~[prdeploy.jar:?]
15:51:50      [java] 	at com.pega.pegarules.serviceclient.rest.RestRequest.validateInputParameters(RestRequest.java:41) ~[prdeploy.jar:?]
15:51:50      [java] 	at com.pega.pegarules.serviceclient.rest.AbstractRestRequest.execute(AbstractRestRequest.java:56) ~[prdeploy.jar:?]
15:51:50      [java] 	at com.pega.pegarules.serviceclient.rest.AbstractRestRequest.execute(AbstractRestRequest.java:1) ~[prdeploy.jar:?]
15:51:50      [java] 	at com.pega.pegarules.serviceclient.request.AbstractRequest.call(AbstractRequest.java:62) ~[prdeploy.jar:?]
15:51:50      [java] 	at com.pega.pegarules.serviceclient.request.AbstractRequest.call(AbstractRequest.java:1) ~[prdeploy.jar:?]
15:51:50      [java] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_192]
15:51:50      [java] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_192]
15:51:50      [java] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_192]
15:51:50      [java] 	at java.lang.Thread.run(Thread.java:748) ~[?:1.8.0_192]
15:51:50      [java]                                        FAILED JOBS
15:51:50      [java] --------------------------------------------------------------------------------------------
15:51:50      [java] 
15:51:50      [java] System Name         : jenkins-freeJob1-23                                                                                 
15:51:50      [java] Job ID              :                                                                                                     
15:51:50      [java] Status              :                                                                                                     
15:51:50      [java] Error Messages      : REQUEST_VALIDATION_ERROR java.lang.IllegalArgumentException: Invalid URL provided for system jenkins-freeJob1-23 URL:c0000000.test.abcd.pqrs.com:8080/prweb/PRRestService/                            
15:51:50      [java] --------------------------------------------------------------------------------------------
15:51:50      [java] 15:51:50.597 [main] INFO  [viceclient.requestmanager.RequestManager] - Shutting down executor service
15:51:50      [java] 15:51:50.597 [main] INFO  [viceclient.requestmanager.RequestManager] - Executor Service shutdown completed
15:51:50      [java] Exception in thread "main" Operation EXPORT failed on jenkins-freeJob1-23,
15:51:50      [java] 	at com.pega.pegarules.serviceclient.ClientMain.executeAndHandleResponse(ClientMain.java:116)
15:51:50      [java] 	at com.pega.pegarules.serviceclient.ClientMain.main(ClientMain.java:61)
15:51:50      [java] Picked up _JAVA_OPTIONS: -Xmx512M
15:51:50 
15:51:50 BUILD FAILED
15:51:50 C:\prpcServiceUtils\scripts\utils\prpcserviceutilsWrapper.xml:176: The following error occurred while executing this line:
15:51:50 C:\prpcServiceUtils\scripts\utils\prpcserviceutilsWrapper.xml:194: Java returned: 1
15:51:50 
15:51:50 Total time: 2 seconds
15:51:50 Picked up _JAVA_OPTIONS: -Xmx512M
15:51:50 Exiting with Error
15:51:50 
15:51:50 Build step 'Execute Windows batch command' marked build as failure
15:51:51 Finished: FAILURE

December 10, 2018 - 2:05am
Response to KaranK25

Hello!

We see that you have created a new post for this query: Jenkins Error using prpcServiceUtils

Good practice!

Thanks,

Pallavi | Community Moderator | Pegasystems Inc.