Gooodmorning
I have a big problem with the new Felix 1.0.1.
We have istalled it in a embedded linux (UNC90). We use the VM Mika
(http://k-embedded-java.com/).
Our Problem is that with some bundles, that in the java-code initialize an
array with null (int arr = new int[0]), we become some error:

"Caused by: java.lang.NoClassDefFoundError:
[EMAIL PROTECTED] could
not load int"
the source that cause this error is:

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
public class HelloWorld implements BundleActivator {
    public void start(BundleContext context) {
       String s = "Hello world";
       String s2 = "";
       System.out.println("s: "+s);
       int[][][] prova3 = new int[1][5][0];
       System.out.println("After prova");
       int[][][] prova2 = new int[1][5][4];
       System.out.println("After prova2");
       int[][][] prova = new int[1][s.length()][s2.length()];
       System.out.println("After prova3");
    }
    public void stop(BundleContext context) {
       System.out.println("Armageddon");
    }
}

this code print:
s: Hello world
org.osgi.framework.BundleException: Activator start error.
        at org.apache.felix.framework.Felix._startBundle(Felix.java:1573)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1470)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:354)
        at
org.apache.felix.shell.impl.StartCommandImpl.execute(StartCommandImpl.java:82)
        at
org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:265)
        at
org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:167)
Caused by: java.lang.NoClassDefFoundError:
[EMAIL PROTECTED]
could not load int
       at HelloWorld.start(HelloWorld.java:7)
       at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
       at org.apache.felix.framework.Felix._startBundle(Felix.java:1536)
       at org.apache.felix.framework.Felix.startBundle(Felix.java:1470)
       at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1065)
       at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
java.lang.NoClassDefFoundError:
[EMAIL PROTECTED]
could not load int

With Felix-0.8.0 we don't become this error, onli with Felix-1.0.1

Have any idea what the problem is?

Thank you very much

Cardoso Antonio
-- 
View this message in context: 
http://www.nabble.com/org.apache.felix.framework.searchpolicy.ContentClassLoader%400x402e8c28-could-not-load-int%22-tp15040385p15040385.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to