junit.framework.AssertionFailedError: Expected 'Use of DriverManagerDataSource is discouraged in most cases because it does not pool connections. See the Javadoc for more information.' in ''.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via SpringSource Issue Tracker by Tomasz Zarna, 1 year ago
Expected 'Use of DriverManagerDataSource is discouraged in most cases because it does not pool connections. See the Javadoc for more information.' in ''.
via SpringSource Issue Tracker by Tomasz Zarna, 1 year ago
Expected 'Use of DriverManagerDataSource is discouraged in most cases because it does not pool connections. See the Javadoc for more information.' in ''.
via Eclipse Bugzilla by cjashfor, 1 year ago
via YouTrack by Unknown author, 1 year ago
114 114 114 114 114 114 114 114 114 114 114 114 114 114 114 114 114 114 114 114 114 expected:<10> but was:<21>
via strutstestcase by nobody
, 1 year ago
Error initializing action servlet: Unable to find /WEB-INF/web.xml.  TestCase is running from D:\eclipse3.0.2\eclipse\workspace\ValidatorDemo directory.  Context directory is D:\eclipse3.0.2\eclipse\workspace\ValidatorDemo.  /WEB-INF/web.xml must be found under the context directory, the directory the test case is running from, or in the classpath.
junit.framework.AssertionFailedError: Expected 'Use of DriverManagerDataSource is discouraged in most cases because it does not pool connections. See the Javadoc for more information.' in ''.
at junit.framework.Assert.fail(Assert.java:50)
at org.springframework.ide.eclipse.bestpractices.tests.AbstractBeansCoreTestCase.assertHasMarkerWithText(AbstractBeansCoreTestCase.java:44)
at org.springframework.ide.eclipse.bestpractices.tests.ruletests.AvoidDriverManagerDataSourceRuleTest.testMarkerCreated(AvoidDriverManagerDataSourceRuleTest.java:33)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:62)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
at org.eclipse.pde.internal.junit.runtime.NonUIThreadTestApplication.runApp(NonUIThreadTestApplication.java:54)
at org.eclipse.pde.internal.junit.runtime.UITestApplication.runApp(UITestApplication.java:41)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
9 times, 9 months ago
Once, 10 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.