java.lang.reflect.UndeclaredThrowableException

Atlassian JIRA | Sultan Maiyaki [Atlassian] | 5 years 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

    This is a bug that am not able to reproduce locally but about three users reported this issue recently where Bamboo throws some PostChainAction error whenever a build fails. The symptoms are all same where the issue is replicated upon upgrade to Bamboo 4.2.x with Oracle database. The following appears in the logs: {code} System Error Details Build MAR DataProduction - CartridgeMaker v13 CI 200 : PostChainAction (java.lang.reflect.UndeclaredThrowableException : ) Occurrences: 6 First Occurred: 27 Jul 2012, 3:08:13 AM Last Occurred: 30 Jul 2012, 5:07:17 PM java.lang.reflect.UndeclaredThrowableException at $Proxy652.prepareStatement(Unknown Source) at sun.reflect.GeneratedMethodAccessor2312.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at net.java.ao.DelegateConnectionHandler.delegate(DelegateConnectionHandler.java:94) at net.java.ao.DelegateConnectionHandler.invoke(DelegateConnectionHandler.java:62) at $Proxy653.prepareStatement(Unknown Source) at net.java.ao.db.OracleDatabaseProvider.executeInsertReturningKey(OracleDatabaseProvider.java:270) at net.java.ao.DatabaseProvider.insertReturningKey(DatabaseProvider.java:1916) at net.java.ao.EntityManager.create(EntityManager.java:460) at com.atlassian.activeobjects.internal.EntityManagedActiveObjects.create(EntityManagedActiveObjects.java:89) at com.atlassian.activeobjects.osgi.DelegatingActiveObjects.create(DelegatingActiveObjects.java:56) at sun.reflect.GeneratedMethodAccessor2311.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58) at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56) at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) at {code} {code} Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor2313.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.activeobjects.spi.ConnectionHandler.delegate(ConnectionHandler.java:42) at com.atlassian.activeobjects.spi.ConnectionHandler.invoke(ConnectionHandler.java:37) ... 159 more Caused by: java.sql.SQLException: Unsupported feature at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227) at oracle.jdbc.driver.DatabaseError.throwUnsupportedFeatureSqlException(DatabaseError.java:537) at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:3091) at com.mchange.v2.c3p0.impl.NewProxyConnection.prepareStatement(NewProxyConnection.java:155) {code} This seems similar to the [Greenhopper bug|https://jira.atlassian.com/browse/GHS-3916] report which was traced back to AO. The *workaround* at the moment is to disable the *Broken Build Responsibility Tracker*, the only plugin that uses the active object framework for persisting data

    Atlassian JIRA | 5 years ago | Sultan Maiyaki [Atlassian]
    java.lang.reflect.UndeclaredThrowableException
  2. 0

    This is a bug that am not able to reproduce locally but about three users reported this issue recently where Bamboo throws some PostChainAction error whenever a build fails. The symptoms are all same where the issue is replicated upon upgrade to Bamboo 4.2.x with Oracle database. The following appears in the logs: {code} System Error Details Build MAR DataProduction - CartridgeMaker v13 CI 200 : PostChainAction (java.lang.reflect.UndeclaredThrowableException : ) Occurrences: 6 First Occurred: 27 Jul 2012, 3:08:13 AM Last Occurred: 30 Jul 2012, 5:07:17 PM java.lang.reflect.UndeclaredThrowableException at $Proxy652.prepareStatement(Unknown Source) at sun.reflect.GeneratedMethodAccessor2312.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at net.java.ao.DelegateConnectionHandler.delegate(DelegateConnectionHandler.java:94) at net.java.ao.DelegateConnectionHandler.invoke(DelegateConnectionHandler.java:62) at $Proxy653.prepareStatement(Unknown Source) at net.java.ao.db.OracleDatabaseProvider.executeInsertReturningKey(OracleDatabaseProvider.java:270) at net.java.ao.DatabaseProvider.insertReturningKey(DatabaseProvider.java:1916) at net.java.ao.EntityManager.create(EntityManager.java:460) at com.atlassian.activeobjects.internal.EntityManagedActiveObjects.create(EntityManagedActiveObjects.java:89) at com.atlassian.activeobjects.osgi.DelegatingActiveObjects.create(DelegatingActiveObjects.java:56) at sun.reflect.GeneratedMethodAccessor2311.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58) at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56) at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) at {code} {code} Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor2313.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.activeobjects.spi.ConnectionHandler.delegate(ConnectionHandler.java:42) at com.atlassian.activeobjects.spi.ConnectionHandler.invoke(ConnectionHandler.java:37) ... 159 more Caused by: java.sql.SQLException: Unsupported feature at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227) at oracle.jdbc.driver.DatabaseError.throwUnsupportedFeatureSqlException(DatabaseError.java:537) at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:3091) at com.mchange.v2.c3p0.impl.NewProxyConnection.prepareStatement(NewProxyConnection.java:155) {code} This seems similar to the [Greenhopper bug|https://jira.atlassian.com/browse/GHS-3916] report which was traced back to AO. The *workaround* at the moment is to disable the *Broken Build Responsibility Tracker*, the only plugin that uses the active object framework for persisting data

    Atlassian JIRA | 5 years ago | Sultan Maiyaki [Atlassian]
    java.lang.reflect.UndeclaredThrowableException

    Root Cause Analysis

    1. java.lang.reflect.UndeclaredThrowableException

      No message provided

      at $Proxy652.prepareStatement()
    2. Unknown
      $Proxy652.prepareStatement
      1. $Proxy652.prepareStatement(Unknown Source)
      1 frame
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor2312.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    4. net.java.ao
      DelegateConnectionHandler.invoke
      1. net.java.ao.DelegateConnectionHandler.delegate(DelegateConnectionHandler.java:94)
      2. net.java.ao.DelegateConnectionHandler.invoke(DelegateConnectionHandler.java:62)
      2 frames
    5. Unknown
      $Proxy653.prepareStatement
      1. $Proxy653.prepareStatement(Unknown Source)
      1 frame
    6. net.java.ao
      EntityManager.create
      1. net.java.ao.db.OracleDatabaseProvider.executeInsertReturningKey(OracleDatabaseProvider.java:270)
      2. net.java.ao.DatabaseProvider.insertReturningKey(DatabaseProvider.java:1916)
      3. net.java.ao.EntityManager.create(EntityManager.java:460)
      3 frames
    7. com.atlassian.activeobjects
      DelegatingActiveObjects.create
      1. com.atlassian.activeobjects.internal.EntityManagedActiveObjects.create(EntityManagedActiveObjects.java:89)
      2. com.atlassian.activeobjects.osgi.DelegatingActiveObjects.create(DelegatingActiveObjects.java:56)
      2 frames
    8. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor2311.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    9. Spring AOP
      AopUtils.invokeJoinpointUsingReflection
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      1 frame
    10. Spring OSGi Core
      ServiceInvoker.invoke
      1. org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
      2. org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
      2 frames
    11. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
      3. org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
      4. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      4 frames
    12. Spring OSGi Core
      ServiceTCCLInterceptor.invoke
      1. org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56)
      2. org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)
      2 frames
    13. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      1 frame
    14. Spring OSGi Core
      LocalBundleContextAdvice.invoke
      1. org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
      1 frame
    15. Spring AOP
      DelegatingIntroductionInterceptor.doProceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
      2 frames