Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 37790 invoked from network); 12 Sep 2008 13:41:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Sep 2008 13:41:54 -0000 Received: (qmail 27647 invoked by uid 500); 12 Sep 2008 13:41:51 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 27336 invoked by uid 500); 12 Sep 2008 13:41:49 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 27325 invoked by uid 99); 12 Sep 2008 13:41:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Sep 2008 06:41:49 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cagatay.civici@gmail.com designates 66.249.92.175 as permitted sender) Received: from [66.249.92.175] (HELO ug-out-1314.google.com) (66.249.92.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Sep 2008 13:40:49 +0000 Received: by ug-out-1314.google.com with SMTP id k40so1294272ugc.38 for ; Fri, 12 Sep 2008 06:41:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=KEUhx+dxsirY32oKxRKhecG5TWZgJRYKkm6vxP+HNuM=; b=syL8iHkDhym7E4FIXlLWo/Xl9XBMeGysFewls3jq1KkEJx0eowXzdXTzJhDfZr4MEM n9kuOWjvFV4J+Ys1NGrDdhRYSCInOMwoTfO5Sj8bal754FWgK2sEuoH+Vn3M8Exw1fdv JSh7hBl3ad5puiD/cIbF8HSmviUmaNEuKEyAM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=fksio2/aJDTxd2VUQDlA/mNksPVc5XfFoj+AUg2Hi8kDOLchW7js58oriGl0/JajSU N9h0BJ/h0jIkifbkf7uSiPJh3fL9D5PmaBGlzdLD+6CF4YRgOynyAhzm2qfdtI08tcnE 6U5uGcHBTIL2xGISi8CqKJ3hmFKOvpNB29hRw= Received: by 10.210.51.18 with SMTP id y18mr5104166eby.160.1221226866435; Fri, 12 Sep 2008 06:41:06 -0700 (PDT) Received: by 10.210.37.6 with HTTP; Fri, 12 Sep 2008 06:41:06 -0700 (PDT) Message-ID: <8c9d4eaa0809120641v77d9243bub574bb39d67a5022@mail.gmail.com> Date: Fri, 12 Sep 2008 16:41:06 +0300 From: "Cagatay Civici" To: "MyFaces Development" Subject: Re: [Tomahawk] Tomahawk 1.1.7 inputSuggestAjax problem In-Reply-To: <20080912133457.GA21565@West.NL> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_51485_5521192.1221226866461" References: <20080912133457.GA21565@West.NL> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_51485_5521192.1221226866461 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Seems client state encryption causes this issue. Try with this; org.apache.myfaces.USE_ENCRYPTION false Cagatay On Fri, Sep 12, 2008 at 4:34 PM, Gertjan van Oosten wrote: > 2008-06-16 15:01 lu4242 > > When I use the current inputSuggestAjax from Tomahawk 1.1.7-SNAPSHOT > I get the following stacktrace: > > 12 sep 2008 15:16:26 ERROR (_ErrorPageWriter.java:460) - An exception > occurred > javax.faces.FacesException: javax.crypto.IllegalBlockSizeException: Input > length must be multiple of 8 when decrypting with padded cipher > at > org.apache.myfaces.shared_impl.util.StateUtils.symmetric(StateUtils.java:373) > at > org.apache.myfaces.shared_impl.util.StateUtils.symmetric(StateUtils.java:411) > at > org.apache.myfaces.shared_impl.util.StateUtils.decrypt(StateUtils.java:291) > at > org.apache.myfaces.shared_impl.util.StateUtils.reconstruct(StateUtils.java:240) > at > org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getSavedState(HtmlResponseStateManager.java:187) > at > org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getState(HtmlResponseStateManager.java:139) > at > org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:306) > at > org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:515) > at > com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:316) > [...] > 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.DESCipher.engineDoFinal(DashoA12275) > at javax.crypto.Cipher.doFinal(DashoA12275) > at > org.apache.myfaces.shared_impl.util.StateUtils.symmetric(StateUtils.java:369) > ... 61 more > 12 sep 2008 15:16:26 WARN (DefaultAddResource.java:363) - MyFaces special > javascript could not be retrieved from request-map. > > > When I revert the following change in FacesIO.js: > > * [r668179] > > core/src/main/resources/org/apache/myfaces/custom/dojoextensions/resource/FacesIO.js: > TOMAHAWK-1157 tableSuggestAjax not render with trinidad > > the inputSuggestAjax works again as before. > This is with MyFaces-1.2.4, Tomahawk/sandbox 1.1.7-SNAPSHOT and Facelets. > Can this be fixed before the 1.1.7 release? > > Regards, > -- > -- Gertjan van Oosten, Principal Consultant, West Consulting B.V. > -- gertjan@West.NL +31 15 2191 600 www.west.nl > ------=_Part_51485_5521192.1221226866461 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi,

Seems client state encryption causes this issue.

Try with this;

<context-param>
        <param-name>org.apache.myfaces.USE_ENCRYPTION</param-name>
        <param-value>false</param-value>
    </context-param>

Cagatay

On Fri, Sep 12, 2008 at 4:34 PM, Gertjan van Oosten <gertjan@west.nl> wrote:
2008-06-16 15:01  lu4242

When I use the current inputSuggestAjax from Tomahawk 1.1.7-SNAPSHOT
I get the following stacktrace:

12 sep 2008 15:16:26 ERROR (_ErrorPageWriter.java:460) - An exception occurred
javax.faces.FacesException: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher
       at org.apache.myfaces.shared_impl.util.StateUtils.symmetric(StateUtils.java:373)
       at org.apache.myfaces.shared_impl.util.StateUtils.symmetric(StateUtils.java:411)
       at org.apache.myfaces.shared_impl.util.StateUtils.decrypt(StateUtils.java:291)
       at org.apache.myfaces.shared_impl.util.StateUtils.reconstruct(StateUtils.java:240)
       at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getSavedState(HtmlResponseStateManager.java:187)
       at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getState(HtmlResponseStateManager.java:139)
       at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:306)
       at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:515)
       at com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:316)
       [...]
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.DESCipher.engineDoFinal(DashoA12275)
       at javax.crypto.Cipher.doFinal(DashoA12275)
       at org.apache.myfaces.shared_impl.util.StateUtils.symmetric(StateUtils.java:369)
       ... 61 more
12 sep 2008 15:16:26 WARN  (DefaultAddResource.java:363) - MyFaces special javascript could not be retrieved from request-map.


When I revert the following change in FacesIO.js:

       * [r668179]
         core/src/main/resources/org/apache/myfaces/custom/dojoextensions/resource/FacesIO.js:
         TOMAHAWK-1157 tableSuggestAjax not render with trinidad

the inputSuggestAjax works again as before.
This is with MyFaces-1.2.4, Tomahawk/sandbox 1.1.7-SNAPSHOT and Facelets.
Can this be fixed before the 1.1.7 release?

Regards,
--
-- Gertjan van Oosten, Principal Consultant, West Consulting B.V.
-- gertjan@West.NL     +31 15 2191 600       www.west.nl

------=_Part_51485_5521192.1221226866461--