Re: Cannot serialize session attribute

2006-08-23 Thread Socheat KHAUV
Did your class implement to the serialiable interface as well ?and did you generate the serialID ?- Original Message From: Ramon Misho <[EMAIL PROTECTED]>To: user-java@ibatis.apache.orgSent: Wednesday, August 23, 2006 10:40:04 PMSubject: Cannot serialize session attributeHello iBatis people

Re: Abator Version 1.0.0 Now Available!

2006-08-23 Thread Clinton Begin
PS:  "guy's"  <<  sorry, I didn't mean to draw attention to the apostrophe use here, but my wife the grammar phreak is always watching.  ;-)On 8/23/06, Clinton Begin <[EMAIL PROTECTED]> wrote: For the time being, there's really no "guy's", it's really all Jeff and users like you.  And yes, Jeff ha

Re: Abator Version 1.0.0 Now Available!

2006-08-23 Thread Clinton Begin
For the time being, there's really no "guy's", it's really all Jeff and users like you.  And yes, Jeff has done a fantastic job, not only on Abator, but also on iBATIS. He's been the most active committer for the last couple months if I'm not mistaken. Jeff will also be presenting an iBATIS Tutoria

Re: Abator Version 1.0.0 Now Available!

2006-08-23 Thread Tony Qian
Jeff, I have used Abator and iBATIS for more than half year for several projects. I love it! Really appreciate you guy's hard work. When I use Abator to generate all codes, i got one problem for batch. I need to go through the source code to figure out how to execute batch (When using sqlMapCl

M:N question

2006-08-23 Thread Daniel Pitts
I have something like the following: class Foo { Integer fooId; String name; Map> bar = new HashMap>(); // getters/setters bellow. } Table foo has (fooId, name) and table barMap has (fooId, a, b) SELECT * from foo join barMap using (fooId) WHERE fooId = #fooId#

RE: CDATA inside or outside of statement tag

2006-08-23 Thread Daniel Pitts
I guess I should have mentioned that too. I use < I find > unnecessary, but I suppose some people like symmetry. -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 1:07 PM To: user-java@ibatis.apache.org Subject: Re: CDATA inside or outside o

Re: CDATA inside or outside of statement tag

2006-08-23 Thread Nathan Maves
I tend to not use them at all. The only time I would need them is for the standard less then or greater then symbols. Instead I just use the html code to do this. > and < On 8/23/06, Daniel Pitts <[EMAIL PROTECTED]> wrote: I believe the cdata start/end will cause the dynamic tags to be esc

RE: CDATA inside or outside of statement tag

2006-08-23 Thread Daniel Pitts
I believe the cdata start/end will cause the dynamic tags to be escaped, and therefor not interpreted by iBATIS. I would guess your second suggestion is the correct one. From: Mississippi John Hurt [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 1:01 PMTo: user-java@ibatis.apach

RE: dynamic script's

2006-08-23 Thread Daniel Pitts
Perhaps. It might be nice to have some sort of scripting support though. Where you can at least chain operations together. Maybe something like:                        INSERT INTO authorMap (#post.id#, #authors[].id#)   I certainly could write this in java, but it seems generic enoug

CDATA inside or outside of statement tag

2006-08-23 Thread Mississippi John Hurt
In my statement in xml, if I use tag, does the CDATA wrap around the whole statement, ieCDATASTART  CDATAEND or I use to use separate CDATA sections as in below...  CDATASTART  CDATAEND   CDATASTART   CDATAEND

Re: dynamic script's

2006-08-23 Thread Jeff Butler
The answer is yes - if the driver supports it.  If your driver supports multiple SQL statements in a single prepared statement, then you can do it.  iBATIS doesn't to anything to support or deny this function - it's totally dependant on the driver support.  iBATIS will only prepare one statement.

FW: java.io.NotSerializableException: com.ibatis.db.sqlmap.LazyLoadList

2006-08-23 Thread Khanna, Vijay \(GE, Corporate, consultant\)
I did run a custom test to write & read the instances in the list.It failed as somehow the List now contains non-serializable objects (e.g BrokerBean) returned by 'executeQueryForList()'. I made sure that Broker bean, member data (lists containing other beans) are serializable. As per the Jboss

RE: stored procedures

2006-08-23 Thread Celaya, Tina \(GE Indust, ConsInd\)
hello! thanks everyone for your help, Aram, i did what you told me about the java types on the result map and it works, thank you very much for your time!!! Tina    

RE: java.io.NotSerializableException: com.ibatis.db.sqlmap.LazyLoadList

2006-08-23 Thread Khanna, Vijay \(GE, Corporate, consultant\)
I did run a custom test to write & read the instances in the list.It failed as somehow the List now contains non-serializable objects (e.g BrokerBean) returned by 'executeQueryForList()'. I made sure that Broker bean, member data (lists containing other beans) are serializable. As per the Jboss

dynamic script's

2006-08-23 Thread Daniel Pitts
Is there a way to run an SQL "script" from iBATIS? Such as: INSERT INTO foo (#bar#, #baz#); INSERT INTO ho (#hum#); Also, if there is, is it possible to dynamically generate the SQL to do so? Eg: INSERT INTO foo (#bar#, #baz#); INSERT INTO ho (#bar#, #hos[]#); Thanks.

RE: java.io.NotSerializableException: com.ibatis.db.sqlmap.LazyLoadList

2006-08-23 Thread Chris Lamey
On Wed, 2006-08-23 at 13:54 -0400, Khanna, Vijay (GE, Corporate, consultant) wrote: > Jboss gave us a utility class as a Listener to find the actual object in > the list causing this concern when stored in the HttpSession. To my > surprise it found one bean/DTO type which is not serializable. I qu

RE: java.io.NotSerializableException: com.ibatis.db.sqlmap.LazyLoadList

2006-08-23 Thread Khanna, Vijay \(GE, Corporate, consultant\)
LazyLoadList is not Serializable. I made it Serializable but the problem still remains. I spoke to Jboss guys to know if theres any issue with the Jboss cache, and think its fine on that side. Jboss gave us a utility class as a Listener to find the actual object in the list causing this concern

Re: java.io.NotSerializableException: com.ibatis.db.sqlmap.LazyLoadList

2006-08-23 Thread Ben Munat
I think the problem is in the underlying jdk classes used by LazyLoadList... seems like someone here told me that before. b Chris Lamey wrote: Looks to me like com.ibatis.db.sqlmap.LazyLoadList isn't Serializable, so you can't use it in your distributed cache. If you have the 1.x iBATIS sourc

RE: java.io.NotSerializableException: com.ibatis.db.sqlmap.LazyLoadList

2006-08-23 Thread Chris Lamey
Looks to me like com.ibatis.db.sqlmap.LazyLoadList isn't Serializable, so you can't use it in your distributed cache. If you have the 1.x iBATIS source around, you could verify that. I'm not sure why you're thinking java.lang.Object is the culprit...the method java.util.ArrayList.writeObject is o

RE: java.io.NotSerializableException: com.ibatis.db.sqlmap.LazyLoadList

2006-08-23 Thread Khanna, Vijay \(GE, Corporate, consultant\)
Hi,   Any help on this issue please ?   Thanks, Vijay From: Khanna, Vijay (GE, Corporate, consultant) Sent: Wednesday, August 23, 2006 10:22 AMTo: user-java@ibatis.apache.orgSubject: java.io.NotSerializableException: com.ibatis.db.sqlmap.LazyLoadList Hello,   We are using Ibatis 1.x alon

Re: Cannot serialize session attribute

2006-08-23 Thread Kris Schneider
On 8/23/06, Gareth Moorst <[EMAIL PROTECTED]> wrote: Hi Ramon, I'd suggest you ask this question on the Eclipse mailing lists. Nope, here is probably fine. You can see from the stack trace that PaginatedDataList is not serializable. By default, I believe Tomcat will serialize active sessions

Re: Cannot serialize session attribute

2006-08-23 Thread Gareth Moorst
Hi Ramon,I'd suggest you ask this question on the Eclipse mailing lists.Just once should do it ;)Gareth.- Original Message From: Ramon Misho <[EMAIL PROTECTED]>To: user-java@ibatis.apache.orgSent: Wednesday, 23 August, 2006 4:58:00 PMSubject: Cannot serialize session attributeHello iBatis p

Cannot serialize session attribute

2006-08-23 Thread Ramon Misho
Hello iBatis people: I am using Eclipse Version: 3.0.0 and Tomcat 5.0.19. I edit a java file (in the Eclipse), and click on the 'Save' button. The 'Reloading" starts as expected. However, very often (but not all the time), I get the following error messages although they have no impact on the

Cannot serialize session attribute

2006-08-23 Thread Ramon Misho
Hello iBatis people: I am using Eclipse Version: 3.0.0 and Tomcat 5.0.19. I edit a java file (in the Eclipse), and click on the 'Save' button. The 'Reloading" starts as expected. However, very often (but not all the time), I get the following error messages although they have no impact on the

Cannot serialize session attribute

2006-08-23 Thread Ramon Misho
Hello iBatis people: I am using Eclipse Version: 3.0.0 and Tomcat 5.0.19. I edit a java file (in the Eclipse), and click on the 'Save' button. The 'Reloading" starts as expected. However, very often (but not all the time), I get the following error messages although they have no impact on the

Error Message: Cannot serialize session attribute

2006-08-23 Thread Ramon Misho
Hello iBatis people: I am using Eclipse Version: 3.0.0 (Build id: 200406251208) and Tomcat 5.0.19. I edit a java file (in the Eclipse), and click on the 'Save' button. The 'Reloading" starts as expected. However, very often (but not all the time), I get the following error messages although t

Cannot serialize session attribute

2006-08-23 Thread Ramon Misho
Hello iBatis people: I am using Eclipse Version: 3.0.0 (Build id: 200406251208) and Tomcat 5.0.19. I edit a java file (in the Eclipse), and click on the 'Save' button. The 'Reloading" starts as expected. However, very often (but not all the time), I get the following error messages although t

Error: INFO: Cannot serialize session attribute

2006-08-23 Thread Ramon Misho
Hello iBatis people: I am using Eclipse Version: 3.0.0 (Build id: 200406251208) and Tomcat 5.0.19. I edit a java file (in the Eclipse), and click on the 'Save' button. The 'Reloading" starts as expected. However, very often (but not all the time), I get the following error messages although t

Error: INFO: Cannot serialize session attribute

2006-08-23 Thread Ramon Misho
Hello iBatis people: I am using Eclipse Version: 3.0.0 (Build id: 200406251208) and Tomcat 5.0.19. I edit a java file (in the Eclipse), and click on the 'Save' button. The 'Reloading" starts as expected. However, very often (but not all the time), I get the following error messages although t

Error: INFO: Cannot serialize session attribute

2006-08-23 Thread Ramon Misho
Hello iBatis people: I am using Eclipse Version: 3.0.0 (Build id: 200406251208) and Tomcat 5.0.19. I edit a java file (in the Eclipse), and click on the 'Save' button. The 'Reloading" starts as expected. However, very often (but not all the time), I get the following error messages although t

java.io.NotSerializableException: com.ibatis.db.sqlmap.LazyLoadList

2006-08-23 Thread Khanna, Vijay \(GE, Corporate, consultant\)
Hello,   We are using Ibatis 1.x along with JBoss cache. Now when the application is run in clustered environment and the Cache & session replication happens, we are getting an error from Ibatis. "java.io.NotSerializableException: com.ibatis.db.sqlmap.LazyLoadList" . I checked within the app

read/write cache does not work! session problem?

2006-08-23 Thread Uhlig, Stefan
Hello developers, I have a problem with iBatis 2.1.7 with cache models in read/write mode. It just does not work. I updated from 2.1.5 but the problem is still there. Read only Cache works perfect. The execution time of a complex statement speeds up dramatically after calling it once (with same p

Re: Unsubscribe?

2006-08-23 Thread al pivonka
Many thanks Al Pivonka(H)317.295.1737Those who say it can't be done,are usually interrupted by those doing it.- Original Message From: Jeff Butler <[EMAIL PROTECTED]>To: user-java@ibatis.apache.org; al pivonka <[EMAIL PROTECTED]>Sent: Wednesday, August 23, 2006 9:36:09 AMSubject: Re: Unsubs

Re: Unsubscribe?

2006-08-23 Thread Michael Campbell
Your question's been answered already on the list, but just as a point of reference, *IN GENRAL*, mailing lists provide a header in every mail about various administrative functions. Headers in these ibatis mails include: List-Help: List-Unsubscribe:

Re: Unsubscribe?

2006-08-23 Thread Jeff Butler
I've just added unsibscribe info to the mailing lists page here:   http://ibatis.apache.org/mailinglists.html  Jeff Butler   On 8/23/06, al pivonka <[EMAIL PROTECTED]> wrote: How does one unsubscribe from this list, I don't have time right now to read all of this.  Al Pivonka(H)317.295.1737Those

How can I obtain a java.sql.Connection

2006-08-23 Thread Dieresis
For a large chunk of legacy code that I have no time to convert right now, I need to get a simple java.sql.Connection from iBATIS. However, I have been unable to find the method. Can anyone help? We use SqlMaps with iBATIS DAOs, version 2.2.0.

Re: Unsubscribe?

2006-08-23 Thread Clinton Begin
Nobody reads ALL of it.  ;-)Most people create mail rules that file mail into a dedicated folder.  That said, if you still prefer to unsubscribe, you can send an email to: [EMAIL PROTECTED]All of these are archived, so if you ever change your mind and want to read them all, they'll be here.  :-)Che

Re: JUnit and iBatis

2006-08-23 Thread Juanjo Cuadrado
I have seen the light!!!   A lot of thanks   ... and sorry for me English  2006/8/23, Gwyn Evans <[EMAIL PROTECTED]>: Basics of Mocks...http://www.martinfowler.com/articles/mocksArentStubs.html andhttp://www.devx.com/Java/Article/22599See http://www.easymock.org/ and http://www.jmock.org/

Unsubscribe?

2006-08-23 Thread al pivonka
How does one unsubscribe from this list, I don't have time right now to read all of this. Al Pivonka(H)317.295.1737Those who say it can't be done,are usually interrupted by those doing it.- Original Message From: Chema <[EMAIL PROTECTED]>To: user-java@ibatis.apache.orgSent: Wednesday, Augus

Distinguish null and not null parameters

2006-08-23 Thread Chema
Hello:I like to compose the next query     SELECT ID FROM  TABLE    WHERE             AND FIELD1 = #field1#                 AND FIELD1 IS NULL     Is there another better way to distinguish null and not null parameters ?With only one parameter is not problem like in the previous example  , but r

Re: JUnit and iBatis

2006-08-23 Thread Gwyn Evans
Basics of Mocks... http://www.martinfowler.com/articles/mocksArentStubs.html and http://www.devx.com/Java/Article/22599 See http://www.easymock.org/ and http://www.jmock.org/ for two popular libraries. /Gwyn On 23/08/06, Juanjo Cuadrado <[EMAIL PROTECTED]> wrote: my own code... I have been

RE: ---- Re: null pointer exception when updating sqlMap

2006-08-23 Thread Sourav Sen
Thanx Nathan. That worked. I mean using :#DATE# in the update mapping worked. -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: 22 August 2006 16:48 To: user-java@ibatis.apache.org Subject: Re: Re: null pointer exception when updating sqlMap Do what I told you a

Re: JUnit and iBatis

2006-08-23 Thread Juanjo Cuadrado
my own code...      I have been looking the example JPetStore, but I don't understand it totally probably, my level it isn't sufficient to understand it   I need to do unit tests with the classes that I did with the framework of ibatis... but I don't know where I have to start...   I need