Hi,
we have post function scripts which transition sub-tasks and parent tasks, assign sub-tasks depending on the parent status etc. At times I get the following error:
Finalizer ERROR [jdbc.interceptors.connection.SafeDelegatingSqlConnectionInterceptor] Unexpected exception from SQL connection interceptor callback: onConnectionReplaced([DelegatingConnectionImpl[connectionPoolInfo=ConnectionPoolInfo{maxSize=20, minSize=20, initialSize=null, maxIdle=20, maxWait=30000, sleepTime=300000, lifeTime=600000, deadLockMaxWait=600000, deadLockRetryWait=10000, validationQuery='select 1', minEvictableTimeMillis=60000, timeBetweenEvictionRunsMillis=300000, poolPreparedStatements=null, testOnBorrow=null, testOnReturn=null, testWhileIdle=true, maxOpenPreparedStatements=null, numTestsPerEvictionRun=null, removeAbandonedTimeout=300, validationQueryTimeout=3, defaultCatalog=null},sqlConnectionInterceptor=org.ofbiz.core.entity.jdbc.interceptors.connection.SafeDelegatingSqlConnectionInterceptor@1910c771], ConnectionPoolStateImpl[timeToBorrowNanos=0,borrowCount=-561,connectionPoolInfo=ConnectionPoolInfo{maxSize=20, minSize=20, initialSize=null, maxIdle=20, maxWait=30000, sleepTime=300000, lifeTime=600000, deadLockMaxWait=600000, deadLockRetryWait=10000, validationQuery='select 1', minEvictableTimeMillis=60000, timeBetweenEvictionRunsMillis=300000, poolPreparedStatements=null, testOnBorrow=null, testOnReturn=null, testWhileIdle=true, maxOpenPreparedStatements=null, numTestsPerEvictionRun=null, removeAbandonedTimeout=300, validationQueryTimeout=3, defaultCatalog=null}]])
java.lang.IllegalStateException: The OpTimer has been re-used. end() can only be called once!
at com.atlassian.instrumentation.operations.SimpleOpTimer.end(SimpleOpTimer.java:142)
at com.atlassian.instrumentation.operations.SimpleOpTimer.end(SimpleOpTimer.java:99)
at com.atlassian.instrumentation.operations.SimpleOpTimer.end(SimpleOpTimer.java:117)
at com.atlassian.jira.ofbiz.InstrumentedSQLInterceptor.onConnectionReplaced(InstrumentedSQLInterceptor.java:39)
Especially if my script has to assign a sub task depending on the parent status, I get the above error.
Can someone help me with this please?
thanks