exception

ArrayIndexOutOfBoundsException in java and hibernate

i am using Hibernate and got the exception ArrayIndexOutOfBoundsException what are the possible causes? ...

iPhone - How to best handle when a user leaves Entry Screen blank and presses Save

In our iPhone app we have a controller 'AddViewController' which shows a data entry screen to add a new entry. It includes Save and Cancel buttons. Currently if a user enters nothing at all in any of the text fields and presses Save the app crashes. (Yes I know it's silly for someone to do this, but hey just covering off on everything) ...

Why two different results while handling the same Exception in C#?

I handled the same exception in two programs, but I got the different results. I don't know why. the first result is the one the program unable to caught Scapshot1:      www.freeimagehosting.net/uploads/e2b37433a3.png and the second is the one the program succeed to caught Scapshot2:      www.freeimagehosting.net/uploads/6ab7564...

Calling upgraded .NET webservice fromn legacy 1.1 code - SoapException

Hi all, I recently upgraded a .NET 1.1 webservice to .NET 3.5. After the upgraded web service was deployed our .NET 1.1 applications referencing this web service all threw the following exception: System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction.... The .NET 1.1 applications ha...

Can I catch multiple Java exceptions in the same catch clause?

In Java, I want to do something like this: try { ... } catch (IllegalArgumentException, SecurityException, IllegalAccessException, NoSuchFieldException e) { someCode(); } ...instead of: try { ... } catch (IllegalArgumentException e) { someCode(); } catch (SecurityException e) { someCode(); } catch...

How-to handle legacy classes with Xstream?

API publisher added new field to their response object that isn't in my model classes. Is there a way to loosen up the mapper to ignore unknown fields? I still want to use my old legacy model classes to parse, but now I get an exception... ...

are dot net exceptions dependent on computer's locale

this is a bit of newbie question. if i'm running my dot net application on a server configured for english location, the dot net exceptions have english text. what happens when the server is configured for a different locale: such as french or russian? ...

Lost transaction with JPA unique constraint?

I have a field with an unique constraint: @Column(unique=true) private String uriTitle; When I try to save two entities with the same value, I get an exception - but another exception than I exected: java.lang.IllegalStateException: <|Exception Description: No transaction is currently active at org.eclipse.persistence.interna...

How to handle JPA unique constraint violations?

When a unique constraint is violated, a javax.persistence.RollbackException is thrown. But there could be multiple reasons to throw a RollbackException. How can I find out that a unique constraint was violated? try { repository.save(article); } catch(javax.persistence.RollbackException e) { // how to find out the reason for the ...

is exception a subclass of error?

is exception a subclass of error? ...

What is the difference between SqlException and SqlExecutionException?

What is the difference between SqlException and SqlExecutionException? I understand that SqlException is an exception (or warning) thrown by SqlServer itself. But in what cases the SqlExecutionException is thrown? Why it is defined under System.Web.Management namespace? ...

Catching SQL Exceptions in vb.net

Is there a way to catch all SQL exceptions in a project? I have several gridviews and multiple sqldatasources and most of the errors are going to occur when a user enters something incorrectly or in the wrong column. So how do I stop the Server Error in /Project page from showing up? ...

How can I customize custom exceptions in Java?

This is the original exception code public class NoValueForParametarException extends Exception { private Exception nestedException; private int errorCode; public NoValueForParametarException(String message) { super(message); } public NoValueForParametarException(Exception ex,String message) { super(message); this.nestedEx...

WCF client Java interop - No Response Headers = MessageSecurityEx

I am using a WCF client to communicate with a Websphere hosted web service. The service requires my message to be signed, but not encrypted. This is being done and works as expected. I can see in my trace logs that I get a valid response back from the service. However, it isn't making past the proxy becuase of the following error: S...

Is there a way to findout what line an exception was thrown on?

Say I have a method like this: public void SaveData() { try { foreach (var somevar1 in list.SomeType1s) { CEData.SaveRow(sometype1) } foreach (var somevar2 in list.SomeType2s) { CEData.SaveRow(sometype2) } foreach (var somevar3 in list.SomeType...

Grails IncompatibleClassChangeError

I deploy a war made with "grails war" to a jetty server. As far as I can determine, Grails builds with Sun JDK 1.6.0_17-b04 and jetty runs on Sun JDK 1.6.0.16 (both on linux). 2010-08-18 07:33:47.018:WARN::Nested in org.springframework.beans.factory.access.BootstrapException: Error executing bootstraps; nested exception is org.codehaus...

Cancelling some data processing with return values or exceptions. What pattern is more suitable?

I have lots of code which is doing some data processing (in C# to be more specific). Very often the data may be only processed, if some criteria are met. Since the criteria can be rather complex, they are checked in a lazy fashion. They are not checked beforehand. Thus: If during the processing some criterion is not matching, the process...

AsyncTask interrupted exception in Android?

I am facing an issue with AsynsTask in my Application. I really do not understand the reason of it happening. The issue is "The application works perfectly usually, now when any of the activity is displayed on the screen and I keep my device idle for a longer period of time. Then when I make the keyguard on the view of the last active a...

Why is my WCF channel failing?

I have a computer that is running a single program that manages up to 48 individual processes on 4 other computers. I have the WCF services (one for each process) set up as such: public void StartService(Uri uri, string identifier) { unitMetaData = identifier; var binding = new WSDualHttpBinding(WSDualHttpSecurit...

What could be causing "Path Too Long" exception?

I'm trying to build a Visual Studio add-in. For long-winded reasons (to do with using disassembled assemblies courtesy of .NET Reflector) I removed the reference to the EnvDTE assembly, then re-added it. My project still builds without any problems but when I run my project I get the following exception. System.IO.PathTooLongException ...