{"id":3372,"date":"2014-03-23T12:33:13","date_gmt":"2014-03-23T12:33:13","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/23\/problem-about-sling-collection-of-common-programming-errors\/"},"modified":"2014-03-23T12:33:13","modified_gmt":"2014-03-23T12:33:13","slug":"problem-about-sling-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/23\/problem-about-sling-collection-of-common-programming-errors\/","title":{"rendered":"problem about sling-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/NMHOy.png?s=32&amp;g=1\" \/><br \/>\nzaxeer<br \/>\njava cq5 sling<br \/>\nI have seen in adobe API documentation QueryBuilder Service which can be called by URLs for many query options, this returns JSON based responses. Very well. I wan to use this in java API. I have found some examples and tried in eclipse but some thing i dont know that how to get the Service &#8220;sling&#8221; as in given code below: OR in other words how to make a QueryBuilder Java object.Any specific JAR i needed or i need to install Apache SLING on my PC i am not sure any one who can share this will be h<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f0e1d3f82497b6f5b07a2ab9b09bfc40?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nopenad<br \/>\nsling<br \/>\nI received the following error message when starting Sling (see below). I&#8217;m using Sling 6 (http:\/\/www.apache.org\/dyn\/closer.cgi\/sling\/org.apache.sling.launchpad-6-standalone.jar). Any idea what could be wrong?Last time I tried using the same Sling version on Mac OSX and it worked perfectly (I have this error on a Windows machine).Failed to Start OSGi framework org.osgi.framework.BundleException: Uncaught Instantiation Issue: java.lang.ArrayIndexOutOfBoundsException: -1at org.apache.sling.launc<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>zaxeer java cq5 sling I have seen in adobe API documentation QueryBuilder Service which can be called by URLs for many query options, this returns JSON based responses. Very well. I wan to use this in java API. I have found some examples and tried in eclipse but some thing i dont know that how [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3372","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3372"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3372\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}