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
2 answers

Caused by IllegalStateException

I'm working on a project where I'm downloading and saving data from web to sqlite database. when I'm running my project its shows IllegalStateException (already close). my logcat is: 09-29 12:14:49.485: E/AndroidRuntime(4956): FATAL EXCEPTION:…
0
votes
1 answer

Why is this code throwing a ClassCastException in netbeans while its runing fine in eclipse

//Runtime Exception Runtime exception occurs when following code is called in netbeans. works fine in eclipse. public List findOpenTickets() { Session session = null; try { session =…
0
votes
1 answer

Unable to save a photo captured with the native camera app

I'm trying to use the built-in camera app, calling it via an intent from my own app, to take a picture at a specified place. I've use lot of sample code from developer.android.com but it throws an exception: java.lang.RuntimException: Failure…
Kelib
  • 648
  • 2
  • 7
  • 15
0
votes
3 answers

PowerShell - If Then: cannot call a method on a null-valued expression

When I run the program this function is in I get a cryptic error that doesn't make sense to me. I wasn't aware I was running a method on a null-valued expression. It occures to me that this is either a scope issue or a value is not getting set. I…
IkeaTheSofa
  • 63
  • 1
  • 1
  • 6
0
votes
1 answer

AlertDialog.Builder RuntimeException

I am try to add a dialog into BluetoothChatService that will prompt to retry the Bluetooth connection if the connection cannot be made or is lost. I am getting a runtime exception when AlertDialog.show() is executed; this error is occurring in…
vedavis
  • 958
  • 1
  • 13
  • 22
0
votes
2 answers

J2ME - LWUIT Java runtime exception - You must include the platform port before the LWUIT in the classpath>

Before you ask, yes I did see and try the solution here already. But it didn't work. I keep getting the error. "You must include the platform port before the LWUIT in the classpath." I am using Netbeans, JDK 1.6 (though J2ME isn't concerned with…
Robin Presto
  • 13
  • 1
  • 3
0
votes
3 answers

Android 2.2 : java.lang.RuntimeException when using intent

I've this issue when I run my code (caused by an intent): 08-28 05:30:11.785: E/AndroidRuntime(27529): FATAL EXCEPTION: main 08-28 05:30:11.785: E/AndroidRuntime(27529): java.lang.RuntimeException: Unable to instantiate activity …
0
votes
1 answer

How to display custom dialog in Cocos2dxActivity

How can I display a custom android dialog(with custom layout) in Cocos2dxActivity ? I tried calling a method through JNI in which I created a Dialog, set its layout and displayed it. public void displayDialog() { Dialog d=new Dialog(this); …
0
votes
3 answers

Android service error “Unfortunately Service has stopped” but code has no errors LogCat error = FATAL EXCEPTION: main

I am trying to get this Service to open another app upon start up using the URI in the code. My BroadcastReciever and manifest have the correct code so I suspect it is something in this mainActivity. I am using Eclipse and there are no errors or…
0
votes
2 answers

Android fails to Connect to camera service when called in a second activity

I am writing an app which takes pictures every x-seconds, detects differences above a threshold and eventually sends high-def pictures out via email. The app workd fine if I keep all the camera functions in the same class as the main, but then the…
0
votes
3 answers

Runtime Exception While using AsyncTask

I am doing mutlithreading in my program with AsyncTask by calling a Method after 10 secs but instead having this Exception : 08-04 11:49:29.565: E/log_tag(885): Error converting result java.lang.RuntimeException: Can't create handler inside thread…
Name is Nilay
  • 2,743
  • 4
  • 35
  • 77
0
votes
2 answers

Symfony2 cache clear bad with sh

clearing symfony2 cache on shared server with: php app/console cache:clear --env=prod Gives me red box with error: [RuntimeException] sh: : command not found It used to work before on the server, not sure what changed and how to correct this?
Tjorriemorrie
  • 16,818
  • 20
  • 89
  • 131
0
votes
1 answer

Why am i getting java.security.AccessControlException?

i am using google app engine. When i send an ajax request from my website. I get following exception: Uncaught exception from servlet java.security.AccessControlException: access denied (java.lang.RuntimePermission accessDeclaredMembers) at…
0
votes
4 answers

Error occurred while executing doInBackround method

I am sending details to be stored in a database using a web service using KSOAP.There is nothing wrong with the web service it works fine. This code worked when i didn't user AsyncTask class. I am new to android and this is the first time i tried…
Sindu_
  • 1,347
  • 8
  • 27
  • 67
0
votes
1 answer

Configuring RunTimeException class in Struts2

My requirement is as follows. My application is built on Struts2 framework and using annotation plugin. When I get any RunTimeException I need to call a method of my custom class which prints error stack using e.printStackTrace() method. How can I…
Peter
  • 11
  • 2