Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831290 - dev-java/ant-core: java.lang.NoSuchMethodError: java.nio.CharBuffer.flip()Ljava/nio/CharBuffer;
Summary: dev-java/ant-core: java.lang.NoSuchMethodError: java.nio.CharBuffer.flip()Lja...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-16 10:23 UTC by Toralf Förster
Modified: 2022-07-09 10:18 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.18 KB, text/plain)
2022-01-16 10:23 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,116.32 KB, text/plain)
2022-01-16 10:23 UTC, Toralf Förster
Details
environment (environment,129.00 KB, text/plain)
2022-01-16 10:23 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,15.54 KB, application/x-bzip)
2022-01-16 10:23 UTC, Toralf Förster
Details
net-vpn:i2p-1.6.1:20220116-005951.log (net-vpn:i2p-1.6.1:20220116-005951.log,96.47 KB, text/plain)
2022-01-16 10:23 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,35.75 KB, application/x-bzip)
2022-01-16 10:23 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-01-16 10:23:04 UTC
     [copy] Copying 1 file to /var/tmp/portage/net-vpn/i2p-1.6.1/work/i2p-1.6.1/pkg-temp
     [copy] Copying 1 file to /var/tmp/portage/net-vpn/i2p-1.6.1/work/i2p-1.6.1/pkg-temp

BUILD FAILED
/var/tmp/portage/net-vpn/i2p-1.6.1/work/i2p-1.6.1/build.xml:1634: java.lang.NoSuchMethodError: java.nio.CharBuffer.flip()Ljava/nio/CharBuffer;
	at org.apache.tools.ant.util.ReaderInputStream.<init>(ReaderInputStream.java:81)
	at org.apache.tools.ant.util.ReaderInputStream.<init>(ReaderInputStream.java:66)

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_systemd-j4-20220114-201049

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.1 *
clang/llvm (if any):
/usr/lib/llvm/13
13.0.0
Python 3.9.10
Available Rust versions:
  [1]   rust-1.58.0 *
GENTOO_VM=openjdk-bin-8  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-8.312_p07"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER="javac"
The following VMs are available for generation-2:
*)	AdoptOpenJDK 11.0.13_p8 [openjdk-bin-11]
2)	AdoptOpenJDK 8.312_p07 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit f79a5779bde18c240f216cd124a073d071910e28
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Jan 15 23:51:56 2022 +0000

    2022-01-15 23:51:54 UTC

emerge -qpvO net-vpn/i2p
[ebuild  N    ] net-vpn/i2p-1.6.1  USE="nls -test"
Comment 1 Toralf Förster gentoo-dev 2022-01-16 10:23:05 UTC
Created attachment 762279 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-01-16 10:23:06 UTC
Created attachment 762280 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-01-16 10:23:08 UTC
Created attachment 762281 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-01-16 10:23:09 UTC
Created attachment 762282 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-01-16 10:23:12 UTC
Created attachment 762283 [details]
net-vpn:i2p-1.6.1:20220116-005951.log
Comment 6 Toralf Förster gentoo-dev 2022-01-16 10:23:13 UTC
Created attachment 762284 [details]
temp.tar.bz2
Comment 7 Volkmar W. Pogatzki 2022-01-16 11:01:19 UTC
!!! When you file a bug report, please include the following information:
GENTOO_VM=openjdk-bin-8  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-8.312_p07"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER="javac"

(extracted from one of the attachments)
Comment 8 Toralf Förster gentoo-dev 2022-01-16 11:05:24 UTC
(In reply to Volkmar W. Pogatzki from comment #7)
> !!! When you file a bug report, please include the following information:
> GENTOO_VM=openjdk-bin-8  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-8.312_p07"
> JAVACFLAGS="-source 1.8 -target 1.8" COMPILER="javac"
> 
> (extracted from one of the attachments)

pls read # comment0
Comment 9 David Duchesne 2022-05-20 00:04:43 UTC
Hi,
Any news regarding this bug ?
I tried to bump to latest (1.7.0) but the exact same build error is present on my system (amd64 / bdver2)
Thanks
Comment 10 Volkmar W. Pogatzki 2022-05-20 06:38:01 UTC
(In reply to David Duchesne from comment #9)
> Hi,
> Any news regarding this bug ?
> I tried to bump to latest (1.7.0) but the exact same build error is present
> on my system (amd64 / bdver2)

Does this article help?
https://www.morling.dev/blog/bytebuffer-and-the-dreaded-nosuchmethoderror/
Comment 11 Florian Schmaus gentoo-dev 2022-05-20 06:58:15 UTC
Are you able to emerge i2p after "emerge -1 ant-core"? I suspect this may be caused by invoking ant with Java 8 while ant itself was build with Java >= 11. If this is the case, then it's not really related to the i2p build, but rather to dev-java/ant-core.
Comment 12 Florian Schmaus gentoo-dev 2022-05-20 09:00:18 UTC
Fixed with https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9826d526b71e87c2ec94a7ea7dce4952cd8a79f

(Unfortunately I used the wrong bug # in the Closes git trailer)
Comment 13 Larry the Git Cow gentoo-dev 2022-05-21 18:19:58 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b24498c7e502a18bac9b4f42e94bf479bb96a34c

commit b24498c7e502a18bac9b4f42e94bf479bb96a34c
Author:     Florian Schmaus <flow@gentoo.org>
AuthorDate: 2022-05-21 18:17:55 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2022-05-21 18:17:55 +0000

    dev-java/ant-core: lower min Java to 8 again
    
    Turns out that raising ant-core's min Java requirement to 9, while
    fixing bug #831290, renders ant unable to build pure Java 8 packages (of
    which we have a few, most prominently jna), see bug #846782.
    
    We go back to Java 8 again, until we find a better solution.
    
    Bug: https://bugs.gentoo.org/846782
    Bug: https://bugs.gentoo.org/831290
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 .../ant-core/{ant-core-1.10.9-r4.ebuild => ant-core-1.10.9-r5.ebuild}   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 14 Florian Schmaus gentoo-dev 2022-05-21 18:24:31 UTC
Re-open, as we had to lower ant-core to Java 8 again (due to bug #846782).