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

PySpark equivalent of adding a constant array to a dataframe as column

The below code works in Scala-Spark. scala> val ar = Array("oracle", "java") ar: Array[String] = Array(oracle, java) scala> df.withColumn("tags", lit(ar)).show(false) +------+---+----------+----------+--------------+ |name |age|role …
stack0114106
  • 8,534
  • 3
  • 13
  • 38
4
votes
2 answers

Getting "org.openqa.selenium.ElementClickInterceptedException" when invoking a CLICK using Selenium Java Test case

I am using the below java code with Katalon Selenium IDE. import java.util.regex.Pattern; import java.util.concurrent.TimeUnit; import org.junit.*; import static org.junit.Assert.*; import static org.hamcrest.CoreMatchers.*; import…
Ashar
  • 2,942
  • 10
  • 58
  • 122
4
votes
4 answers

Visual Studio 2010 C++ runtime error

I came across strange behavior in Visual Studio 2010 C++ compiler. Following code compiles but throws "Debug assertion failed" after execution with message: "_BLOCK_TYPE_IS_VALID(pHead->nBlockUse)" Compiles and runs smoothly under GCC. Is it my…
4
votes
0 answers

RuntimeException: Failed to execute Page Indexer Request

I have configured solr on my Typo3 web site successfully, but The indexing works fine for news but not for pages. I get this error : Manual Indexing An error occurred while indexing manual from the backend. When I click on Show error, I found this…
good stuff
  • 51
  • 1
  • 6
4
votes
1 answer

Why does this test trigger a Robolectric Delegate runner RuntimeException?

I'm writing an integration test for a UI component. The test is outlined as such: package filter.clear import android.view.View import android.widget.SearchView import androidx.test.core.app.ApplicationProvider import…
4
votes
1 answer

RuntimeException on AlertDialog.show()

I keep getting an exception when I want to display an alertdialog at the beginning of an activity. I can't figure out why? I really would appreciate an explanation. The code: public void onCreate(Bundle savedInstanceState) { …
Beasly
  • 1,517
  • 4
  • 20
  • 30
4
votes
8 answers

Java expects return value when RuntimeException is thrown

Why does this not compile (tried with java 8 and java 10)? It yields a missing return statement error. public class CompilerIssue { public boolean run() { throwIAE(); // Missing return statement } public void throwIAE() { …
gkumar7
  • 43
  • 4
4
votes
0 answers

RemoteServiceException on all OnePlus One devies running Android 8.0

Have the following app crash in android vitals with some specific information as under, I have no clue what is the root cause, looked around for some similar cases but no luck. If anyone faced the same thing or have any pointers they would be of…
4
votes
1 answer

How to Fix MediaRecorder start failed: -2147483648 in Android 7.1.1

I am developing an Android app for recording calls. When I run app in Android 7.1.1 (Nokia 2) MediaRecorder start failed: -2147483648 RuntimeException was given. The Exception has occurred when I start a new call.Complete Logcat for this Exception…
4
votes
1 answer

Runtime Exception using Glide Image Load setDataSource failed: status =

I am using Glide to Load an Image from my phone memory. My Image View is defined as: ImageView ivx=(ImageView)view.findViewById(R.id.ivx); And the code for loading the image from phone into the image view using Glide is: …
The Angel Cat
  • 59
  • 2
  • 10
4
votes
3 answers

How to map RuntimeExceptions in Java streams to "recover" from invalid stream elements

Imagine I'm building a library, that will receive a Stream of Integers, and all the library code needs to do is return a stream of Strings with the string representation of the number. public Stream convertToString(Stream input) { …
Alejandro
  • 635
  • 1
  • 6
  • 16
4
votes
2 answers

No main class detected

The problem is that when I open "cmd.exe" and go to the directory called chesschallenge6 to enter "sbt" command and "run" afterwards it doesn't work. I get an error message saying there is no main class specified. I checked if the main class name is…
Dominik
  • 121
  • 1
  • 2
  • 10
4
votes
1 answer

Strange RuntimeException when running an android app on some devices

I have recently made an Android application and released the debug version to some people for testing purposes. All seems fine except to a few devices the app could not be run. After investigation the following exception was occurring when opening…
2hamed
  • 8,719
  • 13
  • 69
  • 112
4
votes
2 answers

Unit testing with robolectric gives NoSuchMethodException error

after some time of research I still haven't found out why this thing happens in my Android code. This is just standard simple unit test code, Not much is really going on. I tried this code previously on my work machine and successfully runs the unit…
4
votes
3 answers

java RuntimeExceptions and Errors

According to "Sams Teach Yourself Java in 21 Days" book "Unchecked exceptions, also called runtime exceptions..." Under that fact,Error are also runtime exception as they are unchecked exceptions( or is it not what it says?) This confuses me with…
A Diss
  • 61
  • 7