Issues
- Could not locate Bitronix TransactionManagerHSEARCH-5225Resolved issue: HSEARCH-5225Olivier
- Add an alternative mass loading strategy that does not rely on identifier loadingHSEARCH-5209
- Manage Hibernate ORM exceptions thrown during mass indexing. Treat them in a global Failure Handler.HSEARCH-4541Resolved issue: HSEARCH-4541Marko Bekhta
- Customizable entity loading queries in mass indexerHSEARCH-4471
- No cleanup of threads, if an connection exception during mass indexation happensHSEARCH-4236Resolved issue: HSEARCH-4236Yoann Rodière
- Hibernate Search Indexing Speed DecreasingHSEARCH-4010Resolved issue: HSEARCH-4010Yoann Rodière
- Initialization options and APIsHSEARCH-3759Resolved issue: HSEARCH-3759Yoann Rodière
- Search 6 groundwork - Restore support for the massindexerHSEARCH-3268Resolved issue: HSEARCH-3268Fabio Massimo Ercoli
- Pass the number of entities to index to the monitor right from the startHSEARCH-2945Resolved issue: HSEARCH-2945Marko Bekhta
- Clarify that all methods of MassIndexerProgressMonitor are incrementalHSEARCH-2944Resolved issue: HSEARCH-2944Yoann Rodière
- MassIndexerProgressMonitor should consitently use long typesHSEARCH-2941Resolved issue: HSEARCH-2941Fabio Massimo Ercoli
- mapping set to strict, dynamic introduction of [members] withinHSEARCH-2760Resolved issue: HSEARCH-2760Yoann Rodière
- Massindexer FreezesHSEARCH-2702Resolved issue: HSEARCH-2702
- Return a CompletableFuture instead of a Future from MassIndexer.start()HSEARCH-2539Resolved issue: HSEARCH-2539Fabio Massimo Ercoli
- ERROR LogErrorHandler:67 - HSEARCH000058: HSEARCH000212: An exception occurred while the MassIndexer was transforming identifiers to Lucene DocumentsHSEARCH-2532Resolved issue: HSEARCH-2532
- Avoid fetching associated entity during mass indexing if possibleHSEARCH-2057Resolved issue: HSEARCH-2057Yoann Rodière
- @Facet on multi value field breaks indexing (be it for discrete or range faceting)HSEARCH-1929Resolved issue: HSEARCH-1929Yoann Rodière
- Fetch only fields needed for indexing during index buildHSEARCH-1813
- Extension Point for setting thread locals on mass indexer threadsHSEARCH-1809Resolved issue: HSEARCH-1809Marko Bekhta
- Reproduce transaction timeouts during mass indexingHSEARCH-1783Resolved issue: HSEARCH-1783Gunnar Morling
- Switch the Merge policy during MassindexingHSEARCH-1654
- MassIndexer not compatible with ORM multitenancyHSEARCH-1649Resolved issue: HSEARCH-1649Davide D'Alto
- Race condition in error reporting during MassIndexerHSEARCH-1562Resolved issue: HSEARCH-1562Sanne Grinovero
- java.lang.Object is not an indexed entity or a subclass of an indexed entityHSEARCH-1512Resolved issue: HSEARCH-1512
- Tune IndexWriter options to allow for highly concurrent usageHSEARCH-1508Resolved issue: HSEARCH-1508Sanne Grinovero
- Using MassIndexer leads to logged messages about unreleased service MassIndexerFactoryProviderHSEARCH-1495Resolved issue: HSEARCH-1495Sanne Grinovero
- MassIndexer needs to avoid being timed out by the TransactionManagerHSEARCH-1474Resolved issue: HSEARCH-1474Gunnar Morling
- Improve error message when MassIndexer invoked with 0 indexed entity typeHSEARCH-1453Resolved issue: HSEARCH-1453
- Investigate usage of container managed ExecutorService instancesHSEARCH-1439
- Specify session factory type more precisely in MassIndexerFactory#createMassIndexer()HSEARCH-1428Resolved issue: HSEARCH-1428Gunnar Morling
- Support for Sharding in MassIndexerHSEARCH-1426Resolved issue: HSEARCH-1426Yoann Rodière
- Add the ability to set the number of different root types indexed in parallelHSEARCH-1384Resolved issue: HSEARCH-1384Guillaume Smet
- Document parse failures need graceful recoveryHSEARCH-1354Resolved issue: HSEARCH-1354Hardy Ferentschik
- Add a configuration option to run the MassIndexer during the initialization phaseHSEARCH-1333Resolved issue: HSEARCH-1333Yoann Rodière
- Spodaric test failure: org.hibernate.search.test.batchindexing.MassIndexerErrorReportingTestHSEARCH-1278Resolved issue: HSEARCH-1278Sanne Grinovero
- MassIndexer freezes when pool size is too lowHSEARCH-1257Resolved issue: HSEARCH-1257
- Regression in the Mass indexer due to the fix for HSEARCH-1201HSEARCH-1240Resolved issue: HSEARCH-1240Guillaume Smet
- Apply JDBC fetch size hinting in the MassIndexerHSEARCH-1226Resolved issue: HSEARCH-1226Sanne Grinovero
- MassIndexer: @IndexEmbedded, lazy field and FieldBridge problemHSEARCH-1201Resolved issue: HSEARCH-1201Guillaume Smet
- Provide callback option to run after completion of MassIndexerHSEARCH-1105Resolved issue: HSEARCH-1105
- Remove threadsForIndexWriter option in MassIndexerHSEARCH-1046Resolved issue: HSEARCH-1046Sanne Grinovero
- Avoid frequent construction of a ContextualException2WayBridgeHSEARCH-1045Resolved issue: HSEARCH-1045Sanne Grinovero
- MassIndexer doesn't release Write Lock after completionHSEARCH-1038Resolved issue: HSEARCH-1038Sanne Grinovero
- MassIndexer with an update mechanismHSEARCH-1032
- Profile mass indexer to reduce number of index commitsHSEARCH-1019Resolved issue: HSEARCH-1019Sanne Grinovero
- Unlock at startup using SimpleFSLockFactoryHSEARCH-998Resolved issue: HSEARCH-998Yoann Rodière
- Expose option to set JDBC FetchSize in MassIndexerHSEARCH-987Resolved issue: HSEARCH-987Sanne Grinovero
- MassIndexer freezes when there is an indexed 'id' filed, which is not document's idHSEARCH-977Resolved issue: HSEARCH-977
- logWorkDone is not called anymore from Add- or UpdateWorkDelegateHSEARCH-966Resolved issue: HSEARCH-966Sanne Grinovero
- ClassCastException during creation of index: Hibernate (Search) assumes varchar entity field called "id" is an Integer but it isn'tHSEARCH-901Resolved issue: HSEARCH-901
Could not locate Bitronix TransactionManager
Description
Details
Assignee
OlivierOlivierReporter
OlivierOlivierLabels
Components
Affects versions
Priority
Major
Details
Details
Assignee
Reporter
Labels
Components
Affects versions
Priority
Activity
OlivierAugust 14, 2024 at 9:34 AM
i think i made a mistake .. i assign ticket to myselft when i try to close it … and now i appear in you planning..
Marko BekhtaAugust 14, 2024 at 7:57 AM
Glad you’ve figured it out!
Closing the ticket.
OlivierAugust 14, 2024 at 7:45 AM
i can’t close the ticket
OlivierAugust 14, 2024 at 7:44 AM
spring.jta.enabled= false does nothing.
there’s no dependencies which include bitronix.
org.hibernate.engine.transaction.jta.platform.spi.JtaPlatformException: Could not locate Bitronix TransactionManager
at org.hibernate.engine.transaction.jta.platform.internal.BitronixJtaPlatform.locateTransactionManager => spring want it..
maybe because i got this lib :
+--- org.ehcache:ehcache-transactions -> 3.10.8
| +--- org.ehcache:ehcache:3.10.8 (*)
| \--- javax.transaction:jta:[1.1,2) -> 1.1
finally it’s working with this gradle config :
for information, the bad one :
Thanks a lot for your help.
Marko BekhtaAugust 13, 2024 at 4:57 PM
hmm ok, I see… well apparently BitronixTransactionManager
comes from somewhere … you could try looking at the dependencies you have, e.g. with maven: mvn dependency:tree
to see if any of your dependencies bring the BitronixTransactionManager
and then eliminate it, or you could try disabling the JTA autoconfiguration in Spring (spring.jta.enabled=false
)
Bonjour,
i try to migrate to spring boot 3 and i got this error when i try massindexer :
2024-08-13 17:21:30.451 [Hibernate Search - Mass indexing - BonusIndividual - Entity loading - 1] ERROR o.h.s.e.r.i.LogFailureHandler - HSEARCH000058: Exception occurred org.hibernate.engine.transaction.jta.platform.spi.JtaPlatformException: Could not locate Bitronix TransactionManager
Failing operation:
Loading and extracting entity data for entity 'BonusIndividual' during mass indexing
org.hibernate.engine.transaction.jta.platform.spi.JtaPlatformException: Could not locate Bitronix TransactionManager
at org.hibernate.engine.transaction.jta.platform.internal.BitronixJtaPlatform.locateTransactionManager(BitronixJtaPlatform.java:30) ~[hibernate-core-6.2.30.Final.jar:6.2.30.Final]
at org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform.retrieveTransactionManager(AbstractJtaPlatform.java:87) ~[hibernate-core-6.2.30.Final.jar:6.2.30.Final]
at org.hibernate.search.mapper.orm.common.spi.TransactionHelper.<init>(TransactionHelper.java:45) ~[hibernate-search-mapper-orm-orm6-6.2.4.Final.jar:6.2.4.Final]
at org.hibernate.search.mapper.orm.loading.impl.HibernateOrmMassEntityLoader.<init>(HibernateOrmMassEntityLoader.java:36) ~[hibernate-search-mapper-orm-orm6-6.2.4.Final.jar:6.2.4.Final]
at org.hibernate.search.mapper.orm.massindexing.impl.HibernateOrmMassIndexingContext$HibernateOrmMassIndexingLoadingStrategy.createEntityLoader(HibernateOrmMassIndexingContext.java:210) ~[hibernate-search-mapper-orm-orm6-6.2.4.Final.jar:6.2.4.Final]
at org.hibernate.search.mapper.pojo.massindexing.impl.PojoMassIndexingEntityLoadingRunnable.runWithFailureHandler(PojoMassIndexingEntityLoadingRunnable.java:61) ~[hibernate-search-mapper-pojo-base-6.2.4.Final.jar:6.2.4.Final]
at org.hibernate.search.mapper.pojo.massindexing.impl.PojoMassIndexingFailureHandledRunnable.run(PojoMassIndexingFailureHandledRunnable.java:38) ~[hibernate-search-mapper-pojo-base-6.2.4.Final.jar:6.2.4.Final]
at org.hibernate.search.util.common.impl.CancellableExecutionCompletableFuture$CompletingRunnable.run(CancellableExecutionCompletableFuture.java:70) ~[hibernate-search-util-common-6.2.4.Final.jar:6.2.4.Final]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.lang.ClassCastException: class bitronix.tm.BitronixTransactionManager cannot be cast to class jakarta.transaction.TransactionManager (bitronix.tm.BitronixTransactionManager and jakarta.transaction.TransactionManager are in unnamed module of loader 'app')
at org.hibernate.engine.transaction.jta.platform.internal.BitronixJtaPlatform.locateTransactionManager(BitronixJtaPlatform.java:27) ~[hibernate-core-6.2.30.Final.jar:6.2.30.Final]
... 12 more
I searched everywhere to find a way to prevent them from using JTA. (Unless it has become mandatory, but I haven't seen anything like that in the documentation.)
i don’t understand why it’s not working.
i use :
Spring boot
3.2.8
hibernate 6.2.30.Final
hibernateSearch 6.2.4.Final
(all i goot with 6.1.8.Final + hibernate 5.6.15 + spring boot 2.7.18)
config :