jersey
  1. jersey
  2. JERSEY-1580

RuntimeDelegate#createEndpoint throws NPE instead of IllegalArgumentException

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0-m09
    • Fix Version/s: 2.0-m12, 2.0
    • Component/s: core
    • Labels:
      None

      Description

      Javadoc of createEndPoint says:

      Throws:
      java.lang.IllegalArgumentException - if application is null or the requested endpoint type is not supported.

      RuntimeDelegate delegate = RuntimeDelegate.getInstance();
      delegate.createEndpoint((Application) null, com.sun.net.httpserver.HttpHandler.class);
      

      throws

      java.lang.NullPointerException
      at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:353)
      at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:248)
      at org.glassfish.jersey.server.ContainerFactory.createContainer(ContainerFactory.java:79)
      at org.glassfish.jersey.server.internal.RuntimeDelegateImpl.createEndpoint(RuntimeDelegateImpl.java:68)

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 45 minutes
              45m