You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Michael Brohl (JIRA)" <ji...@apache.org> on 2015/05/19 15:17:00 UTC
[jira] [Commented] (OFBIZ-6218) Unit tests throw exception in DBCP
[ https://issues.apache.org/jira/browse/OFBIZ-6218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14550410#comment-14550410 ]
Michael Brohl commented on OFBIZ-6218:
--------------------------------------
I have a problem with it locally, running the tests inside Eclipse:
clean-all
load-demo
run-tests
[java] 2015-05-19 15:00:50,463 |main |TestRunContainer |W| [JUNIT (error)] - testPerformFind : java.lang.NullPointerException
[java] java.lang.NullPointerException
[java] at org.apache.commons.dbcp2.DelegatingConnection.closeInternal(DelegatingConnection.java:235) ~[commons-dbcp2-2.1.jar:2.1]
[java] at org.apache.commons.dbcp2.DelegatingConnection.close(DelegatingConnection.java:218) ~[commons-dbcp2-2.1.jar:2.1]
[java] at org.apache.commons.dbcp2.managed.ManagedConnection.close(ManagedConnection.java:166) ~[commons-dbcp2-2.1.jar:2.1]
[java] at org.ofbiz.entity.jdbc.SQLProcessor.close(SQLProcessor.java:235) ~[ofbiz-entity.jar:?]
[java] at org.ofbiz.entity.util.EntityListIterator.close(EntityListIterator.java:154) ~[ofbiz-entity.jar:?]
[java] at org.ofbiz.entity.util.EntityListIterator.next(EntityListIterator.java:329) ~[ofbiz-entity.jar:?]
[java] at org.ofbiz.entity.util.EntityListIterator.getCompleteList(EntityListIterator.java:436) ~[ofbiz-entity.jar:?]
[java] at org.ofbiz.common.test.PerformFindTests.getCompleteList(PerformFindTests.java:49) ~[ofbiz-common-test.jar:?]
[java] at org.ofbiz.common.test.PerformFindTests.performFindConditionFieldEquals(PerformFindTests.java:136) ~[ofbiz-common-test.jar:?]
[java] at org.ofbiz.common.test.PerformFindTests.testPerformFind(PerformFindTests.java:113) ~[ofbiz-common-test.jar:?]
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_71]
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_71]
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_71]
[java] at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_71]
[java] at junit.framework.TestCase.runTest(TestCase.java:168) ~[junit-dep-4.10.jar:?]
[java] at junit.framework.TestCase.runBare(TestCase.java:134) ~[junit-dep-4.10.jar:?]
[java] at junit.framework.TestResult$1.protect(TestResult.java:110) ~[junit-dep-4.10.jar:?]
[java] at junit.framework.TestResult.runProtected(TestResult.java:128) [junit-dep-4.10.jar:?]
[java] at junit.framework.TestResult.run(TestResult.java:113) [junit-dep-4.10.jar:?]
[java] at junit.framework.TestCase.run(TestCase.java:124) [junit-dep-4.10.jar:?]
[java] at junit.framework.TestSuite.runTest(TestSuite.java:243) [junit-dep-4.10.jar:?]
[java] at junit.framework.TestSuite.run(TestSuite.java:238) [junit-dep-4.10.jar:?]
[java] at junit.framework.TestSuite.runTest(TestSuite.java:243) [junit-dep-4.10.jar:?]
[java] at junit.framework.TestSuite.run(TestSuite.java:238) [junit-dep-4.10.jar:?]
[java] at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146) [ofbiz-testtools.jar:?]
[java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:237) [ofbiz-base.jar:?]
[java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:408) [ofbiz.jar:?]
[java] at org.ofbiz.base.start.Start.start(Start.java:434) [ofbiz.jar:?]
[java] at org.ofbiz.base.start.Start.main(Start.java:135) [ofbiz.jar:?]
[java] 2015-05-19 15:00:50,472 |main |TestRunContainer |I| [JUNIT] : testPerformFind finished.
[java] 2015-05-19 15:00:50,472 |main |GenericDelegator |I| Rolling back 21 entity operations
[java] 2015-05-19 15:00:50,481 |main |TestRunContainer |I| [JUNIT] Results for test suite: performfindtests
[java] 2015-05-19 15:00:50,481 |main |TestRunContainer |I| [JUNIT] Pass: false | # Tests: 1 | # Failed: 0 # Errors: 1
[java] 2015-05-19 15:00:50,481 |main |TestRunContainer |I| [JUNIT] ----------------------------- ERRORS ----------------------------- [JUNIT]
> 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
> Attachments: OFBIZ-6218.patch
>
>
> Details in comments.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)