pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Java exception running jenkins
On 2020-01-12 00:03, Mike Pumford wrote:
While attempting to setup a Multi-branch pipeline with Jenkins 2.213 on
my NetBSD 9.0-RC system I keep getting:
2020-01-11 23:54:30.896+0000 [id=950] INFO
j.b.MultiBranchProject$BranchIndexing#run: jsmonitor #20200111.235429
branch indexing action completed: NOT_BUILT in 1.4 sec
2020-01-11 23:54:30.897+0000 [id=950] SEVERE
hudson.model.Executor#finish1: Executor threw an exception
java.lang.UnsatisfiedLinkError:
sun.nio.fs.BsdNativeDispatcher.getmntonname0(J)[B
at sun.nio.fs.BsdNativeDispatcher.getmntonname0(Native Method)
at
sun.nio.fs.BsdNativeDispatcher.getmntonname(BsdNativeDispatcher.java:61)
Doing some digging around on the web led to:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241317
Does a similar fix need to be applied in pkgsrc, can it be lifted from
FreeBSD?
Following up on this. As well as multi-branch pipelines the same issue
occurs doing SCM checkouts in jenkins so I'm guessing it impacts quite a
lot of java file access in jenkins and possibly in other things as well.
I took the patch from FreeBSD (attached) and added it as a local patch
and the exception disappeared and my pipeline started working. I've been
running with it for a while and jenkins (now 2.219) seems to be working
stably with the patched openjdk8.
Looking at the FreeBSD SVN repo again they have upgraded to openjdk
8u242 in where the patch is no longer required (presumably because the
FreeBSD team got it into the upstream build).
I got the patch from:
https://svnweb.freebsd.org/ports/head/java/openjdk8/files/patch-jdk-make-mapfiles-libnio-mapfile-bsd?view=markup&pathrev=514690
Mike
--- jdk/make/mapfiles/libnio/mapfile-bsd.orig 2019-10-17 21:15:55 UTC
+++ jdk/make/mapfiles/libnio/mapfile-bsd
@@ -41,6 +41,7 @@ SUNWprivate_1.1 {
Java_sun_nio_ch_FileChannelImpl_map0;
Java_sun_nio_ch_FileChannelImpl_transferTo0;
Java_sun_nio_ch_FileChannelImpl_unmap0;
+ Java_sun_nio_ch_FileDispatcherImpl_allocate0;
Java_sun_nio_ch_FileDispatcherImpl_close0;
Java_sun_nio_ch_FileDispatcherImpl_closeIntFD;
Java_sun_nio_ch_FileDispatcherImpl_seek0;
@@ -135,6 +136,7 @@ SUNWprivate_1.1 {
Java_sun_nio_fs_BsdNativeDispatcher_endfsstat;
Java_sun_nio_fs_BsdNativeDispatcher_fsstatEntry;
Java_sun_nio_fs_BsdNativeDispatcher_getfsstat;
+ Java_sun_nio_fs_BsdNativeDispatcher_getmntonname0;
Java_sun_nio_fs_BsdNativeDispatcher_initIDs;
Java_sun_nio_fs_GnomeFileTypeDetector_initializeGio;
Java_sun_nio_fs_GnomeFileTypeDetector_initializeGnomeVfs;
@@ -143,6 +145,14 @@ SUNWprivate_1.1 {
Java_sun_nio_fs_MagicFileTypeDetector_initialize0;
Java_sun_nio_fs_MagicFileTypeDetector_probe0;
Java_sun_nio_fs_UnixCopyFile_transfer;
+ Java_sun_nio_fs_LinuxWatchService_eventSize;
+ Java_sun_nio_fs_LinuxWatchService_eventOffsets;
+ Java_sun_nio_fs_LinuxWatchService_inotifyInit;
+ Java_sun_nio_fs_LinuxWatchService_inotifyAddWatch;
+ Java_sun_nio_fs_LinuxWatchService_inotifyRmWatch;
+ Java_sun_nio_fs_LinuxWatchService_configureBlocking;
+ Java_sun_nio_fs_LinuxWatchService_socketpair;
+ Java_sun_nio_fs_LinuxWatchService_poll;
Java_sun_nio_fs_UnixNativeDispatcher_access0;
Java_sun_nio_fs_UnixNativeDispatcher_chmod0;
Java_sun_nio_fs_UnixNativeDispatcher_chown0;
Home |
Main Index |
Thread Index |
Old Index