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

I need to remove Guava 31.1.1 jar file dependency. #1236

Open
sundramtrivedi opened this issue Jan 15, 2024 · 4 comments
Open

I need to remove Guava 31.1.1 jar file dependency. #1236

sundramtrivedi opened this issue Jan 15, 2024 · 4 comments
Assignees
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: question Request for information or clarification. Not an issue.

Comments

@sundramtrivedi
Copy link

sundramtrivedi commented Jan 15, 2024

I have created Ant project in Eclipse. I have run code without guava file it give me this error. I don't want to use guava file. If their is any concept or any alternative file that replace guava dependency please let me know.
Please me out for in this issue.

Jan 15, 2024 1:32:21 PM org.openqa.selenium.remote.service.DriverService$Builder getLogOutput
INFO: Driver logs no longer sent to console by default; https://www.selenium.dev/documentation/webdriver/drivers/service/#setting-log-output
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/io/ByteStreams
at org.openqa.selenium.remote.service.DriverService$Builder.getLogOutput(DriverService.java:471)
at org.openqa.selenium.edge.EdgeDriverService$Builder.createDriverService(EdgeDriverService.java:352)
at org.openqa.selenium.edge.EdgeDriverService$Builder.createDriverService(EdgeDriverService.java:147)
at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:507)
at org.openqa.selenium.edge.EdgeDriver.(EdgeDriver.java:47)
at org.openqa.selenium.edge.EdgeDriver.(EdgeDriver.java:43)
at kb.testedge.main(testedge.java:10)
Caused by: java.lang.ClassNotFoundException: com.google.common.io.ByteStreams
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 7 more

@minherz minherz added type: question Request for information or clarification. Not an issue. priority: p2 Moderately-important priority. Fix may not be included in next release. labels Jan 16, 2024
@minherz
Copy link

minherz commented Jan 16, 2024

Hello @sundramtrivedi, I am not an expert in Eclipse and I'm afraid we don't provide Eclipse specific support.
I can try to help you but I will need more details about the problem in question.
What code sample from this repo are you trying to run/use?
Please note that guava is an integral part of many code samples. Taking it out means you modify the sample. Under the published license you can modify and use any code from this repo as you please as long as you follow the license agreement and the modified code behavior is your sole responsibility.
You are welcome to submit the version of the code sample that works without guava package by following contribution guidelines. We will be glad to review it and to consider for adding it to the repo.

@sundramtrivedi
Copy link
Author

Hi,
I am using selenium 4.16 and it's give me this error:

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableSet
at org.openqa.selenium.remote.ErrorCodes.<clinit>(ErrorCodes.java:104)
at org.openqa.selenium.remote.ErrorHandler.<init>(ErrorHandler.java:64)
at org.openqa.selenium.remote.ErrorHandler.<init>(ErrorHandler.java:55)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:118)
at org.openqa.selenium.chromium.ChromiumDriver.<init>(ChromiumDriver.java:114)
at org.openqa.selenium.edge.EdgeDriver.<init>(EdgeDriver.java:61)
at org.openqa.selenium.edge.EdgeDriver.<init>(EdgeDriver.java:57)
at org.openqa.selenium.edge.EdgeDriver.<init>(EdgeDriver.java:49)
at kb.testedge.main(testedge.java:21)
Caused by: java.lang.ClassNotFoundException: com.google.common.collect.ImmutableSet
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 9 more

Please help me if you know about it.

@minherz
Copy link

minherz commented Feb 6, 2024

Hello @sundramtrivedi I feel confused. Please help me understand the following:

  • What code samples from this repository are you trying to run that throws this exception?
  • What is a reason for you to remove a package that, judging by the exception, is an integral part of the code exectuion?

Please not that the provided exception stacktrace clearly points to the missing class com.google.common.collect.ImmutableSet which is provided by the guava package.

@sundramtrivedi
Copy link
Author

I have develop a code to print pdf of a webpage so for this I have used selenium 4.10. In this used one jar file is guava31.1.1
For a some reason I need to delete this jar file. But my code is not working when I am running the code with guava31.1.1 jar file.
For removing this dependency, I want any substitute file of this or any code concept that I can used in my program.

This I comfortable with guava30.1.1 version but this code only run for upper version of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

2 participants