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
-1
votes
1 answer

How to handle RuntimeException in @PostConstruct when the FacesContext is not available?

In my application I receive username/password via a servlet which calls a SessionScoped ServiceBean which initializes a SSH connection in a @PostConstruct method. If the SSH host is not available I want to redirect the user to…
Ginkgochris
  • 455
  • 4
  • 25
-1
votes
1 answer

Googlemaps in android "unable to start activity ComponentInfo"

Why am i gentting this? The application was running just fine, wher i decided to do the tracaRota Method to build a route from uma ponit to another, and it started to do that and the app dont even launch 11-30 10:45:28.836: E/AndroidRuntime(14114):…
-1
votes
2 answers

java.lang.RuntimeException: Method call after release()

i have an android application which has two camera activities. they switch time to time in between them. after switching several times first activity throws this exception.. any idea why this happen? how to fix it? Please help me.thank you for…
-1
votes
1 answer

RuntimeException using a ListView

I'm getting this weird error: 05-01 14:04:42.589: E/AndroidRuntime(3261): Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' I have seen a quite a number of posts but none of them…
rosesr
  • 749
  • 1
  • 7
  • 10
-2
votes
0 answers

Radians to degrees and back

The task is: Write an Angle class that has attributes specified in radians. The class should enable: creation of an angle (implies 0), creation of an angle based on a given number of degrees, minutes and seconds, operations and printing in radians…
-2
votes
1 answer

NullPointerException: 'void android.widget.Button.setText(java.lang.CharSequence)' on a null object reference

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setText(java.lang.CharSequence)' on a null object reference at com.example.mentalhealth.diary.onCreate(diary.java:49)
-2
votes
1 answer

.RuntimeException: Unable to instantiate activity ComponentInfo java.lang.ClassNotFoundException: Didn't find class "moveitech.com.MainActivity"

i had tried alot of things available on internet regarding this issue but nothing is working for me . it is really hectic for me. activity name is correctly written in manifest also package name is correct and i had also tried clean and…
-2
votes
1 answer

Unable to start activity ComponentInfo{com.example.admin.testapplication/com.example.admin.testapplication.MainActivity}

After launching the basic template with hello world in android studio I am facing an error in runtime 1.xml code android manifest.xml
-2
votes
1 answer

android error: Can't create handler inside thread that has not called Looper.prepare()

I have an error from users of the android Market. I have no idea when this error occurs . The simulator and test phone runs the app perfectly! Any1 any idea where to begin looking? Thanks ! this is the error: java.lang.RuntimeException: Can't …
user601302
  • 49
  • 1
  • 4
  • 7
-2
votes
1 answer

create custom exceptions in java without exception class?

create custom exceptions in java without exception class is it possible? even if i have write required classes and interfaces for new class and extend that class to create custom Exception?
-2
votes
2 answers

How to know android.os.TransactionTooLarge or not

I am trying to pass data more than 1Mb here, data it may be possible bitmap or string so, android.os.TransactionTooLarge exception thrown by an application but below 24 API level it was a simple warning but >=24 API level it will create application…
Kishan Donga
  • 2,851
  • 2
  • 23
  • 35
-2
votes
1 answer

java.lang.RuntimeException: Unable to instantiate service ... has no zero argument constructor

I have a PictureHDFragment in which i use the method Html.fromHtml(String source, Html.ImageGetter imageGetter, Html.TagHandler tagHandler); i would like the method getDrawable (which is called automatically by Html.fromHtml when it encounters the…
matz_
  • 11
  • 3
-2
votes
3 answers

Is there any custom exception already in library which we can use where ever we want it to throw with custom message?

I want to throw a run-time exception from a method which will be caught in another class, which in turn throws a further specific custom exception or does some operation. def checkExtension(String fileName,file) { String [] arr=…
deepti mullur
  • 569
  • 1
  • 4
  • 14
-2
votes
2 answers

Collecting the output messages in java

I'm trying to write a code that allows me to collect all the runtime messages printed into the output console. For example, while my app is running sometimes these exceptions pops up and I would like to collect them and print them as a string in my…
SSM
  • 379
  • 5
  • 16