I can't deploy custom jar file via CustomCodeService#deployJarFile

0 votes

I can't deploy my server side custom codes via CustomCodeService#deployJarFile because of these exception's messages:

Exception :com.shephertz.app42.paas.sdk.java.App42Exception: org.json.JSONExcep
tion: JSONObject["httpErrorCode"] not a string.
com.shephertz.app42.paas.sdk.java.App42Exception: org.json.JSONException: JSONOb
ject["httpErrorCode"] not a string.
at com.shephertz.app42.paas.sdk.java.customcode.CustomCodeService.deploy
JarFile(CustomCodeService.java:91)
at com.shephertz.app42.paas.sdk.java.customcode.CustomCodeService$1.run(
CustomCodeService.java:114)
Caused by: org.json.JSONException: JSONObject["httpErrorCode"] not a string.
at org.json.JSONObject.getString(JSONObject.java:658)
at com.shephertz.app42.paas.sdk.java.util.Util.multiPartRequest(Util.jav
a:335)
at com.shephertz.app42.paas.sdk.java.customcode.CustomCodeService.deploy
JarFile(CustomCodeService.java:84)
... 1 more

Please help me.

asked Oct 27, 2014 in App42 Cloud API-BaaS by app42 (10 points)

1 Answer

0 votes

Hello,

Kindly replace the App42 Java library with this jar file and share the method logs with us. It will help us to replicate this issue at our end. To print the method logs, kindly put the below code snippet before making call to App42 server for deploying the jar file:

App42Log.setDebug(true);

Also you can deploy your jar file from AppHQ Management Console directly as mentioned below.

  • Login to AppHQ Management Console
  • Click on Custom code >> Deploy JAR
  • Select your app and fill all the required filed to deploy the file

Let me know if it is helpful.

Thanks 

Himanshu Sharma

 

answered Oct 28, 2014 by hs00105 (2,005 points)
I hope your query has been resolved, kindly let us know if you have more questions for us.
Himanshu Sharma
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...