-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: mysql can't create/write to file - caused by hibernate?
PostPosted: Thu Jan 14, 2010 12:44 pm 
Newbie

Joined: Thu Jan 07, 2010 1:04 pm
Posts: 1
I was using Spring/JPA/Eclipselink with MySql and I never experienced any problems starting up my application in Tomcat.
Then I switched to Spring/JPA/Hibernate. Eclipselink to Hibernate was the only change (confirmed). Now, when my application starts up in Tomcat, I intermittently get this error message:

Caused by: java.sql.SQLException: Can't create/write to file 'C:\tools\MySQL\MySQL Server 5.0\temp\#sql_da0_0.MYD' (Errcode: 13)

Most forum posts ( google, hibernate, mysql, javaranch... all sorts of forums ) on this issue say it has to do with your antivirus program and if you just disable it, or configure it to allow mysql access to the temp dir, then the problem is solved. However, I do not have any antivirus program running, never have. And the fact that it was working fine without *ever* having any problems when using Eclipselink, and only experiencing the problem as soon as I switched to hibernate, leads me to believe that hibernate is doing something differently upon startup.

Has anyone seen this and traced the root cause to hibernate? What are some of the things that hibernate does differently than Eclipselink on application startup?

My Environment:
WinXP Pro (dev env; production will be RHE5 -- i am only seeing this in dev. we have not deployed to production yet)
Mysql 5.0.83
Mysql-connector-java-5.1.6
Hibernate 3.2.7.ga
Spring 2.5.6.SEC01
Java 1.6.0_16


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.