Questions tagged [runtimeexception]

RuntimeException is the superclass of those exceptions that can be thrown during the normal operation of the Virtual Machine.

RuntimeException is the superclass of those exceptions that can be thrown during the normal operation of the Virtual Machine.

1062 questions
6
votes
1 answer

make sure class name exists, is public, and has an empty constructor for public fragment with class name and empty constructor

I've just got a crash report from one of the users with the following error trace : Unable to instantiate fragment packageName.Wizard$WizardFirstPage: make sure class name exists, is public, and has an empty constructor that is public Here are…
SagiLow
  • 5,721
  • 9
  • 60
  • 115
6
votes
0 answers

Sending object as Parcel (with file descriptors) through intent causes exception

I am trying to send an array of StatusBarNotifications to another service of mine so I have done this: Service that extends NotificationListenerService: @Override public void onNotificationPosted(StatusBarNotification sbn) { // TODO…
REG1
  • 486
  • 4
  • 15
6
votes
1 answer

Groovy could not find matching constructor?

Please note: although this question mentions Mongo it is surely a pure Groovy question at heart. My MyApp#bootstrap method: def bootstrap(AppConfiguration config) { String h = config.dbHost String p = config.dbPort println "Mongo is at:…
DirtyMikeAndTheBoys
  • 1,077
  • 3
  • 15
  • 29
6
votes
2 answers

Java- RuntimeException- Uncompilable source code - Erroneous tree type

I'm new in Java also I'm new in this website, so I'm sorry if the error is obvious, but I got an error, that I dont know what it means, I have try everything to fix it. I'm currently writing a basic aplication library, with some swing interface,…
MadNobody
  • 75
  • 1
  • 3
  • 8
6
votes
3 answers

java.lang.RuntimeException Theme.Sherlock

I have put an update on google play and see this error : java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jim2/com.jim2.SettingWidgetActivity}: java.lang.IllegalStateException: You must use Theme.Sherlock,…
jaumard
  • 8,202
  • 3
  • 40
  • 63
6
votes
2 answers

java.lang.RuntimeException: Unable to instantiate service .GCMIntentService

I'm trying to learn how to set a client receiver using the google cloud messaging system and i'm following this Google's tutorial: http://developer.android.com/guide/google/gcm/gs.html#android-app I have done everything that the tutorial asks but…
Matteo Cardellini
  • 876
  • 2
  • 17
  • 41
5
votes
3 answers

Android unable to start activity, error inflating class?

I'm new to android. I have some java knowledge, and I'm using Eclipse. At the moment I'm trying to display a map within a tab, and am looking at tutorials/code to help me. :) I've seen a few questions asking about this error, but I can't figure out…
5
votes
4 answers

Catch Unresolved Compilation Errors in Java

I'm currently a Teacher's Assistant for a class that uses Java. I'm trying to write a snippet of code that will test to make sure that student's methods are correct, but often times the student won't even implement the method, or they'll call it…
5
votes
3 answers

How to properly debug Java (Android) using Eclipse?

I am having problems with debugging my code. One of my AsyncTasks throws a RuntimeException, but I don't know which line in my code is responsible for this. Since I am new to Eclipse and Java in general, all of this is rather confusing to…
Tim
  • 53
  • 3
5
votes
3 answers

do checked exceptions happen at run-time?

I am confused with the naming of runtime exception of java. Those checked exceptions, like SQLexception, also happen during the execution of a program. Why only those unchecked ones called runtime exception? It is probably I have misunderstanding…
paul paul
  • 93
  • 1
  • 5
5
votes
2 answers

How to solve java.lang.RuntimeException: Parcelable encountered IOException writing serializable object

In my Android app ,I want to pass my custom object to another activity.I am doing it using intent Intent i = new Intent(A.this,B.class); i.putExtra ("Object", myObject); context.startActivity (i); In calling activity MyObject myObject =…
Neha
  • 389
  • 4
  • 8
  • 24
5
votes
2 answers

Empty Vector Drawable causes a ResourceNotFound Exception in runtime

I cannot use an empty vector drawable as place holder:
5
votes
0 answers

Android PdfRenderer throws SecurityException - cannot create document with error 4

I'm trying to render some pages using PdfRenderer android api. Some of my users started seeing this error: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1337, result=-1, data=Intent {…
5
votes
1 answer

Crash at android.inputmethodservice.IInputMethodWrapper.setSessionEnabled(IInputMethodWrapper.java:280)

My app crashes on Android 4 devices. It happens when I`m scrolling recyclerView in the viewPager why this error may occur? 0805/? W/Binder: Caught a RuntimeException from the binder stub implementation. …