Author Topic: BUG: Ancestris chrashed at startup  (Read 7149 times)

0 Members and 1 Guest are viewing this topic.

Offline FunkerHornsby

  • VIP
  • Newbie
  • *
  • Posts: 2
    • View Profile
BUG: Ancestris chrashed at startup
« on: June 19, 2021, 16:08:31 »
OS:          Archlinux  daily updated
JAVA :      openjdk 16.0.1 2021-04-20
               OpenJDK Runtime Environment (build 16.0.1+9)
               OpenJDK 64-Bit Server VM (build 16.0.1+9, mixed mode)
Ancestris: Version 11 and 12 from 19.06

After updating from java 15 to java 16 Ancestris chrashed at startup:

./ancestris
 
Identifying path and application name:
   progdir=.
   APPNAME=ancestris
 
Checking configuration file on progdir/../etc:
   Configuration file found. Executing it.
 
Identifying userdir from configuration file:
   userdir(from conf file)=/home/funker/.ancestris/trunk
   userdir(after argument overwrite)=/home/funker/.ancestris/trunk
 
Checking configuration file on userdir/etc:
   Configuration file from userdir not found.
 
Checking if jdkhome is defined: (for MacOS, you might need to add /Contents/Home at the end)
   jdkhome=
   jdkhome not defined.
 
Defining clusters:
   clusters=/opt/ancestris/ancestris:/opt/ancestris/harness:
 
Defining exec command:
   nbexec=./../platform/lib/nbexec
 
Running exec command:
   => Linux system detected...
 
Juni 19, 2021 5:02:29 PM org.netbeans.ProxyURLStreamHandlerFactory register
SCHWERWIEGEND: No way to find original stream handler for jar protocol
java.lang.reflect.InaccessibleObjectException: Unable to make field transient java.net.URLStreamHandler java.net.URL.handler accessible: module java.base does not "opens java.net" to unnamed module @18be83e4
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
        at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:177)
        at java.base/java.lang.reflect.Field.setAccessible(Field.java:171)
        at org.netbeans.ProxyURLStreamHandlerFactory.register(ProxyURLStreamHandlerFactory.java:59)
        at org.netbeans.JarClassLoader.<clinit>(JarClassLoader.java:117)
        at org.netbeans.MainImpl.execute(MainImpl.java:153)
        at org.netbeans.MainImpl.main(MainImpl.java:60)
        at org.netbeans.Main.main(Main.java:58)

java.lang.Error: factory already defined
        at java.base/java.net.URL.setURLStreamHandlerFactory(URL.java:1259)
        at org.eclipse.osgi.framework.internal.core.Framework.installURLStreamHandlerFactory(Framework.java:1765)
        at org.eclipse.osgi.framework.internal.core.Framework.<init>(Framework.java:232)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalInit(EquinoxLauncher.java:67)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.init(EquinoxLauncher.java:37)
        at org.eclipse.osgi.launch.Equinox.init(Equinox.java:178)
        at org.netbeans.modules.netbinox.Netbinox.init(Netbinox.java:63)
        at org.netbeans.core.netigso.Netigso.prepare(Netigso.java:145)
        at org.netbeans.NetigsoHandle.turnOn(NetigsoHandle.java:115)
        at org.netbeans.ModuleManager.enable(ModuleManager.java:1437)
        at org.netbeans.ModuleManager.enable(ModuleManager.java:1254)
        at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:315)
        at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:251)
        at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:298)
        at org.netbeans.core.startup.Main.getModuleSystem(Main.java:156)
        at org.netbeans.core.startup.Main.getModuleSystem(Main.java:125)
        at org.netbeans.core.startup.Main.start(Main.java:282)
        at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:98)
        at java.base/java.lang.Thread.run(Thread.java:831)
$

Hope you can help
Funker

Offline Zurga

  • VIP
  • Supernatural Member
  • *
  • Posts: 4 316
    • View Profile
Re: BUG: Ancestris chrashed at startup
« Reply #1 on: June 19, 2021, 18:28:11 »
Sorry but Ancestris is not certified with Java 16.
Please install Java 11 (last LTS) or Java 15 (last version certified) instead.

The limitation is due to the Netbeans version we use (11.3) which is not certified for Java 16.

Zurga