Opened 2 years ago

Closed 2 years ago

#64170 closed defect (fixed)

dbeaver-community @21.3.0_0: invalid code signature in bundled libjli.dylib

Reported by: shyamalprasad (Shyamal Prasad) Owned by: judaew (Vadym-Valdis Yudaiev)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc:
Port: dbeaver-community

Description

After a clean install dbeaver pops up an error window and then fails to start

The JVM shared library "/Applications/MacPorts/DBeaver.app/Contents/Eclipse/jre/Contents/Home/bin/../lib/server/libjvm.dylib"
does not contain the JNI_CreateJavaVM symbol.

Seems like a bad code signature

% /Applications/MacPorts/DBeaver.app/Contents/MacOS/dbeaver 
2021-12-09 11:47:08.404 dbeaver[4876:8034113] Error loading /Applications/MacPorts/DBeaver.app/Contents/Eclipse/jre/Contents/MacOS/libjli.dylib:  dlopen(/Applications/MacPorts/DBeaver.app/Contents/Eclipse/jre/Contents/MacOS/libjli.dylib, 265): no suitable image found.  Did find:
	/Applications/MacPorts/DBeaver.app/Contents/Eclipse/jre/Contents/MacOS/libjli.dylib: code signature invalid for '/Applications/MacPorts/DBeaver.app/Contents/Eclipse/jre/Contents/MacOS/libjli.dylib'

The fix from https://github.com/macports/macports-ports/pull/12605 worked for me. I just copied over the openjdk11 libjli.dylib file to /Applications/MacPorts/DBeaver.app/Contents/Eclipse/jre/Contents/MacOS and it works again.

I cannot tell why the default installation is broken. I have both openjdk11 and openjdk17 installed (the latter is the default). Is JDK17 the issue?

Change History (3)

comment:1 Changed 2 years ago by reneeotten (Renee Otten)

Owner: set to judaew
Status: newassigned

for future reference, please make sure to add the maintainer (port info --maintainer dbeaver-community) to CC

comment:2 Changed 2 years ago by judaew (Vadym-Valdis Yudaiev)

I previously reported this issue to DBeaver at https://github.com/dbeaver/dbeaver/issues/14141.

I don't know why DBeaver releases have a broken Java version inside. Since the user in any case needs to have OpenJDK to run this port, it is better to install OpenJDK from MacPorts which can be used not only for this port.

comment:3 Changed 2 years ago by Vadim-Valdis Yudaev <judaew@…>

Resolution: fixed
Status: assignedclosed

In d10478e85a95589c0f38955d8024f841ffa75d2a/macports-ports (master):

dbeaver-community: Use OpenJDK from MacPorts

Closed: #64170

Note: See TracTickets for help on using tickets.