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.
...
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,...
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...
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?
...
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...
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...
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...
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 ...
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...
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...
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 ...
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?
...
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.
...
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...
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...
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...
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...
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...
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
...
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...