ridneto
Hi everyone,
I am currently working on updating the Lightstreamer server from version 7.2.0 with JDK 8 to version 7.3.3 with JDK 11. After making all the necessary changes as per the instructions provided in HOW_TO_UPGRADE.TXT, I am still encountering an error:
<ERROR> Unable to initialize the internal web server:
java.io.IOException: Operation not permitted
at java.base/java.io.UnixFileSystem.canonicalize0(Native Method)
at java.base/java.io.UnixFileSystem.canonicalize(Unknown Source)
at java.base/java.io.File.getCanonicalPath(Unknown Source)
at com.lightstreamer.c.b.s.<init>(s.java)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.lightstreamer.l.n.b(n.java)
at com.lightstreamer.l.n.a(n.java)
at com.lightstreamer.l.n.a(n.java)
at com.lightstreamer.l.n.c(n.java)
at com.lightstreamer.c.b.t.<init>(t.java)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.lightstreamer.l.n.b(n.java)
at com.lightstreamer.l.n.a(n.java)
at com.lightstreamer.l.n.a(n.java)
at com.lightstreamer.l.n.c(n.java)
at com.lightstreamer.c.c4.<init>(c4.java)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.lightstreamer.l.n.b(n.java)
at com.lightstreamer.l.n.a(n.java)
at com.lightstreamer.l.n.a(n.java)
at com.lightstreamer.l.n.c(n.java)
at com.lightstreamer.c.c3.<init>(c3.java)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.lightstreamer.l.n.b(n.java)
at com.lightstreamer.l.n.a(n.java)
at com.lightstreamer.l.n.a(n.java)
at com.lightstreamer.l.af.j(af.java)
at com.lightstreamer.l.af.<init>(af.java)
at com.lightstreamer.b.a.a(a.java)
at com.lightstreamer.LS.main(LS.java)
<ERROR> Error in server initialization: Operation not permitted.
<FATAL> Server initialization error.
Does anyone have any clues on how to resolve this error? Or how to get more information?
Dario Crivelli
Lightstreamer Server invokes the JDK's getCanonicalPath with the path that represents the root of its Internal Web Server (only used to run the preinstalled demos).
The submitted path is determined by the <pages_dir> configuration element in lightstreamer_conf.xml.
If you use this configuration, please check the path specified.
If you don't use this configuration, the Server adds "../pages" to the path of the directory that contains the lightstreamer_conf.xml.
This should point to the "Lightstreamer/pages" directory in the installation package.
I can't figure out why the operation should fail, but since the operation involves the local file system and depends on the underlying OS, several failure conditions are possible.
Please try installing a Server 7.3.3 from scratch instead of migrating an existing 7.2.0 installation and check if you still see the issue.