02-26-2007 02:07 PM
03-01-2007 09:01 AM
WebServiceFactory.getAuthenticationService().endSession(session.getTicket());
where session is the AuthenticationResult object returned when the session was started (using web services as well).03-05-2007 10:57 AM
//Logout WebClient + WebServices
private void web_client_logout(RenderResponse response)
throws IOException{
String logout_str;
logout_str = "http://";
logout_str += alfresco_server_address;
logout_str += ":" + alfresco_server_port;
logout_str += "/alfresco/navigate/logout";
response.getWriter().println(logout_str);
response.getWriter().println("<IFRAME SRC=\""+logout_str+"\" HEIGHT=\"0px\" WIDTH=\"0px\"></IFRAME>");
if (session != null){
WebServiceFactory.getAuthenticationService().endSession(session.getTicket());
session = null;
}
}
Estado HTTP 500 -
——————————————————————————–
type Informe de Excepción
mensaje
descripción El servidor encontró un error interno () que hizo que no pudiera rellenar este requerimiento.
excepción
org.alfresco.error.AlfrescoRuntimeException: Failed to authenticate as Guest user.
org.alfresco.web.app.servlet.AuthenticationHelper.authenticate(AuthenticationHelper.java:209)
org.alfresco.web.app.servlet.BaseServlet.servletAuthenticate(BaseServlet.java:124)
org.alfresco.web.app.servlet.ExternalAccessServlet.service(ExternalAccessServlet.java:82)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
nota La traza completa de la causa de este error se encuentra en los archivos de diario de Apache Tomcat/5.5.17.
16:50:59,406 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/alfresco].[externalAccess]] Servlet.service() para servlet externalAccess lanzó excepciónBut If I click on "refresh" button on navigator it displays the Homefolder for user "guest"…
org.alfresco.error.AlfrescoRuntimeException: Failed to authenticate as Guest user.
at org.alfresco.web.app.servlet.AuthenticationHelper.authenticate(AuthenticationHelper.java:209)
at org.alfresco.web.app.servlet.BaseServlet.servletAuthenticate(BaseServlet.java:124)
at org.alfresco.web.app.servlet.ExternalAccessServlet.service(ExternalAccessServlet.java:82)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.IllegalStateException: setAttribute: La Sesión ya ha sido invalidada
at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1247)
at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:129)
at org.alfresco.web.app.servlet.AuthenticationHelper.authenticate(AuthenticationHelper.java:180)
… 17 more
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.