Questions tagged [nosuchmethod]

41 questions
22
votes
3 answers

What is the Dart "Expando" feature about, what does it do?

Have been seeing the term "Expando" used recently with Dart. Sounds interesting. The API did not provide much of a clue to me. An example or two could be most helpful! (Not sure if this is related, but I am most anxious for a way to add methods…
george koller
  • 2,363
  • 3
  • 17
  • 26
10
votes
2 answers

What is a NoSuchMethod error and how do I fix it?

I have some code and when I run it produces an error, saying: NoSuchMethod: the method 'XYZ' was called on null What does that mean and how do I fix it?
nvoigt
  • 61,531
  • 23
  • 73
  • 116
6
votes
1 answer

Trying to call a JavaFX application from Java... NoSuchMethodException

I have a main class which should call a JavaFX application (SimpleSun) to get Information from the user. Currently I create an Object of the JavaFX class and start it, but that doesn't seem to work. Does someone see the mistake in my work? Here's my…
NexusTeddy
  • 199
  • 2
  • 2
  • 10
6
votes
4 answers

How to use dart to implement a delegate/proxy?

I have two classes Parser and Proxy, and when I invoke a method from Parser, which does not exist, it will delegate it to Proxy class. My code: class Parser { noSuchMethod(Invocation invocation) { // how to pass the `invocation` to…
Freewind
  • 177,284
  • 143
  • 381
  • 649
4
votes
1 answer

NoSuchMethod Error Java but method exists

I understand there are other topics on this already but their solutions have not successfully been able to help me. I am creating a plugin and there is a class called CommandErrors that has only static references and methods in it. Here is the error…
jer_francis
  • 153
  • 1
  • 11
4
votes
3 answers

JasperReports 5.2 is not working with poi-3.7

I am using JasperReports 5.2 with Apache poi 3.7 in server lib folder. I don't have any other versions of poi in server lib. When I am trying to generate Excel report I am getting below error. java.lang.NoSuchMethodError:…
Venu
  • 183
  • 4
  • 19
3
votes
5 answers

Android Dialog NoSuchMethodException error when using XML onClick

I'm new to Java and Android, and I'm working on my first test app. I've progressed with it, but I'm blocked with a Dialog. I show the dialog from the Activity like this: //BuyActivity.java public void onCreate(Bundle savedInstanceState) { …
Envite
  • 281
  • 2
  • 6
  • 15
2
votes
0 answers

Connect to cassandra using spark in java

I am using cassandra 3.2.1 with spark, i included all the required jars. and i tried to connect cassandra from java through spark, i am getting the following error, Exception in thread "main" java.lang.NoSuchMethodError:…
2
votes
2 answers

Android Development : Java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.encodeBase64String()

Actually, I am developing an Android Application with encryption. When I use the Base64 for encoding and decoding, I receive an error of Java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.encodeBase64String() at run-time. I know…
Justin Yum
  • 133
  • 1
  • 1
  • 5
1
vote
2 answers

Is there Object.watch for all properties / a shim for __noSuchMethod__ available?

I would like to extend localStorage by executing some code each time a setting is fetched/stored. I could define a getter/setter for all existing properties of localStorage, but the problem lies in new settings. For example,…
pimvdb
  • 141,012
  • 68
  • 291
  • 345
1
vote
1 answer

java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z

I have encountered the error: java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z The installed java version on my pc is 1.8.0_91. The funny thing is, that this error does not occur on my pc, but on other pc's I tried to run my program. The…
Shathos
  • 25
  • 8
1
vote
2 answers

How can I fix the NoSuchMethodError from the Time4J Library?

I'm having throble with NoSuchMethodError in this line of my code: private CalendarPicker calendarPicker = CalendarPicker.persianWithSystemDefaults(); It works fine when I run the project in intellij idea but the output jar…
Ahmad
  • 77
  • 5
1
vote
1 answer

Jenkins-pipeline: No such DSL method

I have a Jenkins Pipeline JOB where I declared some stages that use an external function that I created by myself in the same groovy script. errorList = ["badGatewayMsg", "closedByRemoteHostMsg", "connectionTimedOut"] def boolean someFunction(name)…
marherbi
  • 321
  • 3
  • 15
1
vote
2 answers

Java Reflection NoSuchMethodException when referencing a method in same class

I am experiencing a NoSuchMethodException when trying to call getMethod on a method in the same class with no arguments from a string name pulled from a hashmap. Any advice, or another way to call a method in the same class given only a String name…
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
  • 48
  • 1
  • 9
1
2 3