Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-9883

Connect request to restart task can result in IllegalArgumentError: "uriTemplate" parameter is null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.4.0
    • 2.6.0, 2.4.2, 2.5.1
    • connect
    • None

    Description

      When attempting to restart a connector, the following is logged by Connect:

       

      ERROR Uncaught exception in REST call to /connectors/my-connector/tasks/0/restart (org.apache.kafka.connect.runtime.rest.errors.ConnectExceptionMapper)
      java.lang.IllegalArgumentException: "uriTemplate" parameter is null.
          at org.glassfish.jersey.uri.internal.JerseyUriBuilder.uri(JerseyUriBuilder.java:189)
          at org.glassfish.jersey.uri.internal.JerseyUriBuilder.uri(JerseyUriBuilder.java:72)
          at javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:96)
          at org.apache.kafka.connect.runtime.rest.resources.ConnectorsResource.completeOrForwardRequest(ConnectorsResource.java:263)
          at org.apache.kafka.connect.runtime.rest.resources.ConnectorsResource.completeOrForwardRequest(ConnectorsResource.java:298)
          at org.apache.kafka.connect.runtime.rest.resources.ConnectorsResource.restartTask(ConnectorsResource.java:218)
      

      Resubmitting the restart REST request will usually resolve the problem.

       

      Attachments

        Issue Links

          Activity

            People

              rhauch Randall Hauch
              rhauch Randall Hauch
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: