Rampart
  1. Rampart
  2. RAMPART-312

ArrayIndexOutOfBoundsException using axis2 client libs and rampart xml signature

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      We have developped a webapplication using axis 1.4.1 generated client code to communnicate with another axis2 webservices application deployed on a second server.
      Axis2 is configured to use rampart for xml signatures.
      See axis-repo.zip for configuration files.

      From time to time we are getting this kind of errors:

      [2010-01-24 00:30:00,650] [TP-Processor1] ERROR org.apache.axis2.engine.AxisEngine - 452
      org.apache.axis2.AxisFault: 452
      at org.apache.rampart.handler.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:92)
      at org.apache.rampart.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:72)
      at org.apache.axis2.engine.Phase.invoke(Phase.java:317)
      at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
      at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
      at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:363)
      at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
      at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
      at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
      ...
      Caused by: java.lang.ArrayIndexOutOfBoundsException: 452
      at java.util.ArrayList.add(Unknown Source)
      at org.apache.xml.security.keys.KeyInfo.<init>(Unknown Source)
      at org.apache.xml.security.signature.XMLSignature.<init>(Unknown Source)
      at org.apache.ws.security.processor.SignatureProcessor.verifyXMLSignature(SignatureProcessor.java:161)
      at org.apache.ws.security.processor.SignatureProcessor.handleToken(SignatureProcessor.java:85)
      at org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:311)
      at org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:228)
      at org.apache.rampart.handler.WSDoAllReceiver.processBasic(WSDoAllReceiver.java:211)
      at org.apache.rampart.handler.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:86)
      ... 46 more

      Most of the time application is working normally but users have reported problems and the date/time they gave seems to match those error messages ?!

      Do you know what could create such error messages ?

      1. dependencies.txt
        4 kB
        Benjamin Francisoud
      2. axis-repo.zip
        11 kB
        Benjamin Francisoud
      3. axis2_index_out_of_bound.log
        10 kB
        Benjamin Francisoud

        Issue Links

          Activity

          Hide
          Suresh Attanayake added a comment -

          Lets close this issue for the 1.7.0 release as Won't Fix.

          Show
          Suresh Attanayake added a comment - Lets close this issue for the 1.7.0 release as Won't Fix.
          Hide
          Samisa Abeysinghe added a comment -

          WSDoAllReceiver is deprecated. Can you please try to use the policy based approach?

          Show
          Samisa Abeysinghe added a comment - WSDoAllReceiver is deprecated. Can you please try to use the policy based approach?
          Hide
          Benjamin Francisoud added a comment -

          Maybe a Rampart issue...

          Show
          Benjamin Francisoud added a comment - Maybe a Rampart issue...
          Hide
          Benjamin Francisoud added a comment -

          axis2_index_out_of_bound.log: full log
          dependencies.txt: all jar use by application
          axis-repo.zip: axis conf file

          Show
          Benjamin Francisoud added a comment - axis2_index_out_of_bound.log: full log dependencies.txt: all jar use by application axis-repo.zip: axis conf file

            People

            • Assignee:
              Unassigned
              Reporter:
              Benjamin Francisoud
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development