users@glassfish.java.net

Re: GF3 TP2: java.security.NoSuchAlgorithmException "DESede"

From: <glassfish_at_javadesktop.org>
Date: Wed, 14 May 2008 19:28:29 PDT

JVM: build 1.6.0_05-b13

Here is the full stack trace:

May 14, 2008 5:24:07 PM org.apache.catalina.core.StandardWrapperValve log
SEVERE: StandardWrapperValve[jsp]: PWC1406: Servlet.service() for servlet jsp threw exception
net.sourceforge.stripes.exception.StripesRuntimeException: Could not encrypt value.
        at net.sourceforge.stripes.util.CryptoUtil.encrypt(CryptoUtil.java:144)
        at net.sourceforge.stripes.tag.FormTag.doEndTag(FormTag.java:230)
        at org.apache.jsp.index_jsp._jspx_meth_stripes_form_0(index_jsp.java from :154)
        at org.apache.jsp.index_jsp._jspService(index_jsp.java from :75)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:487)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:381)
        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 net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:210)
        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:304)
        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 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
        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:286)
        at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:605)
        at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:536)
        at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:785)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:137)
        at com.sun.enterprise.v3.services.impl.HttpProtocolFilter.execute(HttpProtocolFilter.java:129)
        at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:61)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:75)
        at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:52)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:54)
        at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:154)
Caused by: net.sourceforge.stripes.exception.StripesRuntimeException: Could not generate a Cipher.
        at net.sourceforge.stripes.util.CryptoUtil.getCipher(CryptoUtil.java:225)
        at net.sourceforge.stripes.util.CryptoUtil.encrypt(CryptoUtil.java:127)
        ... 43 more
Caused by: net.sourceforge.stripes.exception.StripesRuntimeException: Could not generate a secret key.
        at net.sourceforge.stripes.util.CryptoUtil.getSecretKey(CryptoUtil.java:268)
        at net.sourceforge.stripes.util.CryptoUtil.getCipher(CryptoUtil.java:217)
        ... 44 more
Caused by: java.security.NoSuchAlgorithmException: DESede SecretKeyFactory not available
        at javax.crypto.SecretKeyFactory.<init>(DashoA13*..)
        at javax.crypto.SecretKeyFactory.getInstance(DashoA13*..)
        at net.sourceforge.stripes.util.CryptoUtil.getSecretKey(CryptoUtil.java:263)
        ... 45 more
[Message sent by forum member 'massimoh' (massimoh)]

http://forums.java.net/jive/thread.jspa?messageID=274449