Questions tagged [nosuchmethod]
46 questions
1
vote
2 answers
Java spark example runs wrong with error: java.lang.NoSuchMethodError: scala.Predef$.$scope()Lscala/xml/TopScope$
I wrote a example with spark maven support in Intelligent IDEA.
The spark version is 2.0.0, hadoop version is 2.7.3, scala version is 2.11.8. Enviroment in system and IDE is the same version. Then application runs with error:
Exception in thread…

Victor
- 98
- 1
- 1
- 9
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
- 4,098
- 1
- 17
- 32
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,958
- 3
- 26
- 39
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…

Jonas Sourlier
- 13,684
- 16
- 77
- 148
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
- 115
- 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
- 424
- 2
- 6
- 16
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…

user1309813
- 1
- 1
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
- 668
- 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
- 849
- 2
- 10
- 20
0
votes
1 answer
Am getting nosuchmethod: the method map was called on null error in my dart code
import 'package:flutter/material.dart';
import './question.dart';
import 'answer.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
@override
State createState() => _MyAppState();
}
class _MyAppState extends…

CyberEmperor
- 3
- 1
0
votes
0 answers
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;
classRobot = Class.forName(fullClassRobots.get(i));
constructorRobot…

zhrfrd
- 11
- 2
0
votes
0 answers
NoSuchMethodError: javax/persistence/PersistenceContext.synchronization()
Upgrading spring version from 3.0.5.RELEASE to 5.3.17.
After changing the version and build deployment, Following error is happening.
"org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xxDao' defined in…

Arun Rajan
- 1
- 1
- 3
0
votes
1 answer
NoSuchMethodError - Flutter
When I run my application for a page, I am presented with the error:
══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY
╞═══════════════════════════════════════════════════════════
The following NoSuchMethodError was thrown building Builder:
The method '-' was…

Daiquery
- 28
- 4
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…

Marc
- 13
- 1
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
- 1
- 5