You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by "Sergio Fernandez (JIRA)" <ji...@apache.org> on 2012/06/21 10:14:42 UTC

[jira] [Updated] (STANBOL-608) Stanbol is incompatible with Java 7

     [ https://issues.apache.org/jira/browse/STANBOL-608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergio Fernandez updated STANBOL-608:
-------------------------------------

    Attachment: stanbol-java7-full-war.patch

With the current trunk version (r1352428) it be impossible to run the launchers (standalone and war) under Java 7 because some packages are not exported by Sling:

org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.stanbol.contenthub.search.featured [69]: Unable to resolve 69.0: missing requirement [69.0] package; (package=org.apache.clerezza.rdf.core) [caused by: Unable to resolve 109.0: missing requirement [109.0] package; (package=org.apache.clerezza.utils.security) [caused by: Unable to resolve 123.0: missing requirement [123.0] package; (package=org.apache.http) [caused by: Unable to resolve 32.0: missing requirement [32.0] package; (package=javax.net.ssl)]]]
	at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3443)
	at org.apache.felix.framework.Felix.startBundle(Felix.java:1727)
	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156)
	at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
	at java.lang.Thread.run(Thread.java:722)

Please, find attached a patch that should solve the issue.
                
> Stanbol is incompatible with Java 7
> -----------------------------------
>
>                 Key: STANBOL-608
>                 URL: https://issues.apache.org/jira/browse/STANBOL-608
>             Project: Stanbol
>          Issue Type: Bug
>    Affects Versions: 0.9.0-incubating
>         Environment: java version 1.7.*
>            Reporter: Rupert Westenthaler
>              Labels: java7
>         Attachments: stanbol-java7-full-war.patch
>
>
> launching the Stanbol launcher under Java 7 fails with the follwing Exception
>     10.05.2012 06:40:50.133 *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)
> This is caused by Stanbol using an outdated SLING lauchpad base module that does not support Java 7. (see https://issues.apache.org/jira/browse/SLING-2281)
> To fix this we need to upgrade to version 2.4.0.
> Thx to Andreas Kuckartz for reporting [1]!
> [1] http://markmail.org/message/paqchtf32gubt64y
>  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira