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

Willem Jiang commented on SMX4-1825:
------------------------------------

When I use the smx bundle pom 11, I got below error when trying to create the 
osgi bundle.
{code}
java.lang.ArrayIndexOutOfBoundsException: 18
        at aQute.lib.osgi.Clazz.parseClassFile(Clazz.java:448)
        at aQute.lib.osgi.Clazz.parseClassFile(Clazz.java:369)
        at aQute.lib.osgi.Clazz.parseClassFileWithCollector(Clazz.java:359)
        at aQute.lib.osgi.Clazz.parseClassFile(Clazz.java:349)
        at aQute.lib.osgi.Analyzer.analyzeJar(Analyzer.java:1725)
        at aQute.lib.osgi.Analyzer.analyzeBundleClasspath(Analyzer.java:1595)
        at aQute.lib.osgi.Analyzer.analyze(Analyzer.java:124)
        at aQute.lib.osgi.Builder.analyze(Builder.java:306)
        at aQute.lib.osgi.Analyzer.calcManifest(Analyzer.java:301)
{code}
Sparks code is using JDK8 specify features, and [the 
bug|https://issues.apache.org/jira/browse/FELIX-4005] is fixed in  
mvn-bundle-plugin 2.4.0.But when I upgrade the mvn-bundle-plugin version to 
2.4.0, I got the below error.
{code}
 [INFO] --- maven-bundle-plugin:2.4.0:bundle (default-bundle) @ 
org.apache.servicemix.bundles.spark-core ---
in default pack?
[ERROR] Bundle 
org.apache.servicemix.bundles:org.apache.servicemix.bundles.spark-core:bundle:2.0.0_1-SNAPSHOT
 : The default package '.' is not permitted by the Import-Package syntax.
 This can be caused by compile errors in Eclipse because Eclipse creates
valid class files regardless of compile errors.
The following package(s) import from the default package null
[ERROR] Error(s) found in bundle configuration
{code}

> Create OSGi bundle for spark-core 2.0.0
> ---------------------------------------
>
>                 Key: SMX4-1825
>                 URL: https://issues.apache.org/jira/browse/SMX4-1825
>             Project: ServiceMix 4
>          Issue Type: Task
>          Components: Bundles
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: bundles-2014.08
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to