Questions tagged [nosuchmethod]

41 questions
1
vote
1 answer

dart: wrap all function calls

I am attempting to write two versions of the same program: a performant version; and a slower version that lets the user know what's happening. I imagine it's not entirely disimilar to how an IDE might implement a normal/debug mode. My…
DomJack
  • 3,828
  • 1
  • 14
  • 25
1
vote
1 answer

Why can't Java Reflection find the package-private constructor of a class in another package?

I have the following API code, shortened for brevity: public class Vec { Vec(int x, int y, int z) {/*implementation*/} //other fields and methods irrelevant to question and not shown } Now, I'm trying to write code in a package different…
gparyani
  • 1,872
  • 3
  • 24
  • 35
1
vote
1 answer

Object $LogProvider has no method debugEnabled

When using the following lines of code on my Angular module myApp: myApp.config(function ($logProvider) { $logProvider.debugEnabled(true); }); I'm getting this error: Uncaught TypeError: Object #<$LogProvider> has no method 'debugEnabled' from…
cheesus
  • 11,077
  • 10
  • 64
  • 122
1
vote
1 answer

java.lang.NoSuchMethodException

I'm currently coding a Java application, but I got stuck. package framework.messages.requests; import framework.sessions.Session; public class Handshake {          public static void CheckRevision(Session Session) {         try {            …
user2199080
  • 117
  • 2
  • 2
  • 5
1
vote
1 answer

No Such Method Exception on getting Nested property

I have defined an Employee object with the following properties public class Employee { private String id; private String name; private Address address; public String getId() { return id; } public void setId(String…
user1583803
  • 401
  • 2
  • 5
  • 13
0
votes
1 answer

why does StrutsJunit4TestCase invoke the execute() method in a struts rest configured web application?

I recently write a web application with Struts2 REST, and I ran the junit test for a Action class then I got an error: java.lang.NoSuchMethodException: cn.fshk.stock.struts.biz.admin.AuthorizationController.execute() But it seems to run correctly…
0
votes
1 answer

apk failed to install & logcat shows NoSuchMethodException

As mentioned in the title, when compiling, the Console says: Failed to install ap.apk But the logcat shows this: 02-21 00:45:25.052: W/dalvikvm(921): threadid=1: thread exiting with uncaught exception (group=0x409c01f8) 02-21 00:45:25.272:…
Hosni
  • 658
  • 8
  • 29
0
votes
1 answer

Java NoSuchMethodError for javax.swing.JDialog.setAutoRequestFocus from Command Line

In cmd or Powershell, I do java -jar file.jar (javaw doesn't return anything, but also, doesn't run the program). It uses swing, and when I run it: Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError:…
Justin Warner
  • 789
  • 2
  • 9
  • 18
0
votes
1 answer

Flutter: NoSuchMethodError :The method 'fetchByID' was called on null. Receiver: null Tried calling: fetchByID(2)

I'am new in Flutter, and this is my first project. I'am trying to navigate to the new site with parameters. The parameter is accepted but the function in my class notizList returns an error message. I know that my Problem is at the line : Notiz…
0
votes
2 answers

Flutter, NoSuchMethod: The getter 'notes' was called on null

I'm learning flutter and trying to make a notes app and hardcode 3 notes using inherited widget and a list of map. Problem is that I get thrown this error when I try to run the app so far: I/flutter (32083): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY…
Trendy202
  • 7
  • 3
0
votes
2 answers

Getting nosuchmethod exception

i am new to programming and here is my code package first_project; import java.lang.reflect.*; import java.util.Scanner; public class My_Class { public static void main(String[] args)throws Exception { Scanner sc=new…
0
votes
0 answers

Translating SQL to MapReduce java.lang.NoSuchMethodException when trying to run the main class

i have 2 databases on text files: USERS(firstName, lastName, tel, zipCode, city) CALLS(fromNumber, toNumber, duration) i would like to translate this SQL request to MapReduce using Java SELECT firstName, lastName FROM users U, calls C WHERE…
aminoo
  • 49
  • 3
0
votes
1 answer

NoSuchMethodException JacksonObjectMapperBuilderConfiguration

In my POM I have added the dependencies String 4.2.9.RELEASE, Spring boot 1.5.1.RELEASE and FasterXML / jackson 2.8.6 and the following error occurs: [main] ERROR org.springframework.test.context.TestContextManager - Caught exception while allowing…
0
votes
0 answers

NoSuchMethodError Java Commons.Net setCopyStreamListener

im getting the following error, when I want to execute my Java program: Exception in thread "main" java.lang.NoSuchMethodError: org.apache.commons.net.ftp.FTPSClient.setCopyStreamListener(Lorg/apache/commons/net/io/CopyStreamListener;)V at…
user7752322
0
votes
1 answer

Java NoSuchMethodException - method does exist in class

I am building a JavaFx application and I want to create a method that receives a GridPane and a Node[] with the amount of items being added to the pane. However, when I call the method I get a NoSuchMethodException. As a test, I tried to create a…
Lars
  • 330
  • 4
  • 16