You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by fattymelt <se...@gmail.com> on 2007/12/21 18:29:05 UTC
wicket.WicketRuntimeException: Unable to decrypt the text ... ???
running wicket 1.2.6 and getting the following error. This is somehow
triggered (I wish I had a more specific test case) by my login form. But
what is really strange is that it isn't just appearing on form submission.
Once I see the error in the logs, it occurs even on a page refresh. I am
wondering if this has something to do with reading/writing cookies or
something then?
[2007-12-21 12:07:35,729][ERROR] Problem applying encryption; go on without
for now
wicket.WicketRuntimeException: Unable to decrypt the text '[B@b2018c'
at
wicket.util.crypt.AbstractCrypt.decryptByteArray(AbstractCrypt.java:187)
at wicket.util.crypt.AbstractCrypt.decrypt(AbstractCrypt.java:68)
at
wicket.markup.html.form.PasswordTextField.setModelValue(PasswordTextField.java:136)
at
wicket.markup.html.form.persistence.CookieValuePersister.load(CookieValuePersister.java:72)
at wicket.markup.html.form.Form$1.formComponent(Form.java:267)
at wicket.markup.html.form.Form$4.component(Form.java:465)
at wicket.MarkupContainer.visitChildren(MarkupContainer.java:744)
at wicket.markup.html.form.Form.visitFormComponents(Form.java:461)
at
wicket.markup.html.form.Form.loadPersistentFormComponentValues(Form.java:251)
at wicket.Page$7.component(Page.java:985)
at wicket.MarkupContainer.visitChildren(MarkupContainer.java:744)
at wicket.MarkupContainer.visitChildren(MarkupContainer.java:759)
at wicket.Page.setFormComponentValuesFromCookies(Page.java:980)
at wicket.Page.renderPage(Page.java:357)
at
wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:67)
at
wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:49)
at
wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66)
at
wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:902)
at
wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:929)
at wicket.RequestCycle.step(RequestCycle.java:1010)
at wicket.RequestCycle.steps(RequestCycle.java:1084)
at wicket.RequestCycle.request(RequestCycle.java:454)
at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)
at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:324)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
Caused by: javax.crypto.IllegalBlockSizeException: Input length must be
multiple of 8 when decrypting with padded cipher
at com.sun.crypto.provider.SunJCE_h.b(DashoA12275)
at com.sun.crypto.provider.SunJCE_h.b(DashoA12275)
at com.sun.crypto.provider.SunJCE_af.b(DashoA12275)
at
com.sun.crypto.provider.PBEWithMD5AndDESCipher.engineDoFinal(DashoA12275)
at javax.crypto.Cipher.doFinal(DashoA12275)
at wicket.util.crypt.SunJceCrypt.crypt(SunJceCrypt.java:102)
at
wicket.util.crypt.AbstractCrypt.decryptByteArray(AbstractCrypt.java:183)
... 41 more
--
View this message in context: http://www.nabble.com/wicket.WicketRuntimeException%3A-Unable-to-decrypt-the-text-...-----tp14459194p14459194.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: wicket.WicketRuntimeException: Unable to decrypt the text ... ???
Posted by Eelco Hillenius <ee...@gmail.com>.
On Dec 21, 2007 9:29 AM, fattymelt <se...@gmail.com> wrote:
>
> running wicket 1.2.6 and getting the following error. This is somehow
> triggered (I wish I had a more specific test case) by my login form. But
> what is really strange is that it isn't just appearing on form submission.
> Once I see the error in the logs, it occurs even on a page refresh. I am
> wondering if this has something to do with reading/writing cookies or
> something then?
>
> [2007-12-21 12:07:35,729][ERROR] Problem applying encryption; go on without
> for now
> wicket.WicketRuntimeException: Unable to decrypt the text '[B@b2018c'
> at
> wicket.util.crypt.AbstractCrypt.decryptByteArray(AbstractCrypt.java:187)
> at wicket.util.crypt.AbstractCrypt.decrypt(AbstractCrypt.java:68)
> at
> wicket.markup.html.form.PasswordTextField.setModelValue(PasswordTextField.java:136)
> at
> wicket.markup.html.form.persistence.CookieValuePersister.load(CookieValuePersister.java:72)
Yeah, seems to be related to how it tries to resurrect cookies for the
password field. And easy fix is to turn off the crypting (like I
believe we do in 1.3 now?) by setting a dummy implementation of
ICrypt.
Eelco
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org