jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Wolfe <wolfebrian2...@gmail.com>
Subject Issue 63185
Date Tue, 19 Feb 2019 21:19:45 GMT
Hi All, I submitted the following enhancement request. I have pulled down
the code and developed an option for the Extended LDAP client. I have it
working, however running the existing JUnit tests failed. It seems to be
trying to execute on my loopback address. I think this is related to the
remote tests. I didn't change any overall functionality, So I am not sure
if I need to add any additional JUnit tests. All I have added was an
additional class to house a custom SSLSocket. I can provide more output
from the 'ant test' if needed.

https://bz.apache.org/bugzilla/show_bug.cgi?id=63185





[java] Time: 336.816
     [java] There were 125 failures:
     [java] 1) initializationError(org.apache.jmeter.junit.JMeterTest)
     [java] java.lang.Exception: Error creating
org.apache.jmeter.samplers.RemoteSampleListenerImpl
     [java] at
org.apache.jmeter.junit.JMeterTest.instantiateClass(JMeterTest.java:524)
     [java] at
org.apache.jmeter.junit.JMeterTest.getObjects(JMeterTest.java:454)
     [java] at
org.apache.jmeter.junit.JMeterTest.suiteSerializableElements(JMeterTest.java:391)
     [java] at org.apache.jmeter.junit.JMeterTest.suite(JMeterTest.java:133)
     [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     [java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     [java] at java.lang.reflect.Method.invoke(Method.java:498)
     [java] at
org.junit.internal.runners.SuiteMethod.testFromSuiteMethod(SuiteMethod.java:35)
     [java] at
org.junit.internal.runners.SuiteMethod.<init>(SuiteMethod.java:24)
     [java] at
org.junit.internal.builders.SuiteMethodBuilder.runnerForClass(SuiteMethodBuilder.java:11)
     [java] at
org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
     [java] at
org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
     [java] at org.junit.runner.Computer.getRunner(Computer.java:40)
     [java] at
org.junit.experimental.ParallelComputer.getRunner(ParallelComputer.java:64)
     [java] at org.junit.runner.Computer$1.runnerForClass(Computer.java:31)
     [java] at
org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
     [java] at
org.junit.runners.model.RunnerBuilder.runners(RunnerBuilder.java:101)
     [java] at
org.junit.runners.model.RunnerBuilder.runners(RunnerBuilder.java:87)
     [java] at org.junit.runners.Suite.<init>(Suite.java:81)
     [java] at org.junit.runner.Computer.getSuite(Computer.java:28)
     [java] at
org.junit.experimental.ParallelComputer.getSuite(ParallelComputer.java:57)
     [java] at org.junit.runner.Request.classes(Request.java:75)
     [java] at
org.apache.jorphan.test.AllTests.getParallelTests(AllTests.java:232)
     [java] at org.apache.jorphan.test.AllTests.main(AllTests.java:219)
     [java] Caused by: java.lang.reflect.InvocationTargetException
     [java] at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     [java] at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
     [java] at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
     [java] at
java.lang.reflect.Constructor.newInstance(Constructor.java:423)
     [java] at
org.apache.jmeter.junit.JMeterTest.instantiateClass(JMeterTest.java:497)
     [java] ... 24 more
     [java] Caused by: java.rmi.RemoteException: Cannot start. C02MH12EFD56
is a loopback address.
     [java] at org.apache.jmeter.rmi.RmiUtils.getRmiHost(RmiUtils.java:146)
     [java] at
org.apache.jmeter.rmi.RmiUtils.createServerSocketFactory(RmiUtils.java:113)
     [java] at
org.apache.jmeter.samplers.RemoteSampleListenerImpl.<init>(RemoteSampleListenerImpl.java:44)
     [java] ... 29 more
     [java] 2)
testWithCustomResolverAnd1Server(org.apache.jmeter.protocol.http.control.TestDNSCacheManager)
     [java] java.lang.AssertionError: Should have succeeded resolving
jmeter.apache.org, error:Failed to resolve host name: jmeter.apache.org
     [java] at org.junit.Assert.fail(Assert.java:88)
     [java] at
org.apache.jmeter.protocol.http.control.TestDNSCacheManager.testWithCustomResolverAnd1Server(TestDNSCacheManager.java:120)
     [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     [java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     [java] at java.lang.reflect.Method.invoke(Method.java:498)
     [java] at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
     [java] at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
     [java] at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
     [java] at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
     [java] at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
     [java] at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
     [java] at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
     [java] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
     [java] at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
     [java] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
     [java] at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
     [java] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
     [java] at java.lang.Thread.run(Thread.java:748)
     [java] 3) testLang(org.apache.jmeter.resources.PackageTest)
     [java] junit.framework.AssertionFailedError: One or more subtests
failed
     [java] at junit.framework.Assert.fail(Assert.java:57)
     [java] at junit.framework.TestCase.fail(TestCase.java:227)
     [java] at
org.apache.jmeter.resources.PackageTest.check(PackageTest.java:228)
     [java] at
org.apache.jmeter.resources.PackageTest.check(PackageTest.java:172)
     [java] at
org.apache.jmeter.resources.PackageTest.testLang(PackageTest.java:329)
     [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     [java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     [java] at java.lang.reflect.Method.invoke(Method.java:498)
     [java] at junit.framework.TestCase.runTest(TestCase.java:176)
     [java] at junit.framework.TestCase.runBare(TestCase.java:141)
     [java] at junit.framework.TestResult$1.protect(TestResult.java:122)
     [java] at junit.framework.TestResult.runProtected(TestResult.java:142)
     [java] at junit.framework.TestResult.run(TestResult.java:125)
     [java] at junit.framework.TestCase.run(TestCase.java:129)
     [java] at junit.framework.TestSuite.runTest(TestSuite.java:252)
     [java] at junit.framework.TestSuite.run(TestSuite.java:247)
     [java] at junit.framework.TestSuite.runTest(TestSuite.java:252)
     [java] at junit.framework.TestSuite.run(TestSuite.java:247)
     [java] at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
     [java] at org.junit.runners.Suite.runChild(Suite.java:128)
     [java] at org.junit.runners.Suite.runChild(Suite.java:27)
     [java] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
     [java] at
org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
     [java] at
org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
     [java] at
org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
     [java] at
org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
     [java] at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
     [java] at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
     [java] at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
     [java] at org.apache.jorphan.test.AllTests.main(AllTests.java:219)
     [java] 4) testLang(org.apache.jmeter.resources.PackageTest)
     [java] junit.framework.AssertionFailedError: One or more subtests
failed
     [java] at junit.framework.Assert.fail(Assert.java:57)
     [java] at junit.framework.TestCase.fail(TestCase.java:227)
     [java] at
org.apache.jmeter.resources.PackageTest.check(PackageTest.java:228)
     [java] at
org.apache.jmeter.resources.PackageTest.check(PackageTest.java:172)
     [java] at
org.apache.jmeter.resources.PackageTest.testLang(PackageTest.java:329)
     [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     [java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     [java] at java.lang.reflect.Method.invoke(Method.java:498)
     [java] at junit.framework.TestCase.runTest(TestCase.java:176)
     [java] at junit.framework.TestCase.runBare(TestCase.java:141)
     [java] at junit.framework.TestResult$1.protect(TestResult.java:122)
     [java] at junit.framework.TestResult.runProtected(TestResult.java:142)
     [java] at junit.framework.TestResult.run(TestResult.java:125)
     [java] at junit.framework.TestCase.run(TestCase.java:129)
     [java] at junit.framework.TestSuite.runTest(TestSuite.java:252)
     [java] at junit.framework.TestSuite.run(TestSuite.java:247)
     [java] at junit.framework.TestSuite.runTest(TestSuite.java:252)
     [java] at junit.framework.TestSuite.run(TestSuite.java:247)
     [java] at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
     [java] at org.junit.runners.Suite.runChild(Suite.java:128)
     [java] at org.junit.runners.Suite.runChild(Suite.java:27)
     [java] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
     [java] at
org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
     [java] at
org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
     [java] at
org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
     [java] at
org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
     [java] at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
     [java] at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
     [java] at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
     [java] at org.apache.jorphan.test.AllTests.main(AllTests.java:219)


-- 
Thanks,
Brian Wolfe
https://www.linkedin.com/in/brian-wolfe-3136425a/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message