Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-6459

live console output broken on glassfish enterprise

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • core
    • None
    • Glassfish Enterprise Server 2.1

    Description

      Hi,

      My Hudson is running on Glassfish Enterprise Server version 2.1.
      When I want to see live console output, I get the following exception:
      [#|2010-05-06T12:42:24.118+0200|SEVERE|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=33;_ThreadName=httpSSLWorkerThread-8080-3;_RequestID=a73df4d8-4776-47d7-b0ad-bf267f30c844;|StandardWrapperValve[Stapler]: PWC1406: Servlet.service() for servlet Stapler threw exception
      java.security.ProviderException: update() failed
      at sun.security.pkcs11.P11Cipher.implUpdate(P11Cipher.java:557)
      at sun.security.pkcs11.P11Cipher.engineUpdate(P11Cipher.java:457)
      at sun.security.pkcs11.P11Cipher.engineUpdate(P11Cipher.java:445)
      at javax.crypto.Cipher.update(DashoA13*..)
      at javax.crypto.CipherOutputStream.write(DashoA13*..)
      at javax.crypto.CipherOutputStream.write(DashoA13*..)
      at java.util.zip.GZIPOutputStream.writeHeader(GZIPOutputStream.java:123)
      at java.util.zip.GZIPOutputStream.<init>(GZIPOutputStream.java:48)
      at java.util.zip.GZIPOutputStream.<init>(GZIPOutputStream.java:58)
      at hudson.console.AnnotatedLargeText.writeHtmlTo(AnnotatedLargeText.java:156)
      at hudson.console.AnnotatedLargeText.writeLogTo(AnnotatedLargeText.java:142)
      at org.kohsuke.stapler.framework.io.LargeText.doProgressText(LargeText.java:187)
      at hudson.console.AnnotatedLargeText.doProgressiveHtml(AnnotatedLargeText.java:92)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:169)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:101)
      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:54)
      at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:74)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:519)
      at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:144)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:519)
      at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:318)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:519)
      at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:180)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:519)
      at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:180)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:519)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:435)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:123)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
      at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)
      at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
      at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
      at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
      at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)
      at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579)
      at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831)
      at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
      at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
      at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
      at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)
      at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
      at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
      Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_DEVICE_ERROR
      at sun.security.pkcs11.wrapper.PKCS11.C_EncryptUpdate(Native Method)
      at sun.security.pkcs11.P11Cipher.implUpdate(P11Cipher.java:510)
      ... 93 more

      #]

      Notice once the build is finished, console output is working fine.
      The above stack trace is a known "bug" in Glassfish Enterprise. It is caused by hardware accelerator crypto provider declared as the default crypto provider in Glassfish Enterprise even if you have no hardware accelerator card.
      The common workaround is to specify the crypto provider as "SunJCE" to avoid this when using crypto API.

      Regards,

      Laurent.

      Attachments

        Activity

          sauvage sauvage created issue -
          sauvage sauvage added a comment -
          sauvage sauvage added a comment - This bug is caused by glassfish bug https://glassfish.dev.java.net/issues/show_bug.cgi?id=11862
          mindless Alan Harder made changes -
          Field Original Value New Value
          Assignee mindless [ mindless ]
          mindless Alan Harder added a comment -

          added workaround for Hudson 1.358

          mindless Alan Harder added a comment - added workaround for Hudson 1.358

          Code changed in hudson
          User: : mindless
          Path:
          trunk/hudson/main/core/src/main/java/hudson/console/AnnotatedLargeText.java
          trunk/hudson/main/core/src/main/java/hudson/model/UsageStatistics.java
          trunk/hudson/main/core/src/main/java/hudson/util/Protector.java
          trunk/hudson/main/core/src/main/java/hudson/util/Secret.java
          trunk/www/changelog.html
          http://jenkins-ci.org/commit/30793
          Log:
          [FIXED JENKINS-6459] workaround for bug in Glassfish Enterprise

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : mindless Path: trunk/hudson/main/core/src/main/java/hudson/console/AnnotatedLargeText.java trunk/hudson/main/core/src/main/java/hudson/model/UsageStatistics.java trunk/hudson/main/core/src/main/java/hudson/util/Protector.java trunk/hudson/main/core/src/main/java/hudson/util/Secret.java trunk/www/changelog.html http://jenkins-ci.org/commit/30793 Log: [FIXED JENKINS-6459] workaround for bug in Glassfish Enterprise
          scm_issue_link SCM/JIRA link daemon made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          sauvage sauvage added a comment -

          Current workaround does not work because the Cipher initialization does work. The CKR_DEVICE_ERROR occurs after, when cipher is used.

          sauvage sauvage added a comment - Current workaround does not work because the Cipher initialization does work. The CKR_DEVICE_ERROR occurs after, when cipher is used.
          sauvage sauvage made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          mindless Alan Harder added a comment -

          ick, it returns you a nonfunctioning object? hm.

          mindless Alan Harder added a comment - ick, it returns you a nonfunctioning object? hm.
          mindless Alan Harder added a comment -

          you can visit Manage Hudson / Script Console and try to find a simple API we can use to detect the problem. Example:

          hudson.util.Secret.getCipher("AES").getProvider()

          Here is the javadoc for Cipher class: http://java.sun.com/javase/6/docs/api/javax/crypto/Cipher.html

          If you can find a simple call that triggers the exception, then I can make it automatically fallback to SunJCE. Otherwise I'll add a system property to make it use "SunJCE" provider, and document in the wiki how to set that up for Glassfish enterprise.

          mindless Alan Harder added a comment - you can visit Manage Hudson / Script Console and try to find a simple API we can use to detect the problem. Example: hudson.util.Secret.getCipher("AES").getProvider() Here is the javadoc for Cipher class: http://java.sun.com/javase/6/docs/api/javax/crypto/Cipher.html If you can find a simple call that triggers the exception, then I can make it automatically fallback to SunJCE. Otherwise I'll add a system property to make it use "SunJCE" provider, and document in the wiki how to set that up for Glassfish enterprise.
          sauvage sauvage added a comment -

          Following script throws PKCS11Exception:

          def key = [(byte)0x1c, (byte)0xea,(byte)0x4c,(byte)0xf0,(byte)0xde,(byte)0x43,(byte)0x65,(byte)0x49,(byte)0xea,(byte)0x9a,(byte)0x3d,(byte)0x1d,(byte)0xae,(byte)0x02,(byte)0x2d,(byte)0x77] as byte[];
          def aes = hudson.util.Secret.getCipher("AES");
          aes.init(javax.crypto.Cipher.ENCRYPT_MODE, new javax.crypto.spec.SecretKeySpec(key, "AES"));
          println(new String(aes.doFinal("test".getBytes())));

          If i use def aes = javax.crypto.Cipher.getInstance("AES", "SunJCE"); there's no exception

          sauvage sauvage added a comment - Following script throws PKCS11Exception: def key = [(byte)0x1c, (byte)0xea,(byte)0x4c,(byte)0xf0,(byte)0xde,(byte)0x43,(byte)0x65,(byte)0x49,(byte)0xea,(byte)0x9a,(byte)0x3d,(byte)0x1d,(byte)0xae,(byte)0x02,(byte)0x2d,(byte)0x77] as byte[]; def aes = hudson.util.Secret.getCipher("AES"); aes.init(javax.crypto.Cipher.ENCRYPT_MODE, new javax.crypto.spec.SecretKeySpec(key, "AES")); println(new String(aes.doFinal("test".getBytes()))); If i use def aes = javax.crypto.Cipher.getInstance("AES", "SunJCE"); there's no exception
          mindless Alan Harder added a comment -

          Thanks for the code snippet.. I went back and forth in my head for a while, and finally decided I don't know the crypto stuff well enough to put that in as a check that will be used in all cases.. I'd rather go with code that does nothing until you turn it on, so I'm adding a system property that Glassfish Enterprise users can use to workaround that glassfish bug until it is fixed.

          mindless Alan Harder added a comment - Thanks for the code snippet.. I went back and forth in my head for a while, and finally decided I don't know the crypto stuff well enough to put that in as a check that will be used in all cases.. I'd rather go with code that does nothing until you turn it on, so I'm adding a system property that Glassfish Enterprise users can use to workaround that glassfish bug until it is fixed.

          Code changed in hudson
          User: : mindless
          Path:
          branches/rc/core/src/main/java/hudson/util/Secret.java
          trunk/hudson/main/core/src/main/java/hudson/util/Secret.java
          trunk/www/changelog.html
          http://jenkins-ci.org/commit/31455
          Log:
          [FIXED JENKINS-6459] Fix in 1.358 did not work because exception thrown
          when Cipher is used, not when it is created. Refactor to use a system
          property to force a particular provider, so Glassfish Enterprise users
          can workaround this glassfish bug until it is fixed. In 1.360.

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : mindless Path: branches/rc/core/src/main/java/hudson/util/Secret.java trunk/hudson/main/core/src/main/java/hudson/util/Secret.java trunk/www/changelog.html http://jenkins-ci.org/commit/31455 Log: [FIXED JENKINS-6459] Fix in 1.358 did not work because exception thrown when Cipher is used, not when it is created. Refactor to use a system property to force a particular provider, so Glassfish Enterprise users can workaround this glassfish bug until it is fixed. In 1.360.
          scm_issue_link SCM/JIRA link daemon made changes -
          Resolution Fixed [ 1 ]
          Status Reopened [ 4 ] Resolved [ 5 ]
          mindless Alan Harder added a comment - System property documented in: http://wiki.jenkins-ci.org/display/JENKINS/Features+controlled+by+system+properties and http://wiki.jenkins-ci.org/display/JENKINS/Glassfish
          sauvage sauvage added a comment -

          Using hudson.util.Secret.provider system property, I have live console output and slave creation working again.
          Thank you very much mindless.

          sauvage sauvage added a comment - Using hudson.util.Secret.provider system property, I have live console output and slave creation working again. Thank you very much mindless.
          abayer Andrew Bayer made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

          I encounter similar issue. It looks like hudson.util.Secret.provider system property is ignored in L10nDecorator:
          [#|2012-05-21T14:09:47.032+0200|WARNING|sun-appserver2.1|hudson.ExpressionFactory2$JexlExpression|_ThreadID=35;_ThreadName=Handling GET /hudson/log/all : httpSSLWorkerThread-8080-2;_RequestID=3bf1485b-830d-4b76-95c5-8485c503a0a9;|Caught exception evaluating: it.encodeRecording(request). Reason: java.security.ProviderException: update() failed
          java.security.ProviderException: update() failed
          at sun.security.pkcs11.P11Cipher.implUpdate(P11Cipher.java:547)
          at sun.security.pkcs11.P11Cipher.engineUpdate(P11Cipher.java:447)
          at sun.security.pkcs11.P11Cipher.engineUpdate(P11Cipher.java:435)
          at javax.crypto.Cipher.update(DashoA13*..)
          at javax.crypto.CipherOutputStream.write(DashoA13*..)
          at javax.crypto.CipherOutputStream.write(DashoA13*..)
          at java.util.zip.GZIPOutputStream.writeHeader(GZIPOutputStream.java:123)
          at java.util.zip.GZIPOutputStream.<init>(GZIPOutputStream.java:48)
          at java.util.zip.GZIPOutputStream.<init>(GZIPOutputStream.java:58)
          at hudson.plugins.translation.L10nDecorator.encodeRecording(L10nDecorator.java:84)
          at sun.reflect.GeneratedMethodAccessor333.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:258)
          at org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:104)
          at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83)
          at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57)
          at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51)
          at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80)
          at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:72)
          at org.apache.commons.jelly.impl.ExpressionScript.run(ExpressionScript.java:66)
          at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
          at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
          at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
          at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
          at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:81)
          at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:146)
          at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:270)
          at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161)
          at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:150)
          at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:270)
          at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
          at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
          at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
          at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
          at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
          at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
          at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:119)
          at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
          at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:81)
          at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:63)
          at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:53)
          at org.kohsuke.stapler.jelly.JellyFacet$1.dispatch(JellyFacet.java:95)
          at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:571)
          at org.kohsuke.stapler.Stapler.invoke(Stapler.java:656)
          at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:203)
          at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
          at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:571)
          at org.kohsuke.stapler.Stapler.invoke(Stapler.java:656)
          at org.kohsuke.stapler.Stapler.invoke(Stapler.java:485)
          at org.kohsuke.stapler.Stapler.service(Stapler.java:159)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
          at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
          at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
          at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
          at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
          at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
          at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
          at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
          at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
          at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
          at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
          at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
          at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:61)
          at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
          at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
          at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
          at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
          at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)
          at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
          at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
          at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
          at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
          at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
          at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
          at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
          at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
          at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
          at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
          at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
          at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
          at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
          at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
          at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)
          at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579)
          at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831)
          at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
          at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
          at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
          at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
          at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
          Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_DEVICE_ERROR
          at sun.security.pkcs11.wrapper.PKCS11.C_EncryptUpdate(Native Method)
          at sun.security.pkcs11.P11Cipher.implUpdate(P11Cipher.java:500)
          ... 112 more

          #]
          lsauvage Laurent Sauvage added a comment - I encounter similar issue. It looks like hudson.util.Secret.provider system property is ignored in L10nDecorator: [#|2012-05-21T14:09:47.032+0200|WARNING|sun-appserver2.1|hudson.ExpressionFactory2$JexlExpression|_ThreadID=35;_ThreadName=Handling GET /hudson/log/all : httpSSLWorkerThread-8080-2;_RequestID=3bf1485b-830d-4b76-95c5-8485c503a0a9;|Caught exception evaluating: it.encodeRecording(request). Reason: java.security.ProviderException: update() failed java.security.ProviderException: update() failed at sun.security.pkcs11.P11Cipher.implUpdate(P11Cipher.java:547) at sun.security.pkcs11.P11Cipher.engineUpdate(P11Cipher.java:447) at sun.security.pkcs11.P11Cipher.engineUpdate(P11Cipher.java:435) at javax.crypto.Cipher.update(DashoA13*..) at javax.crypto.CipherOutputStream.write(DashoA13*..) at javax.crypto.CipherOutputStream.write(DashoA13*..) at java.util.zip.GZIPOutputStream.writeHeader(GZIPOutputStream.java:123) at java.util.zip.GZIPOutputStream.<init>(GZIPOutputStream.java:48) at java.util.zip.GZIPOutputStream.<init>(GZIPOutputStream.java:58) at hudson.plugins.translation.L10nDecorator.encodeRecording(L10nDecorator.java:84) at sun.reflect.GeneratedMethodAccessor333.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:258) at org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:104) at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83) at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57) at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51) at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80) at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:72) at org.apache.commons.jelly.impl.ExpressionScript.run(ExpressionScript.java:66) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:81) at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:146) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:270) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161) at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:150) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:270) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:119) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:81) at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:63) at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:53) at org.kohsuke.stapler.jelly.JellyFacet$1.dispatch(JellyFacet.java:95) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:571) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:656) at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:203) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:571) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:656) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:485) at org.kohsuke.stapler.Stapler.service(Stapler.java:159) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:61) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214) at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265) at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106) Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_DEVICE_ERROR at sun.security.pkcs11.wrapper.PKCS11.C_EncryptUpdate(Native Method) at sun.security.pkcs11.P11Cipher.implUpdate(P11Cipher.java:500) ... 112 more #]
          lsauvage Laurent Sauvage made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          danielbeck Daniel Beck added a comment -

          lsauvage: Could you check /systemInfo URL to see whether the system property is actually set correctly?

          danielbeck Daniel Beck added a comment - lsauvage : Could you check /systemInfo URL to see whether the system property is actually set correctly?
          danielbeck Daniel Beck added a comment -

          No response to comment asking for updated information in three weeks, so resolving as Fixed again.

          danielbeck Daniel Beck added a comment - No response to comment asking for updated information in three weeks, so resolving as Fixed again.
          danielbeck Daniel Beck made changes -
          Resolution Fixed [ 1 ]
          Status Reopened [ 4 ] Resolved [ 5 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 136554 ] JNJira + In-Review [ 187231 ]

          People

            mindless Alan Harder
            sauvage sauvage
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: