[ 
https://issues.apache.org/jira/browse/SLING-3146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13786115#comment-13786115
 ] 

Robert Munteanu commented on SLING-3146:
----------------------------------------

Hi Eric,

Thanks for raising this issue - it's entirely correct that your experience is 
not the best one. To give you a little more background, the Sling download - 
the Sling Launchpad - is an aggregate release of many bundles and artifacts, 
including the base launchpad. SLING-2348 was filed against the base launchpad 
and fixed, but we never did a full release of the Sling Launchpad 7 which is 
expected to work against Java 7 and 8.

To run the Sling launchpad, either use Java 6 for the official Sling Launchpad 
6 download , or build the latest svn trunk version according to [Getting and 
building 
Sling|http://sling.apache.org/documentation/development/getting-and-building-sling.html]
 . This trunk version will work just fine with Java 7, and should work with 
Java 8 as well.

Robert

> Out-of date "Discover Sling in 15 minutes"
> ------------------------------------------
>
>                 Key: SLING-3146
>                 URL: https://issues.apache.org/jira/browse/SLING-3146
>             Project: Sling
>          Issue Type: Bug
>          Components: Documentation, Launchpad
>         Environment: W7
>            Reporter: Eric Estievenart
>
> When following instructions from "Discover Sling in 15 minutes"
> (http://sling.apache.org/documentation/getting-started/discover-sling-in-15-minutes.html),
> the steps ask to download org.apache.sling.launchpad-6-standalone.jar,
> and run it via java -jar ....
> Indeed when running it, I stumble upon an AIOB exception,
> which looks like the one described in SLING-2348.
> However this bug should have been fixed in May, 2012,
> and the jar seems to be from Jan, 2013.
> I'm not sure whether:
> - the link to the launchpad jar is the good one
> - the apache mirrors are providing the good file
> - or there has been a regression (in which case SLING-2348 should be reopened 
> ?)
> In any case, the first impression is disappointing ;-)
> Thanks,
> Eric
> -------- detailed infos --------
> java 1.7.0.21 64 bit on W7.
> C:\tmp\>java -jar org.apache.sling.launchpad-6-standalone.jar -l 4
> 04.10.2013 13:59:38.781 *INFO* [main] Setting sling.home=sling (default)
> 04.10.2013 13:59:38.782 *INFO* [main] Starting Sling in sling (C:\tmp\sling)
> 04.10.2013 13:59:38.794 *INFO* [main] Checking launcher JAR in folder sling
> 04.10.2013 13:59:38.809 *INFO* [main] Existing launcher is up to date, using 
> it: 2.3.0 (org.apache.sling.launchpad.base.jar)
> 04.10.2013 13:59:38.812 *INFO* [main] Loading launcher class 
> org.apache.sling.launchpad.base.app.MainDelegate from 
> org.apache.sling.launchpad.base.jar
> 04.10.2013 13:59:38.823 *INFO* [main] Starting launcher ...
> 04.10.2013 13:59:38.828 *INFO* [main] HTTP server port: 8080
> 04.10.2013 13:59:38.894 *ERROR* [main] Failed to Start OSGi framework
> org.osgi.framework.BundleException: Uncaught Instantiation Issue: 
> java.lang.ArrayIndexOutOfBoundsException: -1
>         at org.apache.sling.launchpad.base.impl.Sling.<init>(Sling.java:245)
>         at 
> org.apache.sling.launchpad.base.app.MainDelegate$1.<init>(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.<init>(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.<init>(ExtensionManager.java:201)
>         at org.apache.felix.framework.Felix.<init>(Felix.java:374)
>         at 
> org.apache.sling.launchpad.base.impl.SlingFelix.<init>(SlingFelix.java:39)
>         at org.apache.sling.launchpad.base.impl.Sling.<init>(Sling.java:235)
>         ... 5 more
> 04.10.2013 13:59:38.898 *ERROR* [main] There was a problem launching Sling
> 04.10.2013 13:59:38.898 *INFO* [Sling Terminator] Java VM is shutting down



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to