1. Rampart
  2. RAMPART-312

ArrayIndexOutOfBoundsException using axis2 client libs and rampart xml signature


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


      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. axis2_index_out_of_bound.log
        10 kB
        Benjamin Francisoud
      2. axis-repo.zip
        11 kB
        Benjamin Francisoud
      3. dependencies.txt
        4 kB
        Benjamin Francisoud

        Issue Links


          S.Uthaiyashankar made changes -
          Link This issue duplicates RAMPART-284 [ RAMPART-284 ]
          Andreas Veithen made changes -
          Project Axis2 [ 10611 ] Rampart [ 12310610 ]
          Key AXIS2-4621 RAMPART-312
          Affects Version/s 1.4.1 [ 12313298 ]
          Benjamin Francisoud made changes -
          Link This issue relates to RAMPART-284 [ RAMPART-284 ]
          Benjamin Francisoud made changes -
          Field Original Value New Value
          Attachment axis-repo.zip [ 12435459 ]
          Attachment dependencies.txt [ 12435460 ]
          Attachment axis2_index_out_of_bound.log [ 12435461 ]
          Benjamin Francisoud created issue -


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


              • Created: