exception

Eclipse : Welcome page not getting displayed.

I am working on an application which is built on top of Eclipse. Though everything is working fine on windows, Sles 32 and 64 bit, but on SLED 64 bit the Welcome page is not getting Displayed. When you try to open the welcome page it throws an MalformedUrl exception with "Could not load Swt Style: content/shared.css" as error message. ...

What are all the possible values for SQLException.getSQLState?

SQLException.getSQLState retrieves the SQLState for the SQLException object. What are all the possible values that can be returned by this method? Can I use the value to identify specific errors that ocured in the database (i.e. can this value tell me if it was a PK violation, or a unique constraint, or column value to large etc)? Also,...

Disable EXCEPTION_DEBUG_EVENT from being passed to an attached debugger

I'm dealing with an anti-debug application which disables EXCEPTION_DEBUG_EVENT from being passed to my debugger, instead it executes its SEH and UnhandledExceptionFilters. I tried it with 3 different debuggers (even selfmade one) My debugger receives other debug events like LOAD_DLL, CREATE_THREAD etc Exceptions are not passed when fi...

catching exceptions thrown from a c# web service in javascript

If an exception is thrown in my web service and I wanted to give the user a more meaningful error message rather than a generic 'an error has occurred when processing your request', what are some possible techniques that can be used to pass the exception message back to the client? is this something that is acceptably practiced? ...

"NoClassDefFound exception: Could not initialize class" error help!

When I run my project, I get numerous outputs of this error: Sep 9, 2009 8:22:23 AM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet Jersey threw exception java.lang.NoClassDefFoundError: Could not initialize class SpringFactory at com.point2.prospect.persistence.hibernate.HibernateTran...

MySQL Data Provider - Unable to cast object of type 'System.Byte[]' to type 'System.IConvertible'.

I'm having some difficulty with my Entity Framework context that is proving very troublesome to debug. I added a feature to my application yesterday that gave one of my entities an additional collection of child entities (called Models) and after updating one of my expressions to Include() that collection when I query for the parent obje...

Deploying Jersey-enabled servlet to Tomcat: Exceptions.

Hey guys, Here is what I'm trying to do: we are switching over to using JAXB and Jersey for all our REST services and XML/JSON serialization needs. So far, I have been able to get a simple test working where some beans are annotated, some test objects created and these are perfectly serialized to either XML or JSON and return to the c...

GDI+ General Error on ScreenShot

I have the below Exception Extension for my in house Winform App. My problem is that I get a generic GDI+ error on ss.save("C:\\HelpMe.jpg", ImageFormat.Jpeg); It is not every time as it will work and then error out. Sometimes it will work a couple of times in a row. Is this a "locking" issue, possibly? What else should I look at ...

Can't seem to handle XMLException?

I have the following code in one of our projects webpages: XmlDocument xDoc = new XmlDocument(); xDoc.Load(File.FullName); //work through each print batch in this queue file try { XmlNodeList nodeList = xDoc.SelectNodes("Reports/PrintBatch"); fo...

Strange unhandled XmlException behaviour

In reading this recent question about an unhandled XmlException, I tried to reproduce it in both a .NET 2.0 and 3.5 console application. However in my code it behaves exactly as expected, the XmlDocument.Load method throws an XmlException because the source xml file contains a NULL character. So, why does the Load statement in the foll...

Thrown exception doesnt stop application

Some of exceptions thrown like this: throw new Exception( errMsg ); ... doest reallly stops my application! My expectation is when I'm throwing any ex. - app shall stop immediately. But I noticed my app throwing one ex. after another (especially when binding) instead of terminating same time EDIT_1: I dont have try-catch block when ...

Pulling exception out of its users

What is your best solution for pulling out exception occuring on a user computer? For example I send automatically a email when an exception is thrown which body contains the call stack. Have you experience other quick way to handle user bug? ...

StackOverflowException

With the StackOverflowException are the conditions to be thrown hardcoded or dependent on the machine the code is running on? I am almost certain the latter but have failed in my searches and don't ask enough questions here. ...

Exception.Data and Exception Handling Questions

I have a couple questions about exceptions. 1) when you hit a catch block, swallowing means what exactly? I thought it was always rethrow or the existing exceptions is passed up to the next catch block. 2) If you add Exception.Data values to an excepction, I notice I have to do another throw; to grab that data futher up in another cat...

Exceptions ignored in form_load for x64

When I throw an exception from form_load in my C# application it doesn't work when the platform is x64. (it acts as expected for x86) When I step through the code, I get to the line where the exception it thrown, then it immediately jumps to timer_Tick. When I create a new project and add this line to form_load: throw new System.Except...

StackTrace from Exception on different thread?

There is a constructor on StackTrace that takes an exeption as an argument. All fine and well, but I noticed that all the other constructors say that it will get the StackTrace from the current thread, but the constructor taking the exception does not say anything about that other than The resulting stack trace describes the stack...

Testing for multiple exceptions with JUnit 4 annotations

Is it possible to test for multiple exceptions in a single JUnit unit test? I know for a single exception one can use, for example @Test(expected=IllegalStateException.class) Now, if I want to test for another exception (say, NullPointerException), can this be done in the same annotation, a different annotation or do I need to wr...

Is there any use for C++ throw decoration?

I've started using C++ exceptions in a uniform manner, and now I'd like the compiler (g++) to check that there are no "exception leaks". The throw decoration should do this, like const does for constness of class methods. Well, it doesn't. Using throw is still documentary, but may even be dangerously misleading if others think a functi...

Exception libraries for C (not C++)

Hi - I am rolling my own exception library for C and would like good examples to examine. So far, I have been looking at David Hanson's: http://drhanson.net/work/ But I know I've seen other ones available in the past. Can you send me some additional pointers? Thanks, SetJmp ...

Best exception for an invalid generic type argument

I'm currently writing some code for UnconstrainedMelody which has generic methods to do with enums. Now, I have a static class with a bunch of methods which are only meant to be used with "flags" enums. I can't add this as a constraint... so it's possible that they'll be called with other enum types too. In that case I'd like to throw a...