pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: help with running a Java program on NetBSD



On Wed, Sep 28, 2022 at 04:10:38PM +0200, Thomas Klausner wrote:
> > You could try running your app using Linux Java 17 to see if it works.
> 
> I've tried that, using wip/oracle-jdk17 (feel free to import if you
> find it useful). I get further now:
> 
> ***WARNING: GTK+ version too old (micro mismatch)
> ***WARNING: SWT requires GTK 3.20.0
> ***WARNING: Detected: 3.10.4
> 
> (PDF-Over:11628): Gtk-WARNING **: Theme parsing error: <data>:31:11: 'min-height' is not a valid property name
> INFO  | main @ at.asit.pdfover.gui.Main | This is PDF-Over v4.4.1, running on amd64 Linux, powered by Oracle Corporation Java 17.0.4.1.
> ******************************************************************************
> ***                                                                        ***
> ***                    Welcome to the IAIK JCE Library                     ***
> ***                                                                        ***
> *** This version of IAIK JCE is licensed for use within the MOA SP/SS      ***
> *** and MOA ID context only. Any other use of this software is prohibited. ***
> *** For details please see http://jce.iaik.tugraz.at/sales/licences/.      ***
> *** This message does not appear in the registered commercial version.     ***
> ***                                                                        ***
> ******************************************************************************
> 
> INFO  | main @ a.a.p.g.w.s.PrepareConfigurationState | Loaded config from file : PDF-Over.config
> /usr/pkg/java/oracle-17/bin/java: symbol lookup error: /home/wiz/.swt/lib/linux/x86_64/libswt-pi3-gtk-4950r5.so: undefined symbol: gtk_event_controller_set_propagation_phase
> 
> So it looks like our Linux emulation packages for GTK3 are too old.

So I've just added > 20 new packages using OpenSUSE 15.5 libraries,
tested oracle-openjdk17 with SUSE_PREFER=15.5, and this particular
issue is gone, but something is still wrong.

It starts up and reports in a message box: "Error occured Invalid
image".  I'll attach the log. My best guess is that it wants to load
some picture but I've missed adding support for that file format, or
it has problems with the mime database, but ktrace didn't help me find
out which of the two it is, or if it's something else.

Any suggestions on how to proceed?

Thanks,
 Thomas
INFO  | main @ at.asit.pdfover.gui.Main | This is PDF-Over v4.4.1, running on amd64 Linux, powered by Oracle Corporation Java 17.0.4.1.
INFO  | main @ a.a.p.g.w.s.PrepareConfigurationState | Loaded config from file : PDF-Over.config
WARN  | main @ a.a.p.gui.workflow.StateMachineImpl | Main-Window creation FAILED. Reason: Invalid image
ERROR | main @ a.a.p.gui.workflow.StateMachineImpl | Could not create Composite for Class at.asit.pdfover.gui.composites.DataSourceSelectComposite
org.eclipse.swt.SWTException: Invalid image
	at org.eclipse.swt.SWT.error(SWT.java:4918)
	at org.eclipse.swt.SWT.error(SWT.java:4833)
	at org.eclipse.swt.SWT.error(SWT.java:4804)
	at org.eclipse.swt.graphics.ImageLoader.getImageDataArrayFromStream(ImageLoader.java:212)
	at org.eclipse.swt.graphics.ImageLoader.load(ImageLoader.java:165)
	at org.eclipse.swt.graphics.ImageDataLoader.load(ImageDataLoader.java:25)
	at org.eclipse.swt.graphics.ImageData.<init>(ImageData.java:335)
	at at.asit.pdfover.gui.MainWindow.createContents(MainWindow.java:243)
	at at.asit.pdfover.gui.MainWindow.open(MainWindow.java:174)
	at at.asit.pdfover.gui.workflow.StateMachineImpl.createMainWindow(StateMachineImpl.java:178)
	at at.asit.pdfover.gui.workflow.StateMachineImpl.getComposite(StateMachineImpl.java:206)
	at at.asit.pdfover.gui.workflow.StateMachineImpl.createComposite(StateMachineImpl.java:218)
	at at.asit.pdfover.gui.workflow.states.OpenState.getSelectionComposite(OpenState.java:77)
	at at.asit.pdfover.gui.workflow.states.OpenState.run(OpenState.java:97)
	at at.asit.pdfover.gui.workflow.StateMachineImpl.update(StateMachineImpl.java:93)
	at at.asit.pdfover.gui.workflow.StateMachineImpl.start(StateMachineImpl.java:263)
	at at.asit.pdfover.gui.Main.main(Main.java:67)
ERROR | main @ a.a.p.gui.workflow.StateMachineImpl | StateMachine update: 
java.lang.NullPointerException: Cannot invoke "at.asit.pdfover.gui.MainWindow.setTopControl(org.eclipse.swt.widgets.Control)" because "this.mainWindow" is null
	at at.asit.pdfover.gui.workflow.StateMachineImpl.display(StateMachineImpl.java:169)
	at at.asit.pdfover.gui.workflow.states.OpenState.run(OpenState.java:99)
	at at.asit.pdfover.gui.workflow.StateMachineImpl.update(StateMachineImpl.java:93)
	at at.asit.pdfover.gui.workflow.StateMachineImpl.start(StateMachineImpl.java:263)
	at at.asit.pdfover.gui.Main.main(Main.java:67)
WARN  | main @ a.a.p.gui.workflow.StateMachineImpl | Main-Window creation FAILED. Reason: Invalid image
ERROR | main @ at.asit.pdfover.gui.Main | Unhandled error
org.eclipse.swt.SWTException: Invalid image
	at org.eclipse.swt.SWT.error(SWT.java:4918)
	at org.eclipse.swt.SWT.error(SWT.java:4833)
	at org.eclipse.swt.SWT.error(SWT.java:4804)
	at org.eclipse.swt.graphics.ImageLoader.getImageDataArrayFromStream(ImageLoader.java:212)
	at org.eclipse.swt.graphics.ImageLoader.load(ImageLoader.java:165)
	at org.eclipse.swt.graphics.ImageDataLoader.load(ImageDataLoader.java:25)
	at org.eclipse.swt.graphics.ImageData.<init>(ImageData.java:335)
	at at.asit.pdfover.gui.MainWindow.createContents(MainWindow.java:243)
	at at.asit.pdfover.gui.MainWindow.open(MainWindow.java:174)
	at at.asit.pdfover.gui.workflow.StateMachineImpl.createMainWindow(StateMachineImpl.java:178)
	at at.asit.pdfover.gui.workflow.StateMachineImpl.getMainShell(StateMachineImpl.java:378)
	at at.asit.pdfover.gui.workflow.StateMachineImpl.update(StateMachineImpl.java:96)
	at at.asit.pdfover.gui.workflow.StateMachineImpl.start(StateMachineImpl.java:263)
	at at.asit.pdfover.gui.Main.main(Main.java:67)
WARN  | Thread-1 @ a.a.p.gui.workflow.StateMachineImpl | Main-Window creation FAILED. Reason: Invalid thread access
ERROR | Thread-1 @ a.a.p.g.w.s.PrepareConfigurationState | Error downloading update information: 
org.eclipse.swt.SWTException: Invalid thread access
	at org.eclipse.swt.SWT.error(SWT.java:4918)
	at org.eclipse.swt.SWT.error(SWT.java:4833)
	at org.eclipse.swt.SWT.error(SWT.java:4804)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:565)
	at org.eclipse.swt.widgets.Shell.<init>(Shell.java:276)
	at org.eclipse.swt.widgets.Shell.<init>(Shell.java:267)
	at org.eclipse.swt.widgets.Shell.<init>(Shell.java:217)
	at org.eclipse.swt.widgets.Shell.<init>(Shell.java:152)
	at at.asit.pdfover.gui.MainWindow.createContents(MainWindow.java:208)
	at at.asit.pdfover.gui.MainWindow.open(MainWindow.java:174)
	at at.asit.pdfover.gui.workflow.StateMachineImpl.createMainWindow(StateMachineImpl.java:178)
	at at.asit.pdfover.gui.workflow.StateMachineImpl.getMainShell(StateMachineImpl.java:378)
	at at.asit.pdfover.gui.workflow.states.PrepareConfigurationState$1.run(PrepareConfigurationState.java:479)
	at java.base/java.lang.Thread.run(Thread.java:833)


Home | Main Index | Thread Index | Old Index