[IU 2023.2] FileNotFoundException thrown in SqlSessionFactoryBean for MyBatis

Answered

I'm using "RefreshableSqlSessionFactoryBean" for MyBatis. However, a file Not found exception occurs that did not appear before.

OS: windows 10, Windows 11
JDK: Zulu 1.8.0.382
Tomcat: 9.0.78
Spring: 5.3.19
mybatis: 3.5.11

* RefreshableSqlSessionFactoryBean is a class implemented by inheriting org.mybatis.spring.SqlSessionFactoryBean to apply immediately when xml file is changed. (ex: https://zzang9iu.tistory.com/29 )

* In "IU 2023.1.5" it works fine. So it is failing to upgrade to "IU 2023.2".

[image: error log]

 

 

0
7 comments

Hello,

What plugin do you use for MyBatis support?

0

I use Maven and no other plugins.
I do not use any additional plugins for MyBatis.
Additional installed plugins for the current IDE include "Jakarta EE".

0

Could you please provide information from "Help | About" (click on Copy and paste data here)?

0

Help | About Data

==========================================

IntelliJ IDEA 2023.2 (Ultimate Edition)
Build #IU-232.8660.185, built on July 26, 2023
Licensed to KI HWA YANG
You have a perpetual fallback license for this version.
Subscription is active until August 2, 2025.
Runtime version: 17.0.7+7-b1000.6 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 2
Registry:
    ide.experimental.ui=true

Non-Bundled Plugins:
    com.jetbrains.jax.ws (232.8660.142)
    org.jetbrains.plugins.docker.gateway (232.8660.202)

Kotlin: 232-1.9.0-IJ8660.185

0

Am I got it right that you got this error while execution on Tomcat server? Do you use the same Tomcat version in previous IDE version? Is it reproducible with some sample project?

0

I finally found the cause of this problem.

I updated from "IU 2023.1.5" to "IU 2023.2" using the "Update" menu.

It looked normal, so I thought there was no problem.

But when I started "Tomcat" in "IU 2023.2" I got an error.


While checking the "Windows Defender Firewall" settings today,

I confirmed that "IU 2023.1.5" is present in "Allow apps to communicate with Windows Defender Firewall", but "IU 2023.2" is not.

I tried adding the "IU 2023.2" app to "Windows Defender Firewall".

Then no error occurred.


I remember asking if I wanted to add it to the "Windows Defender Firewall" the first time Tomcat ran it after the upgrade, but this time it didn't seem to have anything like that.  o(T^T)o

Anyway, I'm happy to be able to use "IU 2023.2" now.


Thanks to "Yaroslav Bedrov" for help in many ways. (^0^)b

0

Thanks for the information!

Feel free to contact us if you need any assistance.

0

Please sign in to leave a comment.