pkgsrc-Users archive

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

Re: Java exception running jenkins



I've committed patch to pkgsrc openjdk8.

Jaromir

Le sam. 1 févr. 2020 à 20:14, Mike Pumford
<mpumford%mudcovered.org.uk@localhost> a écrit :
>
>
>
> 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


Home | Main Index | Thread Index | Old Index