How To...BI Java SDK in Portal iView Help

Hi all,
I'm trying to run the tutorial 'How To...Use The BI Java SDK in a Portal iView' but having some problems.
First, if i add to the portalapp.xml file the lines:
<property name="SharingReference" value="SAPJ2EE::library:com.sap.ip.bi.sdk,htmlb,com.sap.portal.ivs.connectorservice"/>
I get the following error:
Could not find portal application SAPJ2EE::library:com.sap.ip.bi.sdk.
If i add to the portalapp.xml file only the lines:
<property name="SharingReference" value="htmlb,com.sap.portal.ivs.connectorservice"/>
i get an exception that can't find the class com/sap/ip/bi/sdk/dac/connector/IBIConnection, although i think i added all the necessary jars to the project, because it compiles.
What am i missing or doing wrong ???
Best Regards,
Keren

Hi,
This piece of code will unlock a user :
     public void unlock(String uniqueNameOfUser) throws UMException {
          IUserFactory userFactory = UMFactory.getUserFactory();
          IUserAccountFactory userAccountFactory =
               UMFactory.getUserAccountFactory();
          try {
               IUser user = userFactory.getUserByUniqueName(uniqueNameOfUser);
               Iterator userAccounts = user.getUserAccountUniqueIDs();
               while (userAccounts.hasNext()) {
                    IUserAccount userAccount =
                         userAccountFactory.getMutableUserAccount(
                              userAccounts.next().toString());
                    userAccount.setLocked(false, IUserAccount.LOCKED_NO);
                    userAccount.commit();
Regards,
Pierre
Edited by: Pierre DOMINIQUE on Jul 16, 2009 5:38 PM

Similar Messages

  • How can install java sdk for mac os x 10.6.8

    How can install java sdk for mac os x 10.6.8?

    Deanwdd wrote:
    I mean to update Quicktime for Mac Os X 10.6.8...
    If you're running 10.6.8, Apple menu > Software Update. What version of QT do you have?

  • Caching issue - How ro remove cache from the portal iview

    Hi,
    I am facing problem of caching.In my application I am substituting one user(user 1) to some other user(user 2).Based on the substitution(latest substitute user 2),I should get the values for the User 2.
    But after substitution,I am getting the values for the user 1 and after some time(2/3 second) I am able to get all the values for the User 2.The application is working fine.But some how its retaing the previous values of the user 1.
    Can anyone please suggest me how to remove the cache from the iview.
    Regards
    -Sandip

    Hi Sandip,
    Enterprise Portal caching can be taken care or in a number of ways, all these are listed in the doc below:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/71d7b8dc-0701-0010-dfba-881dba1b5b95
    - Regards, Dibya

  • How to uninstall Java SDK 1.5.0_14

    Dear,
    I just installed a brand new Solaris 10 and latest patch cluster.
    Default on my system are the following 2 folders under /usr/jdk:
    j2sdk1.4.2_11 and jdk1.5.0_06
    I installed the Java SDK 1.5.0_14, but in the wrong destination folder.
    When I check my Java version with "Java -version"
    java version "1.5.0_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
    Java HotSpot(TM) Server VM (build 1.5.0_06-b05, mixed mode)
    Why I don't have the latest one, the SDK 1.5.0_14 ?
    My question: I want a proper situation with only the Java SDK 1.5.0_14 installed.
    How do I remove Java SDK 1.5.0_14.
    How do I remove Java SDK 1.5.0_6
    Do I have to remove the 1.4.2_11 ?
    Thx guys...

    Thx for your answer...
    I want to have the installation of Java SDK 1.5.0_14 in a different location ?
    Can I just move the folder ?
    But I guess it's better to do uninstall and re-install it ?
    Right ?
    Thx in advance guys... (I'm not yet worked in in this stuff...)

  • How to Uninstall Java SDK Eval Package?

    First, some background info: I am not a Java programmer, but I need to have the Java SDK v1.4.1 (or later) installed on my Solaris 8 Sparc platform in order to be able to run some 3rd-party web-based database software tools.
    I accidentally installed the 'evaluation' Enterprise version of the Java SDK v1.4.1. I did not uninstall the underlying 1.2.1_04 JDK, so that still shows up when I run the "java -version" command, probably because I did not use the 'pkgadd' utility to add the eval SDK. Now I want to erase the evalware, but I'm afraid I might clobber something else in the process. How do I go about uninstalling the eval SDK?

    Thx for your answer...
    I want to have the installation of Java SDK 1.5.0_14 in a different location ?
    Can I just move the folder ?
    But I guess it's better to do uninstall and re-install it ?
    Right ?
    Thx in advance guys... (I'm not yet worked in in this stuff...)

  • How to use Java SDK to schedule a report in business objects

    hi guys i am having a scenario , were the Java SDK will be passing the parameters dynamically to the report in business objects . the Java SDK is kicked by the file based events. this Java SDK will be on the unix server and the business object is also on the unix server. I am having the crystal reports in boe which need to be triggered by the Java SDK . such that the report is scheduled to a particular location on the unix  for every week,when the java passes the parameters to the report in boe
    Edited by: americansalt on Nov 4, 2010 11:30 AM

    You can do this by using the BOE SDK. Here are some samples:
    http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/806fc83f-18ba-2b10-f2b9-cbb49963fc93
    Regards,
    Stratos

  • Intro To Java Programming student needing help on how to download java SDK on 10.6.8

    Hey Ladies and Gents,
    For the past hour I have been trying to download Java SDK for my 10.6.8 Mac. Can someone point me in the right direction. I am taking a course in intro to Java programming and the book I am using isnt as helpful as I hoped.

    SE 6 development kits support SE 5 constructs.  Just watch that you use only SE 5 constructs.  Texts on 5 will not list the 6 constructs, and texts on 6 are available that tell what came when.
    There is another forum (https://discussions.apple.com/community/developer_forums) where "developers" troll for questions to answer, and your developer questions will stay at the top of the list longer than in MacbookPro forum.

  • How to trigger navigation to a portal iView from server side event handler

    Hi,
    I am modifying the workset map application. I have created custom URL links under each iView which should navigate to different iViews depending on some business logic. So I had to provide a custom event handler for these iVIew links and the path to the next iview is dynamically created by the code in the event handler. Once the new PCD path is generated, the event handler should trigger a navigation to that PCD object. Which APIs can I use to trigger this navigation from the server side event handler? I have done this before in webdynpro where we used WDPortalNavigation (.absoluteNavigation or .relativeNavigation). Is there something similar that i can use in this case (i.e. when developing a simple Portal Application from an AbstractPortalComponent)?

    Hi,
    On my understanding of your requirement.
    the best solution what i think is use Object Based Navigation(OBN).
    Is much suitable to your requirement.
    Moreover you can use
    1.Relative navigation
    2.Absolute navigation.
    In the same way how you used in web dynpro.
    Same thing can be done in abstract portal component also.
    Try using that.
    Thanks & Regards,
    Lokesh
    Edited by: lokesh kamana on Aug 11, 2008 7:23 AM

  • Having trouble with creation of a cloud service with multiple virtual machines using java sdk.

    I am creating a cloud service on azure with 2 virtual machines using java sdk API. Service created successfully.
    My input endpoint details are as follows.
    INPUT ENDPOINTS
    Head : 191.238.144.47:2400
    Head : 191.238.144.47:22
    Node0 : 191.238.144.47:43211
    For Head instance port 2400 is for HTTPS and port 22 is for SSH and for Node0 instance port 43211 is for SSH.
    But I am having problem with doing a ssh on Head instance. Sometimes it works sometimes doesn't. Same problem with HTTPS also.
    I have some application running over there but when i try to access it thru browser sometimes it works but most of the time doesn't. When I restart the instances from azure portal, its works after
    that(not always but most of the time). 
    Now I am confused what is going on there. I am creating cloud service and virtual machines using java sdk and setting input endpoints also. After creation of all instances i restart every instance programmatically .
    I am not sure whether restart is required or not. It must be something to do with input endpoints only but not able to get the right thing i guess. When i do the same thing thru azure portal(creation of cloud service with virtual machines and setting up input
    end points) everything works fine but not achieving the result when implementing it by java sdk API. Please help me.

    HI Nithin,
    Thanks for your reply. I am setting the endpoints after creating my instances using update call. Here's the code snippet.
    AzureService aServ = new AzureService(session);
     if(aServ.checkNameAvailability(clusterName)) {
               aServ.createHostedService(clusterName, "dbX cluster");         
             // Creating head instance
             aServ.createHead(clusterName, imgName, headType, userName, pswd);  
            // Setting end points for head node
             String name = "ssh";
             int port = 22;
             aServ.updateVMInputEndpoint(clusterName, "Head", name, port);
             // Restarting head instance
             aServ.restartVM(clusterName, "Head");
           String roleName = "Node";
           String tmpRoleName = "";
           for(int i=0; i<noi; i++) {
                      port = 43210+(i+1);
                      tmpRoleName = roleName + i;
                   // Creating node instance
                    aServ.createVM(clusterName, tmpRoleName, imgName, nodeType, userName, pswd);
                  // Setting end points for node instance
                   aServ.updateVMInputEndpoint(clusterName, tmpRoleName, name, port);
                  // Restarting node instance
                 aServ.restartVM(clusterName, tmpRoleName);
          // Method to update the input endpoint details 
          public void updateVMInputEndpoint(String clusterName, String vmName, String name, int port)
            throws Exception {
                    VirtualMachineGetResponse resp = computeManagementClient.getVirtualMachinesOperations().
                                                            get(clusterName, clusterName, vmName);
                    VirtualMachineUpdateParameters updateParameters = new VirtualMachineUpdateParameters();
                    //get the configuration list
                    ArrayList<ConfigurationSet> configlist = resp.getConfigurationSets();
                    //get inputendpoint list and update it
                    ArrayList<InputEndpoint> endpointlist = configlist.get(0).getInputEndpoints();
                    InputEndpoint inputEndpoint = new InputEndpoint();
                    inputEndpoint.setEnableDirectServerReturn(false);
                    inputEndpoint.setPort(port);
                    inputEndpoint.setLocalPort(port);
                    inputEndpoint.setName(name);
                    inputEndpoint.setProtocol(InputEndpointTransportProtocol.TCP);
                    endpointlist.add(inputEndpoint);
                    // Open port for https on head node
                    if(vmName.equals("Head")) {
                            inputEndpoint = new InputEndpoint();
                            inputEndpoint.setEnableDirectServerReturn(false);
                            inputEndpoint.setPort(2400);
                            inputEndpoint.setLocalPort(2400);
                            inputEndpoint.setName("https");
                            inputEndpoint.setProtocol(InputEndpointTransportProtocol.TCP);
                            endpointlist.add(inputEndpoint);
                    updateParameters.setConfigurationSets(configlist);
                    //required for update
                    OSVirtualHardDisk osVirtualHardDisk = resp.getOSVirtualHardDisk();
                    updateParameters.setOSVirtualHardDisk(osVirtualHardDisk);
                    updateParameters.setRoleName(resp.getRoleName());
                    OperationResponse updtResp = computeManagementClient.getVirtualMachinesOperations().update(clusterName, clusterName, resp.getRoleName(), updateParameters);
    And every time i am creating a new cloud service along with head and node instances. Region is "South Central US".
    I am setting ProvisionGuestAgent field to true at instance creation time. Thank you.

  • Issue about BI JAVA SDK-SOAP request failed with return message 2147483653

    Dear Experts,
    I'm trying to use BI JAVA SDK to connect BW by using XMLA connector.
    But there's an error messaet said :
    SOAP request failed with return message 2147483653 ( Invalid MDX command with INCLUDING)
    I'm really new to this JAVA SDK, and after searching help in SAP Service Market and Google, there's no helpful suggestion.
    please help me about how to fix this error.
    Here is my code:
    IBIConnection connection = (IBIConnection) cf.getConnectionEx(cs);
          IBIOlap olap = connection.getOlap();
          Cube cube = olap.getObjectFinder().
          findCubeFirst((String)null, "ZFI_C11/ZFI_C11_Q001");
        // This is just a sanity check to verify that the
        // cube on which this example relies was retrieved 
        if (cube==null){
            System.out.println("no cube found");
    // Didn't print out this message, seems it can connect to BW and get the InfoCube and Query.
        Dimension plantDimension = olap.getObjectFinder().
        findDimensionFirst(cube, "ZPLANT");
      Dimension materialDimension = olap.getObjectFinder().
        findDimensionFirst(cube, "ZMATERIAL"); 
      IBIQuery query = olap.createQuery(cube);
      IBICommandProcessor commandProcessor = query.getCommandProcessor();
      commandProcessor.moveDimensionToRows(plantDimension);
      commandProcessor.moveDimensionToRows(materialDimension);
      IBIDataSet dataset = query.execute(); // After execute this statement, error happens.
    Thank you!
    Andy

    Solved myself, it's because the query used in my code have user input variable.

  • Install BI Java SDK?

    Hi,
    I want to follow the tutorial "How To BI Java SDK J2EE App", but obviously I firstly need to install the SDK itself on the server.
    How can that be done? In the tutorial it says I shall use the J2EE Visual Administrator to navigate to the node "Connector Container" and then "BI_SDK_XMLA", but that node doesn't exist.
    So how can I install the SDK on the server?
    Cheers,
    Jost

    Hi,
    have you seen <a href="https://media.sdn.sap.com/public/html/submitted_docs/BW/BI_SDK_JavaDocs/bi_sdk_doc/docs/connectors.html">this</a> guide? With it, you deploy and configure the BI connectors on the server.
    Anyway, if this is not what you're looking for, it is a good idea to ask additional questions in any of the BI-related forums here on the SDN. The real BI experts are there!
    Hope that helps.

  • Import a biar file into a specific folder in CMS through java sdk

    Hi,
    How to import a biar file into a specific folder in CMS through java sdk?
    Can anyone help.
    Regards,
    Kavitha S

    Hi Kavitha,
    Have a look at the sample available at
    http://scn.sap.com/docs/DOC-6006, for importing a biar file using java sdks.
    As far as I am aware of, you would not be able to import the contents of a biar file to a specific folder.
    Why would you want to use a biar file to import contents to a different folder?
    Organize>Move functionality from CMC/Infoview/BILaunchpad can work for this.
    -Prithvi

  • How to set a variable in portal session using web dynpro java.

    Hi,
    I have created a web dynpro application, which is running inside portal. I have created a role called "R1". Inside role R1, i have created 3 workset W1, W2 and W3. and inside each workset i have some pages and iviews.
    My requirement is when user logins to the portal , and when he clicks on role R1 for the first time, a login page should come (so that we can do revalidation), and when he enters his password again in that login page , then only workset W1, W2 and W3 should be visible/accessible to him and after successful revalidation, if he clicks again on role R1, in that particular portal session, than that login page should not come.
    for this, i thought i will set a variable in portal session, whenever user successfully revalidated himself, and if after successful revalidation he clicks again on role R1, i will check in doinit method of webdynpro whether variable is set or not (which i already set on successful revalidation), and if it is set then i will do Donavigation else i will present login page to the user.
    Can anyone tells me how to set a variable in portal session using web dynpro java.
    thanks
    Arush

    Hi,
    Try this:
    WDScopeUtil.put(WDScopeType.CLIENTSESSION_SCOPE, key, value)
    WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE, key)
    Ex:
    WDScopeUtil.put(WDScopeType.CLIENTSESSION_SCOPE,"Key1","Value1");
    String value1=WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE,"Key1").toString();
    /people/william.cui/blog/2007/02/12/sharing-session-context-between-parent-and-external-windows-running-on-same-host
    Regards,
    Charan

  • How to display an USERID on  "Portal Activity Report - Pages and iViews"

    HI,All.
    I have a question.
    It is as follows.
    A purpose&#65306;
    iView of EP is used and called for contents of the WEB-AP server of various (Tomcat(Java)).
    The acquisition of "EP login user ID" is difficult from the log of each WEB-AP server.
    It wants to acquire information on "Which iView which EP login user how many times executed?" by using EP, and analysis/to use it.
    A present specification&#65306;
    "Only information on "Number of users using iView" can be acquired in this function
    though "Page and iView of portal activity report" of EP was verified to achieve the above-mentioned purpose.
    It is impossible to analyze it, that is, "Which user ID used iView?".
    A question&#65306;
    In "Page and iView of portal activity report"
    How should I do to display "Which iView how many times did each EP login user execute?"?
    Or, I want to know if there is a table with the informations.
    Environment&#65306;
    EP6.0&#12288;SP18
    OS:WindowsServer2003 EE sp1  rc2
    CPU:Xeon3.2GHz x2
    MEMORY:4GB
    HDD:36GB*2
    Other:Clustering
    Thanking you in advance.
    matsu.

    Hi,
    You can try Setting the 'Monitor Users' property of the pages to 'Yes'. We did this for one of our portal but there seem to be a slight performance trade-off.
    Please award point if helpful.

  • How to setup java run time before setting up portal

    Dear Experts,
    To implement a portal, i need to setup java run time environment to our server. Please show me a way on how to do this.
    Thanks
    SP

    You need to download the Java SDK for your apropriate operating system and install it as per the instructions from the provider. So, for example, with Windows you go to the Sun web site, download SDK 1..4 and then run the setup script.

Maybe you are looking for

  • 13" MacBook Pro - Screen Flicker / Windows 7 Bootcamp

    I have a 13" MackBook Pro with Retina display that I purchased last December (8 months old).  I am running Windows 7 in Bootcamp and the last few months the screen flickers on occasion (becoming more frequent).  I launched the Mac OS to ensure I have

  • PDF Generation with Digital Signature

    Hi All, We have a requirement to attach digital signature to the generated PDF output. I am trying to use 'SSF' function modules from the function group 'SSFG' to achieve this. Can anyone let me know the detailed steps to attach digital signature to

  • I am really angry! I can't get google translate to work!!! Fix this now!!

    I have tried everything I can think of, and nothing works. I have gone all through the add on info, etc. Should I switch to google chrome!!??

  • New photos replaced old photos??!!

    Hello, I imported pics from a recent vacation from an older Fuji digital camera that we don't use too much anymore. I was looking through my pics the other day and saw many duplicates of the same vacation pictures in other non related 'rolls'. The on

  • OS X Lion will not install

    I have purchased OS X Lion, and, the program will not install on my 2007 IMAC currently running Snow Leopard. I get a message stating a recovery system cannot be created. I am also running bootcamp on my Mac.