Axis2
  1. Axis2
  2. AXIS2-5115

debug log level makes the EndpointInterfaceDescriptionImpl not initialized correctly

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.0
    • Fix Version/s: 1.6.1, 1.7.0
    • Component/s: jaxws
    • Labels:

      Description

      While constructing the EndpointInterfaceDescriptionImpl instance from WSDL on the line 1222 of EndpointDescriptionImpl, if the log level is configured with debug, some internal variable like soapParameterStyle is initialized, and even after updating the SEI in the following codes, they will not be re-initialized again.

      endpointInterfaceDescription = new EndpointInterfaceDescriptionImpl(this);
      
                              // Update the EndpointInterfaceDescription created with WSDL with information from the
                              // annotations in the SEI
                              ((EndpointInterfaceDescriptionImpl)endpointInterfaceDescription)
                                      .updateWithSEI(composite.getCorrespondingClass());
      
      EndpointInterfaceDescriptionImpl(EndpointDescriptionImpl parent) {
              parentEndpointDescription = parent;
              dbc = new DescriptionBuilderComposite();
              AxisService axisService = parentEndpointDescription.getAxisService();
              if (axisService != null) {
                  ArrayList publishedOperations = axisService.getPublishedOperations();
                  Iterator operationsIterator = publishedOperations.iterator();
                  while (operationsIterator.hasNext()) {
                      AxisOperation axisOperation = (AxisOperation)operationsIterator.next();
                      addOperation(new OperationDescriptionImpl(axisOperation, this));
                  }
              }
          }
      

        Activity

        Hide
        Andreas Veithen added a comment -

        Confirmed. I see test failures in jaxws-integration when debug logs are enabled.

        Show
        Andreas Veithen added a comment - Confirmed. I see test failures in jaxws-integration when debug logs are enabled.
        Hide
        Ivan added a comment -

        Thanks for looking at this, one possible solution is to reset those annotation values, but not sure how many are required, I saw parameter type etc.

        Show
        Ivan added a comment - Thanks for looking at this, one possible solution is to reset those annotation values, but not sure how many are required, I saw parameter type etc.
        Hide
        Hudson added a comment -

        Integrated in Axis2 #919 (See https://builds.apache.org/job/Axis2/919/)
        AXIS2-5115: Make sure that EndpointInterfaceDescriptionImpl and OperationDescriptionImpl discards all previously cached information when the SEI is set.

        veithen :
        Files :

        • /axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointInterfaceDescriptionImpl.java
        • /axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/description/impl/OperationDescriptionImpl.java
        Show
        Hudson added a comment - Integrated in Axis2 #919 (See https://builds.apache.org/job/Axis2/919/ ) AXIS2-5115 : Make sure that EndpointInterfaceDescriptionImpl and OperationDescriptionImpl discards all previously cached information when the SEI is set. veithen : Files : /axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointInterfaceDescriptionImpl.java /axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/description/impl/OperationDescriptionImpl.java
        Hide
        Andreas Veithen added a comment -

        Ivan, can you check if my change also solves your issue?

        Show
        Andreas Veithen added a comment - Ivan, can you check if my change also solves your issue?
        Hide
        Ivan added a comment -

        Hi, Andreas, the changes fix the issue, please help to port it to 1.6, too. Thanks.

        Show
        Ivan added a comment - Hi, Andreas, the changes fix the issue, please help to port it to 1.6, too. Thanks.
        Hide
        Hudson added a comment -

        Integrated in axis2-1.6 #71 (See https://builds.apache.org/job/axis2-1.6/71/)
        AXIS2-5115: Merged r1157373, r1157415 and r1157424 to the 1.6 branch.

        veithen :
        Files :

        • /axis/axis2/java/core/branches/1_6/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointInterfaceDescriptionImpl.java
        • /axis/axis2/java/core/branches/1_6/modules/jaxws-integration/test/org/apache/axis2/jaxws/jaxb/string/JAXBStringUTF16Tests.java
        • /axis/axis2/java/core/branches/1_6/modules/metadata/src/org/apache/axis2/jaxws/description/impl/OperationDescriptionImpl.java
        • /axis/axis2/java/core/branches/1_6/modules/jaxws-integration/test/org/apache/axis2/jaxws/framework/AbstractTestCase.java
        • /axis/axis2/java/core/branches/1_6
        Show
        Hudson added a comment - Integrated in axis2-1.6 #71 (See https://builds.apache.org/job/axis2-1.6/71/ ) AXIS2-5115 : Merged r1157373, r1157415 and r1157424 to the 1.6 branch. veithen : Files : /axis/axis2/java/core/branches/1_6/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointInterfaceDescriptionImpl.java /axis/axis2/java/core/branches/1_6/modules/jaxws-integration/test/org/apache/axis2/jaxws/jaxb/string/JAXBStringUTF16Tests.java /axis/axis2/java/core/branches/1_6/modules/metadata/src/org/apache/axis2/jaxws/description/impl/OperationDescriptionImpl.java /axis/axis2/java/core/branches/1_6/modules/jaxws-integration/test/org/apache/axis2/jaxws/framework/AbstractTestCase.java /axis/axis2/java/core/branches/1_6

          People

          • Assignee:
            Andreas Veithen
            Reporter:
            Ivan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development