wsit
  1. wsit
  2. WSIT-1548

javax.xml.ws.WebServiceException: java.lang.ExceptionInInitializerError

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: security
    • Labels:
      None
    • Environment:

      AIX,JDK 6,Metro2.1.1

      Description

      Some tests in WSSecurity are failing with this issue.This is with AIX machine.

      Caught Ping service Exception:
      javax.xml.ws.WebServiceException: java.lang.ExceptionInInitializerError
      at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processRequest(SecurityClientTube.java:250)
      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 $Proxy40.ping(Unknown Source)
      at simple.client.PingServiceClientjs1.main(Unknown Source)
      Caused by: java.lang.ExceptionInInitializerError
      at java.lang.J9VMInternals.initialize(J9VMInternals.java:222)
      at javax.crypto.KeyGenerator.a(Unknown Source)
      at javax.crypto.KeyGenerator.<init>(Unknown Source)
      at javax.crypto.KeyGenerator.getInstance(Unknown Source)
      at com.sun.xml.wss.impl.misc.SecurityUtil.generateSymmetricKey(SecurityUtil.java:147)
      at com.sun.xml.wss.impl.filter.SignatureFilter.process(SignatureFilter.java:470)
      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:386)
      at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processClientRequestPacket(SecurityClientTube.java:323)
      at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processRequest(SecurityClientTube.java:247)
      ... 11 more
      Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs
      at javax.crypto.b.<clinit>(Unknown Source)
      at java.lang.J9VMInternals.initializeImpl(Native Method)
      at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
      ... 23 more
      Caused by: java.lang.SecurityException: Jurisdiction policy files are not signed by trusted signers!
      at javax.crypto.b.a(Unknown Source)
      at javax.crypto.b.a(Unknown Source)
      at javax.crypto.b.access$600(Unknown Source)
      at javax.crypto.b$0.run(Unknown Source)
      at java.security.AccessController.doPrivileged(AccessController.java:251)
      ... 26 more

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

      1. server.log
        320 kB
        Sreekanth
      2. soap-log-js1.log
        3 kB
        Sreekanth
      3. wsit-simple.server.IPingService.xml
        6 kB
        Sreekanth

        Activity

        Hide
        sonymanuel added a comment -

        Installing the JCE unrestricted policy for AIX JDK6 from the above url resolved the issue. Closing the issue.

        https://www14.software.ibm.com/webapp/iwm/web/preLogin.do?source=jcesdk

        Show
        sonymanuel added a comment - Installing the JCE unrestricted policy for AIX JDK6 from the above url resolved the issue. Closing the issue. https://www14.software.ibm.com/webapp/iwm/web/preLogin.do?source=jcesdk

          People

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

            Dates

            • Created:
              Updated:
              Resolved: