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

Attempt to invoke virtual method 'android.content.Context android.view.View.getContext()' on a null object reference

public class PopUpClass extends AppCompatActivity implements IAsyncResponse { View view; private String agreementContent; @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
bablu
  • 1
  • 3
-1
votes
2 answers

How to fix RuntimeException?

import java.sql.Connection; public static void main(String[] args) throws SQLException, RuntimeException { try{ DriverManager.registerDriver(new com.mysql.cj.jdbc.Driver()); String…
-1
votes
2 answers

Unable to subclass Runtime Exception

I want to "get around" the strict restrictions placed on methods by the throws clause. So I decided to subclass RuntimeException to make up a new, exempt exception of my own. Now I can throw it to my heart's content, because the throws clause that…
Anshul Gupta
  • 265
  • 2
  • 12
-1
votes
3 answers

java.lang.NumberFormatException: For input string: "", while not converting a string into a number

" NumberFormatException error occurs when i click the save button but i am not converting a string into a number. " i tried : try { result = Integer.parseInt(input); } catch(Exception e) { if(input == null || input.isEmpty()) { // case 1a return 0;…
pol
  • 25
  • 3
-1
votes
2 answers

Java lang Null pointer exception Attempt to invoke virtual method

I keep getting this exception with the app crashing each time: Java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference at final String userName =…
-1
votes
1 answer

Android - Weird Runtime Exception Found on Crashlytics

so today i was checking my Crashlytics and found Application is Been crashed 88 times but couldn't find the source Here is the Exception Detail java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.example.f.f.a()'…
-1
votes
1 answer

Thread Runtime Exception Behaviour

I have written a Thread with class Runnable as follows class myThread implements Runnable { public void start () { thread = new Thread(this, threadName); thread.setUncaughtExceptionHandler(handler) thread.start() } @Override run(){ …
-1
votes
1 answer

On the machine level an appliccation runs as in binary, then when a run time error occurs, how does it render back to error codes?

I am running the below program : #include using namespace std; int main() { while(1) { int a; cin >> a; cout << 9/a << endl; } return 0; } the step by step process is the above code gets…
user1718009
  • 303
  • 3
  • 7
-1
votes
2 answers

unable to startactivity componentinfo

I'm having a error when i pressed a button form mainactivity it will go to an activity but instead it crash..... i have never encountered this error before could you guys help me out Process: com.sp.ez_mart, PID: 9514 …
Jason
  • 51
  • 8
-1
votes
2 answers

Java Crossword 2d Array

package assignment2; import java.util.Random; import java.util.Scanner; public class test2 { public static void main(String[] args) { int wordAmount = wordAmount(); String[] words = wordArray(wordAmount); displayWords(words,…
user3059683
-1
votes
3 answers

"No such column" when making SQLite query

I cant seem to find the mistake in my code. I tried deleting the database and changing the version number because I added the bottom_time later, but it seems it isnt recognizing it.. The error is indicated when trying to do the db.query inside the…
Thesie
  • 13
  • 1
-1
votes
3 answers

Fatal - RuntimeException SQLite Remove Data from Database

I am trying to delete data from SQLite table where source column equals to "Online" java.lang.RuntimeException: Unable to start activity ComponentInfo{com.reminders/com.reminders.FetchDataActivity}: android.database.sqlite.SQLiteException: no such…
Sun
  • 6,768
  • 25
  • 76
  • 131
-1
votes
3 answers

Android App - button is opening the activity but it's crashing

I created a scrolling activity but when I debug the app and click on the button to open the activity, I get an error. Basically, it crashes the whole app. However, here's my code below. Is it because it's a scrolling activity and not an empty…
-1
votes
2 answers

Fatal Exception java.lang.RuntimeException: Unable to start activity

I'm a french student in University and I have to make an Android Application wich used Google Map. Unfortunately, I have a problem when I try to used my application on my phone : when I try to access to the part with GoogleMap the application switch…
-1
votes
2 answers

Evaluate asserts after exception has taken place?

Version: testng-6.8.8.jar This test runs green: @Test(expectedExceptions = { NullPointerException.class }) public void shouldTestNGIgnoreAssertsAfterExceptionThrown() throws Exception { String iAmNull = null; int length = iAmNull.length(); …
user77115
  • 5,517
  • 6
  • 37
  • 40