Questions tagged [nosuchfieldexception]
32 questions
18
votes
1 answer
"java.lang.NoSuchFieldError: super" exception - bug in compiler?
The following code written in Java-9 being run gives me a very weird and funny exception in runtime:
Exception in thread "main" java.lang.NoSuchFieldError: super
at A$C.test(A.java:15)
at A.main(A.java:5)
The code:
public class A {
…

Andremoniy
- 34,031
- 20
- 135
- 241
9
votes
1 answer
Using ProGuard causes NoSuchFieldError for ACRA
I use ACRA 4.4.0 in my Android apps to receive crash reports from users. My IDE is ADT Build: v22.2.1-833290. Few days ago I've started using ProGuard for apps I'm going to publish on Google Play. When I install and start exported signed apk, a…

Darkmike
- 163
- 2
- 9
8
votes
5 answers
NoSuchFieldError when reading Excel sheet in java
I've followed a simple guide to constructing a workbook using Apache POI XSSF. Following the same guide I was able to WRITE an Excel sheet, however when attempting to read from one, I'm receiving the error displayed after the code.
Code:
try {
…

William Tolliver
- 305
- 1
- 2
- 16
5
votes
2 answers
DaoConfig init failure with greendao on Samsung Devices with Android 5.0
Crashlytics is reporting a lot of crashes in greendao:
> Caused by de.greenrobot.dao.DaoException: Could not init DAOConfig
> at de.greenrobot.dao.internal.DaoConfig.(DaoConfig.java:94)
> at…

Robert
- 1,090
- 10
- 13
4
votes
1 answer
Why do I get a java.lang.NoSuchFieldError: on an Enum value?
I have an Enum inside a jar that I have produced myself. This jar is a dependency of a second jar, which uses the enum values.
Now, the second jar is a logging framework, whereas the first jar in this case is the model classes of the logging…

jumps4fun
- 3,994
- 10
- 50
- 96
4
votes
2 answers
Why getting NoSuchFiledException when using another android project as a library?
I have an android project which can run by itself. I want to create another android project that extends the former project. But it throws NoSuchFieldException when the library project tries to create some component that uses…

Kyle Xie
- 722
- 1
- 8
- 28
3
votes
1 answer
Slide Anywhere to Open Navigation Drawer
I have used this workaround provided here, which enables the app to open the navigation drawer whenever the user sides (to the right) anywhere on the screen. The code works absolutely fine.
However, I just signed my apk to be uploaded on the Play…
user3037055
3
votes
1 answer
Java String Mutability - java.lang.NoSuchFieldException: offset
I'm new to Java and I saw a Q&A section here with two examples where mutability is removed. Upon testing MutableString.java:
import java.lang.reflect.Field;
public class MutableString {
public static void main(String[] args) {
String…

ofer.sheffer
- 5,417
- 7
- 25
- 26
2
votes
1 answer
When should NoSuchFieldException be used versus NoSuchElementException?
Aside from NoSuchFieldException being a checked exception, where NoSuchElementException is not, what are the differences between the two exceptions? When should one be used as opposed to the other?
Specifically, I am working on an OOP representation…

Robert Engle
- 45
- 1
- 7
2
votes
2 answers
java.lang.NoSuchFieldError: STANDARD_NUMBER_TYPES
Problem:
I got this error:
java.lang.NoSuchFieldError: STANDARD_NUMBER_TYPES
Situation:
I'm trying to add spring-jpa for Spring Data JPA and with this configuration of dispatcher-servlet.xml

efem
- 31
- 1
- 4
2
votes
0 answers
NoSuchFieldError when calling execute on DefaultHttpClient
I keep getting a NoSuchFieldError when I call execute on my DefaultHttpClient instance. These are the lines of code I have.
HttpClient client = new DefaultHttpClient();
HttpPost post = new…

user1943079
- 511
- 6
- 20
1
vote
1 answer
No Such Field Error in android project using kotlin
I get a NoSuchField runtime error in my android app using Kotlin whereas the field exists
I've tried renaming as stated here No static field list_container of type I in class Landroid/support/v7/preference/R$id yet no solution
This is my…

Iyke
- 47
- 10
1
vote
1 answer
java.lang.NoSuchFieldError: INSTANCE - WebDriver
I get following error message, when I try to execute test. There weren't any changes in version numbers in pom file, so we could exclude dependency related problems.
java.lang.NoSuchFieldError: INSTANCE
at
…

plaidshirt
- 5,189
- 19
- 91
- 181
1
vote
1 answer
NoSuchFieldException: mSelectorWheelPaint in NumberPicker Android
I'm using this code for changing my NumberPicker
Utils.java:
public static boolean setNumberPickerTextColor(NumberPicker numberPicker, int color) {
boolean result = false;
final int count = numberPicker.getChildCount();
…

Jesús Ayala
- 2,743
- 3
- 32
- 48
1
vote
1 answer
java.lang.NoSuchFieldError: ASYNC
The page can't be visited and showed following error message:
java.lang.NoSuchFieldError: ASYNC
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:505)
at…

Sky
- 7,343
- 8
- 31
- 42