Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-2284

NPE while serializing SOAPFaultInfo#role property with GraphSerializer

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.0, 1.1.1
    • Component/s: None
    • Labels:
      None

      Description

      there is a name mismatch between the getter/setter of SOAPFaultInfo#role (see below) which causes a NPE at the following location in AccessNode#getAccessList()

      if (((CoverageType.INCLUSIVE.equals(coverageType)
      && readMethod.getAnnotation(Exclude.class) == null) // NPE here

      /**

      • @return the Fault role
        */
        public String geRole() { return _role; }

      /**

      • @param role the Fault role to set
        */
        public void setRole(String role) { _role = role; }

      at org.switchyard.serial.graph.node.AccessNode.getAccessList(AccessNode.java:185) [switchyard-serial-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]
      at org.switchyard.serial.graph.node.AccessNode.compose(AccessNode.java:99) [switchyard-serial-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]
      at org.switchyard.serial.graph.node.NodeBuilder.build(NodeBuilder.java:110) [switchyard-serial-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]
      at org.switchyard.serial.graph.node.AccessNode.compose(AccessNode.java:108) [switchyard-serial-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]
      at org.switchyard.serial.graph.node.NodeBuilder.build(NodeBuilder.java:110) [switchyard-serial-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]
      at org.switchyard.serial.graph.node.MapNode.compose(MapNode.java:64) [switchyard-serial-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]
      at org.switchyard.serial.graph.node.NodeBuilder.build(NodeBuilder.java:78) [switchyard-serial-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]
      at org.switchyard.serial.graph.node.AccessNode.compose(AccessNode.java:108) [switchyard-serial-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]
      at org.switchyard.serial.graph.node.NodeBuilder.build(NodeBuilder.java:110) [switchyard-serial-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]
      at org.switchyard.serial.graph.node.MapNode.compose(MapNode.java:64) [switchyard-serial-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]
      at org.switchyard.serial.graph.node.NodeBuilder.build(NodeBuilder.java:78) [switchyard-serial-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]
      at org.switchyard.serial.graph.node.AccessNode.compose(AccessNode.java:108) [switchyard-serial-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]
      at org.switchyard.serial.graph.node.NodeBuilder.build(NodeBuilder.java:110) [switchyard-serial-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]
      at org.switchyard.serial.graph.node.AccessNode.compose(AccessNode.java:108) [switchyard-serial-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]
      at org.switchyard.serial.graph.node.NodeBuilder.build(NodeBuilder.java:110) [switchyard-serial-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]
      at org.switchyard.serial.graph.Graph.composeRoot(Graph.java:124) [switchyard-serial-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]
      at org.switchyard.serial.graph.Graph.<init>(Graph.java:51) [switchyard-serial-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]
      at org.switchyard.serial.graph.GraphSerializer.serialize(GraphSerializer.java:43) [switchyard-serial-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]
      at org.switchyard.component.sca.SwitchYardRemotingServlet.doPost(SwitchYardRemotingServlet.java:119) [switchyard-component-sca-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                michaelclay Michael Clay
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: