Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-4656

NPE from ServiceClient in method [public OperationClient createClient]

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Invalid
    • 1.5.1
    • None
    • client-api
    • Java 5, Windows

    Description

      Using a default Options instance with a ServiceClient causes a NullPointerException from ServiceClient.createClient(QName operationQName) throws AxisFault.

      The line in question is: 648

      if (JavaUtils.isTrue(getOptions().getProperty(AUTO_OPERATION_CLEANUP), true) &&
      !getOptions().isUseSeparateListener())

      { cleanupTransport(); }

      In a default Options, properties are null, causing the NPE. This code should check for NPE's.

      Thanks!

      Attachments

        Activity

          People

            Unassigned Unassigned
            technosf Martin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: