You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Brent Daniel (JIRA)" <tu...@ws.apache.org> on 2006/03/30 19:50:31 UTC
[jira] Created: (TUSCANY-143) Intermittent problem with connections
Intermittent problem with connections
-------------------------------------
Key: TUSCANY-143
URL: http://issues.apache.org/jira/browse/TUSCANY-143
Project: Tuscany
Type: Bug
Components: Java DAS RDB
Reporter: Brent Daniel
>From time to time I am getting the exception listed below. It seems to be related to the releaseResources() function added recently.
java.lang.RuntimeException: SQL Exception: No current connection.
at org.apache.tuscany.das.rdb.impl.ConnectionImpl.errorCleanUp(ConnectionImpl.java:69)
at org.apache.tuscany.das.rdb.impl.ApplyChangesCommandImpl.execute(ApplyChangesCommandImpl.java:134)
at org.apache.tuscany.das.rdb.test.BestPracticeTests.testddDepartmentToFirstCompany(BestPracticeTests.java:81)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: SQL Exception: No current connection.
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.noCurrentConnection(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.setupContextStack(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.rollback(Unknown Source)
at org.apache.tuscany.das.rdb.impl.ConnectionImpl.errorCleanUp(ConnectionImpl.java:66)
... 15 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Assigned: (TUSCANY-143) Intermittent problem with
connections
Posted by "Kevin Williams (JIRA)" <tu...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/TUSCANY-143?page=all ]
Kevin Williams reassigned TUSCANY-143:
--------------------------------------
Assign To: Kevin Williams
> Intermittent problem with connections
> -------------------------------------
>
> Key: TUSCANY-143
> URL: http://issues.apache.org/jira/browse/TUSCANY-143
> Project: Tuscany
> Type: Bug
> Components: Java DAS RDB
> Reporter: Brent Daniel
> Assignee: Kevin Williams
>
> From time to time I am getting the exception listed below. It seems to be related to the releaseResources() function added recently.
> java.lang.RuntimeException: SQL Exception: No current connection.
> at org.apache.tuscany.das.rdb.impl.ConnectionImpl.errorCleanUp(ConnectionImpl.java:69)
> at org.apache.tuscany.das.rdb.impl.ApplyChangesCommandImpl.execute(ApplyChangesCommandImpl.java:134)
> at org.apache.tuscany.das.rdb.test.BestPracticeTests.testddDepartmentToFirstCompany(BestPracticeTests.java:81)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:615)
> at junit.framework.TestCase.runTest(TestCase.java:154)
> at junit.framework.TestCase.runBare(TestCase.java:127)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
> Caused by: SQL Exception: No current connection.
> at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
> at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
> at org.apache.derby.impl.jdbc.Util.noCurrentConnection(Unknown Source)
> at org.apache.derby.impl.jdbc.EmbedConnection.setupContextStack(Unknown Source)
> at org.apache.derby.impl.jdbc.EmbedConnection.rollback(Unknown Source)
> at org.apache.tuscany.das.rdb.impl.ConnectionImpl.errorCleanUp(ConnectionImpl.java:66)
> ... 15 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Resolved: (TUSCANY-143) Intermittent problem with
connections
Posted by "Kevin Williams (JIRA)" <tu...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/TUSCANY-143?page=all ]
Kevin Williams resolved TUSCANY-143:
------------------------------------
Resolution: Fixed
It was a mistake to add a call to releaseResources from the finalize method in CommandGroup. As Brent pointed out, it is possible for a CommandGroup instance to be GC'd while the Commands it created are still in use.
> Intermittent problem with connections
> -------------------------------------
>
> Key: TUSCANY-143
> URL: http://issues.apache.org/jira/browse/TUSCANY-143
> Project: Tuscany
> Type: Bug
> Components: Java DAS RDB
> Reporter: Brent Daniel
> Assignee: Kevin Williams
>
> From time to time I am getting the exception listed below. It seems to be related to the releaseResources() function added recently.
> java.lang.RuntimeException: SQL Exception: No current connection.
> at org.apache.tuscany.das.rdb.impl.ConnectionImpl.errorCleanUp(ConnectionImpl.java:69)
> at org.apache.tuscany.das.rdb.impl.ApplyChangesCommandImpl.execute(ApplyChangesCommandImpl.java:134)
> at org.apache.tuscany.das.rdb.test.BestPracticeTests.testddDepartmentToFirstCompany(BestPracticeTests.java:81)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:615)
> at junit.framework.TestCase.runTest(TestCase.java:154)
> at junit.framework.TestCase.runBare(TestCase.java:127)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
> Caused by: SQL Exception: No current connection.
> at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
> at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
> at org.apache.derby.impl.jdbc.Util.noCurrentConnection(Unknown Source)
> at org.apache.derby.impl.jdbc.EmbedConnection.setupContextStack(Unknown Source)
> at org.apache.derby.impl.jdbc.EmbedConnection.rollback(Unknown Source)
> at org.apache.tuscany.das.rdb.impl.ConnectionImpl.errorCleanUp(ConnectionImpl.java:66)
> ... 15 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Closed: (TUSCANY-143) Intermittent problem with connections
Posted by "Kevin Williams (JIRA)" <tu...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/TUSCANY-143?page=all ]
Kevin Williams closed TUSCANY-143:
----------------------------------
Removed call to releaseResources in finalize method.
Verified on 392876
> Intermittent problem with connections
> -------------------------------------
>
> Key: TUSCANY-143
> URL: http://issues.apache.org/jira/browse/TUSCANY-143
> Project: Tuscany
> Type: Bug
> Components: Java DAS RDB
> Reporter: Brent Daniel
> Assignee: Kevin Williams
>
> From time to time I am getting the exception listed below. It seems to be related to the releaseResources() function added recently.
> java.lang.RuntimeException: SQL Exception: No current connection.
> at org.apache.tuscany.das.rdb.impl.ConnectionImpl.errorCleanUp(ConnectionImpl.java:69)
> at org.apache.tuscany.das.rdb.impl.ApplyChangesCommandImpl.execute(ApplyChangesCommandImpl.java:134)
> at org.apache.tuscany.das.rdb.test.BestPracticeTests.testddDepartmentToFirstCompany(BestPracticeTests.java:81)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:615)
> at junit.framework.TestCase.runTest(TestCase.java:154)
> at junit.framework.TestCase.runBare(TestCase.java:127)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
> Caused by: SQL Exception: No current connection.
> at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
> at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
> at org.apache.derby.impl.jdbc.Util.noCurrentConnection(Unknown Source)
> at org.apache.derby.impl.jdbc.EmbedConnection.setupContextStack(Unknown Source)
> at org.apache.derby.impl.jdbc.EmbedConnection.rollback(Unknown Source)
> at org.apache.tuscany.das.rdb.impl.ConnectionImpl.errorCleanUp(ConnectionImpl.java:66)
> ... 15 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira