Technoboy- commented on issue #16496: URL: https://github.com/apache/pulsar/issues/16496#issuecomment-1179906037
``` 2022-07-11T01:45:46.1928254Z [INFO] Running org.apache.pulsar.broker.service.persistent.DelayedDeliveryTest 2022-07-11T01:46:21.1161732Z [ERROR] Tests run: 79, Failures: 1, Errors: 0, Skipped: 73, Time elapsed: 43.067 s <<< FAILURE! - in org.apache.pulsar.broker.service.persistent.PersistentTopicStreamingDispatcherTest 2022-07-11T01:46:21.1167248Z [ERROR] setup(org.apache.pulsar.broker.service.persistent.PersistentTopicStreamingDispatcherTest) Time elapsed: 0.643 s <<< FAILURE! 2022-07-11T01:46:21.1277496Z org.mockito.exceptions.base.MockitoException: Unable to create mock instance of type 'ServerCnx' 2022-07-11T01:46:21.1278349Z at org.apache.pulsar.broker.BrokerTestUtil.spyWithClassAndConstructorArgs(BrokerTestUtil.java:43) 2022-07-11T01:46:21.1279550Z at org.apache.pulsar.broker.service.PersistentTopicTest.setup(PersistentTopicTest.java:226) 2022-07-11T01:46:21.1280555Z at org.apache.pulsar.broker.service.persistent.PersistentTopicStreamingDispatcherTest.setup(PersistentTopicStreamingDispatcherTest.java:34) 2022-07-11T01:46:21.1281497Z at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2022-07-11T01:46:21.1282202Z at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) 2022-07-11T01:46:21.1283538Z at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2022-07-11T01:46:21.1284194Z at java.base/java.lang.reflect.Method.invoke(Method.java:568) 2022-07-11T01:46:21.1284831Z at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132) 2022-07-11T01:46:21.1285658Z at org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:61) 2022-07-11T01:46:21.1287067Z at org.testng.internal.ConfigInvoker.invokeConfigurationMethod(ConfigInvoker.java:366) 2022-07-11T01:46:21.1287821Z at org.testng.internal.ConfigInvoker.invokeConfigurations(ConfigInvoker.java:320) 2022-07-11T01:46:21.1288523Z at org.testng.internal.TestInvoker.runConfigMethods(TestInvoker.java:701) 2022-07-11T01:46:21.1289221Z at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:527) 2022-07-11T01:46:21.1289888Z at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174) 2022-07-11T01:46:21.1290551Z at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46) 2022-07-11T01:46:21.1291184Z at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822) 2022-07-11T01:46:21.1291827Z at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147) 2022-07-11T01:46:21.1292552Z at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146) 2022-07-11T01:46:21.1293271Z at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128) 2022-07-11T01:46:21.1294314Z at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) 2022-07-11T01:46:21.1294881Z at org.testng.TestRunner.privateRun(TestRunner.java:764) 2022-07-11T01:46:21.1295348Z at org.testng.TestRunner.run(TestRunner.java:585) 2022-07-11T01:46:21.1295812Z at org.testng.SuiteRunner.runTest(SuiteRunner.java:384) 2022-07-11T01:46:21.1296563Z at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378) 2022-07-11T01:46:21.1297084Z at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337) 2022-07-11T01:46:21.1297532Z at org.testng.SuiteRunner.run(SuiteRunner.java:286) 2022-07-11T01:46:21.1298990Z at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53) 2022-07-11T01:46:21.1299586Z at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96) 2022-07-11T01:46:21.1300104Z at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218) 2022-07-11T01:46:21.1300607Z at org.testng.TestNG.runSuitesLocally(TestNG.java:1140) 2022-07-11T01:46:21.1301086Z at org.testng.TestNG.runSuites(TestNG.java:1069) 2022-07-11T01:46:21.1301798Z at org.testng.TestNG.run(TestNG.java:1037) 2022-07-11T01:46:21.1302406Z at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:135) 2022-07-11T01:46:21.1303249Z at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:112) 2022-07-11T01:46:21.1305198Z at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:99) 2022-07-11T01:46:21.1306251Z at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:146) 2022-07-11T01:46:21.1307067Z at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) 2022-07-11T01:46:21.1308230Z at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) 2022-07-11T01:46:21.1308963Z at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) 2022-07-11T01:46:21.1309612Z at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) 2022-07-11T01:46:21.1310231Z Caused by: org.mockito.creation.instance.InstantiationException: 2022-07-11T01:46:21.1310987Z Unable to create instance of 'ServerCnx'. 2022-07-11T01:46:21.1311602Z Please ensure the target class has a constructor that matches these argument types: [org.apache.pulsar.broker.PulsarService] and executes cleanly. 2022-07-11T01:46:21.1312173Z ... 40 more 2022-07-11T01:46:21.1312605Z Caused by: java.lang.reflect.InvocationTargetException 2022-07-11T01:46:21.1313866Z at org.mockito.internal.util.reflection.InstrumentationMemberAccessor.newInstance(InstrumentationMemberAccessor.java:198) 2022-07-11T01:46:21.1315299Z at org.mockito.internal.util.reflection.InstrumentationMemberAccessor.newInstance(InstrumentationMemberAccessor.java:161) 2022-07-11T01:46:21.1316347Z at org.mockito.internal.util.reflection.ModuleMemberAccessor.newInstance(ModuleMemberAccessor.java:42) 2022-07-11T01:46:21.1317637Z at org.mockito.internal.creation.instance.ConstructorInstantiator.invokeConstructor(ConstructorInstantiator.java:70) 2022-07-11T01:46:21.1318814Z at org.mockito.internal.creation.instance.ConstructorInstantiator.withParams(ConstructorInstantiator.java:53) 2022-07-11T01:46:21.1319970Z at org.mockito.internal.creation.instance.ConstructorInstantiator.newInstance(ConstructorInstantiator.java:39) 2022-07-11T01:46:21.1322671Z at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.doCreateMock(InlineDelegateByteBuddyMockMaker.java:360) 2022-07-11T01:46:21.1324060Z at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.createMock(InlineDelegateByteBuddyMockMaker.java:330) 2022-07-11T01:46:21.1325193Z at org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker.createMock(InlineByteBuddyMockMaker.java:58) 2022-07-11T01:46:21.1326462Z at org.mockito.internal.util.MockUtil.createMock(MockUtil.java:53) 2022-07-11T01:46:21.1327128Z at org.mockito.internal.MockitoCore.mock(MockitoCore.java:84) 2022-07-11T01:46:21.1327717Z at org.mockito.Mockito.mock(Mockito.java:1964) 2022-07-11T01:46:21.1328100Z ... 40 more 2022-07-11T01:46:21.1330363Z Caused by: java.lang.ClassCastException: class org.apache.pulsar.broker.service.BrokerService cannot be cast to class org.apache.pulsar.broker.resources.PulsarResources (org.apache.pulsar.broker.service.BrokerService and org.apache.pulsar.broker.resources.PulsarResources are in unnamed module of loader 'app') 2022-07-11T01:46:21.1331999Z at org.apache.pulsar.broker.PulsarService.getPulsarResources(PulsarService.java:265) 2022-07-11T01:46:21.1332769Z at org.apache.pulsar.broker.service.TopicListService.<init>(TopicListService.java:103) 2022-07-11T01:46:21.1333524Z at org.apache.pulsar.broker.service.ServerCnx.<init>(ServerCnx.java:279) 2022-07-11T01:46:21.1334159Z at org.apache.pulsar.broker.service.ServerCnx.<init>(ServerCnx.java:239) 2022-07-11T01:46:21.1334841Z at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732) 2022-07-11T01:46:21.1335763Z at org.mockito.internal.util.reflection.InstrumentationMemberAccessor$Dispatcher$ByteBuddy$odOJstKk.invokeWithArguments(Unknown Source) 2022-07-11T01:46:21.1382388Z at org.mockito.internal.util.reflection.InstrumentationMemberAccessor.lambda$newInstance$0(InstrumentationMemberAccessor.java:191) 2022-07-11T01:46:21.1383683Z at org.mockito.internal.util.reflection.InstrumentationMemberAccessor.newInstance(InstrumentationMemberAccessor.java:188) 2022-07-11T01:46:21.1384306Z ... 51 more ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
