I had similar issues with MySQL 5.0.51, and I fixed them by using the 
latest MySQL JDBC Driver (J/Connector 5).

To use the latest JDBC driver, you can either:
 - Make sure to remove the mysql-connector-java-3.1.13-bin.jar under the 
lib directory, and replace it with mysql-connector-java-5.1.5-bin.jar.
 - Or get the latest from mifos trunk in SVN (with has the updated JDBC 
driver)

Note, if you are already using MySQL J/Connector 5, then I suggest doing 
what Adam mentions below (share your in-work code changes as a patch so 
someone can look at reproducing the problem).

Cheers
Chico




Adam Monsen <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
03/10/2008 06:37 PM
Please respond to
Developer <[email protected]>


To
Mifos Developer Mailing List <[email protected]>
cc

Subject
Re: [Mifos-developer] MIFOS test cases failing on local machine






On Sat, 2008-03-08 at 13:08 -0500, Shah, Aditya S. wrote:
> I am having trouble with my mifos installation on my local Windows
> machine. When I try to build mifos using Ant from within Eclipse, I
> get a no. of errors (1349) and failures(136) giving a success rate of
> only 43%. I have tried to remove everything and install everything
> from scratch, but that too does not help. I am using MySql 5.0.51.
> However, when I run the WAR file from within Tomcat, the application
> runs fine.

I'm not exactly sure what the problem is.

* are you using the "run_test" Ant target? (if not, please try it)
* is your Subversion working copy up-to-date? As of right now, the
latest revision is 12453.

If this doesn't get us any closer to a solution, perhaps you wouldn't
mind sharing your in-work code changes as a patch. It's okay if the unit
tests don't pass, but perhaps someone would have time to try and repro
the unit test failures.

This error looks particularly interesting:
"MysqlDataTruncation: Data truncation: Data truncated for column
'CREATED_DATE' at row 1"

Not sure if this is related, but we recently upgraded the MySQL JDBC
driver (client library) from 3.1.13 to 5.1.5. If you have time, it might
be worth looking into the section titled "Datetime" on this page:
http://tinyurl.com/yncwk8

Another thought... this error: "null id in entry" makes me wonder if you
might be working with a detached Hibernate entity (non-persisted,
non-initialized Hibernate entity outside of a session). I'm not sure if
my terminology is correct.

-- 
Adam Monsen


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

Reply via email to