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
0
votes
0 answers

Getting an error in my Developer Console on one of my Go Launcher Themes

This seems to only happen on my free themes. none of my paid themes seem to ever have any errors. Any idea why this error is happening? java.lang.ClassNotFoundException Source method PathClassLoader.findClass() java.lang.RuntimeException: Unable to…
BigDX
  • 3,519
  • 5
  • 38
  • 52
0
votes
2 answers

Error when timeout occures

The application I'm building right now has problems when using HTTP post. When timeout occures, the application crashes with the following error: 06-20 19:01:35.715: E/Timeout Exception:(3802): java.net.SocketTimeoutException 06-20 19:01:35.720:…
Aerial
  • 1,185
  • 4
  • 20
  • 42
0
votes
1 answer

Android coverflow : Error inflating class pl.polidea.coverflow.CoverFlow

I try to add the android coverflow in my own android projet when myt activity launched , I get the following error: 06-18 15:32:35.690: E/AndroidRuntime(15146): java.lang.RuntimeException: Unable to start activity…
Nico AD
  • 1,657
  • 4
  • 31
  • 51
0
votes
2 answers

Force Close on RingtonePicker

My code refused to return the right requestCode so I've improvised a bit. It always returned -1. if(v.getId() == R.id.imageButton9) { request = 888; Intent wpIntent = new Intent(); wpIntent.setType("image/*"); …
Asim
  • 6,962
  • 8
  • 38
  • 61
0
votes
2 answers

All RuntimeException / Un-checked exception advocates, how would you handle this scenario?

Scenario: For a web-site which requires registration based on user id, the user id must be unique. Lets say a user has attempted to register with 'foo' user id, which already exists (with other required fields). Now, without using checked exceptions…
user1418717
  • 425
  • 2
  • 5
  • 13
0
votes
2 answers

Android: starting activity using intent on button click

I'm trying to start activitiy using intent: public class Bez_provjere_739 extends Activity { Button Tbutun; public void onCreate(Bundle savedInstanceState) { Tbutun.setOnClickListener(new OnClickListener() { public void…
speedyTeh
  • 247
  • 1
  • 8
  • 22
0
votes
1 answer

java: Exceptions: always reach finally?

Possible Duplicate: Does a finally block always run? let's imagine the following scenario: public void myMethod() throws MyException try { // do something // an Exception (for example an individual written MyException which extends…
nano7
  • 2,455
  • 7
  • 35
  • 52
0
votes
3 answers

Best way to do Error Handling

I'm thinking of implementing better ways of error handling through exceptions. When I'm deep in my code and want to return an error, I have two options: Throw an exception that extends runtime exception. Pass error message objects along with my…
Sudoer
  • 451
  • 2
  • 5
  • 13
-1
votes
2 answers

Stop Activity from closing due to RuntimeException in Android

I have a Java Android app that uses an API to recognise images using AI. I require internet connection for my app to connect using the API. While the app retrieves data from the API, if the internet connection is lost, then the Activity closes with…
Dinux
  • 644
  • 1
  • 6
  • 19
-1
votes
1 answer

Wicket - Unexpected RuntimeException

I'm a Wicket beginner programming a simple forum. I have now implemented a PostgreSQL database to store the queries and also modified the contact page for this. But it no longer works and throws an error. I have checked the code several times but I…
Adam
  • 186
  • 1
  • 4
  • 20
-1
votes
1 answer

Nextjs: Cant render a component while using map over a array of objects. Objects are not valid as a React child

I dont know why when i want to render a component inside of a map function, basiclly i have a List component, and when i fetch data from an API with the email, etc.. from users i want that component to render that info. But i get the following…
-1
votes
1 answer

How To throw RuntimeExcpetions from CompletableFuture.whenComplete exception block?

I need to re-throw the runtime exception from the CompletableFuture Exception block to the parent method, but looks like the runtimeException is getting logged at the exception block itself and not propagating back to the parent method. Can anyone…
-1
votes
1 answer

why am i getting an error [Exception in thread "main" java.lang.NumberFormatException: For input string: "3"] in line 7 of my code?

So i was solving a question in competitive programming where i had to take these numbers as input... 3 40 40 100 45 45 90 180 1 1 and here's my code: package CP; import java.io.*; import java.util.*; class Test { public static void…
-1
votes
2 answers

"App keeps stopping" pop ups and give the error java.lang.RuntimeExcpetion

Whenever I run the project on the emulator, it gives me the error App keeps stopping and I can't run the app. There was no error when debugging the code. So I checked on the Logcat then it gives me the error java.lang.RuntimeException. I have no…
-1
votes
2 answers

Does close() method of the Closeable interface has exception in the signature

I was reading Closeable and AutoCloseable interface for the first time. As per my understanding we can't throw any exception apart from the IOException from close method of the Closeable interface and we can throw any possible exception like…
Sia Saxena
  • 21
  • 5