1 year ago

#303115

test-img

greenTea

Servicemix bundle breaks when upgrading to Java 8 v311

I am trying to upgrade the version of java being used on my machine from Java 8 v282 to Java 8 v311. When I do upgrade to 311 a servicemix bundle will no longer load correctly. The stack trace of when the bundle failed to load said

java.lang.NullPointerException
at java.lang.String.<init>(Unknown Source)

and it pointed at the following code causing the error:

Preferences x = Preferences.systemNodeForPackage(test.class);
String pass = new String(x.getByteArray("fakeKey", null));

Is this getByteArray() function deprecated in java 8 v311, because it was working with v282?

java

java-8

preferences

apache-karaf

apache-servicemix

0 Answers

Your Answer

Accepted video resources