Re: eclipse bug

From: Zhenlei Huang <zlei.huang_at_gmail.com>
Date: Mon, 14 Nov 2022 01:52:46 UTC
> On Nov 14, 2022, at 3:16 AM, ml@ft-c.de wrote:
> 
> Hello, 
> 
> I have a FreeBSD System running on thinpad X200. All program works. 
> Now I have installed FreeBSD on Thinkpad X230
> I need the program dbeaver. I get the error message:
> 
> ~> dbeaver

It is run as standalone. FreeBSD is not supported officially, from https://dbeaver.io/download/ <https://dbeaver.io/download/> .

>> Start DBeaver Standalone [org.jkiss.dbeaver.ui.app.standalone
> 22.1.1.202206261508]
>> Start Eclipse IDE UI Application [org.eclipse.ui.ide.application
> 1.4.300.v20220114-0859]
>> Start Eclipse Jobs Mechanism [org.eclipse.core.jobs
> 3.12.100.v20220120-1329]
> SWT OS.java Error: Failed to load swt-pi3, loading swt-pi4 as fallback.
> Dbeaver:
> An error has occurred. See the log file
> /usr/local/share/dbeaver/configuration/1668365061175.log.
> 
> The program 
> swt-4.21                       Standard Widget Toolkit for Java
> is installed.
> 
> The first lines from log file:
> !SESSION 2022-11-13 20:10:39.244 --------
> eclipse.buildId=unknown
> java.version=11.0.12
> java.vendor=Eclipse Foundation
> BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
> Command-line arguments:  -os linux -ws gtk -arch x86_64

> -os linux
This is definitely wrong IMO.

> 
> !ENTRY org.eclipse.osgi 4 0 2022-11-13 20:10:40.637
> !MESSAGE An error occurred while automatically activating bundle
> org.eclipse.ui.ide (151).
> !STACK 0
> org.osgi.framework.BundleException: Exception in
> org.eclipse.ui.internal.ide.IDEWorkbenchPlugin.start() of bundle
> org.eclipse.ui.ide.
> ...
> 
> 
> When I reinstall eclipse from ports, I get an error message:
> 
> portupgrade -N java/eclipse 
> ...
> [INFO] org.eclipse.rt.osgistarterkit.product 4.24.0-SNAPSHOT SUCCESS
> [INFO] equinox-sdk 4.24.0-SNAPSHOT ........................ SUCCESS 
> [INFO] eclipse.platform.repository 4.24.0-SNAPSHOT ........ FAILURE
> [INFO] platform-aggregator 4.24.0-SNAPSHOT ................ SKIPPED
> [INFO] -------------------------------
> [INFO] BUILD FAILURE
> [INFO] --------------------------------
> [INFO] Total time:  36:47 min
> [INFO] Finished at: 2022-11-13T10:31:45+01:00
> [INFO] --------------------------------
> [ERROR] Failed to execute goal org.eclipse.tycho:tycho-p2-director-
> plugin:3.0.0-SNAPSHOT:archive-products (archive-products) on projec
> t eclipse.platform.repository: Error packing product: Problem creating
> zip: Execution exception: Java heap space -> [Help 1]

While building from source the Maven plugin fails without enough heap memory.

> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with
> the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [ERROR] 
> [ERROR] After correcting the problems, you can resume the build with
> the command
> [ERROR]   mvn <args> -rf :eclipse.platform.repository
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/ports/java/eclipse
> egrep: empty (sub)expression
> ** Command failed [exit code 1]: /usr/bin/script -qa
> /tmp/portupgrade20221113-6730-cu4lyn env make
> ** Fix the problem and try again.
> ** Listing the failed packages (-:ignored / *:skipped / !:failed)
>        ! java/eclipse  (unknown build error)
> 
> 
> uname -a 
> FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC amd64
> 
> What should I do? 

There's a closed github issue. See https://github.com/dbeaver/dbeaver/issues/3925 <https://github.com/dbeaver/dbeaver/issues/3925> 
You might want to try running dbeaver as an eclipse plugin (should install eclipse first).

Good luck :)

PS: DBeaver is in the list of WantedPorts, https://wiki.freebsd.org/WantedPorts

> Do you need more information?
> (I am not a java expert.)
> Franz
> 
> 

Best regards,
Zhenlei