java.lang.IllegalStateException: cannot change the configuration while the transaction manager is running

Stack Overflow | Ivano Scifoni | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Configuring bitronix transaction manager on spring boot to connect oracle db

    Stack Overflow | 7 months ago | Ivano Scifoni
    java.lang.IllegalStateException: cannot change the configuration while the transaction manager is running

    Root Cause Analysis

    1. java.lang.IllegalStateException

      cannot change the configuration while the transaction manager is running

      at bitronix.tm.Configuration.checkNotStarted()
    2. Bitronix Transaction Manager :: Core
      Configuration.setLogPart1Filename
      1. bitronix.tm.Configuration.checkNotStarted(Configuration.java:699)[btm-2.1.4.jar:2.1.4]
      2. bitronix.tm.Configuration.setLogPart1Filename(Configuration.java:166)[btm-2.1.4.jar:2.1.4]
      2 frames
    3. org.springframework.boot
      BitronixJtaConfiguration$$EnhancerBySpringCGLIB$$a487082a$$FastClassBySpringCGLIB$$c66fa53d.invoke
      1. org.springframework.boot.autoconfigure.transaction.jta.BitronixJtaConfiguration.bitronixConfiguration(BitronixJtaConfiguration.java:69)[spring-boot-autoconfigure-1.3.7.RELEASE.jar:1.3.7.RELEASE]
      2. org.springframework.boot.autoconfigure.transaction.jta.BitronixJtaConfiguration$$EnhancerBySpringCGLIB$$a487082a.CGLIB$bitronixConfiguration$1(<generated>)[spring-boot-autoconfigure-1.3.7.RELEASE.jar:1.3.7.RELEASE]
      3. org.springframework.boot.autoconfigure.transaction.jta.BitronixJtaConfiguration$$EnhancerBySpringCGLIB$$a487082a$$FastClassBySpringCGLIB$$c66fa53d.invoke(<generated>)[spring-boot-autoconfigure-1.3.7.RELEASE.jar:1.3.7.RELEASE]
      3 frames
    4. Spring Core
      MethodProxy.invokeSuper
      1. org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)[spring-core-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      1 frame
    5. Spring Context
      ConfigurationClassEnhancer$BeanMethodInterceptor.intercept
      1. org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:355)[spring-context-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      1 frame
    6. org.springframework.boot
      BitronixJtaConfiguration$$EnhancerBySpringCGLIB$$a487082a.bitronixConfiguration
      1. org.springframework.boot.autoconfigure.transaction.jta.BitronixJtaConfiguration$$EnhancerBySpringCGLIB$$a487082a.bitronixConfiguration(<generated>)[spring-boot-autoconfigure-1.3.7.RELEASE.jar:1.3.7.RELEASE]
      1 frame
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_77]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_77]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_77]
      4. java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_77]
      4 frames
    8. Spring Beans
      SimpleInstantiationStrategy.instantiate
      1. org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      1 frame