title: Apache Sling - OSGI framework exception when starting in Windows
body: <p>I received the following error message when starting Sling on Windows with Java 1.7 (see below). I'm using Sling 6 (<a href="http://www.apache.org/dyn/closer.cgi/sling/org.apache.sling.launchpad-6-standalone.jar" rel="noreferrer">http://www.apache.org/dyn/closer.cgi/sling/org.apache.sling.launchpad-6-standalone.jar</a>). Any idea what could be wrong?</p>
  
  <p>Last time I tried using the same Sling version on Mac OSX and it worked perfectly.</p>
  
  <pre><code>Failed to Start OSGi framework
  org.osgi.framework.BundleException: Uncaught Instantiation Issue: 
  java.lang.ArrayIndexOutOfBoundsException: -1
       at 
  org.apache.sling.launchpad.base.impl.Sling.&lt;init&gt;(Sling.java:245)
       at 
  org.apache.sling.launchpad.base.app.MainDelegate$1.&lt;init&gt;(MainDelegate.java:159)
       at 
  org.apache.sling.launchpad.base.app.MainDelegate.start(MainDelegate.java:159)
       at org.apache.sling.launchpad.app.Main.startSling(Main.java:244)
       at org.apache.sling.launchpad.app.Main.&lt;init&gt;(Main.java:107)
       at org.apache.sling.launchpad.app.Main.main(Main.java:56)
  Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
       at java.util.ArrayList.elementData(Unknown Source)
       at java.util.ArrayList.get(Unknown Source)
       at 
  org.apache.felix.framework.BundleImpl.getCurrentModule(BundleImpl.java:1046)
       at 
  org.apache.felix.framework.BundleImpl.getSymbolicName(BundleImpl.java:863)
       at 
  org.apache.sling.launchpad.base.impl.SlingFelix.getSymbolicName(SlingFelix.java:32)
       at org.apache.felix.framework.Felix.toString(Felix.java:1012)
       at org.apache.felix.framework.Logger.doLog(Logger.java:128)
       at org.apache.felix.framework.Logger._log(Logger.java:181)
       at org.apache.felix.framework.Logger.log(Logger.java:114)
       at 
  org.apache.felix.framework.ExtensionManager.&lt;init&gt;(ExtensionManager.java:201)
       at org.apache.felix.framework.Felix.&lt;init&gt;(Felix.java:374)
       at 
  org.apache.sling.launchpad.base.impl.SlingFelix.&lt;init&gt;(SlingFelix.java:39)
       at 
  org.apache.sling.launchpad.base.impl.Sling.&lt;init&gt;(Sling.java:235)
  </code></pre>