java.lang.IllegalArgumentException: Endpoint scheme must be compatible with the connector scheme. Connector is: "http", endpoint is "http://localhost:1968?method=change&protocolConnector=Http1&connector=Http1"

MuleSoft JIRA | Antoine Borg | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    If you have multiple HTTP connectors declared in your Mule config and have a CXF connector, Mule points out that you need to identify the HTTP connector to use since there are multiple ones available. However, there is no way to actually do this on a CXF endpoint. Using the connector-ref attribute, I can only refer to a CXF connector. Using the ?connector=NAME, I can only refer to a CXF connector. (The error is: java.lang.IllegalArgumentException: Endpoint scheme must be compatible with the connector scheme. Connector is: "http", endpoint is "http://localhost:1968?method=change&protocolConnector=Http1&connector=Http1" at org.mule.endpoint.AbstractEndpointBuilder.doBuildOutboundEndpoint(AbstractEndpointBuilder.java:180) at org.mule.endpoint.AbstractEndpointBuilder.buildOutboundEndpoint(AbstractEndpointBuilder.java:93) at org.mule.endpoint.DefaultEndpointFactory.getOutboundEndpoint(DefaultEndpointFactory.java:86) at org.mule.endpoint.DefaultEndpointFactory.getOutboundEndpoint(DefaultEndpointFactory.java:62) at org.mule.module.client.MuleClient.getOutboundEndpoint(MuleClient.java:805) at org.mule.module.client.MuleClient.getEvent(MuleClient.java:749) at org.mule.module.client.MuleClient.send(MuleClient.java:645) at org.mule.module.client.MuleClient.send(MuleClient.java:596) at com.ricston.tests.MultipleHTTPConnectorsTestSuite.testSendUsingHTTP1(MultipleHTTPConnectorsTestSuite.java:27) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:255) 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 org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:235) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) I also tried using the protocolConnector attribute but that did not help either

    MuleSoft JIRA | 8 years ago | Antoine Borg
    java.lang.IllegalArgumentException: Endpoint scheme must be compatible with the connector scheme. Connector is: "http", endpoint is "http://localhost:1968?method=change&protocolConnector=Http1&connector=Http1"
  2. 0

    If you have multiple HTTP connectors declared in your Mule config and have a CXF connector, Mule points out that you need to identify the HTTP connector to use since there are multiple ones available. However, there is no way to actually do this on a CXF endpoint. Using the connector-ref attribute, I can only refer to a CXF connector. Using the ?connector=NAME, I can only refer to a CXF connector. (The error is: java.lang.IllegalArgumentException: Endpoint scheme must be compatible with the connector scheme. Connector is: "http", endpoint is "http://localhost:1968?method=change&protocolConnector=Http1&connector=Http1" at org.mule.endpoint.AbstractEndpointBuilder.doBuildOutboundEndpoint(AbstractEndpointBuilder.java:180) at org.mule.endpoint.AbstractEndpointBuilder.buildOutboundEndpoint(AbstractEndpointBuilder.java:93) at org.mule.endpoint.DefaultEndpointFactory.getOutboundEndpoint(DefaultEndpointFactory.java:86) at org.mule.endpoint.DefaultEndpointFactory.getOutboundEndpoint(DefaultEndpointFactory.java:62) at org.mule.module.client.MuleClient.getOutboundEndpoint(MuleClient.java:805) at org.mule.module.client.MuleClient.getEvent(MuleClient.java:749) at org.mule.module.client.MuleClient.send(MuleClient.java:645) at org.mule.module.client.MuleClient.send(MuleClient.java:596) at com.ricston.tests.MultipleHTTPConnectorsTestSuite.testSendUsingHTTP1(MultipleHTTPConnectorsTestSuite.java:27) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:255) 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 org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:235) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) I also tried using the protocolConnector attribute but that did not help either

    MuleSoft JIRA | 8 years ago | Antoine Borg
    java.lang.IllegalArgumentException: Endpoint scheme must be compatible with the connector scheme. Connector is: "http", endpoint is "http://localhost:1968?method=change&protocolConnector=Http1&connector=Http1"

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Endpoint scheme must be compatible with the connector scheme. Connector is: "http", endpoint is "http://localhost:1968?method=change&protocolConnector=Http1&connector=Http1"

      at org.mule.endpoint.AbstractEndpointBuilder.doBuildOutboundEndpoint()
    2. Mule Core
      DefaultEndpointFactory.getOutboundEndpoint
      1. org.mule.endpoint.AbstractEndpointBuilder.doBuildOutboundEndpoint(AbstractEndpointBuilder.java:180)
      2. org.mule.endpoint.AbstractEndpointBuilder.buildOutboundEndpoint(AbstractEndpointBuilder.java:93)
      3. org.mule.endpoint.DefaultEndpointFactory.getOutboundEndpoint(DefaultEndpointFactory.java:86)
      4. org.mule.endpoint.DefaultEndpointFactory.getOutboundEndpoint(DefaultEndpointFactory.java:62)
      4 frames
    3. Mule Client
      MuleClient.send
      1. org.mule.module.client.MuleClient.getOutboundEndpoint(MuleClient.java:805)
      2. org.mule.module.client.MuleClient.getEvent(MuleClient.java:749)
      3. org.mule.module.client.MuleClient.send(MuleClient.java:645)
      4. org.mule.module.client.MuleClient.send(MuleClient.java:596)
      4 frames
    4. com.ricston.tests
      MultipleHTTPConnectorsTestSuite.testSendUsingHTTP1
      1. com.ricston.tests.MultipleHTTPConnectorsTestSuite.testSendUsingHTTP1(MultipleHTTPConnectorsTestSuite.java:27)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    6. JUnit
      TestCase.runBare
      1. junit.framework.TestCase.runTest(TestCase.java:168)
      2. junit.framework.TestCase.runBare(TestCase.java:134)
      2 frames
    7. Mule Functional Test Framework (TCK)
      AbstractMuleTestCase.runBare
      1. org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:255)
      1 frame
    8. JUnit
      TestCase.run
      1. junit.framework.TestResult$1.protect(TestResult.java:110)
      2. junit.framework.TestResult.runProtected(TestResult.java:128)
      3. junit.framework.TestResult.run(TestResult.java:113)
      4. junit.framework.TestCase.run(TestCase.java:124)
      4 frames
    9. Mule Functional Test Framework (TCK)
      AbstractMuleTestCase.run
      1. org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:235)
      1 frame
    10. JUnit
      OldTestClassRunner.run
      1. junit.framework.TestSuite.runTest(TestSuite.java:232)
      2. junit.framework.TestSuite.run(TestSuite.java:227)
      3. org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76)
      3 frames
    11. JUnit4 Runner
      JUnit4TestReference.run
      1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
      1 frame
    12. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
      5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
      5 frames