Question

4
Replies
372
Views
Close popover
Chamindika Wickramasinghe (ChamindikaW8317)
Covance Inc
Pega System Admin
Covance Inc
US
ChamindikaW8317 Member since 2015 4 posts
Covance Inc
Posted: July 31, 2017
Last activity: August 1, 2017
Closed

prpcserviceutils failed with JSON error

Hi,

I’m trying to implement pega 7.2.2 DEVOPS capabilities for my environment configuring Jenkins for build deployments.

I’m using prpcserviceutils as described in below link.

https://pdn.pega.com/using-prpcserviceutils-and-jenkins-automated-application-deployment/using-prpcserviceutils-and

I’m getting success result from build EXPORT part. But IMPORT is failing with below error. Anyone has any idea ?

import.mode=import, expose.startDate=, expose.numOfThreads=1, manageTrackedData.operation=, hotfix.bypassSchema=false, hotfix.catalogPath=, pega.rest.proxy.domain=, manageRestorePoints.action=, import.trackData=true, export.applicationName=, pega.rest.response.type=json, pega.rest.proxy.host=}]
[java]
[java] 16:10:49.566 [pool-2-thread-1] INFO [.pegarules.serviceclient.rest.RestClient] - jenkins-pega-deployment-43: Attaching files [C:\Users\cwickram\pega\prpcServiceUtils_73\destination\apache-ant-1.10.1-bin.zip]
[java] 16:10:49.575 [pool-2-thread-1] INFO [.pegarules.serviceclient.rest.RestClient] - jenkins-pega-deployment-43: Adding parameters {jsonBody={"mode":"import","async":"false","codesetVersion":"06-01-01","compileLibraries":"true","allowImportWithMissingDependencies":"false","commitRate":"100","codesetName":"Customer","existingInstances":"skip","trackData":"true","nofailonerror":"false"}}
[java] Exception in thread "main" Operation IMPORT failed on jenkins-pega-deployment-43,
[java] at com.pega.pegarules.serviceclient.ClientMain.executeAndHandleResponse(ClientMain.java:116)
[java] at com.pega.pegarules.serviceclient.ClientMain.main(ClientMain.java:61)
[java] 16:11:03.733 [pool-2-thread-1] INFO [egarules.serviceclient.rest.RestResponse] - jenkins-pega-deployment-43: Parsing response
[java] 16:11:03.734 [pool-2-thread-1] INFO [egarules.serviceclient.rest.RestResponse] - jenkins-pega-deployment-43: Parsing response of length 0
[java] 16:11:03.734 [pool-2-thread-1] INFO [egarules.serviceclient.rest.RestResponse] - jenkins-pega-deployment-43: Parsing content of type application/json; charset=UTF-8
[java] 16:11:03.741 [main] INFO [viceclient.requestmanager.RequestManager] - Request on system jenkins-pega-deployment-43 Successful
[java]
[java] FAILED JOBS
[java] --------------------------------------------------------------------------------------------
[java]
[java] System Name : jenkins-pega-deployment-43
[java] Job ID :
[java] Status :
[java] Error Message : A JSONObject text must begin with '{' at 1 [character 2 line 1]
[java]
[java] --------------------------------------------------------------------------------------------
[java] 16:11:03.762 [main] INFO [viceclient.requestmanager.RequestManager] - Shutting down executor service
[java] 16:11:03.763 [main] INFO [viceclient.requestmanager.RequestManager] - Executor Service shutdown completed
BUILD FAILED
C:\Users\cwickram\pega\prpcServiceUtils_73\scripts\utils\prpcserviceutilsWrapper.xml:172: The following error occurred while executing this line:
C:\Users\cwickram\pega\prpcServiceUtils_73\scripts\utils\prpcserviceutilsWrapper.xml:190: Java returned: 1
Total time: 17 seconds
Exiting with Error
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE
DevOps
Moderation Team has archived post