Uploaded image for project: 'Axis'
  1. Axis
  2. AXIS-2615

org.apache.axis.client.HandlerRegistryImpl.getHandlerChain(QName portName) create an ArrayList if the HandlerChain doesn't exists instead of an HandlerChainImpl

    Details

    • Type: Bug
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 1.4
    • Fix Version/s: None
    • Component/s: Basic Architecture
    • Labels:
      None
    • Environment:
      Windows XP, Tomcat 6.0

      Description

      When somebody use the interface javax.xml.rpc.handler.HandlerRegistry to get the HandlerChain for a given Service. If there is no HandlerChain which already exists, the implementation create an ArrayList, and it should create an HandlerChainImpl.

      Code : axis-1_4/src/org/apache/axis/client/Service.java
      Line : 869
      Actual Code :
      public List getHandlerChain(QName portName) {
      // namespace is not significant, so use local part directly
      String key = portName.getLocalPart();
      List list = (List) map.get(key);
      if (list == null)

      { list = new java.util.ArrayList(); setHandlerChain(portName, list); }

      return list;
      }
      Should be :
      public List getHandlerChain(QName portName) {
      // namespace is not significant, so use local part directly
      String key = portName.getLocalPart();
      List list = (List) map.get(key);
      if (list == null)

      { HandlerInfoChainFactory Factory = new HandlerInfoChainFactory(); list = Factory.createHandlerChain(); setHandlerChain(portName, list); }

      return list;
      }
      Cheers'
      Fabien Carrion

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            gk_fabs Fabien Carrion
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development