Re: AW: ProbeException: Error getting ordinal list from JavaBean

2005-09-23 Thread Prashanth Sukumaran
Wow.  The reason i was surprised what that the kind of error IBatis threw did not give me any idea that this was the reason.    It was throwing all kind of vague errors.  1) Probe Exception Error getting ordinal list from JavaBean 2) I thought the map maybe a problem and put it in a Java Bean, no

AW: ProbeException: Error getting ordinal list from JavaBean

2005-09-23 Thread [EMAIL PROTECTED]
Hi Prashanth,   any text within is literal text. An XML parser won't parse any elements the CDATA section might contain.   -Ursprüngliche Nachricht-Von: Prashanth Sukumaran [mailto:[EMAIL PROTECTED]Gesendet: Freitag, 23. September 2005 17:56An: user-java@ibatis.apache.org

Re: ProbeException: Error getting ordinal list from JavaBean

2005-09-23 Thread Prashanth Sukumaran
Hi Team,   I had this problem as the Query i wrote was within CDATA.   When i removed the CDATA it works fine.   Why is this a problem?  What kind of logic is there in IBatis to convert a String to Integer when it is in CDATA?   Thanks Prashanth.Prashanth Sukumaran <[EMAIL PROTECTED]> wrote: Hi, I

ProbeException: Error getting ordinal list from JavaBean

2005-09-23 Thread Prashanth Sukumaran
Hi, I am getting a ProbeException when using an iterate tag in sql maps over a list of string objects.   Why does this throw an error when the data is a String.  Also why is IBatis trying to convert it to an Integer.    I have another query working the same when the List of String is in a Bean.  Th

Re: Question on SQLMaps

2005-09-23 Thread Larry Meadors
The key there is this: "There is already a statement named getId in this SqlMap." As others have mentioned, you have to make the names unique, or enable namespaces. I would suggest using namespaces. It makes things much cleaner in terms of organization. Larry On 9/23/05, Dave, Rajeev <[EMAIL P

Re: Result map problems...

2005-09-23 Thread Atif Faridi
I just came across the same problem. Another solution is to simply alias the names of the dynamically generated columns. The aliases should not be dynamically generated. So, select column$columnNameSuffix$ from testtable will result in the same unrecognized column error. It co

AW: Question on SQLMaps

2005-09-23 Thread Farsi, Reza
Hi Tajeev, Names in select, update, etc. have to be seen globaly. That means, if you have e.g. getAll for three objects, you have to either change the names (getAllBooks, getAllCds, getAllFilms), or you have to use namespace. You only need to activate using of namespaces in your configuration f

RE: Question on SQLMaps

2005-09-23 Thread Dave, Rajeev
Sorry, I missed mentioning in my last mail that as of now, it gives the following error com.ibatis.common.exception.NestedRuntimeException: Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException: Error parsing XPa

RE: Question on SQLMaps

2005-09-23 Thread Niels Beekman
Yes, as long as you define unique namespaces (you did that already) and set useStatementNamespaces to true (in the main configfile). Niels -Original Message- From: Dave, Rajeev [mailto:[EMAIL PROTECTED] Sent: vrijdag 23 september 2005 14:48 To: user-java@ibatis.apache.org Subject: Questi

Question on SQLMaps

2005-09-23 Thread Dave, Rajeev
Hello, The following is the scenario 1. I have a SQLMapConfig.xml which contains 2 sqlmap declarations. E.g. < > 2. In each of the SQLMap xml's I have some select declarations select dim_id as dimId from dim_table where dim_nm = #value# select hier_id as hierId from