Author Topic: [Solved] Publication->Website doesn't work  (Read 3195 times)

0 Members and 1 Guest are viewing this topic.

Offline Paul

  • VIP
  • Hero Member
  • *
  • Posts: 105
    • View Profile
[Solved] Publication->Website doesn't work
« on: March 10, 2023, 17:58:14 »
EDIT Sorry forgot the basic information:

Ancestris version:  12.0.11899
Java:  11.0.18+10-post-Debian-1deb11u1 - /usr/lib/jvm/java-11-openjdk-amd64
System:  Linux - 5.16.0-5mx-amd64 - paul
User directory  /home/paul/.ancestris/trunk

I get this error when attempting to publish a website using the example Kennedy data:




=======================================
               START                   
Generating pages in primary language...
=======================================
 
Making css-file
Making js-file
Exporting object M00001
*** Exception caught java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils
   at ancestris.modules.exports.website.ReportWebsite.getSrcFile(ReportWebsite.java:1367)
   at ancestris.modules.exports.website.ReportWebsite.createMultimediaDoc(ReportWebsite.java:1294)
   at ancestris.modules.exports.website.ReportWebsite.generateFiles(ReportWebsite.java:375)
   at ancestris.modules.exports.website.ReportWebsite.start(ReportWebsite.java:269)
   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.base/java.lang.reflect.Method.invoke(Method.java:566)
   at genj.report.Report.start(Report.java:874)
   at genj.report.Runner.run(Runner.java:68)
   at java.base/java.lang.Thread.run(Thread.java:829)
« Last Edit: March 11, 2023, 09:39:01 by Paul »

Offline Zurga

  • VIP
  • Supernatural Member
  • *
  • Posts: 3 913
    • View Profile
Re: Publication->Website doesn't work
« Reply #1 on: March 11, 2023, 08:15:22 »
Please upgrade Ancestris.
The corresponding class is in the Library FOP update.

Zurga

Offline OHappyDay

  • VIP
  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: [Solved] Publication->Website doesn't work
« Reply #2 on: May 17, 2023, 20:47:52 »
I have the same problem with the newest version of Ancestris:

Ancestris-Version :  12.0.11922
Java:  17.0.6+10-Ubuntu-0ubuntu120.04.1 - /usr/lib/jvm/java-17-openjdk-amd64

It is exporting a couple of persons and then stops with an error (see below)

Any ideas?

*** Exception caught java.lang.ClassNotFoundException: org.apache.commons.io.FileUtils starting from ModuleCL@1cc41a0c[ancestris.modules.exports.website] with possible defining loaders [ModuleCL@28d2eb58[ancestris.libs.apache.fop], Netigso[netigso://ancestris.libs.jdom]] and declared parents [org.netbeans.MainImpl$BootClassLoader@533ddba, org.netbeans.JarClassLoader@2b204f74, ModuleCL@25158179[ancestris.modules.console], ModuleCL@22dac0d5[ancestris.core], ModuleCL@2cc489ba[org.openide.awt], ModuleCL@67d79f77[org.openide.explorer], ModuleCL@11e65d4f[lib.miglayout], ModuleCL@6a9030ad[org.netbeans.modules.options.api], Netigso[netigso://org.netbeans.libs.batik.read], ModuleCL@5e5026b2[ancestris.core.report], ...4 more]
   at org.netbeans.ProxyClassLoader.doFindClass(ProxyClassLoader.java:211)
   at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:125)
   at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
   at ancestris.modules.exports.website.ReportWebsite.getSrcFile(ReportWebsite.java:1367)
   at ancestris.modules.exports.website.ReportWebsite.processMultimediaLink(ReportWebsite.java:1874)
   at ancestris.modules.exports.website.ReportWebsite.createIndiDoc(ReportWebsite.java:926)
   at ancestris.modules.exports.website.ReportWebsite.generateFiles(ReportWebsite.java:384)
   at ancestris.modules.exports.website.ReportWebsite.start(ReportWebsite.java:269)
   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
   at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.base/java.lang.reflect.Method.invoke(Method.java:568)
   at genj.report.Report.start(Report.java:874)
   at genj.report.Runner.run(Runner.java:68)
   at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.FileUtils
   at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
   at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
   at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
   at org.netbeans.ProxyClassLoader.doFindClass(ProxyClassLoader.java:209)
   ... 14 more

Offline Zurga

  • VIP
  • Supernatural Member
  • *
  • Posts: 3 913
    • View Profile
Re: [Solved] Publication->Website doesn't work
« Reply #3 on: May 17, 2023, 21:47:49 »
Except reinstall, I'm not sure to have a solution.
This class is in the "commons-io-2.11.0.jar" file
This file is located in the "ancestris/module/ext" directory in the Ancestris installation directory.

Zurga

Offline OHappyDay

  • VIP
  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: [Solved] Publication->Website doesn't work
« Reply #4 on: May 17, 2023, 22:22:05 »
This file is present. Strange.

Could it be a problem with the CLASSPATH?

It does export a few individuals and then crashes.
« Last Edit: May 17, 2023, 22:39:19 by OHappyDay »

Offline Zurga

  • VIP
  • Supernatural Member
  • *
  • Posts: 3 913
    • View Profile
Re: [Solved] Publication->Website doesn't work
« Reply #5 on: May 17, 2023, 22:37:18 »
The system is automatic with all the others files in this directory.
I don't understand how this file couldn't be found and all the others could be found.

Zurga

Offline OHappyDay

  • VIP
  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: [Solved] Publication->Website doesn't work
« Reply #6 on: May 17, 2023, 22:48:50 »
As far as I understand the export of individuals follow the same procedure and I do not understand why the first seven indivuals could be exported (some files ARE created in the target directory) but fails at the next one.

It is different for different genealogies: if I try the examples (Bourbon, Kennedy) then the failure happens also but at different stages of the process.

Kennedy:
Making css-file
Making js-file
Exporting object M00001
*** Exception caught java.lang.ClassNotFoundException

Bourbon:
Making css-file
Making js-file
Exporting person I192 de FLANDRE, Beaudouin ()
Exporting person I191 de CORNOUAILLES, Agnès ou Havoïse (8478772-c.2 G22)
Exporting person I194 ? ()
Exporting person I193 de FLANDRE, Robert ()
Exporting person I196 de CORNOUAILLES, Hoël (16957544 G25)
  Unhandled tag:INDI:_SOSADABOVILLE
Exporting person I195 FITZCOUNT, Brian (8478772-b.1 G22)
  Unhandled tag:INDI:_SOSADABOVILLE
Exporting person I198 de CORNOUAILLES, Mathias (16957544-1 G24)
Exporting person I197 de RENNES, Havoïse (16957545 G25)
  Unhandled tag:INDI:_SOSADABOVILLE
Exporting person I199 de CORNOUAILLES, Eudon (16957544-2 G24)
Exporting person I181 d' ANJOU, Ermangarde (8478773 G24)
  Unhandled tag:INDI:_SOSADABOVILLE
Exporting person I180 de CORNOUAILLES, Alain (8478772 G24)
*** Exception caught java.lang.ClassNotFoundException:

Offline OHappyDay

  • VIP
  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: [Solved] Publication->Website doesn't work
« Reply #7 on: May 17, 2023, 23:29:35 »
Here are the results of my examination:

  • In the original installation that fails to produce the local website I had changed the theme from "Nimbus" to "Standard"
  • Reverting to "Nimbus" does not change the behaviour: still crashing
  • Then I removed the configuration directory (.ancestris), started ancestris again
  • With the default settings I could successfully create the local website
  • Changed the theme to "Standard": creation of local website fails
  • Undoing the theme change did not fix the problem!

So this means that the crash is related to the theme but changing the theme leaves some traces that prevent the function to work properly again.

Very strange.

Next observation:

I reenabled my original configuration directory (where the original crash happened) and changed the theme to "Metal", restarted and tried it again and alas, no crash.

If even more strange what is going on here.

Maybe one of the developers has a chance to investigate this.

For now I will not touch the theme setting again.
« Last Edit: May 17, 2023, 23:38:43 by OHappyDay »

Offline Zurga

  • VIP
  • Supernatural Member
  • *
  • Posts: 3 913
    • View Profile
Re: [Solved] Publication->Website doesn't work
« Reply #8 on: May 18, 2023, 09:18:22 »
Thank you for the information.
We never add information about theme related to class loader trouble.

We will try to investigate.

Zurga