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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[馃悰 Bug]: 2 of netty-transport-native-epoll-4.1.69.Final.jar #10102

Closed
Dmole opened this issue Nov 29, 2021 · 6 comments
Closed

[馃悰 Bug]: 2 of netty-transport-native-epoll-4.1.69.Final.jar #10102

Dmole opened this issue Nov 29, 2021 · 6 comments

Comments

@Dmole
Copy link

Dmole commented Nov 29, 2021

What happened?

selenium-java-4.1.0.zip contains lib/netty-transport-native-epoll-4.1.69.Final.jar 2 times.

How can we reproduce the issue?

if [ "$(7z l selenium-java-4.1.0.zip | grep -Ec "netty-transport-native-epoll-.*\.Final.jar")" -gt 1 ] ; then
    echo "Fail";
fi

Relevant log output

> ls -hal
total 8.0K
drwxrwxr-x 2 tim tim 4.0K 2021-11-29 13:26 .
drwxrwxr-x 3 tim tim 4.0K 2021-11-29 13:19 ..


> 7z x ../selenium-java-4.1.0.zip 

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_CA.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (806C1),ASM,AES-NI)

Scanning the drive for archives:
1 file, 24643465 bytes (24 MiB)

Extracting archive: ../selenium-java-4.1.0.zip
--
Path = ../selenium-java-4.1.0.zip
Type = zip
Physical Size = 24643465

    
Would you like to replace the existing file:
  Path:     ./lib/netty-transport-native-epoll-4.1.69.Final.jar
  Size:     171406 bytes (168 KiB)
  Modified: 2010-01-01 00:00:00
with the file from archive:
  Path:     lib/netty-transport-native-epoll-4.1.69.Final.jar
  Size:     140549 bytes (138 KiB)
  Modified: 2010-01-01 00:00:00
? (Y)es / (N)o / (A)lways / (S)kip all / A(u)to rename all / (Q)uit? Q

Archives with Errors: 1



Break signaled


> 7z l ../selenium-java-4.1.0.zip | grep netty-transport-native-epoll-4.1.69.Final.jar
2010-01-01 00:00:00 .....       171406       171406  lib/netty-transport-native-epoll-4.1.69.Final.jar
2010-01-01 00:00:00 .....       140549       140549  lib/netty-transport-native-epoll-4.1.69.Final.jar

Operating System

N/A

Selenium version

4.1.0

What are the browser(s) and version(s) where you see this issue?

N/A

What are the browser driver(s) and version(s) where you see this issue?

N/A

Are you using Selenium Grid?

No

@github-actions
Copy link

@Dmole, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

@Dmole
Copy link
Author

Dmole commented Nov 29, 2021

7z l selenium-java-4.1.0.zip | grep "\.\.\.\.\." | perl -pe 's/.* //g'  | sort | uniq -c | grep -v " 1 " | sort -nr
      2 lib/netty-transport-native-kqueue-4.1.69.Final.jar
      2 lib/netty-transport-native-epoll-4.1.69.Final.jar

Would be a good test for CI as it could error out on any paths with multiples in the zip, and let someone know which files are causing the issue.

@diemol
Copy link
Member

diemol commented Dec 2, 2021

Fixed by 612896f#diff-9c3b2865d63832d4165deeb595c9aa5d8242fcfbf768f52dcd0dd18f0784957bL36-L40. Will be visible in the next release.

Thanks, @pujagani!

@diemol diemol closed this as completed Dec 2, 2021
@pkoenig10
Copy link

pkoenig10 commented Dec 20, 2021

After this change, selenium-remote-driver now has dependencies on both netty-transport-native-epoll and netty-transport-classes-epoll. These JARs have identical classes and result in duplicate classes at runtime.

  • netty-transport-classes-epoll comes from selenium-remote-driver
  • netty-transport-native-epoll comes from async-http-client

Can we update the dependencies to exclusively use one or the other?

@pkoenig10
Copy link

Nevermind, this was caused because I was depending on different versions of netty-transport-classes-epoll and netty-transport-native-epoll. The duplicate classes were resolved once I used a consistent version with netty-transport-native-epoll.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants