I have the following setup:
Wildfly 10.1.0 with modeshape 5.2. The setup is done in the standalone.xml file. Modeshape uses both file based storage for persistence and binary.
The setup seems to be working fine. I am able to read from and write to the repository.
I use the git connector from Modeshape to read files from a git repository. This works fine for small files but for big files this is failing with the following error:
Caused by: org.modeshape.persistence.file.FileProviderException: An active transaction is required, but wasn't detected
It makes no difference if I run the code that reads from Modeshape through a JEE session bean with transaction or one without a transaction I always get the same exception. As far as I know Modeshape should be creating his own transaction when non is found or use the existing one from an EJB when found.
What I have seen in the source from the git connector is that it handles huge files differently from small files. Line 230 found here:
I haven't found out what he considers a huge file and what not. So far I have had it working with a 46MB file but not with a 126MB file.
I haven't yet found out why it isn't opening a new transaction when non is found. Is there some way that I can create a transaction for Modeshape that it will recognize?
Did somebody else run into the same exception?