Servicemix bundle breaks when upgrading to Java 8 v311

93 views Asked by At

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?

0

There are 0 answers