<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Shephertz Community - Recent questions and answers in Java</title>
<link>http://forum.shephertz.com/?qa=qa/products/app42-cloud-api-baas/java</link>
<description>Powered by Question2Answer</description>
<item>
<title>Answered: 'peer not authenticated' exception?</title>
<link>http://forum.shephertz.com/?qa=11411/peer-not-authenticated-exception&amp;show=11415#a11415</link>
<description>&lt;p&gt;
	Hello!,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp; &amp;nbsp; I want to thank&amp;nbsp;&lt;span style=&quot;color: rgb(51, 51, 51); font-family: Helvetica, Arial, Sens-serif; font-size: 13.6364px;&quot;&gt;Priyanka Singh and&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51); font-family: Helvetica, Arial, Sens-serif; font-size: 13.6364px;&quot;&gt;App42 Team for the quick reply. The actual reason for my&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 14px;&quot;&gt;'peer not authenticated' exception&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51); font-family: Helvetica, Arial, Sens-serif; font-size: 13.6364px;&quot;&gt;is&amp;nbsp;'J&lt;strong&gt;&lt;em&gt;ava version&lt;/em&gt;&lt;/strong&gt;'. I have changed the java version from '&lt;em&gt;Java 1.6&lt;/em&gt;' to '&lt;em&gt;Java 1.9&lt;/em&gt;' and now my problem is solved :)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11411/peer-not-authenticated-exception&amp;show=11415#a11415</guid>
<pubDate>Fri, 22 Feb 2019 07:13:48 +0000</pubDate>
</item>
<item>
<title>Answered: Logging storage size</title>
<link>http://forum.shephertz.com/?qa=11257/logging-storage-size&amp;show=11259#a11259</link>
<description>Hi,&lt;br /&gt;
&lt;br /&gt;
There is no limit on Log Storage and it gets counted along with the total storage you consume on App42 Cloud. If you exceed the limit on your Storage then your account manager at ShepHertz will contact you for the actions needed to be taken.&lt;br /&gt;
&lt;br /&gt;
Only admin of the app can delete the logs from the AppHQ Management console.&lt;br /&gt;
&lt;br /&gt;
I hope it helps.&lt;br /&gt;
&lt;br /&gt;
Thanks.</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11257/logging-storage-size&amp;show=11259#a11259</guid>
<pubDate>Tue, 07 Aug 2018 12:15:02 +0000</pubDate>
</item>
<item>
<title>Answered: Why does leaderboard only save increasing scores??</title>
<link>http://forum.shephertz.com/?qa=11231/why-does-leaderboard-only-save-increasing-scores&amp;show=11232#a11232</link>
<description>Find the answer here:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://forum.shephertz.com/?qa=3151/current-rank-the-user-based-last-score-leaderboard-service&quot; rel=&quot;nofollow&quot;&gt;http://forum.shephertz.com/?qa=3151/current-rank-the-user-based-last-score-leaderboard-service&lt;/a&gt;</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11231/why-does-leaderboard-only-save-increasing-scores&amp;show=11232#a11232</guid>
<pubDate>Mon, 23 Jul 2018 16:11:41 +0000</pubDate>
</item>
<item>
<title>Answered: How to remove apps in my account ?</title>
<link>http://forum.shephertz.com/?qa=11194/how-to-remove-apps-in-my-account&amp;show=11195#a11195</link>
<description>Hi Kan,&lt;br /&gt;
&lt;br /&gt;
There is no option to delete the apps from AppHQ. If any app you are not using then billing not be done for that app. Could you please let me know if there is any specific reason for deleting that app other than pricing concerns? It will help us to provide better support from our side.&lt;br /&gt;
&lt;br /&gt;
Thanks.</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11194/how-to-remove-apps-in-my-account&amp;show=11195#a11195</guid>
<pubDate>Wed, 27 Jun 2018 06:53:05 +0000</pubDate>
</item>
<item>
<title>Answered: getTopNRankers is not working right ?</title>
<link>http://forum.shephertz.com/?qa=11183/gettopnrankers-is-not-working-right&amp;show=11184#a11184</link>
<description>&lt;p&gt;
	Hi Kan,&lt;/p&gt;
&lt;p&gt;
	Greetings!!!&lt;/p&gt;
&lt;p&gt;
	In the &lt;a rel=&quot;nofollow&quot; href=&quot;http://api.shephertz.com/app42-docs/leaderboard-service/#get-top-n-rankers&quot;&gt;Get Top N Rankers By Date API&lt;/a&gt; of &lt;a rel=&quot;nofollow&quot; href=&quot;http://api.shephertz.com/app42-docs/leaderboard-service/&quot;&gt;Leaderboard Service&lt;/a&gt;, the data which we will get returned will not be in real time, there will be the lag of few hours. It has been mentioned in our documentation of the Get Top N Rankers By Date API. Might be due to this reason issue get happened please&amp;nbsp;check and let us know if the issue still continues.&lt;/p&gt;
&lt;p&gt;
	We will be happy to help you.&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	Regards,&lt;/p&gt;
&lt;p&gt;
	Priyanka Singh&lt;/p&gt;
&lt;p&gt;
	App42 Team&lt;/p&gt;</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11183/gettopnrankers-is-not-working-right&amp;show=11184#a11184</guid>
<pubDate>Tue, 19 Jun 2018 12:54:04 +0000</pubDate>
</item>
<item>
<title>Answered: get top N rankings + their additional data</title>
<link>http://forum.shephertz.com/?qa=11149/get-top-n-rankings-their-additional-data&amp;show=11151#a11151</link>
<description>&lt;p&gt;
	Hi Mistkibl,&lt;/p&gt;
&lt;p&gt;
	Greetings!!!&lt;/p&gt;
&lt;p&gt;
	You can use the &lt;a rel=&quot;nofollow&quot; href=&quot;http://api.shephertz.com/app42-docs/leaderboard-service/#saving-additional-data-along-with-score&quot;&gt;Saving Additional Data along with Score API&lt;/a&gt;&amp;nbsp;,&amp;nbsp;this will help you to save the additional data along with the user score in JSON format. Additional data storage uses the&amp;nbsp;Storage Service internally and when you fetch it, it goes to Storage Service again. We have this functionality&amp;nbsp;in getTopNRankings and other get methods(except GetAverageScore)in leaderboard service which internally depends on the storage service to fetch additional info, It will help you to fetch the Top N Rankings from the leaderboard.&lt;/p&gt;
&lt;p&gt;
	Also, you can directly fetch this additional info from the storage service using this &lt;a rel=&quot;nofollow&quot; href=&quot;http://api.shephertz.com/tutorial/Querying-Your-App-Data/?index=query-appdata&quot;&gt;link&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;
	In case if you have any other concern please do feel free to reach out to us.&lt;/p&gt;
&lt;p&gt;
	We will be happy to help you.&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	Regards,&lt;/p&gt;
&lt;p&gt;
	Priyanka Singh&lt;/p&gt;
&lt;p&gt;
	App42Team&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11149/get-top-n-rankings-their-additional-data&amp;show=11151#a11151</guid>
<pubDate>Tue, 12 Jun 2018 06:54:51 +0000</pubDate>
</item>
<item>
<title>Answered: Override certain API calls on server-side</title>
<link>http://forum.shephertz.com/?qa=11067/override-certain-api-calls-on-server-side&amp;show=11068#a11068</link>
<description>&lt;p&gt;
	Hi Kustardking,&lt;/p&gt;
&lt;p&gt;
	Greetings!!!!&lt;/p&gt;
&lt;p&gt;
	Could you please let us know which service you are using &lt;a rel=&quot;nofollow&quot; href=&quot;http://appwarp.shephertz.com/&quot;&gt;AppWarp &lt;/a&gt;or &lt;a rel=&quot;nofollow&quot; href=&quot;http://appwarps2.shephertz.com/&quot;&gt;AppWarpS2&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;
	It will help us to provide better support to you from our end.&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	Regards,&lt;/p&gt;
&lt;p&gt;
	Priyanka Singh&lt;/p&gt;
&lt;p&gt;
	App42 Team&lt;/p&gt;</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11067/override-certain-api-calls-on-server-side&amp;show=11068#a11068</guid>
<pubDate>Wed, 18 Apr 2018 06:51:23 +0000</pubDate>
</item>
<item>
<title>Answered: [CRITICAL SDK BUG] App42 J2ME 2.1 Returning &quot;0&quot; errorcode with Null exception message</title>
<link>http://forum.shephertz.com/?qa=10993/critical-app42-j2me-returning-errorcode-exception-message&amp;show=10996#a10996</link>
<description>Hi,&lt;br /&gt;
&lt;br /&gt;
You are getting this problem only in Register and Login API of User service or with other APIs a well?&lt;br /&gt;
&lt;br /&gt;
Thanks.</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10993/critical-app42-j2me-returning-errorcode-exception-message&amp;show=10996#a10996</guid>
<pubDate>Tue, 27 Feb 2018 17:23:04 +0000</pubDate>
</item>
<item>
<title>Answered: Json Storage does not allow null</title>
<link>http://forum.shephertz.com/?qa=10826/json-storage-does-not-allow-null&amp;show=10827#a10827</link>
<description>Hi Gal,&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Apologies for getting late back to you. &lt;br /&gt;
&lt;br /&gt;
It is only because of null values stored in JSON document. &amp;nbsp;It's NoSQL DB and it works in a different way compared to RDBMS. the document {&amp;quot;age&amp;quot;:21,&amp;quot;name&amp;quot;:&amp;quot;john Doe&amp;quot;} is same as {&amp;quot;age&amp;quot;:21,&amp;quot;name&amp;quot;:&amp;quot;john Doe&amp;quot;;&amp;quot;address&amp;quot;:null}. We will suggest you instead of storing the key's as null better to not store the key at all this improves the performance of your reads/updates against the DB. &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Let me know if it helps or you need any other help from my side.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
&lt;br /&gt;
Himanshu Sharma</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10826/json-storage-does-not-allow-null&amp;show=10827#a10827</guid>
<pubDate>Mon, 27 Nov 2017 06:13:50 +0000</pubDate>
</item>
<item>
<title>Answered: How to receive an image on the custom code server</title>
<link>http://forum.shephertz.com/?qa=10804/how-to-receive-an-image-on-the-custom-code-server&amp;show=10806#a10806</link>
<description>&lt;p&gt;
	Hi Felipe,&lt;/p&gt;
&lt;p&gt;
	&lt;strong&gt;Greetiings!!!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
	Yes, you are right you can use the upload service and get the url from there and use that url into your custom code but you can not use the file object.&lt;/p&gt;
&lt;p&gt;
	If you have any other queries please do feel free to reach out to us.&lt;/p&gt;
&lt;p&gt;
	We will be happy to help you!&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	Regards,&lt;/p&gt;
&lt;p&gt;
	Priyanka Singh&lt;/p&gt;
&lt;p&gt;
	App42 Team&lt;/p&gt;</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10804/how-to-receive-an-image-on-the-custom-code-server&amp;show=10806#a10806</guid>
<pubDate>Fri, 27 Oct 2017 10:54:52 +0000</pubDate>
</item>
<item>
<title>Answered: Can custom code support some java.io package classes?</title>
<link>http://forum.shephertz.com/?qa=10802/can-custom-code-support-some-java-io-package-classes&amp;show=10805#a10805</link>
<description>Hello Felipe,&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Due to some security reason, all the packages are not allowed in the custom code. You can let us know the details of the classes which you want to use inside the custom code, We will share all the packages with our production team and they will look into the packages which we can allow at our end and let you know, &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
&lt;br /&gt;
Himanshu Sharma</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10802/can-custom-code-support-some-java-io-package-classes&amp;show=10805#a10805</guid>
<pubDate>Fri, 27 Oct 2017 05:14:53 +0000</pubDate>
</item>
<item>
<title>Answered: Email can be sent from AppHQ Console but not from API</title>
<link>http://forum.shephertz.com/?qa=10728/email-can-be-sent-from-apphq-console-but-not-from-api&amp;show=10730#a10730</link>
<description>Hello Gal Peric,&lt;br /&gt;
&lt;br /&gt;
I have forwarded your query to our team, we will be getting back to you as soon as possible.&lt;br /&gt;
&lt;br /&gt;
Meanwhile, if you have any other queries please do feel free to reach out with us.&lt;br /&gt;
&lt;br /&gt;
We would be happy to help you out!&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
&lt;br /&gt;
Priyanka Singh&lt;br /&gt;
&lt;br /&gt;
App42 Team</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10728/email-can-be-sent-from-apphq-console-but-not-from-api&amp;show=10730#a10730</guid>
<pubDate>Mon, 04 Sep 2017 10:58:47 +0000</pubDate>
</item>
<item>
<title>Answered: Send Push Fail depends on text</title>
<link>http://forum.shephertz.com/?qa=10699/send-push-fail-depends-on-text&amp;show=10707#a10707</link>
<description>Hi,&lt;br /&gt;
&lt;br /&gt;
Apologies for late reply.&lt;br /&gt;
&lt;br /&gt;
Team is looking into it and will update you asap.&lt;br /&gt;
&lt;br /&gt;
Thanks.</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10699/send-push-fail-depends-on-text&amp;show=10707#a10707</guid>
<pubDate>Mon, 28 Aug 2017 05:55:19 +0000</pubDate>
</item>
<item>
<title>Answered: Custom Code compile exception</title>
<link>http://forum.shephertz.com/?qa=10653/custom-code-compile-exception&amp;show=10661#a10661</link>
<description>Hello Mariam,&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
It seems like you are trying to run the sample code from the command line and you have not provided your keys in build.properties file. So, Could you please verify and let me know if it solves your issue. &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
&lt;br /&gt;
Himanshu Sharma</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10653/custom-code-compile-exception&amp;show=10661#a10661</guid>
<pubDate>Mon, 24 Jul 2017 10:13:28 +0000</pubDate>
</item>
<item>
<title>Answered: How to set Game leaderboard score to zero for each user using cutom code?</title>
<link>http://forum.shephertz.com/?qa=10593/how-set-game-leaderboard-score-zero-each-user-using-cutom-code&amp;show=10597#a10597</link>
<description>&lt;p&gt;
	Hi,&lt;/p&gt;
&lt;p&gt;
	Greetings!!!&lt;/p&gt;
&lt;p&gt;
	You can set the Game Leaderboard Score to zero for each user by using the&lt;strong&gt; Edit Score Value By ID API,&lt;/strong&gt; in this api you have to pass the Score Value -1 &amp;nbsp;to set the Leaderboard Score 0.&lt;/p&gt;
&lt;p&gt;
	For getting more details please have a look into this &lt;a rel=&quot;nofollow&quot; href=&quot;http://api.shephertz.com/app42-docs/leaderboard-service/#edit-score-value-by-id&quot;&gt;link.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;
	If you have any other queries please let us know.&lt;/p&gt;
&lt;p&gt;
	We will be happy to help you.&lt;/p&gt;</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10593/how-set-game-leaderboard-score-zero-each-user-using-cutom-code&amp;show=10597#a10597</guid>
<pubDate>Tue, 04 Jul 2017 07:02:45 +0000</pubDate>
</item>
<item>
<title>Answered: SendPushToUser Client not authorized</title>
<link>http://forum.shephertz.com/?qa=10442/sendpushtouser-client-not-authorized&amp;show=10444#a10444</link>
<description>Hello odf,&lt;br /&gt;
&lt;br /&gt;
Could you please share following informations:&lt;br /&gt;
&lt;br /&gt;
1. ConfigValues&lt;br /&gt;
&lt;br /&gt;
2. Is your app ACL enabled&lt;br /&gt;
&lt;br /&gt;
It will help us to debug the problem you are facing.&lt;br /&gt;
&lt;br /&gt;
Thanks.</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10442/sendpushtouser-client-not-authorized&amp;show=10444#a10444</guid>
<pubDate>Fri, 28 Apr 2017 06:45:50 +0000</pubDate>
</item>
<item>
<title>Answered: Issue with http utils classes in android</title>
<link>http://forum.shephertz.com/?qa=10227/issue-with-http-utils-classes-in-android&amp;show=10229#a10229</link>
<description>&lt;p&gt;
	Hi TheJas,&lt;/p&gt;
&lt;p&gt;
	Greetings from &lt;strong&gt;ShepHertz&lt;/strong&gt;!!!!&lt;/p&gt;
&lt;p&gt;
	Thanks for writing to us.&lt;/p&gt;
&lt;p&gt;
	Many users are successfully using the same and no one is still facing the same problem yet. We need more details so that we can identify why you are facing this issue.&lt;/p&gt;
&lt;p&gt;
	Please share the following details with us.&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;
		Android Studio version you are using.&lt;/li&gt;
	&lt;li&gt;
		Android API version on which you are building the Android application.&lt;/li&gt;
	&lt;li&gt;
		Details about any third party jar file like &lt;strong&gt;&lt;span style=&quot;color: rgb(51, 51, 51); font-family: Helvetica, Arial, Sens-serif; background-color: rgb(250, 250, 250);&quot;&gt;org.apache.http.legacy.boot.jar, &lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: rgb(51, 51, 51); font-family: Helvetica, Arial, Sens-serif; background-color: rgb(250, 250, 250);&quot;&gt;that may contains the same class is same package.&lt;/span&gt;&lt;/li&gt;
	&lt;li&gt;
		build.gradle file.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
	Let me know the details so that we can trace and solve&amp;nbsp; the problem.&lt;/p&gt;
&lt;p&gt;
	Thanks&lt;/p&gt;
&lt;p&gt;
	Vishnu Garg&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10227/issue-with-http-utils-classes-in-android&amp;show=10229#a10229</guid>
<pubDate>Wed, 22 Feb 2017 08:00:12 +0000</pubDate>
</item>
<item>
<title>Answered: Custom Code Execution Error</title>
<link>http://forum.shephertz.com/?qa=9895/custom-code-execution-error&amp;show=9899#a9899</link>
<description>&lt;p&gt;
	Hi Himanshu,&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	The problem has been occurring since a few day ago. Also I downloaded sample custom code from &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/shephertz/App42_CustomCode_Sample/archive/master.zip&quot;&gt;github link&lt;/a&gt;, and after editing keys upload it to AppHQ. Problem still exists with the error 'somethin went wrong'.&lt;/p&gt;
&lt;p&gt;
	The only time I dont receive the problem is on a few oldest custom codes which may be created by java 1.6. Maybe java sdk version related to this? Also keep in mind that I am using latest Intellij IDEA to package jar.&lt;/p&gt;
&lt;p&gt;
	This problem has downside effect on the application, so could you please take a look at it urgently? &amp;nbsp;thanks&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=9895/custom-code-execution-error&amp;show=9899#a9899</guid>
<pubDate>Fri, 25 Nov 2016 10:35:32 +0000</pubDate>
</item>
<item>
<title>Answered: CustomCode Owner Of the Inserted JSON</title>
<link>http://forum.shephertz.com/?qa=9806/customcode-owner-of-the-inserted-json&amp;show=9808#a9808</link>
<description>&lt;p&gt;
	Hi Tufan,&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	Please use the below code snippet in place of&amp;nbsp;&lt;strong&gt;App42.setLoggedInUser(userName),&amp;nbsp;&lt;/strong&gt;it will set the owner of the document for you:&lt;/p&gt;
&lt;div&gt;
	&lt;pre class=&quot;brush:java;&quot;&gt;
HashMap&amp;lt;String, String&amp;gt; otherMetaHeaders = new HashMap&amp;lt;String, String&amp;gt;();
otherMetaHeaders.put(&quot;loggedInUser&quot;, &quot;Your user name&quot;);
storageService.setOtherMetaHeaders(otherMetaHeaders);&lt;/pre&gt;
	&lt;p&gt;
		&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;p&gt;
	Regards,&lt;/p&gt;
&lt;p&gt;
	Himanshu Sharma&lt;/p&gt;</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=9806/customcode-owner-of-the-inserted-json&amp;show=9808#a9808</guid>
<pubDate>Mon, 24 Oct 2016 16:30:42 +0000</pubDate>
</item>
<item>
<title>Answered: Rename a collection</title>
<link>http://forum.shephertz.com/?qa=9558/rename-a-collection&amp;show=9560#a9560</link>
<description>Hi AndroidFoolk,&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Renaming already created collection is not possible as of now. You have to delete the collection first and save with the new name. You ca write a script which will export all the data of your above collection into latest one which you want to create.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
In case you need any help, please let us know. We are happy to assist you! &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
&lt;br /&gt;
Himanshu Sharma</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=9558/rename-a-collection&amp;show=9560#a9560</guid>
<pubDate>Mon, 05 Sep 2016 06:25:48 +0000</pubDate>
</item>
<item>
<title>Answered: Inserting Json to collection is successfull but it is still empty in the dashboard</title>
<link>http://forum.shephertz.com/?qa=9556/inserting-json-collection-successfull-still-empty-dashboard&amp;show=9559#a9559</link>
<description>Hi AndroidFolk,&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Could you please share the details of your app like app name, collection name in which you are facing the issue? If possible then please add demo@shephertz,com as a collaborator on that application. It will help us to provide better support to you. &amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
&lt;br /&gt;
Himanshu Sharma</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=9556/inserting-json-collection-successfull-still-empty-dashboard&amp;show=9559#a9559</guid>
<pubDate>Mon, 05 Sep 2016 06:22:58 +0000</pubDate>
</item>
<item>
<title>Answered: &quot;deletePermanent&quot; doesn't delete the user permanently</title>
<link>http://forum.shephertz.com/?qa=9484/deletepermanent-doesnt-delete-the-user-permanently&amp;show=9489#a9489</link>
<description>&lt;p&gt;
	Hi Roopesh,&lt;/p&gt;
&lt;p&gt;
	It seems you are not attaching the other meta headers with the request. Because i can not find the following code in the code you have shared.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; userService.setOtherMetaHeaders(otherMetaHeaders);&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	Please have a look at the documentation for&amp;nbsp;&lt;a rel=&quot;nofollow&quot; href=&quot;http://api.shephertz.com/app42-docs/user-management-service/?sdk=iOS#delete-user-permanent&quot;&gt;deleteUserPermanentaly&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	Regards,&lt;br&gt;
	Rajeev&lt;/p&gt;</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=9484/deletepermanent-doesnt-delete-the-user-permanently&amp;show=9489#a9489</guid>
<pubDate>Fri, 19 Aug 2016 03:00:31 +0000</pubDate>
</item>
<item>
<title>Answered: How to use REST?</title>
<link>http://forum.shephertz.com/?qa=9072/how-to-use-rest&amp;show=9074#a9074</link>
<description>Hi Tyler,&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Could you please elaborate this query more ? Is it something that you are trying to make rest calls on other server from custom code or you need any other help. &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
regards,&lt;br /&gt;
&lt;br /&gt;
Himanshu Sharma</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=9072/how-to-use-rest&amp;show=9074#a9074</guid>
<pubDate>Fri, 17 Jun 2016 13:09:55 +0000</pubDate>
</item>
<item>
<title>Answered: Client is not authorized while inserting objects into collection in a loop</title>
<link>http://forum.shephertz.com/?qa=8424/client-authorized-while-inserting-objects-collection-loop&amp;show=8425#a8425</link>
<description>Hi Jitesh,&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Could you please share the complete logs and the code snippet in which you are working on. It will help us to provide better support to you.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
&lt;br /&gt;
Himanshu Sharma</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=8424/client-authorized-while-inserting-objects-collection-loop&amp;show=8425#a8425</guid>
<pubDate>Fri, 25 Mar 2016 19:18:07 +0000</pubDate>
</item>
<item>
<title>Answered: LIKE Operator doesn't search in between the string</title>
<link>http://forum.shephertz.com/?qa=8322/like-operator-doesnt-search-in-between-the-string&amp;show=8324#a8324</link>
<description>Hi Jitesh,&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Is it possible that you can share sample JSON which you have stored inside App42 Database. Also, please share code snippet which you have used. It will help us to provide better support to you. &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
P.S If possible then please share your App Name, DbName and Collection name at support@shephertz.com. &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
&lt;br /&gt;
Himanshu Sharma</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=8322/like-operator-doesnt-search-in-between-the-string&amp;show=8324#a8324</guid>
<pubDate>Wed, 09 Mar 2016 20:19:02 +0000</pubDate>
</item>
<item>
<title>Answered: Not able to send push notifications using Java SDK</title>
<link>http://forum.shephertz.com/?qa=8290/not-able-to-send-push-notifications-using-java-sdk&amp;show=8293#a8293</link>
<description>Hi Jitesh,&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Could you please share some information on this like your push logs when you are sneding this message from Java SDK what you getting inside Push logs section. Please click on Unified Notification -&amp;gt; Push - &amp;gt; Logs and please share the logs with us. It wlll help us to provide better support to you. &lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
&lt;br /&gt;
Himanshu Sharma</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=8290/not-able-to-send-push-notifications-using-java-sdk&amp;show=8293#a8293</guid>
<pubDate>Thu, 03 Mar 2016 13:36:18 +0000</pubDate>
</item>
<item>
<title>Answered: Is it possible to store a date field using no sql and then retreive the results sorted on that field?</title>
<link>http://forum.shephertz.com/?qa=8259/possible-store-date-field-using-retreive-results-sorted-field&amp;show=8262#a8262</link>
<description>&lt;p&gt;
	Hi Jitesh,&lt;/p&gt;
&lt;p&gt;
	Could you please elaborate your use case in details of saving date along with JSON document because when you insert any document in App42 database, we automatically return document creation date in response which you can use for sorting and fetching the documents. How you can find document based on creation date? You just need to build a query which contains key as _$createdAt and value as an a time in UTC (2016-02-27T05:36:27.254Z) format from which you want to fetch the records.&lt;/p&gt;
&lt;p&gt;
	Please have a look at &lt;a rel=&quot;nofollow&quot; href=&quot;http://api.shephertz.com/tutorial/Querying-Your-App-Data/?index=query-appdata&quot;&gt;this&lt;/a&gt; link to understand the steps of building a query and let me know if it helps.&lt;/p&gt;
&lt;p&gt;
	Regards,&lt;/p&gt;
&lt;p&gt;
	Himanshu Sharma&lt;/p&gt;</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=8259/possible-store-date-field-using-retreive-results-sorted-field&amp;show=8262#a8262</guid>
<pubDate>Mon, 29 Feb 2016 05:27:55 +0000</pubDate>
</item>
<item>
<title>Answered: Custom Code with elaborate API</title>
<link>http://forum.shephertz.com/?qa=8233/custom-code-with-elaborate-api&amp;show=8238#a8238</link>
<description>&lt;p&gt;
	Hi Jitesh,&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	In order to achieve the above things, we have a&amp;nbsp;product name as API Gateway which helps you to achieve your goal. Please have &amp;nbsp;a look at &lt;a href=&quot;http://apigateway.shephertz.com/&quot; rel=&quot;nofollow&quot;&gt;this&lt;/a&gt;&amp;nbsp;link and let me know if you want a complete walkthrough.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	It will help me to schedule a call and provide better support to you.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	Regards,&lt;/p&gt;
&lt;p&gt;
	Himanshu Sharma&lt;/p&gt;</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=8233/custom-code-with-elaborate-api&amp;show=8238#a8238</guid>
<pubDate>Thu, 25 Feb 2016 14:21:41 +0000</pubDate>
</item>
<item>
<title>Answered: Single custom code for multiple operations</title>
<link>http://forum.shephertz.com/?qa=8196/single-custom-code-for-multiple-operations&amp;show=8200#a8200</link>
<description>Hi Jitesh,&lt;br /&gt;
&lt;br /&gt;
It's recommended to have multiple custom code for operations like GET/POST/PUT/DELETE, but you can work with one as well. There is no issue with one custom code for all operations. &lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
&lt;br /&gt;
Himanshu Sharma</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=8196/single-custom-code-for-multiple-operations&amp;show=8200#a8200</guid>
<pubDate>Sun, 21 Feb 2016 18:39:09 +0000</pubDate>
</item>
<item>
<title>Answered: Internal Server Error when upload .jar to Custom code</title>
<link>http://forum.shephertz.com/?qa=8192/internal-server-error-when-upload-jar-to-custom-code&amp;show=8193#a8193</link>
<description>&lt;p&gt;
	Hi Bilal,&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	Could you please let me know when you are getting Internal Server Error? Is this exception occurred at the time of deploying your jar file on App42 database using AppHQ Management Console or &amp;nbsp;while running your custom code through API.&amp;nbsp;If possible then please share complete logs and screenshots. It will help us to provide better support to you.&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	P.S You can send message as a JSON String in&amp;nbsp;sendPushMessageToUser function like {&quot;alert&quot;:&quot;&lt;span style=&quot;color: rgb(0, 0, 255); font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; line-height: 15.4px; white-space: pre;&quot;&gt;Get free BribeMe, extra points or double time for bonuses!&lt;/span&gt;&quot;,&quot;badge&quot;:&quot;2&quot;}.&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	Regards,&lt;/p&gt;
&lt;p&gt;
	Himanshu Sharma&lt;/p&gt;</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=8192/internal-server-error-when-upload-jar-to-custom-code&amp;show=8193#a8193</guid>
<pubDate>Thu, 18 Feb 2016 12:47:50 +0000</pubDate>
</item>
<item>
<title>Answered: my custom code &quot;app42Fault&quot;:{&quot;httpErrorCode&quot;:400,&quot;appErrorCode&quot;:1903,&quot;message&quot;:&quot;Bad Request&quot;,&quot;details&quot;:&quot; occurred!</title>
<link>http://forum.shephertz.com/?qa=8183/app42fault-httperrorcode-apperrorcode-details-occurred&amp;show=8185#a8185</link>
<description>&lt;p&gt;
	Hi,&lt;/p&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	&lt;span style=&quot;color: rgb(0, 0, 0); font-family: Arial, Helvetica, sans-serif; line-height: 18px;&quot;&gt;We notice that there was some issue while deploying new jar files on App42 Custom code server. I believe it has been resolved now, could you please verify for the same and let me know if you still face any issue.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	&lt;span style=&quot;color: rgb(0, 0, 0); font-family: Arial, Helvetica, sans-serif; line-height: 18px;&quot;&gt;Regards,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
	&lt;span style=&quot;color: rgb(0, 0, 0); font-family: Arial, Helvetica, sans-serif; line-height: 18px;&quot;&gt;Himanshu Sharma&lt;/span&gt;&lt;/div&gt;</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=8183/app42fault-httperrorcode-apperrorcode-details-occurred&amp;show=8185#a8185</guid>
<pubDate>Thu, 18 Feb 2016 08:54:50 +0000</pubDate>
</item>
<item>
<title>Answered: how to return HttpResponseObject execute(HttpRequestObject request) after return App42CallBack function?</title>
<link>http://forum.shephertz.com/?qa=8153/httpresponseobject-httprequestobject-app42callback-function&amp;show=8157#a8157</link>
<description>Hi, &lt;br /&gt;
&lt;br /&gt;
Instead of making Asynchronous calls from Custom code, you can call synchronous API to get the control of method response. Please use synchronous API inside custom code and let me know if you need any help while integrating it. &lt;br /&gt;
&lt;br /&gt;
I will be happy to address your concern.&lt;br /&gt;
&lt;br /&gt;
regards,&lt;br /&gt;
&lt;br /&gt;
Himanshu Sharma</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=8153/httpresponseobject-httprequestobject-app42callback-function&amp;show=8157#a8157</guid>
<pubDate>Sat, 13 Feb 2016 18:58:35 +0000</pubDate>
</item>
<item>
<title>Answered: custom code error  int size = games.size();</title>
<link>http://forum.shephertz.com/?qa=8048/custom-code-error-int-size-games-size&amp;show=8049#a8049</link>
<description>&lt;p&gt;
	Hello Pilot,&lt;/p&gt;
&lt;p&gt;
	Get All game function will only return 100 records in one go, but if you have to find more then 100 records then you have to call pagin method. Using getAllGamesByPagin method, you can find records in chunk of 100.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	Please have a look at &lt;a rel=&quot;nofollow&quot; href=&quot;http://api.shephertz.com/app42-docs/leaderboard-service/#get-all-games-with-paging&quot;&gt;this&lt;/a&gt; link for the code snippet and let us know if it helps.&lt;/p&gt;
&lt;p&gt;
	P.S We have a cap of 200 games per app, if you want to increase this limit. Please contact us at sales@shephertz.com.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	regards,&lt;/p&gt;
&lt;p&gt;
	Himanshu Sharma&lt;/p&gt;</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=8048/custom-code-error-int-size-games-size&amp;show=8049#a8049</guid>
<pubDate>Fri, 22 Jan 2016 13:34:58 +0000</pubDate>
</item>
<item>
<title>Answered: How to set dbname when using custom code. App42API is not allowed.</title>
<link>http://forum.shephertz.com/?qa=8036/how-to-set-dbname-when-using-custom-code-app42api-not-allowed&amp;show=8037#a8037</link>
<description>&lt;p&gt;
	Hi Jitesh,&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	Please find below code snippet to fetch user meta information inside custom code and let me know if it helps:&lt;/p&gt;
&lt;div&gt;
	&lt;pre class=&quot;brush:java;&quot;&gt;
String userName = &quot;UserName&quot;;
ServiceAPI serviceAPI = new ServiceAPI(&quot;API_KEY&quot;, &quot;SECRET_KEY&quot;);
UserService userService = serviceAPI.buildUserService(); 
HashMap&amp;lt;String, String&amp;gt; otherMetaHeaders = new HashMap&amp;lt;String, String&amp;gt;();
JSONObject json = new JSONObject();
json.put(&quot;dbName&quot;, &quot;Your_DBName&quot;);
json.put(&quot;collectionName&quot;, &quot;Your_CollectionName&quot;);
otherMetaHeaders.put(&quot;dbCredentials&quot;, json.toString());
Query query = QueryBuilder.build(&quot;Key&quot;, &quot;Value&quot;, Operator.EQUALS); 
otherMetaHeaders.put(&quot;metaQuery&quot;, query.getStr());
userService.setOtherMetaHeaders(otherMetaHeaders);
User user = userService.getUser(userName); 
System.out.println(&quot;userName is &quot; + user.getUserName());
for(int i=0;i&amp;lt;user.getJsonDocList().size();i++)
{
System.out.println(&quot;updated at = &quot;+ user.getJsonDocList().get(i).getUpdatedAt());
System.out.println(&quot;created at = &quot;+ user.getJsonDocList().get(i).getCreatedAt());
System.out.println(&quot;doc id is = &quot;+ user.getJsonDocList().get(i).getDocId());
System.out.println(&quot;json doc  is = &quot;+ user.getJsonDocList().get(i).getJsonDoc()); 
}&lt;/pre&gt;
	&lt;p&gt;
		&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	Regards,&lt;/div&gt;
&lt;div&gt;
	Himanshu sharma&lt;/div&gt;</description>
<category>Java</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=8036/how-to-set-dbname-when-using-custom-code-app42api-not-allowed&amp;show=8037#a8037</guid>
<pubDate>Wed, 20 Jan 2016 06:33:20 +0000</pubDate>
</item>
</channel>
</rss>