Re: how to do error handling?

2009-07-30 Thread Bhaarat Sharma
thanks for your explained answer. Just to make sure. So you are suggesting that catching the exception at DAO level is of no use and I should catch the exception at my action class level ( I am using struts2). So that way, user will only see some generic message like 'something happened' but messa

Re: how to do error handling?

2009-07-30 Thread Nail Uenlue
Hello, One solution is to put all the code you dont want to execute into the try/catch...but i think that you're trying to follow a wrong concept ... The getSqlMapClientTemplate is from the Spring class DAO support class and Spring is wrapping the SQLException to a DataAccessException and making

Re: how to do error handling?

2009-07-30 Thread Bhaarat Sharma
thanks for the reply. But this is in a DAO method. the object is returned back to the action class. if the object returned is null and we are performing methods on that object then we will get null pointer exception. Which, I guess is ok. But DB message will be logged and then again some null p

Re: how to do error handling?

2009-07-30 Thread Larry Meadors
Put all the code you don't want to execute in the try block. Larry On Thu, Jul 30, 2009 at 4:06 PM, Bhaarat Sharma wrote: > Hi guys, > I have a few questions on how to handle errors that are thrown when iBatis > calls the Stored Procedures. > Assuming i have the following code: > results_list =

how to do error handling?

2009-07-30 Thread Bhaarat Sharma
Hi guys, I have a few questions on how to handle errors that are thrown when iBatis calls the Stored Procedures. Assuming i have the following code: results_list = getSqlMapClientTemplate().queryForList("spfile.getReport", parmMap); If i have the above code then when error occurs, we see it on t

Ibator and foreign keys

2009-07-30 Thread swaroop belur
Hello all, Accd to the docs , we need to hand code sqls having joins and ibator cannot help use here. Is there any update to this.. any plans to handle this soon? This would be a very useful feature to have Thanks sbelur -- View this message in context: http://www.nabble.com/Ibator-and-for

Re: LazyLoading and CGLIB return wrong types

2009-07-30 Thread Christopher . Mathrusse
Aside from the fact that you don't want to write any additional code, this option is viable. It seems that you could easily create a Java class that could generate all of you XStream converters for you using reflection to discover the fields of "your" objects. This would only take a short time

- java.sql.SQLException: Fail to convert to internal representation: ch.xxx.converter.bean.KeywordItem - Problem

2009-07-30 Thread Nail Uenlue
Hi everyone, Im having an issue while trying to submit an Array of Objects to an Oracle Stored procedure. The map file looks like: http://ibatis.apache.org/dtd/sql-map-2.dtd";> {call vvever.pck_ev_te

Re: LazyLoading and CGLIB return wrong types

2009-07-30 Thread Stelio Macumbe
Probably it would but the reason I am using xStream is because it does the (conversion) job quickly and easily , I don't really want to spend much time on writing code for conversion , not to mention that are tens of classes to be marshaled. Stelio cmathrusse wrote: > > Why not then create a c

Re: LazyLoading and CGLIB return wrong types

2009-07-30 Thread Stelio Macumbe
I am just adding functionality to an application which has been running for some time , I can't just disable lazy loading without knowing what (disastrous) side effects it could cause Jeff Butler-2 wrote: > > Are you really sure that lazy loading is buying you anything? I think > people turn th