Error at opening MS-Excel file with GX X EVO 3 - apache-poi

I'm trying to open an Excel file (xls extension)
&Error = &FileExcel.Open(&FileName)
But I'm getting this error
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.NoSuchMethodError: 'org.apache.poi.poifs.filesystem.DirectoryNode org.apache.poi.poifs.filesystem.POIFSFileSystem.getRoot()
This is the environment:
GX X EVO 3 U7
Ubuntu 20.04
Tomcat 9.0.31
Java version: openjdk 11.0.17 2022-10-18
Java libraries to handle MS Office: I tryed with two different versions:
poi-3.17.jar, poi-ooxml-3.17.jar, poi-ooxml-schemas-3.17.jar
poi-3.8.jar, poi-ooxml-3.8.jar, poi-ooxml-schemas-3.8.jar
In addition Im using LibreOffice in headless mode, which I start in this way:
sudo /usr/bin/soffice --nologo --headless --nofirststartwizard --accept='socket, host=127.0.0.1,port=8100;urp;StarOffice.Service' &
I followed the instructions described here:
https://www5.genexus.com/xev3/scmain.aspx?S%3B178%3B94%3B1264%3B1%3B1%3BO%3B,37721
https://www5.genexus.com/xev3/scmain.aspx?S%3B178%3B94%3B1264%3B1%3B1%3BO%3B,37721
Thanks in advance for your support.

I found the solution:
The same answer I got for a previous issue posted here, is the same for this one: Im working under Tomcat9 and this version comes in a kind of sandboxed state by systemd, here is the explanation.
In my case the MS-Excel files I was reading was out of Tomcat's reaching, which was solved adding the XLS´s path to the file /lib/systemd/system/tomcat9.service (Ubuntu 20.04).
Regards.

Related

Getting 'java.lang.RuntimeException: No toolkit found' error on running javafx application with java11

We recently migrated from java 8 to openJdk11. Now I am trying to test my application on windows and ubuntu with using openJdk installed on both OS. I'm able to run it on ubuntu. But same is not executing in windows10 with java11.Error_Message:
java.lang.RuntimeException: No toolkit found
at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:272)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:267)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:158)
at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:658)
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:678)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
at java.base/java.lang.Thread.run(Unknown Source)
It is possible that JDK, which you have installed on your Windows system, doesn't include JavaFX and you should install it externally.
Read more here:
Where can I get pre-built JavaFX libraries for OpenJDK (Windows)
or
https://stackoverflow.com/a/19529820
or
Javafx: No toolkit found exception
.
I am not sure how the differnences between Linux and Windows come into place, but in general com.sun.javafx.tk.Toolkitis not accesible anymore since Java 9. So the behaviour on Windows throwing an exception is correct, and you need to find another solution for whatever you are using theToolkit-class for.

eclipse javafx variables unresolved

When I create a new javaFX project the javaFX variables are unresolved. I use java 8 (121) and eclipse Neon on which I installed e(fx)clipse. OS is Linux Mint 18.1. What I did:
I uninstalled and installed e(fx)clipse again, that didn't help
In another post I read that someone had solved the problem by adding
jfxrt.jar to the build path. I searched for this file but it is not present on my file system
Anybody any idea what is wrong in my setup?
Edit
James_D suggested adding openjfx. I read documentation of openjfx and it says that only a subset is implemented. I decided to install the oracle JDK and adjust the building path with a reference to the oracle version of jfxrt. That worked. I wonder whether it wouldn't be better to switch to the oracle version of JDK?

Pharo 5.0 - Cannot play sounds - soundStart: snd_add_pcm_handler: Function not implemented

The platform is Ubuntu 16.04.
I'm executing FMSound organ1 play.
and receiving soundStart: snd_add_pcm_handler: Function not implemented
in the terminal window.
I've tried starting Pharo 5.0 using:
pasuspender -- ./pharo ../shared/Pharo5.0.image
but no luck.
Thanks.
I've got the same on Ubuntu 14.04 LTS
SoundPlugin appears to be loaded in the system reporter.
SoundPlugin VMMaker.oscog-EstebanLorenzano.829 (i)
But:
http://bugs.squeak.org/view.php?id=7328
http://forum.world.st/VM-Crash-on-Linux-td3322149.html
Looks like this isn't fixed yet.
Latest VM+Pharo6.0 also exhibit the problem.

Datastax Devcenter 1.1 fail to start

I'm using 64 bit Windows 8. It was fine yesterday, and it just failed to start. It shows the loading screen, but it just stop right there.
Anyone has the same problem? Any fix? It has happened to me twice with my old pc, which were using 32 bit Windows 7.
While I haven't heard of this issue before, here's something that will hopefully fix the issue:
find a directory called .devcenter in your user directory (that should be \Users\<youruser>)
move this directory to a different location
start DevCenter
If this doesn't work:
in the same \Users\<youruser>\.devcenter\logging folder find the log.txt file; you might be able to see the root error
there is a newer version available (1.1.1)
Some time this can be due to Java version. For me it was failing because I was using Java 9. It worked fine after downgrading to Java8. Confirm compatibility of your devcenter and java

IBM installation manager cannot be launched in fedora 17(64bit)

Here's the error msg goes when i try to run the IBM installation manager:
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
/opt/IBM/InstallationManager/eclipse/configuration/org.eclipse.osgi/bundles/447/1/.cp/libswt-pi-gtk-3659.so (libXtst.so.6: cannot open shared object file: No such file or directory)
swt-pi-gtk (Not found in java.library.path)
/tmp/swtlib-32/libswt-pi-gtk-3659.so (libXtst.so.6: cannot open shared object file: No such file or directory)
/tmp/swtlib-32/libswt-pi-gtk.so (/tmp/swtlib-32/lib/libswt-pi-gtk.so.so: cannot open shared object file: No such file or directory)
However, those files does exist. I also already have SWT lib installed. Any one have experience on this issue before?
IBM Installation Manager can only run if 32bit GTK components installed.
Here are the packages I install on Redhat 64bit in order to run IBM Installation Manager:
Install required packages for IBM Installation Manager UI on Redhat x64
Should be similar packages in Fedora.
I don't remember about Installation Manager but for WAS installation launching setup.jar itself did help:
java -jar setup.jar
I had this issue when tried to install CM on Linux Fedora 17 x86_64 bits and this command solved my issue
yum install gtk2.i686 gtk2-engines.i686 PackageKit-gtk-module.i686 PackageKit-gtk-module.x86_64 libcanberra-gtk2.x86_64 libcanberra-gtk2.i686
After execute it i can run interactive installation.
This was helpful for steering me in the right direction for solving the problem on rhel 6.5 on IBM power. i installed the equivalent packages using the .ppc instead of .ppc64 files (since the installer is PPC) and then i had to add these 2 lines at the bottom of the install.ini according to ibm support article swg21688528 as follows:
-Dorg.eclipse.swt.internal.gtk.useCairo=false
-Dorg.eclipse.swt.internal.gtk.cairoGraphics=false
Parke

Resources