Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoSuchMethodError while running JGlobus #178

Open
hsapkota opened this issue Nov 19, 2020 · 1 comment
Open

NoSuchMethodError while running JGlobus #178

hsapkota opened this issue Nov 19, 2020 · 1 comment

Comments

@hsapkota
Copy link

Hi, I was trying to run transfer between stampede2 to comet and was able to run transfer using globus-url-copy but when I try JGlobus implementation of transfer, I get the following error.
[WARNING] java.lang.NoSuchMethodError: java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer; at org.globus.gsi.gssapi.GlobusGSSContextImpl.initSecContext (GlobusGSSContextImpl.java:970) at org.globus.ftp.extended.GridFTPControlChannel.authenticate (GridFTPControlChannel.java:209) at org.globus.ftp.extended.GridFTPControlChannel.authenticate (GridFTPControlChannel.java:140) at transfer_protocol.module.ChannelModule$ControlChannel.<init> (ChannelModule.java:243) at transfer_protocol.module.ChannelModule$ChannelPair.<init> (ChannelModule.java:446) at transfer_protocol.module.FTPClient.<init> (FTPClient.java:38) at transfer_protocol.module.GridFTPClient.process (GridFTPClient.java:173) at transfer_protocol.module.GridFTPClient.run (GridFTPClient.java:210) at java.lang.Thread.run (Thread.java:748)
When I search on the internet about ByteBuffer method not found issue, many people were saying it was the issue with jdk version and I tried using jdk 1.8 and still results the same error.

@kofemann
Copy link
Member

You should compile with java8. Java9 have introduced new methods to ByteBuffer class that brakes compatibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants