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
10
votes
3 answers

GdxRuntimeException on Android: couldn't load shared library 'gdx' for target

I've developed a Libgdx application and tested it on my Samsung Galaxy S3(4.1.2) where it is working great. I tried to test it on a Galaxy Grand(4.1.2) but it failed. In the logcat, I found the following: caused by…
omarsafwany
  • 3,695
  • 8
  • 44
  • 75
10
votes
3 answers

How to catch all checked exceptions (in a single block) in Java 6?

IMPORTANT: This question only relates to Java 6 (and below). The hierarchy here shows Java Exceptions are divided into two types: RuntimeException and [not a RuntimeException]: Would it not have been better to divide into something like…
Steve Chambers
  • 37,270
  • 24
  • 156
  • 208
10
votes
7 answers

Wrap exceptions by runtime exceptions with an annotation

Is there a way to annotate a method so all exceptions thrown are converted to runtime exception automagically? @MagicAnnotation // no throws clause! void foo() { throw new Exception("bar")' }
ripper234
  • 222,824
  • 274
  • 634
  • 905
8
votes
3 answers

Guava EventBus: don't catch RuntimeException

I use guava's EventBus, unfortunately it catches and logs the InvocationTargetException that occurs when an event-handler throws a RuntimeException. Can i disable this behaviour?
Fabian Zeindl
  • 5,860
  • 8
  • 54
  • 78
8
votes
2 answers

Getting 'java.lang.RuntimeException: No toolkit found' error on running javafx application with java11

We recently migrated from java 8 to openJdk11. Now I am trying to test my application on windows and ubuntu with using openJdk installed on both OS. I'm able to run it on ubuntu. But same is not executing in windows10 with…
anupm
  • 81
  • 1
  • 1
  • 5
8
votes
3 answers

Why do we need serialVersionUID when extending RuntimeException?

Why do we need serialVersionUID when extending RuntimeException? Is RuntimeException a serializable class? public class DataNotFoundException extends RuntimeException { /** * */ private static final long serialVersionUID =…
8
votes
1 answer

Unable to start receiver com.google.firebase.iid.FirebaseInstanceIdInternalReceiver

My app integrates FCM to receive push notifications and it works okay. However, I am facing issue that on installation it crashes randomly. It is very random and occurring on OS 6.0+ devices till latest but randomly occurs. Code wise, in service…
8
votes
4 answers

Is it bad practice to catch RuntimeException for logging purposes?

I've come across the fact that catching RuntimeException is generally considered bad practice because they can't be corrected and usually are programmer errors. However, we have an (insanely) large application where changes in any part can have…
Weckar E.
  • 727
  • 2
  • 5
  • 19
8
votes
1 answer

Run time exceptions in android studio start Indexing time

I start my Android Studio After closing. it was fine working before closing but Now on Starting of Android Studio "Indexing" completed full progress and again start indexing this process is continuous Infinite level indexing....... than, scanning…
Dinesh
  • 482
  • 9
  • 20
8
votes
1 answer

Clojure REPL Unable to resolve symbol

When executing this function from lein run, the program executes as expected. But I am trying out atom.io's proto-repl package and when I call the function using the proto-repl, it gives a "CompilerException java.lang.RuntimeException: Unable to…
Mahmud Adam
  • 3,489
  • 8
  • 33
  • 54
8
votes
3 answers

Making a checked exception a RuntimeException

I'm working on a legacy system that has a custom exception that's used gosh-frickity-everywhere. It was inspired by the ServletException class, that said "well any time you have an exception in your Servlet, you'll want to throw this…
corsiKa
  • 81,495
  • 25
  • 153
  • 204
8
votes
5 answers

Exception: Callbacks must set parent bounds in populateNodeForVirtualViewId()

My Android app crash reporting service has reported many instances of: java.lang.RuntimeException: Callbacks must set parent bounds in populateNodeForVirtualViewId() at iv.a(SourceFile:56) at iw.a(SourceFile:716) at hq.a(SourceFile:112) at…
Shai Levy
  • 715
  • 9
  • 25
8
votes
2 answers

Android mediarecording error start failed -19 runTimeException

I'm experiencing a problem with my mediarecording. I'm trying to use the front camera to recored. This gives me an error(but the preview is working). Whenever I use the back camera everything works just fine, I think this is very weird. What could…
8
votes
1 answer

RuntimeException could not be mapped to a response, re-throwing to the HTTP container java.lang.NullPointerException

I am trying to validate a user record from my database using Spring Framework, RESTful Web Services and Jersey Implementation. I am using MySQL v5.6.0, Eclipse Galileo, Apache tomcat v6.0 UserAccessWS.java @Path("/user") @Service public class…
7
votes
1 answer

In Java, why dont I need to import RuntimeException to use it?

If I try to use IOException without the fully qualified name and without importing, I get a compilation error. But it doesn't happen when I do the same with, say, RuntimeException or Exception. Why is that? Thanks
dumptoday
  • 197
  • 3
  • 6