[ 
https://issues.apache.org/jira/browse/HUPA-4?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12758448#action_12758448
 ] 

Manuel Carrasco commented on HUPA-4:
------------------------------------

Hello Norman,

Dont worry, my environment is working fine, I checked out the project and it 
started to work.

I'm doing some improvements in hupa code related with this issue, but I'm a bit 
busy and I need more time.
I'd like to comment these changes with you before sending the patch. Basically 
I've coded a new rpc call in order to ask the server if the user is 
authenticated, this method is executed each time the user receives an error 
from the server. So it is easy to detect if the reason of the error is due to a 
lack of connectivity or an invalid session. In the second case the application 
shows the login screen, in the first a message is shown in the top of the 
screen informing that the server is inaccessible.  Also the noop timer uses 
this call.

So far I've most of this code working, so I'll produce a patch in order to be 
reviewed by you.

Let me know your opinion.

Regards.
Manolo

 

> [bug] logout action fails
> -------------------------
>
>                 Key: HUPA-4
>                 URL: https://issues.apache.org/jira/browse/HUPA-4
>             Project: JAMES Hupa
>          Issue Type: Bug
>          Components: server
>         Environment: tomcat
>            Reporter: Manuel Carrasco
>            Assignee: Norman Maurer
>         Attachments: Screenshot.png
>
>
> Clicking on the logout link nothing happens.
> This was that I did:
> - The user's session was expired
> - I deployed last hupa war
> - I clicked the logout action
> This is the server log:
> 2009-09-06 08:10:46.965:/hupa:WARN:  
> Key[type=net.customware.gwt.dispatch.server.service.DispatchServiceServlet, 
> annotation=[none]]: An IncompatibleRemoteServiceException was thrown while 
> processing this call.
> com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Type 
> 'org.apache.hupa.shared.rpc.LogoutUser' was not assignable to 
> 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom 
> field serializer.  For security purposes, this type will not be deserialized.
>       at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:298)
>       at 
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
>       at 
> com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>       at 
> com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:231)
>       at 
> com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:142)
>       at 
> com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:93)
>       at 
> com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:63)
>       at 
> com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:122)
>       at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:110)
>       at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1178)
>       at 
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:433)
>       at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:118)
>       at 
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:456)
>       at 
> org.eclipse.jetty.server.session.SessionHandler.handle(SessionHandler.java:179)
>       at 
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:928)
>       at 
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:370)
>       at 
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:862)
>       at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:116)
>       at 
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:243)
>       at 
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
>       at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:115)
>       at org.eclipse.jetty.server.Server.handle(Server.java:330)
>       at 
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:557)
>       at 
> org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:947)
>       at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:736)
>       at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:209)
>       at 
> org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:413)
>       at 
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:438)
>       at 
> org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:435)
>       at java.lang.Thread.run(Thread.java:619)
> Caused by: com.google.gwt.user.client.rpc.SerializationException: Type 
> 'org.apache.hupa.shared.rpc.LogoutUser' was not assignable to 
> 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom 
> field serializer.  For security purposes, this type will not be deserialized.
>       at 
> com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateDeserialize(LegacySerializationPolicy.java:123)
>       at 
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:490)
>       at 
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:61)
>       at 
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader$ValueReader$8.readValue(ServerSerializationStreamReader.java:131)
>       at 
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue(ServerSerializationStreamReader.java:372)
>       at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:287)
>       ... 31 more
> 2009-09-06 08:11:00.453:/hupa:WARN:  
> Key[type=net.customware.gwt.dispatch.server.service.DispatchServiceServlet, 
> annotation=[none]]: An IncompatibleRemoteServiceException was thrown while 
> processing this call.
> com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Type 
> 'org.apache.hupa.shared.rpc.Noop' was not assignable to 
> 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom 
> field serializer.  For security purposes, this type will not be deserialized.
>       at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:298)
>       at 
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
>       at 
> com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>       at 
> com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:231)
>       at 
> com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:142)
>       at 
> com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:93)
>       at 
> com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:63)
>       at 
> com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:122)
>       at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:110)
>       at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1178)
>       at 
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:433)
>       at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:118)
>       at 
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:456)
>       at 
> org.eclipse.jetty.server.session.SessionHandler.handle(SessionHandler.java:179)
>       at 
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:928)
>       at 
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:370)
>       at 
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:862)
>       at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:116)
>       at 
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:243)
>       at 
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
>       at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:115)
>       at org.eclipse.jetty.server.Server.handle(Server.java:330)
>       at 
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:557)
>       at 
> org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:947)
>       at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:736)
>       at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:209)
>       at 
> org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:413)
>       at 
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:438)
>       at 
> org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:435)
>       at java.lang.Thread.run(Thread.java:619)
> Caused by: com.google.gwt.user.client.rpc.SerializationException: Type 
> 'org.apache.hupa.shared.rpc.Noop' was not assignable to 
> 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom 
> field serializer.  For security purposes, this type will not be deserialized.
>       at 
> com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateDeserialize(LegacySerializationPolicy.java:123)
>       at 
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:490)
>       at 
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:61)
>       at 
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader$ValueReader$8.readValue(ServerSerializationStreamReader.java:131)
>       at 
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue(ServerSerializationStreamReader.java:372)
>       at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:287)
>       ... 31 more

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to