org.springframework.core.ConstantException: Field 'PROPAGATION_' not found in class [org.springframework.transaction.TransactionDefinition]

Spring JIRA | Gunnar Wagenknecht | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    The following exception is thrown when configuring an advice using the following snippet. Note that the snippet was taken nearly unmodified from the documentation. <!-- Transactional advice --> <tx:advice id="txAdvice" transaction-manager="transactionManager"> <tx:attributes> <!-- all methods starting with 'find' are read-only --> <tx:method name="find*" read-only="true" /> <!-- other methods use the default transaction settings --> <tx:method name="*" /> </tx:attributes> </tx:advice> org.springframework.core.ConstantException: Field 'PROPAGATION_' not found in class [org.springframework.transaction.TransactionDefinition] at org.springframework.core.Constants.asObject(Constants.java:142) at org.springframework.core.Constants.asNumber(Constants.java:113) at org.springframework.transaction.support.DefaultTransactionDefinition.setPropagationBehaviorName(DefaultTransactionDefinition.java:120) at org.springframework.transaction.config.TxAdviceBeanDefinitionParser.parseAttributes(TxAdviceBeanDefinitionParser.java:96) at org.springframework.transaction.config.TxAdviceBeanDefinitionParser.doParse(TxAdviceBeanDefinitionParser.java:77) at org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser.parseInternal(AbstractSingleBeanDefinitionParser.java:35) at org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.parse(AbstractBeanDefinitionParser.java:45) at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:78) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1084) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:140) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:93) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:486) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:386) ... 42 more

    Spring JIRA | 1 decade ago | Gunnar Wagenknecht
    org.springframework.core.ConstantException: Field 'PROPAGATION_' not found in class [org.springframework.transaction.TransactionDefinition]
  2. 0

    The following exception is thrown when configuring an advice using the following snippet. Note that the snippet was taken nearly unmodified from the documentation. <!-- Transactional advice --> <tx:advice id="txAdvice" transaction-manager="transactionManager"> <tx:attributes> <!-- all methods starting with 'find' are read-only --> <tx:method name="find*" read-only="true" /> <!-- other methods use the default transaction settings --> <tx:method name="*" /> </tx:attributes> </tx:advice> org.springframework.core.ConstantException: Field 'PROPAGATION_' not found in class [org.springframework.transaction.TransactionDefinition] at org.springframework.core.Constants.asObject(Constants.java:142) at org.springframework.core.Constants.asNumber(Constants.java:113) at org.springframework.transaction.support.DefaultTransactionDefinition.setPropagationBehaviorName(DefaultTransactionDefinition.java:120) at org.springframework.transaction.config.TxAdviceBeanDefinitionParser.parseAttributes(TxAdviceBeanDefinitionParser.java:96) at org.springframework.transaction.config.TxAdviceBeanDefinitionParser.doParse(TxAdviceBeanDefinitionParser.java:77) at org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser.parseInternal(AbstractSingleBeanDefinitionParser.java:35) at org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.parse(AbstractBeanDefinitionParser.java:45) at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:78) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1084) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:140) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:93) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:486) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:386) ... 42 more

    Spring JIRA | 1 decade ago | Gunnar Wagenknecht
    org.springframework.core.ConstantException: Field 'PROPAGATION_' not found in class [org.springframework.transaction.TransactionDefinition]

    Root Cause Analysis

    1. org.springframework.core.ConstantException

      Field 'PROPAGATION_' not found in class [org.springframework.transaction.TransactionDefinition]

      at org.springframework.core.Constants.asObject()
    2. Spring Core
      Constants.asNumber
      1. org.springframework.core.Constants.asObject(Constants.java:142)
      2. org.springframework.core.Constants.asNumber(Constants.java:113)
      2 frames
    3. Spring Tx
      TxAdviceBeanDefinitionParser.doParse
      1. org.springframework.transaction.support.DefaultTransactionDefinition.setPropagationBehaviorName(DefaultTransactionDefinition.java:120)
      2. org.springframework.transaction.config.TxAdviceBeanDefinitionParser.parseAttributes(TxAdviceBeanDefinitionParser.java:96)
      3. org.springframework.transaction.config.TxAdviceBeanDefinitionParser.doParse(TxAdviceBeanDefinitionParser.java:77)
      3 frames
    4. Spring Beans
      XmlBeanDefinitionReader.doLoadBeanDefinitions
      1. org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser.parseInternal(AbstractSingleBeanDefinitionParser.java:35)
      2. org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.parse(AbstractBeanDefinitionParser.java:45)
      3. org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:78)
      4. org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1084)
      5. org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:140)
      6. org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:93)
      7. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:486)
      8. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:386)
      8 frames