Questions tagged [nosuchmethoderror]
The Java `Error` thrown if an application tries to call a specified method of a class (either static or instance), and that class no longer has a definition of that method.
676
questions
1
vote
0
answers
51
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
28
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
23
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-...
0
votes
0
answers
37
views
No virtual method fromJson 'com.google.gson.Gson' version 2.9.0
I updated my application minimum sdk to 29 from 28, Also I updated version of 'com.google.code.gson' library to 'com.google.code.gson:gson:2.9.0'. After updating the version of 'com.google.code.gson' ...
0
votes
1
answer
122
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 ...
0
votes
1
answer
721
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
33
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
111
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
45
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
30
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
52
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 ...
0
votes
0
answers
139
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
63
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 ...
0
votes
1
answer
612
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
0
answers
219
views
Rebuild error in android kotlin code java.lang.noSuchMethodError?
While trying to build an existing source code in android, I got an error like this.
Error: cannot generate view binders java.lang.NoSuchMethodError: 'void kotlin.jvm.internal.FunctionReferenceImpl.(...
0
votes
1
answer
97
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
49
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
163
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
213
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....
0
votes
0
answers
180
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
349
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
168
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
13
views
NoSuchMethodError in idea stream debug
It can be run successfully in idea, but cannot be debugged
0
votes
0
answers
76
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
97
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 ...
2
votes
1
answer
191
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
128
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
271
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
16
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 ...
0
votes
1
answer
485
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
147
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 :
...
0
votes
1
answer
68
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
156
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....
0
votes
0
answers
569
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
30
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
288
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
606
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 ...
0
votes
1
answer
384
views
facebook audience-network-sdk -> java.lang.NoSuchMethodError onAdEventManagerCreated when updating to recent versions
I'm using 6.5.1 with no problems:
implementation 'com.facebook.android:audience-network-sdk:6.5.1'
bannerListener = new AdListener() {
@Override public void onError(Ad ad, ...
0
votes
0
answers
71
views
why Java still finds old method even though I updated the transitive library to a newer version?
I need to migrate a third party library in a project - let's call it MyProject.
MyProject ---uses---> Enterprise library A ---uses---> mule-core v3.4
I'm using Maven and I excluded all mule ...
0
votes
0
answers
16
views
How to call Jasper Reports with QR code in spring app [duplicate]
I'm using TIBCO Jaspersoft® Studio Professional 7.9.0, and i have insert QR code using :
zxing-j2se-1.7
zxing-2.0-core
barcode4j-2.1
it works perfectly, but when i wont to call this report from ...
0
votes
1
answer
52
views
spring-flex 1.0.3.RELEASE issue in integrating spring 5.3.20
Currently using spring-flex 1.0.0.M2, As part of spring upgrade to 5.3.20, upgraded spring-flex to 1.5.2.RELEASE.
I'm getting the following error:
ERROR [org.springframework.web.servlet....
0
votes
0
answers
83
views
java.lang.NoSuchMethodError: org.apache.spark.sql.types.StructType$.apply(Lscala/collection/immutable/Seq;)Lorg/apache/spark/sql/types/StructType;
Im facing this error while doing spark submit. I used scala 2.13.8 with spark dependencies version 3.3.0.. ERROR org.apache.spark.deploy.yarn.Client: Application diagnostics message: User class threw ...
1
vote
0
answers
50
views
Why does calling children of KtFile trigger NoSuchMethodError?
I have the following code that calls children of the KtFile. When I go inside the definition of this children, I can see that it is defined in package com.intellij.psi under the method called ...
0
votes
1
answer
302
views
How can I handle long response in OkHttp Java?
I am attempting to use okhttp-3.12.0 and okio-1.9.0 in my JAVA project to make POST call to a web service.
I am able to successfully create the record, however, the web service returns a response of ...
0
votes
1
answer
911
views
java.lang.NoSuchMethodError: org.springframework.web.cors.CorsConfiguration.addAllowedOriginPattern
I found a security vulnerability during the sonatype library scan in spring-beans and spring-context 5.2.12.Release version. But when I upgraded its parent library spring-webmvc to 5.3.14 to get rid ...
3
votes
0
answers
337
views
Is there a way to load a specific view in a Flutter app integration test?
I'm working on creating some integration tests for a complex app with many views. I have already managed to write some tests for user authentication - this was fairly simple because it required some ...
1
vote
1
answer
2k
views
java.lang.NoSuchMethodError - while reading excel file(it was a working code)
It was working for me. I have closed Eclipse and executed the same runner(BDD, with Maven Project). I am getting the error:
java.lang.NoSuchMethodError: 'byte[] org.apache.commons.io.IOUtils.byteArray(...
0
votes
1
answer
2k
views
elasticsearch java.lang.NoSuchMethodError: org.apache.http.client.utils.URLEncodedUtils.formatSegments
I'm trying this basic elasticsearch example from there guide to use java client API in a spring boot project.
but it gives me the following error when running:
java.lang.NoSuchMethodError: org.apache....
1
vote
1
answer
704
views
Flutter initiating a provider and changing its value / NoSuchMethodError
I struggle changing the values of my providers.
They are at the top of my widget tree :
runApp(
MultiProvider(
providers: [
ChangeNotifierProvider(
create: (context) => ...
1
vote
0
answers
158
views
Getting a NoSuchMethodError on a Xstream.addPermission()
I'm trying to debug a issue I'm having on an application, we have a function to store a user's search criteria and the function used to work but recently we've been getting a NoSuchMethod
Error ...