[ https://issues.apache.org/jira/browse/SLING-2849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13646508#comment-13646508 ]
Robert Munteanu commented on SLING-2849: ---------------------------------------- Hopefully fixed in http://svn.apache.org/viewvc?view=revision&revision=1477948 Use the 7-SNAPSHOT version of the launchpad for integration tests since it supports Java 7. Also removed the /system/console/shell check from OsgiConsoleTest since it doesn't seem to be included in the launchpad anymore. Keeping open until I have verified that the tests no longer fail on builds.apache.org. > Sample integration tests fail on Java 7 > --------------------------------------- > > Key: SLING-2849 > URL: https://issues.apache.org/jira/browse/SLING-2849 > Project: Sling > Issue Type: Bug > Components: Samples > Reporter: Robert Munteanu > > All tests fail since Sling does not start. It seems we're using an older > version of Felix ( or Launchpad? ) which does not support Java 7. The > following log entry indicates that: > 01.05.2013 09:38:05.230 *INFO* [main] Starting launcher ... > 01.05.2013 09:38:05.232 *INFO* [main] HTTP server port: 45188 > 01.05.2013 09:38:05.301 *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(ArrayList.java:371) > at java.util.ArrayList.get(ArrayList.java:384) > 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 > 01.05.2013 09:38:05.303 *ERROR* [main] There was a problem launching Sling > All tests fail afterwards. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira