[appengine-java] Re: problem with using session.getAttribute()

2009-11-25 Thread addy.bhardwaj
Guys

I had a similar issue when I was using JSF. What I found in my case
was if I set an attribute  (say dummy string "key" "value") on every
request, the other values stored in the session are maintained.

If I dont do that, on every subsequent request in which nothing is
saved in the session, other saved values are dropped (this happens
only on appspot not dev server). This all started when I tried
debugging my code on appspot. But I still can't comprehend why this is
happening.

Try the approach and let me know if it works in your case as well.

On Nov 25, 1:58 am, Rusty Wright  wrote:
> Did you enable sessions?
>
> http://code.google.com/appengine/docs/java/config/appconfig.html
>
> See the section near the end, Enabling Sessions.
>
>
>
> Steph wrote:
> > I also have the same issue when retrieving session objects from a
> > servlet filter, and running in the local sandbox.
>
> > On Nov 21, 10:11 pm, Sanjay  wrote:
> >> Did you solve this problem? I am facing exactly same problem, it would
> >> be nice if you could share the solution if you found one.
>
> >> Thank you
>
> > --
>
> > You received this message because you are subscribed to the Google Groups 
> > "Google App Engine for Java" group.
> > To post to this group, send email to google-appengine-j...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-appengine-java+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-appengine-java?hl=en.

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.




[appengine-java] Re: JSF 2.0.1 java.lang.ClassNotFoundException: void

2009-11-23 Thread addy.bhardwaj
I had a similar issue. The way I fixed it was to configure state
saving to client rather than server. For details check my blog
http://consultingblogs.emc.com/jaddy/archive/2009/11/20/jsf2-in-google-app-engine.aspx

Let me know if this fixes your problem.

On Nov 12, 6:15 pm, Mirco Attocchi  wrote:
> Problem using majorra 2.0.1 and GAE 1.2.6, but some times pages render
> correctly.
>
> javax.servlet.ServletException: java.lang.RuntimeException:
> java.lang.ClassNotFoundException: void
>         at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle
> (AppVersionHandlerMap.java:240)
>         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.serviceReques t
> (JettyServletEngineAdapter.java:139)
>         at com.google.apphosting.runtime.JavaRuntime.handleRequest
> (JavaRuntime.java:239)
>         at com.google.apphosting.base.RuntimePb$EvaluationRuntime
> $6.handleBlockingRequest(RuntimePb.java:5135)
>         at com.google.apphosting.base.RuntimePb$EvaluationRuntime
> $6.handleBlockingRequest(RuntimePb.java:5133)
>         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:814)
>         at com.google.tracing.LocalTraceSpanRunnable.run
> (LocalTraceSpanRunnable.java:56)
>         at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan
> (LocalTraceSpanBuilder.java:516)
>         at com.google.net.rpc.impl.Server.startRpc(Server.java:769)
>         at com.google.net.rpc.impl.Server.processRequest(Server.java:351)
>         at com.google.net.rpc.impl.ServerConnection.messageReceived
> (ServerConnection.java:437)
>         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:
> 436)
>         at com.google.net.async.EventDispatcher.processNetworkEvents
> (EventDispatcher.java:762)
>         at com.google.net.async.EventDispatcher.internalLoop
> (EventDispatcher.java:207)
>         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:396)
>         at java.lang.Thread.run(Unknown Source)
> Caused by: java.lang.RuntimeException:
> java.lang.ClassNotFoundException: void
>         at com.google.apphosting.runtime.jetty.SessionManager.deserialize
> (SessionManager.java:389)
>         at com.google.apphosting.runtime.jetty.SessionManager.loadSession
> (SessionManager.java:307)
>         at com.google.apphosting.runtime.jetty.SessionManager.getSession
> (SessionManager.java:282)
>         at org.mortbay.jetty.servlet.AbstractSessionManager.getHttpSession
> (AbstractSessionManager.java:237)
>         at org.mortbay.jetty.Request.getSession(Request.java:998)
>         at
> com.sun.faces.application.WebappLifecycleListener.syncSessionScopedBeans
> (WebappLifecycleListener.java:393)
>         at com.sun.faces.application.WebappLifecycleListener.requestDestroyed
> (WebappLifecycleListener.java:117)
>         at com.sun.faces.config.ConfigureListener.requestDestroyed
> (ConfigureListener.java:341)
>         at org.mortbay.jetty.handler.ContextHandler.handle
> (ContextHandler.java:725)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> 405)
>         at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle
> (AppVersionHandlerMap.java:238)
>         ... 27 more
> Caused by: java.lang.ClassNotFoundException: void
>         at com.google.appengine.runtime.Request.process-7a0672406190a0e0
> (Request.java)
>         ... 35 more

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=.