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

NPE from ServiceClient in method [public OperationClient createClient]

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Invalid
    • Affects Version/s: 1.5.1
    • Fix Version/s: None
    • Component/s: client-api
    • Labels:
    • Environment:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: