Open adhithyasrinivasan opened 5 years ago
Hi!
Thx for reporting this! :+1: To reconstruct the described behavior, the Citrus-HTTP Module is required as a dependency. If the Citrus-HTTP Module is missing, a different error occurs which is as fatal as the original one but it indicates the root cause a little bit better, I think.
The output is the result of a modified soap-sample from the samples repository.
09:16:12.419 [main] WARN com.consol.citrus.endpoint.DefaultEndpointFactory - Unable to find default Citrus endpoint component 'com.consol.citrus.http.client.HttpEndpointComponent' in classpath
java.lang.ClassNotFoundException: com.consol.citrus.http.client.HttpEndpointComponent
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.consol.citrus.endpoint.DefaultEndpointFactory.resolveDefaultComponent(DefaultEndpointFactory.java:147)
at com.consol.citrus.endpoint.DefaultEndpointFactory.create(DefaultEndpointFactory.java:109)
at com.consol.citrus.actions.SendMessageAction.getOrCreateEndpoint(SendMessageAction.java:174)
at com.consol.citrus.actions.SendMessageAction.isDisabled(SendMessageAction.java:137)
at com.consol.citrus.dsl.actions.DelegatingTestAction.isDisabled(DelegatingTestAction.java:60)
at com.consol.citrus.TestCase.executeAction(TestCase.java:216)
at com.consol.citrus.TestCase.doExecute(TestCase.java:152)
at com.consol.citrus.actions.AbstractTestAction.execute(AbstractTestAction.java:42)
at com.consol.citrus.Citrus.run(Citrus.java:403)
at com.consol.citrus.testng.AbstractTestNGCitrusTest.invokeTestMethod(AbstractTestNGCitrusTest.java:131)
at com.consol.citrus.dsl.testng.TestNGCitrusTest.invokeTestMethod(TestNGCitrusTest.java:121)
at com.consol.citrus.dsl.testng.TestNGCitrusTestDesigner.invokeTestMethod(TestNGCitrusTestDesigner.java:73)
at com.consol.citrus.dsl.testng.TestNGCitrusTest.run(TestNGCitrusTest.java:110)
at com.consol.citrus.dsl.testng.TestNGCitrusTest.run(TestNGCitrusTest.java:56)
at org.testng.internal.MethodInvocationHelper.invokeHookable(MethodInvocationHelper.java:242)
[...]
and
09:16:12.431 [main] ERROR com.consol.citrus.report.LoggingReporter - TEST FAILED TodoListIT.testAddTodoEntry <com.consol.citrus.samples.todolist> Nested exception is:
com.consol.citrus.exceptions.CitrusRuntimeException: Unable to create endpoint component with name 'http'
at com.consol.citrus.endpoint.DefaultEndpointFactory.create(DefaultEndpointFactory.java:113)
at com.consol.citrus.actions.SendMessageAction.getOrCreateEndpoint(SendMessageAction.java:174)
at com.consol.citrus.actions.SendMessageAction.isDisabled(SendMessageAction.java:137)
at com.consol.citrus.dsl.actions.DelegatingTestAction.isDisabled(DelegatingTestAction.java:60)
at com.consol.citrus.TestCase.executeAction(TestCase.java:216)
at com.consol.citrus.TestCase.doExecute(TestCase.java:152)
at com.consol.citrus.actions.AbstractTestAction.execute(AbstractTestAction.java:42)
at com.consol.citrus.Citrus.run(Citrus.java:403)
at com.consol.citrus.testng.AbstractTestNGCitrusTest.invokeTestMethod(AbstractTestNGCitrusTest.java:131)
at com.consol.citrus.dsl.testng.TestNGCitrusTest.invokeTestMethod(TestNGCitrusTest.java:121)
at com.consol.citrus.dsl.testng.TestNGCitrusTestDesigner.invokeTestMethod(TestNGCitrusTestDesigner.java:73)
at com.consol.citrus.dsl.testng.TestNGCitrusTest.run(TestNGCitrusTest.java:110)
at com.consol.citrus.dsl.testng.TestNGCitrusTest.run(TestNGCitrusTest.java:56)
at org.testng.internal.MethodInvocationHelper.invokeHookable(MethodInvocationHelper.java:242)
[...]
BR, Sven
Citrus Version v2.7.8
Expected behavior Soap message should be sent
Actual behavior http message sent
Test case sample
Actual behavior for
Debug log:
Actual behavior for passing client:
Debug log: