Get Currently Online Users

Hi,
ERROR
======
Portal Runtime Error
An exception occurred while processing a request for :
iView : N/A
Component Name : N/A
com/sap/ip/collaboration/core/api/ume/portal/IRTCAwarenessService.
Exception id: 03:13_21/03/06_0110_1728550
See the details for the exception ID in the log file
Code
====
import com.sapportals.htmlb.page.DynPage;
import com.sapportals.htmlb.page.PageException;
import com.sapportals.portal.htmlb.page.PageProcessorComponent;
import com.sap.ip.collaboration.rtc.api.ICollaborationAwareness;
import com.sap.ip.collaboration.rtc.api.ICollaborationBase;
import com.sap.security.api.IUser;
import com.sap.security.api.UMFactory;
import com.sapportals.htmlb.*;
import com.sapportals.htmlb.enum.*;
import com.sapportals.portal.prt.component.IPortalComponentResponse;
import com.sapportals.portal.prt.runtime.PortalRuntime;
public class COU extends PageProcessorComponent {
  public DynPage getPage() {
    return new COUDynPage();
  public static class COUDynPage extends DynPage {
Initialization code executed once per user.
    public void doInitialization() {
Input handling code. In general called the first time with the second page request from the user.
    public void doProcessAfterInput() throws PageException {
Create output. Called once per request.
    public void doProcessBeforeOutput() throws PageException {
      Form myForm = this.getForm(); // get the form from DynPage
      IPortalComponentResponse response = (IPortalComponentResponse)this.getResponse();
             response.write("Hello");
      // IUser userId = UMFactory.getUserFactory().getUserByLogonID("126149d");
       String userId = "126149d";
       ICollaborationBase srvc = (ICollaborationBase) PortalRuntime.getRuntimeResources().getService("collaboration_base");
       ICollaborationAwareness mm_awareness = srvc.getAwareness();
       boolean isOnline = mm_awareness.isUserOnline(userId);
      // create your GUI here....
Portalapp.xml
=============
<?xml version="1.0" encoding="utf-8"?>
<application>
  <application-config>
    <property name="SharingReference" value="com.sap.portal.htmlb"/>
        <property name="SharingReference" value="com.sap.ip.collaboration.rtc.api.ICollaborationAwareness"/>   
  </application-config>
  <components>
    <component name="COU">
      <component-config>
        <property name="ClassName" value="com.cts.anand.COU"/>
      </component-config>
      <component-profile/>
    </component>
    <component name="OnlineUsers">
      <component-config>
        <property name="ClassName" value="com.cts.anand.OnlineUsers"/>
      </component-config>
      <component-profile/>
    </component>
  </components>
  <services/>
</application>
What is the problem
Thanks
Kirupanand
Message was edited by: Kirupanand Venkatapathi

HI,
Yoav
I have given the sharing reference
<property name="SharingReference" value="com.sap.ip.collaboration.rtc.api.ICollaborationAwareness"/>
Already found the jar and added it to the project.
Karthick
Already tried the answer you have mentioned.
Log file
#1.5#000D565A73B0005D000000C000000F6000040FB58D06B80F#1143172336138#com.sap.portal.portal#sap.com/irj#com.sap.portal.portal#Guest#192####95a166a0bae911dabd03000d565a73b0#SAPEngine_Application_Thread[impl:3]_9##0#0#Error#1#/System/Server#Java###Exception ID:09:22_24/03/06_0035_4049850
[EXCEPTION]
#1#com.sapportals.portal.prt.component.PortalComponentException: Error in init method
Component : CurrentlyOnlineUsers.COU
at com.sapportals.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:251)
at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.refresh(PortalComponentContextItem.java:267)
at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.getContext(PortalComponentContextItem.java:312)
at com.sapportals.portal.prt.component.PortalComponentRequest.getComponentContext(PortalComponentRequest.java:385)
at com.sapportals.portal.prt.connection.PortalRequest.getRootContext(PortalRequest.java:435)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:607)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)
Caused by: com.sapportals.portal.prt.core.broker.PortalComponentInstantiationException: Could not instantiate implementation class com.cts.anand.COU of Portal Component CurrentlyOnlineUsers.COU because: Could not instantiate implementation class
at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getInstanceInternal(PortalComponentItemFacade.java:269)
at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getComponentInstance(PortalComponentItemFacade.java:160)
at com.sapportals.portal.prt.core.broker.PortalComponentItem.getComponentInstance(PortalComponentItem.java:732)
at com.sapportals.portal.prt.component.PortalComponentContext.getComponent(PortalComponentContext.java:103)
at com.sapportals.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:242)
... 26 more
Caused by: com.sapportals.portal.prt.core.broker.PortalApplicationNotFoundException: Could not find portal application com.sap.ip.collaboration.rtc.api.ICollaborationAwareness
at com.sapportals.portal.prt.core.broker.PortalApplicationItem.prepare(PortalApplicationItem.java:413)
at com.sapportals.portal.prt.core.broker.PortalApplicationItem.prepare(PortalApplicationItem.java:385)
at com.sapportals.portal.prt.core.broker.PortalApplicationItem._refresh(PortalApplicationItem.java:505)
at com.sapportals.portal.prt.core.broker.PortalApplicationItem.getCoreLoader(PortalApplicationItem.java:1334)
at com.sapportals.portal.prt.core.broker.PortalComponentItem.getClassLoader(PortalComponentItem.java:569)
at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getClassLoader(PortalComponentItemFacade.java:102)
at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getInstanceInternal(PortalComponentItemFacade.java:228)
... 30 more
any useful hints needed.

Similar Messages

  • How to track current online users in OID?

    Hello,
    Is there any way to track the number of current online users in OID?(or 10Gas) therefore, I could find out who is online and how many people are online. Does OID provide the feature? Or, I have to write a Java class to record it when a user logon? what if the user doesn't logout and the seesion is timeout?
    Thanks for your help

    PL/SQL code to get number connected users since the beginning of the day :
    DECLARE
    cpt_user integer := 1;
    BEGIN
    select count(distinct(user_name)) into cpt_user from PORTAL.WWCTX_SSO_SESSION$
    WHERE (USER_NAME <> 'PUBLIC')
    AND to_char(PORTAL.WWCTX_SSO_SESSION$.LOGIN_TIME,'dd/mm/yyyy') = to_char(sysdate,'dd/mm/yyyy')
    AND IP_ADDRESS IS NOT NULL;
    htp.p(' <font color="#006699" size="1" style="font-family:Arial, Helvetica, sans-serif" > ' ||cpt_user|| ' connections</font> ') ;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    htp.print('No connection !');
    END;

  • How does BR get current date, user, and associate member with Attribute Dim

    I need use Business rules or Calc script to implement following functions:
    1. Get current date and the name of user who is running the BR and save the information to cube.
    I don't find any functions to get current date and users.
    Also, since text and date is store in relational database and essbase cube only stores the index, it looks that the value can't be changed or stored by using "==" directly, is there any function to change value of members with Text or Date types in BR/Calc script?
    2. End users select attribute value (via smart list) of products or projects(Sparse dimensions) in data form, run BR to update the association of these members with attribute dimension.
    I don't find any functions to change the attribute association in BR/Calc, is there any CDF (Custom Defined Function) that can do it?
    Thanks!

    Hi,
    For the date functionality, check out the post below.
    Re: Days behaviour between two dates
    As for the username, there is a little tricky way that requires an unused or a new dimension along with a smart list of user names. It's also possible to capture the user name from the cookies and pass it on to the form. The latter is possible through validatedata.js however requires hefty coding here and there.
    As for the attributes, it's not possible to update metadata through business rule. So no luck in there.
    Cheers,
    Alp

  • How to get the online user  who are browse some view?

    i want to get the current users who are browsing some view in EP6.additonal:which is developed as web dynpro project.

    Hi,
    Per my knowledge, we cannot get the SharePoint user context available in custom federated search connector with other methods.
    Here is a similar thread for your reference:
    https://answers.atlassian.com/questions/263735/atlassian-sharepoint-connector-federated-search-authentication-and-authorization
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Get current portal user password?

    Is it possible to get the current portal user's password? If so, I need the pl/sql api to accomplish this.

    Hi there,
    I was looking for the same thing but as I understood it is saved in a HASH format and their is NO way to decrypt it.
    The thing I do now is storing the password in a selfmade table besides the SSO tables for administrative use.
    Greets
    cumQuat
    Dave Ruzius

  • How to get current logon user list of biee?

    All,
    I used BIEE 10.1.3.3. I want to export current logon user list to OS file. How to do it? I know BIEE session manager can do it. But I must export session information by java or other program.

    Hi,
    You could create a procedure which stores this information at logon and updates this information at log off.
    On the 'Connection Scripts' tab of a Connection Pool you can define two sorts of scripts; 'Execute on connect' and 'Execute on disconnect'. This way you can store the user_name and the connect and disconnect in a table.
    Good Luck,
    Daan Bakboord

  • How to get current SSO user in HTMLDB?

    I got SSO working for HTMLDB but I can not get the user name of the current user. I log in to Oracle Portal via SSO and navigate to a HTMLDB page. On the page I call portal.wwctx_api.get_user but I get a portal.wwctx_api.INVALID_COOKIE_EXCEPTION exception.
    If don’t log into Portal but go directly to the HTMLDB page I get a portal.wwctx_api.NO_SESSION_EXCEPTION.
    I have also tried using orasso.wwctx_api.get_user but I always get this exception orasso.wwctx_api.NO_SESSION_EXCEPTION. Anybody got an idea?
    If I put the portal.wwctx_api.get_user call I an procedure in the Portal schema it works fine.

    Thanks Dietmar. Yes this is cool behavior :-) Now I have the user how do I check in the OID if the user is member of a certain group? I was planning to use portal.wwsec_api.is_user_in_group but when this is not possible what then? dbms_ldap?
    I just found another post that suggested using wwv_flow_ldap.is_member. It't works fine:
    wwv_flow_ldap.is_member
    ( p_username => v('APP_USER'),
    p_pass => null,
    p_auth_base => 'cn=users,dc=wmdata,dc=dk',
    p_host => 'wmsi0q2071',
    p_port => 389,
    p_group => '101vis_global_sag',
    p_group_base => 'cn=users,dc=wmdata,dc=dk'
    Message was edited by:
    Peter Lorenzen

  • Get current loggedin user using silverlight client object model SharePoint 2010?

    Hello,
    How can i get the current loged in user of sharepoint 2010 in silverlight4.XX  version by programtically in C#?
    Thanks
    Lovkesh Patel

    Hi,
    ClientContext clientContext = ClientContext.Current;
    clientContext.Load(clientContext.Web, s => s.CurrentUser);
    clientContext.ExecuteQueryAsync((sender, args) => {
    var currentUser = clientContext.Web.CurrentUser; }, null);
    For more information:
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.web.currentuser.aspx and
    http://stackoverflow.com/questions/3441794/retrieve-current-user-login-in-sharepoint-from-a-silverlight-application
    Hope this helps you
    Senior Sharepoint Developer,STS [email protected]

  • Getting current windows user name

    Hi all,
    In my BSP application, i would like to fetch the current windows logged in username. I did it using
    Active X Controls. If i ActiveX Objects, i need to change my browser settings. Which i don't want to do.
    Could you tell me anyother way doing it using JAVASCRIPT or VBSCRIPT or anything.
    Regards,
    Ravi Varma

    Halo Durairaj,
    I have seen your answer in the mentioned posting.We are getting a problem if we try the code which you have mentioned in the posting. The problem is that, we need to change security setting of the web browser. Otherwise, the solution is not working. We need to change the setting, because the solution which you have provided works based on ActiveX Controls. Is there any other way, to do the same in BSP?
    Thanks & regards,
    Ravi varma

  • How to get current user in Exchange 2007 OWA customization page?

    Hi,all
    I customize an ASPX page(smsconfig.aspx) in Exchange 2007 OWA( this file in ..\Exchange\ClientAccess\OWA\smsconfig.aspx, I don't modify registry.xml & web.config).
    My Exchange 2007 OWA has been configurated with Forms-Based Auth.
    https://mail.myexchange.com/owa/smsconfig.aspx The page works fine, but it cannot get current logon user with HttpContext.Current.User.Identity or
    UserContext.MailboxIdentity or UserContext.LogonIdentity
    <%@ Page language="c#" AutoEventWireup="false" Inherits="Microsoft.Exchange.Clients.Owa.Core.OwaPage" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <%@ Import namespace="Microsoft.Exchange.Clients"%>
    <%@ Import namespace="Microsoft.Exchange.Clients.Owa.Core"%>
    <%@ Import namespace="Microsoft.Exchange.Clients.Owa.Premium"%>
    <%@ Import Namespace="System" %>
    <%@ Import Namespace="System.Data" %>
    <%@ Import Namespace="System.Data.SqlClient" %>
    <%@ Import Namespace="System.Xml" %>
    <%@ Import Namespace="System.Collections.Generic" %>
    <%@ Import Namespace="System.Text" %>
    <script runat="server">
    。。。(my codes in here)
    </script>
    thanks for your help.
    Your Passion.My Potential.

    Microsoft.Exchange.Clients.Owa.Core.OwaContext.Current.UserContext.LogonIdentity.PrimarySmtpAddress
    Высказанное мною здесь - мои личные взгляды, а не позиции корпорации Microsoft. Вся информация предоставляется "как есть" без каких-либо гарантий.

  • Get current active desktop console user

    Hi,
    I am googling for some time trying to find a way to determine UserID
    of user using the physical console. I am after a command that can be
    run from terminal, ssh, cron.
    "who" shows all users logged in with Fast user switching,
    all of them on 'console' but I see no way to figure out who is
    the one using the desktop that time.
    Many hits point to CGSession, but so far I was not able find the options
    to get the ID of current console user. It is certain that this binary has
    access to the value, because when trying -switchToUserID it can respond with:
    Unable to Fast User Switch: User must be the current console user or root.
    Is there any way to find out current console user? Would appreciate also
    a pointer to some library I can call from C and printf the value.
    Thanks in advance.
    Andrej

    Hi,
    Your post was 100% to the point. Thanks a million. I was hoping there would be a binary in the system already to provide the info needed, so this forum appeared the most appropriate. So far I've never compiled my C program on a Mac but with the info from published documents it was a snap:
    (how to paste code samples to this forum??)
    mac40:timemgmt amk$ cat loguser.c
    #include <stdio.h>
    #include <SystemConfiguration/SystemConfiguration.h>
    #include <CoreFoundation/CFString.h>
    http://developer.apple.com/library/mac/#qa/qa2001/qa1133.html
    http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPMultip leUsers/Concepts/FastUserSwitching.html#//apple_ref/doc/uid/20002209-BAJDIHBJ
    static CFStringRef CopyCurrentConsoleUsername(SCDynamicStoreRef store)
    // Returns the name of the current console user, or NULL if there is
    // none. store may be NULL, in which case a transient dynamic store
    // session is used.
    CFStringRef result;
    result = SCDynamicStoreCopyConsoleUser(store, NULL, NULL);
    // If the current console user is "loginwindow", treat that as equivalent
    // to none.
    if ( (result != NULL) && CFEqual(result, CFSTR("loginwindow")) ) {
    CFRelease(result);
    result = NULL;
    return result;
    main(int ac, char*av)
    CFStringRef cf;
    const char * s;
    if ( ( cf = CopyCurrentConsoleUsername ( NULL ) ) != NULL )
    if ( ( s = CFStringGetCStringPtr ( cf, CFStringGetFastestEncoding ( cf ) ) ) != NULL )
    printf ( "%s\n", s );
    exit ( 0 );
    perror ( "Get current console user" );
    exit ( 1 );
    mac40:timemgmt amk$ cc -o loguser loguser.c -framework CoreFoundation -framework SystemConfiguration
    mac40:timemgmt amk$ who | grep console
    ivka console Nov 25 07:11
    eyetv console Nov 22 12:31
    mac40:timemgmt amk$ ./loguser
    eyetv
    mac40:timemgmt amk$
    BTW, I am trying to implement a kind of distributed parental control with global time limits over multiple computers.
    Thanks!

  • List of currently online RTC users

    Hi all,
    I am trying to write an iView which shows a list of all currently online users (users which have the collaboration launchpad running and the status set to online) under EP6.0 SPS15.
    Which API calls should I use? I already searched here but did not find the correct one:
    https://media.sdn.sap.com/javadocs/NW04/SPS15/km/index.html
    Thanks in advance
    Francisco

    Hi Francisco,
       Check these threads.
    <a href="http://">https://www.sdn.sap.com/irj/sdn/thread?threadID=94752</a>
    <a href="http://">https://www.sdn.sap.com/irj/sdn/thread?threadID=104485</a>
    <a href="http://">https://www.sdn.sap.com/irj/sdn/thread?threadID=99462</a>
    hope it helps.
    Ragards,
    Saravanan

  • Report with online users

    How can I create a report with current online users of the application?
    J.

    Hello Janis,
    >> How can I create a report with current online users of the application?
    What you are asking is not trivial at all, and not possible “out of the box”. How do you define an online user in a web environment? It’s not like the user have a continues/permanent connection with the web server. The following thread elaborate more on the subject - Identify currently active users .
    If you have a specific need, or you are trying to solve a specific problem, and the referenced thread didn’t give you an idea for solution, please elaborate and will see if we can help you further.
    Regards,
    Arie.

  • Why doesn't my List of Online Users' Module give a list?

    Hi All,
    Module 'Online Users' for the secure zone looks like
    http://www.virtualteacher.com.au/images/Screen%20Shot%202014-07-13%20at%209.47.58%20am.png
    Showing listing - however this module only shows one user online - the user logged into the computer.
    I would like to show either a list of current online users or the number of current online users.
    Any suggestions how this might be done??
    ciao
    Cathy

    From the Menu bar, select: "Show status bar"

  • How to Get the Current Logged user location ID in SharePoint online

    Hi All ,
    Please suggest me how we can get the SharePoint online current Login user
    Location ID
    Actually i want to show the weather report in my SharePoint online site (App Part in SharePoint Online Site)
    Suppose SPO user Login From India(Delhi) so that i want to show the India(Delhi) weather report
    If Login user from US(dallas) so that US user see the US(dallas) weather report 
    Thanks
    Deepak Chauhan
    SharePoint 2010 & 2013 and Office-365 Branding and Front End Customization, UI Design

    @Mohamed
    Derhalli ,
    Suppose SPO user Login From India(Delhi) so that i want to show the India(Delhi) weather report
    If Login user from US(dallas) so that US user see the US(dallas) weather report
    so without using how we can show the weather report can you please suggest me how we can show the weather report
    Reply ..
    Thanks
    Deepak Chauhan 
    SharePoint 2010 & 2013 and Office-365 Branding and Front End Customization, UI Design

Maybe you are looking for