wsit
  1. wsit
  2. WSIT-1552

[Fatal Error] :1:2: Content is not allowed in prolog.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      AIX,Metro2.1.1,Gf3.1.1

      Description

      One particular test is failing with this exception in Security tests in AIX environment.

      Please find the attached soap log and server side policy file.

      Exception:
      ==========

      May 10, 2011 4:57:37 AM com.sun.xml.wss.impl.dsig.SignatureProcessor sign
      SEVERE: WSS1316: Sign operation failed.
      Throwable occurred: javax.xml.crypto.dsig.XMLSignatureException: javax.xml.crypto.dsig.TransformException: org.xml.sax.SAXParseException: Content is not allowed in prolog.
      at org.jcp.xml.dsig.internal.dom.DOMReference.transform(DOMReference.java:390)
      at org.jcp.xml.dsig.internal.dom.DOMReference.digest(DOMReference.java:282)
      at org.jcp.xml.dsig.internal.dom.DOMXMLSignature.digestReference(DOMXMLSignature.java:447)
      at org.jcp.xml.dsig.internal.dom.DOMXMLSignature.sign(DOMXMLSignature.java:343)
      at com.sun.xml.wss.impl.dsig.SignatureProcessor.sign(SignatureProcessor.java:733)
      at com.sun.xml.wss.impl.filter.SignatureFilter.sign(SignatureFilter.java:651)
      at com.sun.xml.wss.impl.filter.SignatureFilter.process(SignatureFilter.java:608)
      at com.sun.xml.wss.impl.HarnessUtil.processWSSPolicy(HarnessUtil.java:99)
      at com.sun.xml.wss.impl.HarnessUtil.processDeep(HarnessUtil.java:278)
      at com.sun.xml.wss.impl.SecurityAnnotator.processMessagePolicy(SecurityAnnotator.java:194)
      at com.sun.xml.wss.impl.SecurityAnnotator.secureMessage(SecurityAnnotator.java:155)
      at com.sun.xml.wss.jaxws.impl.SecurityTubeBase.secureOutboundMessage(SecurityTubeBase.java:343)
      at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processClientRequestPacket(SecurityClientTube.java:320)
      at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processRequest(SecurityClientTube.java:247)
      at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:641)
      at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:600)
      at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:585)
      at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:482)
      at com.sun.xml.ws.client.Stub.process(Stub.java:323)
      at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:161)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:113)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:93)
      at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:144)
      at $Proxy38.ping(Unknown Source)
      at simple.client.PingServiceClients35.main(Unknown Source)
      Caused by: javax.xml.crypto.dsig.TransformException: org.xml.sax.SAXParseException: Content is not allowed in prolog.
      at com.ibm.xml.crypto.dsig.dom.transform.C14nTransformer.transform(C14nTransformer.java:82)
      at com.ibm.xml.crypto.dsig.dom.transform.TransformUtil.transform(TransformUtil.java:377)
      at com.ibm.xml.crypto.dsig.dom.transform.TransformBase.transform(TransformBase.java:96)
      at org.jcp.xml.dsig.internal.dom.DOMTransform.transform(DOMTransform.java:129)
      at org.jcp.xml.dsig.internal.dom.DOMReference.transform(DOMReference.java:387)
      ... 24 more
      Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
      at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
      at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
      at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
      at com.ibm.xml.crypto.dsig.dom.AlgorithmFactory.parse(AlgorithmFactory.java:505)
      at com.ibm.xml.crypto.dsig.dom.transform.TransformBase.toNodeSet(TransformBase.java:80)
      at com.ibm.xml.crypto.dsig.dom.transform.C14nTransformer.transform(C14nTransformer.java:65)
      ... 28 more
      javax.xml.crypto.dsig.TransformException: org.xml.sax.SAXParseException: Content is not allowed in prolog.
      at com.ibm.xml.crypto.dsig.dom.transform.C14nTransformer.transform(C14nTransformer.java:82)
      at com.ibm.xml.crypto.dsig.dom.transform.TransformUtil.transform(TransformUtil.java:377)
      at com.ibm.xml.crypto.dsig.dom.transform.TransformBase.transform(TransformBase.java:96)
      at org.jcp.xml.dsig.internal.dom.DOMTransform.transform(DOMTransform.java:129)
      at org.jcp.xml.dsig.internal.dom.DOMReference.transform(DOMReference.java:387)
      at org.jcp.xml.dsig.internal.dom.DOMReference.digest(DOMReference.java:282)
      at org.jcp.xml.dsig.internal.dom.DOMXMLSignature.digestReference(DOMXMLSignature.java:447)
      at org.jcp.xml.dsig.internal.dom.DOMXMLSignature.sign(DOMXMLSignature.java:343)
      at com.sun.xml.wss.impl.dsig.SignatureProcessor.sign(SignatureProcessor.java:733)
      at com.sun.xml.wss.impl.filter.SignatureFilter.sign(SignatureFilter.java:651)
      at com.sun.xml.wss.impl.filter.SignatureFilter.process(SignatureFilter.java:608)
      at com.sun.xml.wss.impl.HarnessUtil.processWSSPolicy(HarnessUtil.java:99)
      at com.sun.xml.wss.impl.HarnessUtil.processDeep(HarnessUtil.java:278)
      at com.sun.xml.wss.impl.SecurityAnnotator.processMessagePolicy(SecurityAnnotator.java:194)
      at com.sun.xml.wss.impl.SecurityAnnotator.secureMessage(SecurityAnnotator.java:155)
      at com.sun.xml.wss.jaxws.impl.SecurityTubeBase.secureOutboundMessage(SecurityTubeBase.java:343)
      at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processClientRequestPacket(SecurityClientTube.java:320)
      at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processRequest(SecurityClientTube.java:247)
      at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:641)
      at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:600)
      at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:585)
      at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:482)
      at com.sun.xml.ws.client.Stub.process(Stub.java:323)
      at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:161)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:113)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:93)
      at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:144)
      at $Proxy38.ping(Unknown Source)
      at simple.client.PingServiceClients35.main(Unknown Source)
      Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
      at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
      at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
      at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
      at com.ibm.xml.crypto.dsig.dom.AlgorithmFactory.parse(AlgorithmFactory.java:505)
      at com.ibm.xml.crypto.dsig.dom.transform.TransformBase.toNodeSet(TransformBase.java:80)
      at com.ibm.xml.crypto.dsig.dom.transform.C14nTransformer.transform(C14nTransformer.java:65)
      ... 28 more
      org.xml.sax.SAXParseException: Content is not allowed in prolog.
      at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
      at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
      at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
      at com.ibm.xml.crypto.dsig.dom.AlgorithmFactory.parse(AlgorithmFactory.java:505)
      at com.ibm.xml.crypto.dsig.dom.transform.TransformBase.toNodeSet(TransformBase.java:80)
      at com.ibm.xml.crypto.dsig.dom.transform.C14nTransformer.transform(C14nTransformer.java:65)
      at com.ibm.xml.crypto.dsig.dom.transform.TransformUtil.transform(TransformUtil.java:377)
      at com.ibm.xml.crypto.dsig.dom.transform.TransformBase.transform(TransformBase.java:96)
      at org.jcp.xml.dsig.internal.dom.DOMTransform.transform(DOMTransform.java:129)
      at org.jcp.xml.dsig.internal.dom.DOMReference.transform(DOMReference.java:387)
      at org.jcp.xml.dsig.internal.dom.DOMReference.digest(DOMReference.java:282)
      at org.jcp.xml.dsig.internal.dom.DOMXMLSignature.digestReference(DOMXMLSignature.java:447)
      at org.jcp.xml.dsig.internal.dom.DOMXMLSignature.sign(DOMXMLSignature.java:343)
      at com.sun.xml.wss.impl.dsig.SignatureProcessor.sign(SignatureProcessor.java:733)
      at com.sun.xml.wss.impl.filter.SignatureFilter.sign(SignatureFilter.java:651)
      at com.sun.xml.wss.impl.filter.SignatureFilter.process(SignatureFilter.java:608)
      at com.sun.xml.wss.impl.HarnessUtil.processWSSPolicy(HarnessUtil.java:99)
      at com.sun.xml.wss.impl.HarnessUtil.processDeep(HarnessUtil.java:278)
      at com.sun.xml.wss.impl.SecurityAnnotator.processMessagePolicy(SecurityAnnotator.java:194)
      at com.sun.xml.wss.impl.SecurityAnnotator.secureMessage(SecurityAnnotator.java:155)
      at com.sun.xml.wss.jaxws.impl.SecurityTubeBase.secureOutboundMessage(SecurityTubeBase.java:343)
      at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processClientRequestPacket(SecurityClientTube.java:320)
      at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processRequest(SecurityClientTube.java:247)
      at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:641)
      at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:600)
      at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:585)
      at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:482)
      at com.sun.xml.ws.client.Stub.process(Stub.java:323)
      at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:161)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:113)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:93)
      at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:144)
      at $Proxy38.ping(Unknown Source)
      at simple.client.PingServiceClients35.main(Unknown Source)
      May 10, 2011 4:57:37 AM com.sun.xml.wss.jaxws.impl.SecurityTubeBase secureOutboundMessage
      SEVERE: WSSTUBE0024: Error in Securing Outbound Message.
      Throwable occurred: com.sun.xml.wss.XWSSecurityException: javax.xml.crypto.dsig.XMLSignatureException: javax.xml.crypto.dsig.TransformException: org.xml.sax.SAXParseException: Content is not allowed in prolog.
      at com.sun.xml.wss.impl.dsig.SignatureProcessor.sign(SignatureProcessor.java:747)
      at com.sun.xml.wss.impl.filter.SignatureFilter.sign(SignatureFilter.java:651)
      at com.sun.xml.wss.impl.filter.SignatureFilter.process(SignatureFilter.java:608)
      at com.sun.xml.wss.impl.HarnessUtil.processWSSPolicy(HarnessUtil.java:99)
      at com.sun.xml.wss.impl.HarnessUtil.processDeep(HarnessUtil.java:278)
      at com.sun.xml.wss.impl.SecurityAnnotator.processMessagePolicy(SecurityAnnotator.java:194)
      at com.sun.xml.wss.impl.SecurityAnnotator.secureMessage(SecurityAnnotator.java:155)
      at com.sun.xml.wss.jaxws.impl.SecurityTubeBase.secureOutboundMessage(SecurityTubeBase.java:343)
      at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processClientRequestPacket(SecurityClientTube.java:320)
      at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processRequest(SecurityClientTube.java:247)
      at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:641)
      at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:600)
      at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:585)
      at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:482)
      at com.sun.xml.ws.client.Stub.process(Stub.java:323)
      at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:161)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:113)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:93)
      at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:144)
      at $Proxy38.ping(Unknown Source)
      at simple.client.PingServiceClients35.main(Unknown Source)
      Caused by: javax.xml.crypto.dsig.XMLSignatureException: javax.xml.crypto.dsig.TransformException: org.xml.sax.SAXParseException: Content is not allowed in prolog.
      at org.jcp.xml.dsig.internal.dom.DOMReference.transform(DOMReference.java:390)
      at org.jcp.xml.dsig.internal.dom.DOMReference.digest(DOMReference.java:282)
      at org.jcp.xml.dsig.internal.dom.DOMXMLSignature.digestReference(DOMXMLSignature.java:447)
      at org.jcp.xml.dsig.internal.dom.DOMXMLSignature.sign(DOMXMLSignature.java:343)
      at com.sun.xml.wss.impl.dsig.SignatureProcessor.sign(SignatureProcessor.java:733)
      ... 20 more
      Caused by: javax.xml.crypto.dsig.TransformException: org.xml.sax.SAXParseException: Content is not allowed in prolog.
      at com.ibm.xml.crypto.dsig.dom.transform.C14nTransformer.transform(C14nTransformer.java:82)
      at com.ibm.xml.crypto.dsig.dom.transform.TransformUtil.transform(TransformUtil.java:377)
      at com.ibm.xml.crypto.dsig.dom.transform.TransformBase.transform(TransformBase.java:96)
      at org.jcp.xml.dsig.internal.dom.DOMTransform.transform(DOMTransform.java:129)
      at org.jcp.xml.dsig.internal.dom.DOMReference.transform(DOMReference.java:387)
      ... 24 more
      Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
      at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
      at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
      at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
      at com.ibm.xml.crypto.dsig.dom.AlgorithmFactory.parse(AlgorithmFactory.java:505)
      at com.ibm.xml.crypto.dsig.dom.transform.TransformBase.toNodeSet(TransformBase.java:80)
      at com.ibm.xml.crypto.dsig.dom.transform.C14nTransformer.transform(C14nTransformer.java:65)
      ... 28 more
      May 10, 2011 4:57:37 AM com.sun.xml.wss.jaxws.impl.SecurityClientTube processClientRequestPacket
      SEVERE: WSSTUBE0024: Error in Securing Outbound Message.
      Throwable occurred: com.sun.xml.wss.impl.WssSoapFaultException: javax.xml.crypto.dsig.XMLSignatureException: javax.xml.crypto.dsig.TransformException: org.xml.sax.SAXParseException: Content is not allowed in prolog.
      at com.sun.xml.wss.impl.SecurableSoapMessage.newSOAPFaultException(SecurableSoapMessage.java:341)
      at com.sun.xml.wss.jaxws.impl.SecurityTubeBase.secureOutboundMessage(SecurityTubeBase.java:350)
      at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processClientRequestPacket(SecurityClientTube.java:320)
      at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processRequest(SecurityClientTube.java:247)
      at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:641)
      at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:600)
      at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:585)
      at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:482)
      at com.sun.xml.ws.client.Stub.process(Stub.java:323)
      at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:161)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:113)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:93)
      at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:144)
      at $Proxy38.ping(Unknown Source)
      at simple.client.PingServiceClients35.main(Unknown Source)
      Caused by: com.sun.xml.wss.XWSSecurityException: javax.xml.crypto.dsig.XMLSignatureException: javax.xml.crypto.dsig.TransformException: org.xml.sax.SAXParseException: Content is not allowed in prolog.
      at com.sun.xml.wss.impl.dsig.SignatureProcessor.sign(SignatureProcessor.java:747)
      at com.sun.xml.wss.impl.filter.SignatureFilter.sign(SignatureFilter.java:651)
      at com.sun.xml.wss.impl.filter.SignatureFilter.process(SignatureFilter.java:608)
      at com.sun.xml.wss.impl.HarnessUtil.processWSSPolicy(HarnessUtil.java:99)
      at com.sun.xml.wss.impl.HarnessUtil.processDeep(HarnessUtil.java:278)
      at com.sun.xml.wss.impl.SecurityAnnotator.processMessagePolicy(SecurityAnnotator.java:194)
      at com.sun.xml.wss.impl.SecurityAnnotator.secureMessage(SecurityAnnotator.java:155)
      at com.sun.xml.wss.jaxws.impl.SecurityTubeBase.secureOutboundMessage(SecurityTubeBase.java:343)
      ... 13 more
      Caused by: javax.xml.crypto.dsig.XMLSignatureException: javax.xml.crypto.dsig.TransformException: org.xml.sax.SAXParseException: Content is not allowed in prolog.
      at org.jcp.xml.dsig.internal.dom.DOMReference.transform(DOMReference.java:390)
      at org.jcp.xml.dsig.internal.dom.DOMReference.digest(DOMReference.java:282)
      at org.jcp.xml.dsig.internal.dom.DOMXMLSignature.digestReference(DOMXMLSignature.java:447)
      at org.jcp.xml.dsig.internal.dom.DOMXMLSignature.sign(DOMXMLSignature.java:343)
      at com.sun.xml.wss.impl.dsig.SignatureProcessor.sign(SignatureProcessor.java:733)
      ... 20 more
      Caused by: javax.xml.crypto.dsig.TransformException: org.xml.sax.SAXParseException: Content is not allowed in prolog.
      at com.ibm.xml.crypto.dsig.dom.transform.C14nTransformer.transform(C14nTransformer.java:82)
      at com.ibm.xml.crypto.dsig.dom.transform.TransformUtil.transform(TransformUtil.java:377)
      at com.ibm.xml.crypto.dsig.dom.transform.TransformBase.transform(TransformBase.java:96)
      at org.jcp.xml.dsig.internal.dom.DOMTransform.transform(DOMTransform.java:129)
      at org.jcp.xml.dsig.internal.dom.DOMReference.transform(DOMReference.java:387)
      ... 24 more
      Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
      at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
      at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
      at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
      at com.ibm.xml.crypto.dsig.dom.AlgorithmFactory.parse(AlgorithmFactory.java:505)
      at com.ibm.xml.crypto.dsig.dom.transform.TransformBase.toNodeSet(TransformBase.java:80)
      at com.ibm.xml.crypto.dsig.dom.transform.C14nTransformer.transform(C14nTransformer.java:65)
      ... 28 more
      Exception in thread "main" java.lang.NullPointerException
      at simple.client.PingServiceClients35.main(Unknown Source)

      1. PingServices35.wsdl
        9 kB
        Sreekanth
      2. soap-log-s35.log
        17 kB
        Sreekanth

        Issue Links

          Activity

          Hide
          Sreekanth added a comment -

          Kumar suggested to put webservices-rt.jar and aixporting-repackaged.jar in the classpath after he made some changes[wsit~svn:6794] and it works .

          Show
          Sreekanth added a comment - Kumar suggested to put webservices-rt.jar and aixporting-repackaged.jar in the classpath after he made some changes [wsit~svn:6794] and it works .
          Hide
          kumarjayanti added a comment -

          Sreekanth reports that it is working after the correct classpath is set.

          Show
          kumarjayanti added a comment - Sreekanth reports that it is working after the correct classpath is set.

            People

            • Assignee:
              kumarjayanti
              Reporter:
              Sreekanth
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: