exception

Silent failures in C#, seemingly unhandled exceptions that does not crash the program

hi, have no idea what didn't you understand here: http://stackoverflow.com/questions/1583124/what-is-the-origin-or-the-reason-or-silent-failures-closed but i'm sorry anyway. i'll try to explain it again. in a winforms app, in a form's Load event, add the following line: throw new Exception(); and run the application. it ran witho...

Without using recursion how can a stack overflow exception be thrown?

Without using recursion how can a stack overflow exception be thrown? ...

Preserving original StackTrace/LineNumbers in .NET Exceptions

Understanding the difference between throw ex and throw, why is the original StackTrace preserved in this example: static void Main(string[] args) { try { LongFaultyMethod(); } catch (System.Exception ex) { Console.WriteLine(ex.StackTrace); } } stat...

Java Inetaddress, Swing extends, and throws Exception

In a project that I'm current working on, I'm using Eclipse with the Jigloo Gui Builder. The builder creates the class with this class line: public class ChatServer extends javax.swing.JFrame { String fromclient; String ToClient; String serverName = InetAddress.getLocalHost().getHostAddress(); String clientName = ""; ...

ClassNotFoundException com.mysql.jdbc.Driver

This question might have asked here number of times . After doing some google search for the above error and doing some update, I can't understand why I'm still getting that error. I've already put my driver-- mysql-connector-java-5.1.5-bin in the classpath: Java_Home\jre\lib\ Java_Home\jre\lib\ext\ Java_Home\lib and the code which I'...

OutofMemoryError: bitmap size exceeds VM budget (Android)

Getting an Exception in the BitmapFactory. Not sure what is the issue. (Well I can guess the issue, but not sure why its happening) ERROR/AndroidRuntime(7906): java.lang.OutOfMemoryError: bitmap size exceeds VM budget ERROR/AndroidRuntime(7906): at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:295) My code is pretty...

Sending exception from ProcessMessage (Soap extension)

I use Soap extension and I have problem with how sen exception on client side. How can I send exception from ProcessMessage on client side. For example: public bool fun1() {...} public bool fun2() {...} public override void ProcessMessage(SoapMessage message) { switch (message.Stage) { c...

ConfigurationErrorsException after Changing Root Namespace

I am receiving the following ConfigurationErrorsException: System.Configuration.ConfigurationErrorsException was unhandled   Message="Configuration system failed to initialize"   Source="System.Configuration"   BareMessage="Configuration system failed to initialize"   InnerException: System.Configuration.ConfigurationErrorsEx...

ClassCastException when eclipse "fixed" my code

I get a ClassCastException when eclipse suggested that my code should be like that.. I have a class named Kort. ArrayList<Kort> kort = new ArrayList<Kort>(); then I use toArray(), and eclipse suggest it should look like: Kort[] array = (Kort[])kort.toArray(); But it gives me this exception: ClassCastException ! :( ...

Python: How can I know which exceptions might be thrown from a method call

Is there a way knowing (at coding time) which exceptions to expect when executing python code? I end up catching the base Exception class 90% of the time since I don't know which exception type might be thrown(and don't tell me to read the documentation. many times an exception can be propagated from the deep. and many times the documen...

Visual Studio Just-In-Time Debugging Annoyances

Hi, I have a solution comprising of about 6 projects, and when I debug on one machine, any un-handled exceptions that occur cause the environment to break at the point that exception is thrown, allowing me to debug it. However, on a different machine with the same solution (in the same version of VS), all I get when an exception is ...

System Out of Memory exception? Having this error when I try to use many functions for an import

The situation is that I can import a file successfully. But when i add data to different tables thru functions I get this error. Are their ways to solve this problem. Since Ive seen in other forums that it is a performance/memory issue. But the server has almost 8GB of ram. what can be the solution to this? ...

System.Security.VerificationException: Operation could destabilize the runtime.

I get the above exception after downloading and trying to run the latest Ajax Control Toolkit. I get the exception in ClientCssResourceAttribute.cs, line 28. Anybody else getting the exception? ...

Trapping Exception using TSQLQuery & params

I am getting a "SQL Server Error: arithmetic exception, numeric overflow, or string truncation" error here is the code below AQuery:= TSQLQuery.Create(nil); with AQuery do begin SQLConnection:- AConnection; SQL.Text:= 'Insert into.....'; ParamByName('...').asString:= 'PCT'; . . . try ExecSQL; finally AQuery.Free; end; end;...

Custom Exceptions in C++

Hi, I've been trying to make some custom exception classes for a C++ library I'm working on. These custom exceptions capture extra info, such as file,line number,etc, needed for debugging, if for some reason while testing an exception is not caught in the right place. However most people seem to recommend inheriting from the std::excepti...

Jmeter: got java.io.IOException: Unable to tunnel through proxy

Hi there, like I wrote in the subject, I got this error while using Jmeter, I ran a script thread which connects to a site and does a series of http operations, my Jmeter launch script is configured this way: PROXY="-H <IP> -P 80 -u <user> -a <password>" Actually I just masked the real informations, but IP, user and password are set ...

Why is catch block executed twice for a single exception ?

Hi, I have the following code. try{ Twitter twitter = new Twitter(user,password); twitter.setStatus(txtStatus.getText()); JOptionPane.showMessageDialog(null, "Success"); txtStatus.setText(""); txtStatus.requestFocus(); }catch(Exception e){ JOptionPane.showMessageDialog(null, "Some Error.\n" + " If you ...

NUnit: Assert.Throws

How do I use Assert.Throws to assert type of the exception and the actual message workding. Something like this: Assert.Throws<Exception>( ()=>user.MakeUserActive()).WithMessage("Actual exception message") Method I am testing throws multiple messages of the same type, with different message and I need a way to test that correct m...

sys.webforms.pagerequestmanagerservererrorexception due to AJAX

Hi Guys, I know that this question is been asked more than dozen times.But somehow all the solutions provided, nothing seems to work on my web site. CUrrently I have a .aspx page which uses update panel.AFter sitting idle for more than 15 min. If a user tries to refresh or do anything on that page white screen appears and the user could...

java.lang.NoClassDefFoundError help

I'm trying to read a mail from Tomcat 6.0. Whenever I put the byte code and source code of the class MailReader in the same folder(and putting the main method), I can compile and run the class and read mail from command prompt, but when I put that class in the folder WEB-INF/classes of tomcat(by removing main method), I'm getting big fat...