You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Ali Ok (JIRA)" <de...@myfaces.apache.org> on 2010/02/16 14:25:27 UTC

[jira] Created: (MYFACES-2559) Google App Engine Support for Myfaces 2

Google App Engine Support for Myfaces 2
---------------------------------------

                 Key: MYFACES-2559
                 URL: https://issues.apache.org/jira/browse/MYFACES-2559
             Project: MyFaces Core
          Issue Type: Improvement
          Components: JSR-314
    Affects Versions: 2.0.0-beta
         Environment: Google App Engine
            Reporter: Ali Ok
            Priority: Minor


Google App Engine Support for Myfaces 2

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (MYFACES-2559) Google App Engine Support for Myfaces 2

Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842231#action_12842231 ] 

Jakob Korherr commented on MYFACES-2559:
----------------------------------------

Got it too, it occurs when guessing the number right and hitting the back button:

javax.faces.FacesException: javax.crypto.BadPaddingException: Given final block not properly padded
	at org.apache.myfaces.context.ExceptionHandlerImpl.wrap(ExceptionHandlerImpl.java:241)
	at org.apache.myfaces.context.ExceptionHandlerImpl.handle(ExceptionHandlerImpl.java:156)
	at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:157)
	at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:88)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:189)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
	at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:97)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
	at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:35)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
	at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
	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:712)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
	at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:238)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
	at org.mortbay.jetty.Server.handle(Server.java:313)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)
	at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:76)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
	at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:135)
	at com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:235)
	at com.google.apphosting.base.RuntimePb$EvaluationRuntime$6.handleBlockingRequest(RuntimePb.java:5485)
	at com.google.apphosting.base.RuntimePb$EvaluationRuntime$6.handleBlockingRequest(RuntimePb.java:5483)
	at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:24)
	at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:363)
	at com.google.net.rpc.impl.Server$2.run(Server.java:837)
	at com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java:56)
	at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java:536)
	at com.google.net.rpc.impl.Server.startRpc(Server.java:792)
	at com.google.net.rpc.impl.Server.processRequest(Server.java:367)
	at com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java:448)
	at com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java:319)
	at com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java:290)
	at com.google.net.async.Connection.handleReadEvent(Connection.java:474)
	at com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java:774)
	at com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java:205)
	at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:101)
	at com.google.net.rpc.RpcService.runUntilServerShutdown(RpcService.java:251)
	at com.google.apphosting.runtime.JavaRuntime$RpcRunnable.run(JavaRuntime.java:394)
	at java.lang.Thread.run(Unknown Source)
Caused by: javax.crypto.BadPaddingException: Given final block not properly padded
	at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
	at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
	at com.sun.crypto.provider.DESCipher.engineDoFinal(DashoA13*..)
	at javax.crypto.Cipher.doFinal(DashoA13*..)
	at org.apache.myfaces.shared_impl.util.StateUtils.symmetric(StateUtils.java:471)
	at org.apache.myfaces.shared_impl.util.StateUtils.symmetric(StateUtils.java:513)
	at org.apache.myfaces.shared_impl.util.StateUtils.decrypt(StateUtils.java:313)
	at org.apache.myfaces.shared_impl.util.StateUtils.reconstruct(StateUtils.java:262)
	at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getSavedState(HtmlResponseStateManager.java:213)
	at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getState(HtmlResponseStateManager.java:160)
	at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:406)
	at org.apache.myfaces.shared_impl.view.ViewDeclarationLanguageBase.restoreView(ViewDeclarationLanguageBase.java:106)
	at org.apache.myfaces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:240)
	at com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:318)
	at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:109)
	at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:138)
	... 43 more


> Google App Engine Support for Myfaces 2
> ---------------------------------------
>
>                 Key: MYFACES-2559
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2559
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Google App Engine
>            Reporter: Ali Ok
>            Assignee: Matthias Weßendorf
>            Priority: Minor
>             Fix For: 2.0.0-beta-3
>
>         Attachments: 2559.patch
>
>
> Google App Engine Support for Myfaces 2

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (MYFACES-2559) Google App Engine Support for Myfaces 2

Posted by "Ali Ok (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-2559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ali Ok updated MYFACES-2559:
----------------------------

    Status: Patch Available  (was: Open)

> Google App Engine Support for Myfaces 2
> ---------------------------------------
>
>                 Key: MYFACES-2559
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2559
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Google App Engine
>            Reporter: Ali Ok
>            Priority: Minor
>         Attachments: 2559.patch
>
>
> Google App Engine Support for Myfaces 2

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (MYFACES-2559) Google App Engine Support for Myfaces 2

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12841125#action_12841125 ] 

Matthias Weßendorf commented on MYFACES-2559:
---------------------------------------------

Thanks for the patch!

I slightly modified the facelet documentation part, as no viewhandler needed in vanilla jsf2

> Google App Engine Support for Myfaces 2
> ---------------------------------------
>
>                 Key: MYFACES-2559
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2559
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Google App Engine
>            Reporter: Ali Ok
>            Assignee: Matthias Weßendorf
>            Priority: Minor
>             Fix For: 2.0.0-beta-3
>
>         Attachments: 2559.patch
>
>
> Google App Engine Support for Myfaces 2

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (MYFACES-2559) Google App Engine Support for Myfaces 2

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-2559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthias Weßendorf updated MYFACES-2559:
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0-beta-3
         Assignee: Matthias Weßendorf
           Status: Resolved  (was: Patch Available)

> Google App Engine Support for Myfaces 2
> ---------------------------------------
>
>                 Key: MYFACES-2559
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2559
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Google App Engine
>            Reporter: Ali Ok
>            Assignee: Matthias Weßendorf
>            Priority: Minor
>             Fix For: 2.0.0-beta-3
>
>         Attachments: 2559.patch
>
>
> Google App Engine Support for Myfaces 2

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (MYFACES-2559) Google App Engine Support for Myfaces 2

Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842385#action_12842385 ] 

Jakob Korherr commented on MYFACES-2559:
----------------------------------------

I think the problem is because of MyFaces' state saving algorithm. I saw that you're using client state saving in the example and I guess the Exception occurs when the request is populated to another machine on Google's infrastructure. It seems like another machine is not able to decode the view state generated by an other machine, which of course should not be the case.

Take a look at the state saving algorithm, Ali. Especially at the encoding and decoding stuff for client state saving. I'm sure you'll find something there!

> Google App Engine Support for Myfaces 2
> ---------------------------------------
>
>                 Key: MYFACES-2559
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2559
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Google App Engine
>            Reporter: Ali Ok
>            Assignee: Matthias Weßendorf
>            Priority: Minor
>             Fix For: 2.0.0-beta-3
>
>         Attachments: 2559-doc.patch, 2559.patch
>
>
> Google App Engine Support for Myfaces 2

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (MYFACES-2559) Google App Engine Support for Myfaces 2

Posted by "Ali Ok (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12834209#action_12834209 ] 

Ali Ok commented on MYFACES-2559:
---------------------------------

I created a new ticket for Myfaces2 since there are some differences between Myfaces2 and Myfaces 1.2.
You can see the ticket for Google App Engine Support Myfaces 1.2 on:
https://issues.apache.org/jira/browse/MYFACES-2504

> Google App Engine Support for Myfaces 2
> ---------------------------------------
>
>                 Key: MYFACES-2559
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2559
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Google App Engine
>            Reporter: Ali Ok
>            Priority: Minor
>         Attachments: 2559.patch
>
>
> Google App Engine Support for Myfaces 2

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (MYFACES-2559) Google App Engine Support for Myfaces 2

Posted by "Ali Ok (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842354#action_12842354 ] 

Ali Ok commented on MYFACES-2559:
---------------------------------

About javax.crypto.BadPaddingException: "Given final block not properly padded":
I thought this was about session handling or something and ignored it since it seemed not about Myfaces or GAE. I thought this problem was occured because of this number-guess application. But I am not sure...

I didn't get the error using the pattern you said. Finding the correct number didn't resulted in this error.  I couldnt find a pattern. It seems random.

I see a JIRA issue is fired for this error before.
I will work on this problem.

> Google App Engine Support for Myfaces 2
> ---------------------------------------
>
>                 Key: MYFACES-2559
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2559
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Google App Engine
>            Reporter: Ali Ok
>            Assignee: Matthias Weßendorf
>            Priority: Minor
>             Fix For: 2.0.0-beta-3
>
>         Attachments: 2559-doc.patch, 2559.patch
>
>
> Google App Engine Support for Myfaces 2

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (MYFACES-2559) Google App Engine Support for Myfaces 2

Posted by "Mathias Walter (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842230#action_12842230 ] 

Mathias Walter commented on MYFACES-2559:
-----------------------------------------

Guessing the correct number results in a javax.crypto.BadPaddingException: "Given final block not properly padded".

I'm not sure if it's an application error or related to MyFACES.

Anyway, a test application should work.

> Google App Engine Support for Myfaces 2
> ---------------------------------------
>
>                 Key: MYFACES-2559
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2559
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Google App Engine
>            Reporter: Ali Ok
>            Assignee: Matthias Weßendorf
>            Priority: Minor
>             Fix For: 2.0.0-beta-3
>
>         Attachments: 2559.patch
>
>
> Google App Engine Support for Myfaces 2

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (MYFACES-2559) Google App Engine Support for Myfaces 2

Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842227#action_12842227 ] 

Jakob Korherr commented on MYFACES-2559:
----------------------------------------

Great work, guys :)

> Google App Engine Support for Myfaces 2
> ---------------------------------------
>
>                 Key: MYFACES-2559
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2559
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Google App Engine
>            Reporter: Ali Ok
>            Assignee: Matthias Weßendorf
>            Priority: Minor
>             Fix For: 2.0.0-beta-3
>
>         Attachments: 2559.patch
>
>
> Google App Engine Support for Myfaces 2

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (MYFACES-2559) Google App Engine Support for Myfaces 2

Posted by "Ali Ok (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845612#action_12845612 ] 

Ali Ok commented on MYFACES-2559:
---------------------------------

I fired another ticket for this problem:
https://issues.apache.org/jira/browse/MYFACES-2606

> Google App Engine Support for Myfaces 2
> ---------------------------------------
>
>                 Key: MYFACES-2559
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2559
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Google App Engine
>            Reporter: Ali Ok
>            Assignee: Matthias Weßendorf
>            Priority: Minor
>             Fix For: 2.0.0-beta-3
>
>         Attachments: 2559-doc.patch, 2559.patch
>
>
> Google App Engine Support for Myfaces 2

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.