Fórum
User Monitoring / User status (Online / Offline)
kiesa viciius, modificado 11 Anos atrás.
User Monitoring / User status (Online / Offline)
Junior Member Postagens: 28 Data de Entrada: 22/08/11 Postagens Recentes
Hey ,
I have tried to enable the Liferay Monitoring tool to track current online users . I have enabled live users and some other stuff :
after that I have restarted the server and logged in with Bruno (Firefox) Richard (Chrome) and Test (Opera) , the Monitoring tool wasn't showing any users Online I only saw the message "There are no live sessions. " although I'm logged in with 3 users.
Is this because of the Bug : http://issues.liferay.com/browse/LPS-24822 or am I doing it wrong ?
I'm working with Liferay 6.1.0 CE-GA1
I have tried to enable the Liferay Monitoring tool to track current online users . I have enabled live users and some other stuff :
live.users.enabled=true
session.tracker.persistence.enabled=true
session.tracker.friendly.paths.enabled=true
after that I have restarted the server and logged in with Bruno (Firefox) Richard (Chrome) and Test (Opera) , the Monitoring tool wasn't showing any users Online I only saw the message "There are no live sessions. " although I'm logged in with 3 users.
Is this because of the Bug : http://issues.liferay.com/browse/LPS-24822 or am I doing it wrong ?
I'm working with Liferay 6.1.0 CE-GA1
Florencia Hernández, modificado 11 Anos atrás.
RE: User Monitoring / User status (Online / Offline)
Regular Member Postagens: 146 Data de Entrada: 27/03/12 Postagens Recentes
I have the same problem, even loggin in with different machines.
Has anyone been able to make this work?
Has anyone been able to make this work?
Joe D, modificado 11 Anos atrás.
RE: User Monitoring / User status (Online / Offline)
New Member Postagens: 12 Data de Entrada: 19/04/12 Postagens Recentes
Hi,
I got the same issue.
live.users.enabled=true
session.tracker.memory.enabled=true
I saw this error when the user login and fixed it but it does not help.
18:57:37,564 INFO [stdout] (ajp--10.218.103.201-8009-6) com.liferay.portal.kernel.events.ActionException: java.lang.NullPointerException
18:57:37,564 INFO [stdout] (ajp--10.218.103.201-8009-6) at com.liferay.portal.events.LoginPostAction.run(LoginPostAction.java:103)
I got the same issue.
live.users.enabled=true
session.tracker.memory.enabled=true
I saw this error when the user login and fixed it but it does not help.
18:57:37,564 INFO [stdout] (ajp--10.218.103.201-8009-6) com.liferay.portal.kernel.events.ActionException: java.lang.NullPointerException
18:57:37,564 INFO [stdout] (ajp--10.218.103.201-8009-6) at com.liferay.portal.events.LoginPostAction.run(LoginPostAction.java:103)
Julien Ripault, modificado 11 Anos atrás.
RE: User Monitoring / User status (Online / Offline)
New Member Postagens: 15 Data de Entrada: 19/03/12 Postagens Recentes
Hi,
got the same issue. I dig a bit in the Liferay code and I stumble upon that method :
getLocalClusterNode() in the CLusterExecutorUtil. The NPE comes from here where _clusterExecutor seems not to be instanciated.
I tried to go further but I found nothing
Any help will be appreciated
Thanks
got the same issue. I dig a bit in the Liferay code and I stumble upon that method :
getLocalClusterNode() in the CLusterExecutorUtil. The NPE comes from here where _clusterExecutor seems not to be instanciated.
I tried to go further but I found nothing
Any help will be appreciated
Thanks
Joe D, modificado 11 Anos atrás.
RE: User Monitoring / User status (Online / Offline)
New Member Postagens: 12 Data de Entrada: 19/04/12 Postagens Recentes
I hope this might help someone
There is a bug in LoginPostAction.java. You need to fix this in EXT plug in (or ext environment)
if (PropsValues.LIVE_USERS_ENABLED) {
JSONObject jsonObject = JSONFactoryUtil.createJSONObject();
String clusterNodeId = "0";
ClusterNode clusterNode = ClusterExecutorUtil.getLocalClusterNode();
if (clusterNode != null){
clusterNodeId = clusterNode.getClusterNodeId();
}
jsonObject.put("clusterNodeId", clusterNodeId);
jsonObject.put("command", "signIn");
jsonObject.put("companyId", companyId);
jsonObject.put("remoteAddr", request.getRemoteAddr());
jsonObject.put("remoteHost", request.getRemoteHost());
jsonObject.put("sessionId", session.getId());
String userAgent = request.getHeader(HttpHeaders.USER_AGENT);
jsonObject.put("userAgent", userAgent);
userId = PortalUtil.getUserId(request);
jsonObject.put("userId", userId);
MessageBusUtil.sendMessage(
DestinationNames.LIVE_USERS, jsonObject.toString());
}
There is a bug in LoginPostAction.java. You need to fix this in EXT plug in (or ext environment)
if (PropsValues.LIVE_USERS_ENABLED) {
JSONObject jsonObject = JSONFactoryUtil.createJSONObject();
String clusterNodeId = "0";
ClusterNode clusterNode = ClusterExecutorUtil.getLocalClusterNode();
if (clusterNode != null){
clusterNodeId = clusterNode.getClusterNodeId();
}
jsonObject.put("clusterNodeId", clusterNodeId);
jsonObject.put("command", "signIn");
jsonObject.put("companyId", companyId);
jsonObject.put("remoteAddr", request.getRemoteAddr());
jsonObject.put("remoteHost", request.getRemoteHost());
jsonObject.put("sessionId", session.getId());
String userAgent = request.getHeader(HttpHeaders.USER_AGENT);
jsonObject.put("userAgent", userAgent);
userId = PortalUtil.getUserId(request);
jsonObject.put("userId", userId);
MessageBusUtil.sendMessage(
DestinationNames.LIVE_USERS, jsonObject.toString());
}
Lazuardi Hilmil Muttaqien, modificado 11 Anos atrás.
RE: User Monitoring / User status (Online / Offline)
New Member Postagens: 2 Data de Entrada: 24/08/12 Postagens Recentes
Dear Joe
I found 5 LoginPostAction.java when i search.
/opt/liferay-6.1.0-1/apache-tomcat/webapps/mail-portlet/WEB-INF/src/com/liferay/mail/hook/events/LoginPostAction.java
/opt/liferay-6.1.0-1/apache-tomcat/webapps/chat-portlet/WEB-INF/src/com/liferay/chat/hook/events/LoginPostAction.java
/opt/liferay-6.1.0-1/apache-tomcat/temp/9-chat-portlet/WEB-INF/src/com/liferay/chat/hook/events/LoginPostAction.java
/opt/liferay-6.1.0-1/apache-tomcat/temp/6-mail-portlet/WEB-INF/src/com/liferay/mail/hook/events/LoginPostAction.java
/opt/liferay-6.1.0-1/apache-tomcat/temp/8-chat-portlet/WEB-INF/src/com/liferay/chat/hook/events/LoginPostAction.java
Which should I update the script?
I found 5 LoginPostAction.java when i search.
/opt/liferay-6.1.0-1/apache-tomcat/webapps/mail-portlet/WEB-INF/src/com/liferay/mail/hook/events/LoginPostAction.java
/opt/liferay-6.1.0-1/apache-tomcat/webapps/chat-portlet/WEB-INF/src/com/liferay/chat/hook/events/LoginPostAction.java
/opt/liferay-6.1.0-1/apache-tomcat/temp/9-chat-portlet/WEB-INF/src/com/liferay/chat/hook/events/LoginPostAction.java
/opt/liferay-6.1.0-1/apache-tomcat/temp/6-mail-portlet/WEB-INF/src/com/liferay/mail/hook/events/LoginPostAction.java
/opt/liferay-6.1.0-1/apache-tomcat/temp/8-chat-portlet/WEB-INF/src/com/liferay/chat/hook/events/LoginPostAction.java
Which should I update the script?
Luis Mas, modificado 11 Anos atrás.
RE: User Monitoring / User status (Online / Offline)
Regular Member Postagens: 146 Data de Entrada: 18/05/09 Postagens Recentes
None of them, you should look at source code: portal-impl\src\com\liferay\portal\events/LoginPostAction.java.
For that you should develop a Hook or Ext:
http://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/overriding-a-portal-servi-4
http://www.liferay.com/es/community/forums/-/message_boards/message/14696867
For that you should develop a Hook or Ext:
http://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/overriding-a-portal-servi-4
http://www.liferay.com/es/community/forums/-/message_boards/message/14696867