Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.UnsupportedOperationException: Manual close is not allowed over a Spring managed SqlSession #9

Closed
mallim opened this issue Dec 1, 2015 · 6 comments

Comments

@mallim
Copy link
Contributor

mallim commented Dec 1, 2015

The following warning message is observe upon shutting down:

2015-12-01 13:57:04.115  WARN 17396 --- [       Thread-4] o.s.b.f.support.DisposableBeanAdapter    : Invocation of destroy method 'close' failed on bean with name 'sqlSessionTemplate': java.lang.UnsupportedOperationException: Manual close is not allowed over a Spring managed SqlSession
13:57:04 WARN  o.s.b.f.s.DisposableBeanAdapter - Invocation of destroy method 'close' failed on bean with name 'sqlSessionTemplate': java.lang.UnsupportedOperationException: Manual close is not allowed over a Spring managed SqlSession
@s17t
Copy link

s17t commented Dec 11, 2015

Confirm this.

@mallim
Copy link
Contributor Author

mallim commented Dec 12, 2015

@s17t do you mean you also have the same problem? Or will let me to provide more details to confirm this ...

@mallim
Copy link
Contributor Author

mallim commented Dec 12, 2015

After further digging, I just realised that there is an open issue in mybatis/spring#77. Is it possible to have a flag, to indicate whether we want to create SqlSessionTemplate? E.g.

mybatis.createSqlSessionTemplate = false

Thanks

@s17t
Copy link

s17t commented Dec 12, 2015

I have this little issue too.

@mmaquevice
Copy link

+1

@eddumelendez
Copy link
Member

Fixed 990b3e3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants