[
https://issues.apache.org/jira/browse/OFBIZ-6218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14383647#comment-14383647
]
Adrian Crum commented on OFBIZ-6218:
------------------------------------
{code}
2015-03-27 10:43:12,491 |main |EntityListIterator
|W| Exception thrown while calling ResultSet.next():
java.sql.SQLException: ResultSet not open. Operation 'next' not permitted.
Verify that autocommit is off.
at
org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
~[derby-10.11.1.1.jar:?]
at
org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
~[derby-10.11.1.1.jar:?]
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown
Source) ~[derby-10.11.1.1.jar:?]
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown
Source) ~[derby-10.11.1.1.jar:?]
at org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(Unknown
Source) ~[derby-10.11.1.1.jar:?]
at org.apache.derby.impl.jdbc.ConnectionChild.newSQLException(Unknown
Source) ~[derby-10.11.1.1.jar:?]
at org.apache.derby.impl.jdbc.EmbedResultSet.checkIfClosed(Unknown
Source) ~[derby-10.11.1.1.jar:?]
at org.apache.derby.impl.jdbc.EmbedResultSet.checkExecIfClosed(Unknown
Source) ~[derby-10.11.1.1.jar:?]
at org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(Unknown
Source) ~[derby-10.11.1.1.jar:?]
at org.apache.derby.impl.jdbc.EmbedResultSet.next(Unknown Source)
~[derby-10.11.1.1.jar:?]
at
org.apache.commons.dbcp2.DelegatingResultSet.next(DelegatingResultSet.java:191)
~[commons-dbcp2-2.1.jar:2.1]
at
org.apache.commons.dbcp2.DelegatingResultSet.next(DelegatingResultSet.java:191)
~[commons-dbcp2-2.1.jar:2.1]
at
org.ofbiz.entity.util.EntityListIterator.next(EntityListIterator.java:321)
[ofbiz-entity.jar:?]
at
org.ofbiz.entity.util.EntityListIterator.getCompleteList(EntityListIterator.java:437)
[ofbiz-entity.jar:?]
at
org.ofbiz.common.test.PerformFindTests.getCompleteList(PerformFindTests.java:49)
[ofbiz-common-test.jar:?]
at
org.ofbiz.common.test.PerformFindTests.testPerformFindFilterByDateWithDedicateDateField(PerformFindTests.java:232)
[ofbiz-common-test.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[?:1.7.0_60]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
~[?:1.7.0_60]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:1.7.0_60]
at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_60]
at junit.framework.TestCase.runTest(TestCase.java:168)
[junit-dep-4.10.jar:?]
at junit.framework.TestCase.runBare(TestCase.java:134)
[junit-dep-4.10.jar:?]
at junit.framework.TestResult$1.protect(TestResult.java:110)
[junit-dep-4.10.jar:?]
at junit.framework.TestResult.runProtected(TestResult.java:128)
[junit-dep-4.10.jar:?]
at junit.framework.TestResult.run(TestResult.java:113)
[junit-dep-4.10.jar:?]
at junit.framework.TestCase.run(TestCase.java:124)
[junit-dep-4.10.jar:?]
at junit.framework.TestSuite.runTest(TestSuite.java:243)
[junit-dep-4.10.jar:?]
at junit.framework.TestSuite.run(TestSuite.java:238)
[junit-dep-4.10.jar:?]
at junit.framework.TestSuite.runTest(TestSuite.java:243)
[junit-dep-4.10.jar:?]
at junit.framework.TestSuite.run(TestSuite.java:238)
[junit-dep-4.10.jar:?]
at
org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
[ofbiz-testtools.jar:?]
at
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:237)
[ofbiz-base.jar:?]
at org.ofbiz.base.start.Start.startStartLoaders(Start.java:342)
[ofbiz.jar:?]
at org.ofbiz.base.start.Start.start(Start.java:368) [ofbiz.jar:?]
at org.ofbiz.base.start.Start.main(Start.java:135) [ofbiz.jar:?]
Caused by: org.apache.derby.iapi.error.StandardException: ResultSet not open.
Operation 'next' not permitted. Verify that autocommit is off.
at org.apache.derby.iapi.error.StandardException.newException(Unknown
Source) ~[derby-10.11.1.1.jar:?]
at
org.apache.derby.impl.jdbc.SQLExceptionFactory.wrapArgsForTransportAcrossDRDA(Unknown
Source) ~[derby-10.11.1.1.jar:?]
... 35 more
{code}
It appears the ResultSet is being closed prematurely somehow.
> Unit tests throw exception in DBCP
> ----------------------------------
>
> Key: OFBIZ-6218
> URL: https://issues.apache.org/jira/browse/OFBIZ-6218
> Project: OFBiz
> Issue Type: Bug
> Reporter: Adrian Crum
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)