684 questions
0
votes
1
answer
2k
views
Facing the below error while upgrading from Sprinboot 3.2.12 to 3.4.0- NoSuchMethod CollectionUtils.newLinkedHashSet(int)'
Facing the below error while upgrading from Sprinboot 3.2.12 to 3.4.0
Spring framework version upgraded from 6.1.15 to 6.2.1
NoSuchMethod 'java.util.LinkedHashSet org.springframework.util....
1
vote
1
answer
68
views
String#indent() NoSuchMethodError in Android Runtime of the Android Studio's emulator
I need to run a project on an Android Studio emulator, but the emulator's JVM is missing a method.
When a source code that has been successfully tested on physical devices (ranging from API 31 - 33) ...
1
vote
1
answer
99
views
Java NoSuchMethodException with MessageDigest: java.security.MessageDigest.<init>()
I'm using the Spring framework and have imported java.security.MessageDigest. My goal here is to produce a checksum verification. I want to output the checksum value, but I instead get this error when ...
2
votes
1
answer
2k
views
java.lang.NoSuchMethodError for Ognl.createDefaultContext() in Struts 6.4.0
I'm encountering a java.lang.NoSuchMethodError in my Java application using Struts 2 (v6.4.0) when trying to initialize the OgnlValueStack. The error message is as follows:
java.lang.NoSuchMethodError:...
0
votes
2
answers
164
views
Flutter app works on API level 30 or lower but fails on higher levels
My Flutter app functions correctly on API level 30 or lower and on real devices with higher API levels. However, when I run it on an emulator with an API level above 30, it fails during installation ...
1
vote
0
answers
344
views
Exoplayer java.lang.NoSuchMethodError: No virtual method buildOrThrow()Lcom/google/common/collect/ImmutableMap. Activate Guava only for exoplayer
Hello i ran into an issue in my code, i was using Exploayer for a long time but i installed a new dependency to do something completely different(a .jar) and now every time i try to visualize ...
-1
votes
1
answer
149
views
NoSuchMethodError: tried to call a non-function, such as null
I had do some changes in the codebase of a project.
At first glance the pipeline don't showed any problem and the changes was merged.
The deployed flutter web project was ok.
But in the local ...
1
vote
2
answers
355
views
hibernate validator failed to build due to java.lang.NoSuchMethodError
I was trying to upgrade quarkus from 1.x to 3.6.3
In 3.6.3 I have to introduce the dependency 'io.quarkus:quarkus-hibernate-validator' to support jakarta.validation.constraints.*.
Then I got this ...
0
votes
0
answers
77
views
no such method error when running java file
I have been moving from python to java so still getting used to OOP. I tried to make a game that would generate 2 random numbers and the user would have to add them together.
However when i run the ...
0
votes
2
answers
1k
views
Test started failing with java.lang.NoSuchMethodError
Started getting this error when trying to run the test that was just running fine. No idea what happened!
Step failed
java.lang.NoSuchMethodError: 'void org.openqa.selenium.remote.http.ClientConfig.&...
-1
votes
1
answer
154
views
NoSuchMethodError in Java Selenium Eclipse...can you help me debug it?
Here is the full code, the error is coming in the line ["xlutil.setCellData(...)";], I have highlighted it with the comment "ERROR HERE". The rest of the code is simply to navigate ...
0
votes
1
answer
96
views
Java NoSuchMethodError - Imported Third Party Library Call Wrong Package (There Are Packagaes With Same Name)
I failed to run my Java app due to NoSuchMethodError exception. Exception is coming from a third party library initializing an object which has dependency to a certain class name.
This certain class ...
1
vote
1
answer
73
views
Gradle compilation fails with NoSuchMethodError: PropertyExpression GeneralUtils.propX(Expression, String) when compiling with Groovy 2.4.21
I am using groovy-2.4.21 in my project.
implementation("org.codehaus.groovy:groovy-all:2.4.21")
When I try to build this with Gradle, I get a compilation error which is similar to the issue ...
0
votes
0
answers
84
views
NoSuchMethodError: 'void setActiveProfiles(java.lang.String)' Spring Boot Starter Installation in eclipse went wrong
I am trying to use Spring Boot Starter in Eclipse and after Creating a new SpringBoot project I receive the following message:
NoSuchMethodError: 'void org.eclipse.m2e.core.project....
3
votes
0
answers
939
views
Guice throwing NoSuchMethodError
I am using Guice version 5.1.0 for my project (jdk version 17)
Error Message:
java.lang.NoSuchMethodError: 'java.lang.ClassLoader com.google.inject.internal.BytecodeGen.getClassLoader(java.lang.Class)'...
0
votes
1
answer
484
views
Java getMethod(), NoSuchMethodException though method exists
I am trying to code a method 'interaction' which takes a keyboard input and calls the respective function. However, I am getting NoSuchMethodExceptions even when the input is valid.
public class ...
1
vote
0
answers
904
views
NoSuchMethodError - When I call javax.ws.rs.core.Response.readEntity
I'm encountering an issue in a Java project where I'm receiving the following error:
java.lang.NoSuchMethodError: javax.ws.rs.core.Response.readEntity
This error occurs when I call javax.ws.rs.core....
0
votes
0
answers
163
views
Any idea of how can I include Selenium on a AEM project?
NoSuchMethodError com.google.common.collect.ImmutableMap when trying to create an instance of a Chrome driver on a AEM Maven archetype project.
So I'm trying to use Selenium on a AEM Maven archetype ...
0
votes
1
answer
296
views
Hibernate Byte Code Enhancement NoSuchMethodError
I set up byte code enhancement for Hibernate version 5.2.4-Final as follows:
<plugin>
<groupId>org.hibernate.orm.tooling</groupId>
<artifactId>hibernate-enhance-maven-...
1
vote
1
answer
1k
views
NoSuchMethodError with Play scala.tools.nsc.Settings.bootclasspath()
Unable to run Play server, getting NoSuchMethodError
Error message:
[info] p.c.s.AkkaHttpServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
(Server started, use Enter to stop and go back to the ...
5
votes
3
answers
10k
views
Getting java.lang.NoSuchMethodError: org.yaml.snakeyaml.constructor.SafeConstructor: method <init>()V not found while running Play App with SBT
java.lang.NoSuchMethodError:
org.yaml.snakeyaml.constructor.SafeConstructor: method ()V not
found
at io.swagger.v3.parser.util.DeserializationUtils$CustomSnakeYamlConstructor.(DeserializationUtils....
0
votes
0
answers
101
views
Exception in thread "main" java.lang.NoSuchMethodError error shows up in VSCode
Whenever I run this code in VSCode.
class Employee{
int salary;
String name;
public int getSalary(){
return salary;
}
public String getName(){
return name;
}
...
0
votes
0
answers
311
views
Kafka start error on MAC .. something related to java and scala ... NoSuchMethodError: scala.Predef$.refArrayOps
i have downloaded kafka from here https://www.apache.org/dyn/closer.cgi?path=/kafka/3.4.0/kafka_2.13-3.4.0.tgz
Zookeeper starts with the command
bin/zookeeper-server-start.sh config/zookeeper....
1
vote
0
answers
160
views
Add Guice to POM causes java.lang.NoSuchMethodError: 'com.google.common.collect.ImmutableMap com.google.common.collect.ImmutableMap
I try to use Guice to Dependency Injction but when I add dependency to POM compiler returs
java.lang.NoSuchMethodError: 'com.google.common.collect.ImmutableMap com.google.common.collect.ImmutableMap
I ...
0
votes
1
answer
194
views
Error creating bean with name with Spring 5.2.20RELEASE
Hie Guys ,
earlier we have used spring 3.x but when we upgraded to spring 5.2.20RELEASE
getting below kind of response
SEVERE: Servlet.init() for servlet [appServlet] threw exception
org....
0
votes
1
answer
554
views
java.lang.NoSuchMethodError in Selenium-Eclipse while testing one Application
I am using Selenium 4. I am getting the below error while executing the script.
java.lang.NoSuchMethodError: 'java.lang.String org.openqa.selenium.Capabilities.getBrowserVersion()'
I can provide code ...
1
vote
0
answers
830
views
Spring NoSuchMethodError when calling ResponseEntity.getStatusCode
I have a spring boot application which is using spring boot web 3.0.3 and I have a lib that is using 2.6.7 spring boot web
but in my lib response.getStatusCode() is throwing an exception ...
0
votes
1
answer
349
views
java.lang.NoSuchMethodError: com.google.common.collect.ImmutableList.tolmmutableList() Ljava/util/stream/Collector error using Appium and Selenium
We are trying to integrate report portal with mobile automation framework. In the framework we are using Appium, Selenium and TestNG.
We have added Report portal dependencies and
at the time of ...
3
votes
1
answer
6k
views
error: java.lang.NoSuchMethodError: 'scala.tools.nsc.reporters.Reporter scala.tools.nsc.Global.reporter()' in scoverage-maven-plugin
I am trying to get some reports with the code coverage information for my project. I found that scoverage-maven-plugin produce xml files covering the % of the different modules that the unit test ...
0
votes
1
answer
476
views
Getting java.lang.NoSuchMethodError: com.google.common.collect.ImmutableMap.of(Ljava/lang/Object; ...) when trying to execute tests in Selenium 4
After upgrading the Selenium version from 3.141.59 to 4.6.0, I got the below error when trying to execute test cases.
java.lang.NoSuchMethodError: com.google.common.collect.ImmutableMap.of(Ljava/lang/...
0
votes
2
answers
225
views
Unhandled Exception: NoSuchMethodError: The getter 'body' was called on null
I'm trying to fetch data from an api by passing bearer token but it is throwing this exception. Here's my code below :
This is my afterLoginResponse.dart class -
class AfterLoginResponse {
...
0
votes
1
answer
459
views
java.lang.NoSuchMethodError: com.google.common.collect.ImmutableMap.of(Ljava/lang/Object;Ljava error while opening browser with Selenium Java
I am getting this error while executing program in Eclipse.
I am trying to open fb using selenium.
Code trials:
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger ...
0
votes
1
answer
1k
views
Could not pass event PlayerMoveEvent to <plugin>
I'm trying to make a Register/Login plugin in spigot for minecraft and I caught a error:
[06:03:10 ERROR]: Could not pass event PlayerMoveEvent to AuthPlugin v1.0-SNAPSHOT
org.bukkit.event....
1
vote
0
answers
810
views
Spark Streaming - NoSuchMethodError: scala.collection.immutable.Map$.apply
I have a simple Spark streaming java program:
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.spark.SparkConf;
import org.apache.spark.streaming.Durations;
import org.apache....
0
votes
1
answer
2k
views
NoSuchMethodError: org.apache.spark.sql.catalyst.plans.logical.DeleteFromTable in Intellij
I am trying to use the method .delete() to remove one record from a delta table as follows:
val my_dt = : DeltaTable = DeltaTable.forPath(ss, my_delta_path)
my_dt.delete("pk= '123456'")
...
-2
votes
1
answer
1k
views
Exception in thread "main" java.lang.NoSuchMethodError: 'void org.hibernate.cfg.AnnotationBinder.bindDefaults(org.hibernate.boot.spi.MetadataBuilding
Im trying to solve it an Hibernate problem from yesterday, I already check my libraries and classes and i think im not missing anything, so Im not sure about the real problem on this, the error tha Im ...
0
votes
0
answers
217
views
Unable to write dataframe as xslx format in spark scala
df
.coalesce(1)
.write
.format("com.crealytics.spark.excel")
.option("useHeader", "true")
.option("header", "true")
.mode(SaveMode.Append)
....
0
votes
3
answers
2k
views
How to use two different version of same package of a dependency?
I am working with a usecase where my application is using okhttp [version:3.14.9] which is written in java, I am also importing some external dependency which uses okhttp [version:4.10.0] which is ...
3
votes
1
answer
1k
views
CDI with Weld in Java SE, jakarta namespace, NoSuchMethodError
For a trivial app using CDI in Java SE with jakarta namespace I can not get rid of this NoSuchMethodError during SeContainerInitializer.newInstance().initialize():
Caused by: java.lang....
0
votes
1
answer
287
views
sparkjob fails with guava error-java.lang.NoSuchMethodError:com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V
We have setup open source apache hadoop cluster with following below components.
hadoop - 3.1.4
spark - 3.3.1
hive - 3.1.3
When we are trying to run the spark example job with below command but it ...
2
votes
0
answers
671
views
Getting java.lang.NoSuchMethodError while accessing v3/api-docs
I am using Open api 1.6.12, swagger ui 4.1.3 and swagger core 2.1.12
Here is the log:
{"time": "2022-12-07 11:27:08,090","level": "ERROR","transactionId&...
0
votes
0
answers
20
views
Android compile will failed when a class or method reference in source file not exist, but will success when that is in aar file, how to fail this?
Android compile will failed when a class or method reference in source file not exist;
But but will success when that is in aar file, how to fail compile when a class or method reference in aar file ...
1
vote
1
answer
1k
views
Error in Julia: LoadError: MethodError: no method matching isless(::Vector{Int64}, ::Int64)
I am writing a code in julia but I am getting this error: LoadError: MethodError: no method matching isless(::Vector{Int64}, ::Int64). The part of mu code is:
X = []
function form(;a, b, c, d,e)
if a =...
0
votes
3
answers
389
views
Can't access to variables of my widget flutter
I try to make an simple profil page for my application but I don't exactly know how to do it.
I have an error when I want to call
'${widget.user['first_name']}'
in my profil widget:
NoSuchMethodError ...
0
votes
1
answer
172
views
NoSuchMethodError with C++ method to Java Native Interface
I am working on creating a JNI and Java class so that I can use C++ class in JVM.
However, I got into a problem where the program compiled just fine but at runtime, the method is just invisible.
Here ...
1
vote
0
answers
349
views
Getting error java.lang.NoSuchMethodException: android.graphics.FontFamily.<init>
I am getting this error ever since upgrading the SDK version to 30:
E/TypefaceCompatApi26Impl: Unable to collect necessary methods for class java.lang.NoSuchMethodException java.lang....
1
vote
0
answers
3k
views
IOUtils.byteArray NoSuchMethodError in Eclipse
I am running a unit test in an Eclipse project, and when I run the following JUnit test
@Before
public void setup() {
final byte[] array = IOUtils.byteArray();
...
}
I get the following error:...
0
votes
0
answers
42
views
Instantiate an object that takes a JPanel parameter using reflection
I'm trying to instantiate an object Robot knowing that the Robot constructor take a JPanel parameter using reflection.
Class<?> classRobot = null;
Constructor<?> constructorRobot;
...
0
votes
1
answer
536
views
Error Sping Boot list all files in Azure Blob Storage
I'm trying to list all my files in my Azure container, but when I use the method .listBlobs( ) I can't get my List of BlobItems.
I received the error: java.lang.NoSuchMethodError: reactor.core....
3
votes
1
answer
2k
views
Java OSHI (Operating System and Hardware Information) library NoSuchMethodError
I receive the following error when using the OSHI API (https://github.com/oshi/oshi).
I have the following dependencies in my Maven project (I added SLF4J to fix the error based on other Stack ...