{"id":3318,"date":"2014-03-22T02:35:58","date_gmt":"2014-03-22T02:35:58","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/22\/apache-sling-exception-when-starting-collection-of-common-programming-errors\/"},"modified":"2014-03-22T02:35:58","modified_gmt":"2014-03-22T02:35:58","slug":"apache-sling-exception-when-starting-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/22\/apache-sling-exception-when-starting-collection-of-common-programming-errors\/","title":{"rendered":"Apache Sling &#8211; exception when starting-Collection of common programming errors"},"content":{"rendered":"<p>I 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?<\/p>\n<p>Last time I tried using the same Sling version on Mac OSX and it worked perfectly (I have this error on a Windows machine).<\/p>\n<pre><code>Failed to Start OSGi framework\norg.osgi.framework.BundleException: Uncaught Instantiation Issue: \njava.lang.ArrayIndexOutOfBoundsException: -1\n     at \norg.apache.sling.launchpad.base.impl.Sling.(Sling.java:245)\n     at \norg.apache.sling.launchpad.base.app.MainDelegate$1.(MainDelegate.java:159)\n     at \norg.apache.sling.launchpad.base.app.MainDelegate.start(MainDelegate.java:159)\n     at org.apache.sling.launchpad.app.Main.startSling(Main.java:244)\n     at org.apache.sling.launchpad.app.Main.(Main.java:107)\n     at org.apache.sling.launchpad.app.Main.main(Main.java:56)\nCaused by: java.lang.ArrayIndexOutOfBoundsException: -1\n     at java.util.ArrayList.elementData(Unknown Source)\n     at java.util.ArrayList.get(Unknown Source)\n     at \norg.apache.felix.framework.BundleImpl.getCurrentModule(BundleImpl.java:1046)\n     at \norg.apache.felix.framework.BundleImpl.getSymbolicName(BundleImpl.java:863)\n     at \norg.apache.sling.launchpad.base.impl.SlingFelix.getSymbolicName(SlingFelix.java:32)\n     at org.apache.felix.framework.Felix.toString(Felix.java:1012)\n     at org.apache.felix.framework.Logger.doLog(Logger.java:128)\n     at org.apache.felix.framework.Logger._log(Logger.java:181)\n     at org.apache.felix.framework.Logger.log(Logger.java:114)\n     at \norg.apache.felix.framework.ExtensionManager.(ExtensionManager.java:201)\n     at org.apache.felix.framework.Felix.(Felix.java:374)\n     at \norg.apache.sling.launchpad.base.impl.SlingFelix.(SlingFelix.java:39)\n     at \norg.apache.sling.launchpad.base.impl.Sling.(Sling.java:235)\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I 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: [&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-3318","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3318","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=3318"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3318\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}