jersey
  1. jersey
  2. JERSEY-1203

InvocationCallback throws mysterious IllegalArgumentException

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0-m05
    • Fix Version/s: 2.0-m07, 2.0
    • Component/s: core
    • Labels:
      None

      Description

      Suppose a client:

      Client client = ClientFactory.newClient();
      Target target = client.target(url);
      AsyncInvoker async = target.request().async();
      InvocationCallback<Response> callback = new InvocationCallback<Response>() {
      	@Override
      	public void completed(Response arg0) {
      		System.out.println("Completed");
      	}
      	@Override
      	public void failed(InvocationException arg0) {
      		System.out.println("failed");
      	}
      };
      Future<Response> future = async.delete(callback);
      

      it throws :

      06-07-2012 18:14:12: ERROR: Exception at:
      06-07-2012 18:14:12: ERROR: java.lang.IllegalArgumentException
      at org.jvnet.tiger_types.Types.getTypeArgument(Types.java:368)
      at org.glassfish.jersey.client.JerseyInvocation.submit(JerseyInvocation.java:655)
      at org.glassfish.jersey.client.JerseyInvocation$AsyncInvoker.method(JerseyInvocation.java:515)
      at org.glassfish.jersey.client.JerseyInvocation$AsyncInvoker.delete(JerseyInvocation.java:441)

        Activity

        Hide
        Michal Gajdos added a comment -

        This issue has been fixed as a part of JERSEY-1233 issue.

        Please see changes in the following commit: https://github.com/jersey/jersey/commit/50ad12b6e4c2915ea66fb476e0e35b76d4e686da#L13L651

        Show
        Michal Gajdos added a comment - This issue has been fixed as a part of JERSEY-1233 issue. Please see changes in the following commit: https://github.com/jersey/jersey/commit/50ad12b6e4c2915ea66fb476e0e35b76d4e686da#L13L651

          People

          • Assignee:
            Michal Gajdos
            Reporter:
            jan.supol
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 3 hours
              3h
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 1 hour, 1 minute Time Not Required
              1h 1m