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

Serialize fields in custom exception in Java

Let's say I have my custom RuntimeException, where MyEntity is JPA @Entity: @Getter public class MyEntityAlreadyExistingException extends RuntimeException { private final MyEntity myEntity; public MyEntityAlreadyExistingException(MyEntity…
Patrik Mihalčin
  • 3,341
  • 7
  • 33
  • 68
7
votes
4 answers

java.lang.RuntimeException: Cannot initialize Visualizer engine, error: -4

I am getting below error when running app on API 16. java.lang.RuntimeException: Unable to start activity ComponentInfo{}: java.lang.RuntimeException: Cannot initialize Visualizer engine, error: -4 at…
Android Developer
  • 9,157
  • 18
  • 82
  • 139
7
votes
1 answer

java.lang.IllegalArgumentException: No view found for id 0x7f090047 ("project name":id/content) for fragment FmMenu

Just wanted to share an issue that I have with a project that I am doing for a client. Whenever I enter to my IntroActivity and press the button to take me to MenuActivity, it crashes. Here is the error log: 02-16 18:49:49.393 …
w_lpz
  • 613
  • 4
  • 15
  • 28
7
votes
3 answers

Android App crashes on Release Build with the use of Proguard and Dagger

I'm new to the use of Proguard and Dagger for Android apps, so I would really appreciate if someone could give me a few pointers. Proguard and Dagger have been implemented into the application. When the app is installed through debug mode (ie,…
ShannonS
  • 354
  • 1
  • 4
  • 13
7
votes
4 answers

Runtim Exception extends Exception and Custom Exception extends from Exception Why the later one is compile time exception and other is not?

In Java I have a Exception class that extends from Exception, But whenever I throw it, the compiler says that it needs to be caught/ must declare that methods throws Exception. When I use a RuntimeException that extends from Exception, the compiler…
Ganesh
  • 1,654
  • 2
  • 19
  • 32
7
votes
1 answer

NullPointerException org.gradle.wrapper.BootstrapMainStarter.findLauncherJar(BootstrapMainStarter.java:37)

Got the following stacktrace when launching gradle 1.1, anyone know how to resolve them: Exception in thread "main" java.lang.NullPointerException at org.gradle.wrapper.BootstrapMainStarter.findLauncherJar(BootstrapMainStarter.java:37) at…
user1845761
  • 421
  • 5
  • 5
6
votes
1 answer

Android Tab Action Bar

I am trying out on the android action bar for 3.0, where I refer to http://www.youtube.com/watch?v=gMu8XhxUBl8 The code in the TabsActivity are as follow: package com.test.actionbar; import android.app.ActionBar; import…
6
votes
5 answers

Laravel 7 Fatal error: Uncaught RuntimeException: A facade root has not been set

I have looked at several answers suggested to a similar issue but nothing worked in my case. FYI, this is my first project in Laravel 7, working fine on my Mac. I have deployed the project on my server following this article. When running the…
6
votes
2 answers

Android app fails to load on some phones in PathClassLoader

I have an app, let us call it 'com.company.foo', with a main Activity 'FooBar'. In my AndroidManifest.xml, I have
6
votes
3 answers

caused by java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/Module in spring starter project in IntelIj

In my spring starter project, I am trying to do API calls using the JPA. My pom.xml look like…
Programmer
  • 657
  • 4
  • 9
  • 21
6
votes
1 answer

Android: java.lang.RuntimeException: at android.app.ActivityThread.installProvider

I created an application on live street view which is perfectly working on Lollipop and above but crashes on android 4.4 and below. on the crashes i got this error java.lang.RuntimeException: at android.app.ActivityThread.installProvider…
qasim butt
  • 133
  • 11
6
votes
4 answers

TransactionTooLargeException in Nougat

Exception 05-12 15:42:45.791 11043-11043/ E/UncaughtException: java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 631792 bytes at…
6
votes
5 answers

Android RuntimeException onCreateDialog did not create a dialog for id

I've an application that you can show and close several Dialogs with: showDialog(...) removeDialog(...) I play a little bit with the application and when there is no any Dialog on the screen, I press the menu button and I go to the main android…
zegnus
  • 1,437
  • 3
  • 17
  • 23
6
votes
1 answer

What is the expected behavior when a Java 8 Stream throw a RuntimeException?

When encountering a RuntimeException during stream processing, should the stream processing abort? Should it first finish? Should the exception be rethrown on Stream.close()? Is the exception rethrown as is or is it wrapped? The JavaDoc of Stream…
6
votes
5 answers

When to use "throws RuntimeException" Java

I am doing a code review and I have came across this method definition: public void something() throws RuntimeException Is there a rational reason to write 'throws RuntimeException' in Java?
MaKri
  • 190
  • 1
  • 8