Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-11343

AuditLogToTLSSyslogTestCase stuck on Solaris 10 servers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Critical Critical
    • None
    • 7.1.0.DR19
    • Test Suite
    • None
    • Blocks Testing

      AuditLogToTLSSyslogTestCase from wildfly-core-testsuite-standalone module stuck on Solaris 10 servers with:

      [31m12:40:07,394 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0037: Update of the management operation audit log failed in handler 'audit-test-syslog-handler': java.lang.Error: Error during hash calculation
      	at sun.security.ssl.HandshakeHash.getFinishedHash(HandshakeHash.java:249)
      	at sun.security.ssl.HandshakeMessage$Finished.getFinished(HandshakeMessage.java:1947)
      	at sun.security.ssl.HandshakeMessage$Finished.<init>(HandshakeMessage.java:1894)
      	at sun.security.ssl.ClientHandshaker.sendChangeCipherAndFinish(ClientHandshaker.java:1208)
      	at sun.security.ssl.ClientHandshaker.serverHelloDone(ClientHandshaker.java:1128)
      	at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:348)
      	at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026)
      	at sun.security.ssl.Handshaker.process_record(Handshaker.java:961)
      	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)
      	at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
      	at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:747)
      	at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123)
      	at org.jboss.logmanager.handlers.TcpOutputStream.write(TcpOutputStream.java:182)
      	at org.jboss.logmanager.handlers.TcpOutputStream.write(TcpOutputStream.java:173)
      	at org.jboss.logmanager.handlers.SyslogHandler.sendMessage(SyslogHandler.java:579)
      	at org.jboss.logmanager.handlers.SyslogHandler.doPublish(SyslogHandler.java:540)
      	at org.jboss.logmanager.ExtHandler.publish(ExtHandler.java:93)
      	at org.jboss.as.controller.audit.SyslogAuditLogHandler.writeLogItem(SyslogAuditLogHandler.java:317)
      	at org.jboss.as.controller.audit.AuditLogHandler.writeLogItem(AuditLogHandler.java:84)
      	at org.jboss.as.controller.audit.ManagedAuditLoggerImpl.writeLogItem(ManagedAuditLoggerImpl.java:265)
      	at org.jboss.as.controller.audit.ManagedAuditLoggerImpl.storeLogItem(ManagedAuditLoggerImpl.java:247)
      	at org.jboss.as.controller.audit.ManagedAuditLoggerImpl.log(ManagedAuditLoggerImpl.java:100)
      	at org.jboss.as.controller.AbstractOperationContext.logAuditRecord(AbstractOperationContext.java:603)
      	at org.jboss.as.controller.OperationContextImpl.logAuditRecord(OperationContextImpl.java:1276)
      	at org.jboss.as.controller.AbstractOperationContext.executeResultHandlerPhase(AbstractOperationContext.java:843)
      	at org.jboss.as.controller.AbstractOperationContext.executeDoneStage(AbstractOperationContext.java:836)
      	at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:745)
      	at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:443)
      	at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1398)
      	at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:418)
      	at org.jboss.as.controller.ModelControllerImpl.lambda$execute$1(ModelControllerImpl.java:243)
      	at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:263)
      	at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:229)
      	at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:243)
      	at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.doExecute(ModelControllerClientOperationHandler.java:217)
      	at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.access$400(ModelControllerClientOperationHandler.java:137)
      	at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:161)
      	at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:157)
      	at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:287)
      	at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:244)
      	at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:254)
      	at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:225)
      	at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1.execute(ModelControllerClientOperationHandler.java:157)
      	at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$1.doExecute(ManagementRequestContextImpl.java:70)
      	at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$AsyncTaskRunner.run(ManagementRequestContextImpl.java:160)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      	at org.jboss.threads.JBossThread.run(JBossThread.java:320)
      Caused by: java.lang.RuntimeException: Could not clone digest
      	at sun.security.ssl.HandshakeHash.cloneDigest(HandshakeHash.java:194)
      	at sun.security.ssl.HandshakeHash.getFinishedHash(HandshakeHash.java:247)
      	... 48 more
      Caused by: java.lang.CloneNotSupportedException: SHA-256
      	at sun.security.pkcs11.P11Digest.clone(P11Digest.java:316)
      	at java.security.MessageDigest$Delegate.clone(MessageDigest.java:560)
      	at sun.security.ssl.HandshakeHash.cloneDigest(HandshakeHash.java:191)
      	... 49 more
      Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_STATE_UNSAVEABLE
      	at sun.security.pkcs11.wrapper.PKCS11.C_GetOperationState(Native Method)
      	at sun.security.pkcs11.P11Digest.clone(P11Digest.java:311)
      	... 51 more
      

      Test
      - https://github.com/wildfly/wildfly-core/blob/master/testsuite/standalone/src/test/java/org/jboss/as/test/integration/auditlog/AuditLogToTLSSyslogTestCase.java
      build console log
      - https://jenkins.hosts.mwqe.eng.bos.redhat.com/hudson/job/eap-7x-as-testsuite-test-core-solaris/jdk=java18_default,label_exp=eap-sustaining&&solaris10&&x86_64/71/console
      test log
      - https://jenkins.hosts.mwqe.eng.bos.redhat.com/hudson/job/eap-7x-as-testsuite-test-core-solaris/jdk=java18_default,label_exp=eap-sustaining&&solaris10&&sparc/71/artifact/testsuite/standalone/target/surefire-reports/org.jboss.as.test.integration.auditlog.AuditLogToTLSSyslogTestCase-output.txt

      Can be reproduced with the latest upstream as well.

              msvehla@redhat.com Martin Svehla
              pkremens@redhat.com Petr Kremensky (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: