# Fixtures in Jruby Mysql

**URL:** <https://www.ruby-forum.com/t/fixtures-in-jruby-mysql/135367>\
**Category:** RSpec\
**Created:** [April 21, 2008, 4:47pm UTC](https://www.ruby-forum.com/t/fixtures-in-jruby-mysql/135367 "2008-04-21T16:47:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thijs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/a4c791/32.png) [@thijs](https://www.ruby-forum.com/u/thijs)\
**Post date:** [April 21, 2008, 4:47pm UTC](https://www.ruby-forum.com/t/fixtures-in-jruby-mysql/135367/1 "2008-04-21T16:47:44Z")

</div>

Hi,

I’ve been developing a Rails frontend to a Java backend which is working  
great. I’m running into trouble now that I’m adding a few models though.

All specs that use fixtures fail. Jruby gives this error message in the  
Rspec version of two weeks ago:

java.sql.SQLException: Can’t call rollback when autocommit=true

I’ve just now updated to the newest CURRENT version of Rspec and the  
specs now fail silently. I can only assume it’s still the same problem  
:-).

I’ve tried adding ?autoCommit=false to the Jdbc url and I’ve set  
config.use\_transactional\_fixtures to false. Neither of these changes  
seem to have any effect. There seems to be extremely little information  
available about this issue through Google.

Does anybody have any ideas?

Thijs

---

<div class="post-metadata">

**Author:** ![thijs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/a4c791/32.png) [@thijs](https://www.ruby-forum.com/u/thijs)\
**Post date:** [April 21, 2008, 5:30pm UTC](https://www.ruby-forum.com/t/fixtures-in-jruby-mysql/135367/2 "2008-04-21T17:30:05Z")

</div>

I just realized I made a mistake in the description of the problem. The  
specs don’t fail, but crash. Nothing after the fixtures line in the spec  
is executed.
