Creating Portal Drive ?

Dear All,
I want to create portal drive for my portal, So can anyone guide me in this scenario.
Also please let me know, after creating the portal drive up to what extent I can put mass data into that (size).
I want to execute that data on portal itself, is it posible on portal to run .exe file?(I dont want to only fetch that data)
Useful point will be rewarded.
Regards,
Aditya

Hi All,
As per the guideline doc I have installed portal drive software and from that created a service using webdav url of the folder where I want to upload mass data.
It is also allowing me to upload the same.
After uploading when I am accessing that folder from EP, it is showing all the folders and its subfolders, but when I am accessing one .htm file from another from EP, it is giving me error as,
404
The requested resource is not available.
stack trace
com.sapportals.wcm.protocol.webdav.server.WDServletException
*     at com.sapportals.wcm.protocol.webdav.server.WDObject.throwNotFoundIf(WDObject.java:54)*
*     at com.sapportals.wcm.protocol.webdav.server.WDGetHandler.handle(WDGetHandler.java:110)*
*     at com.sapportals.wcm.protocol.webdav.server.WDServlet.doGet(WDServlet.java:775)*
*     at com.sapportals.wcm.protocol.webdav.server.WDServlet.service(WDServlet.java:462)*
*     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)*
*     at com.sapportals.wcm.portal.proxy.PCProxyServlet.service(PCProxyServlet.java:334)*
*     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)*
*     at com.sapportals.portal.prt.core.broker.ServletComponentItem$ServletWrapperComponent.doContent(ServletComponentItem.java:110)*
*     at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)*
*     at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)*
*     at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)*
*     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)*
*     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)*
*     at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)*
*     at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)*
*     at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)*
*     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)*
*     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)*
*     at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)*
*     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:100)*
*     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)*
Can anyone help me out in above situation,
Regards,
Aditya

Similar Messages

  • Backing up KM Folders via Portal Drive

    Hi Experts,
    We've implemented Netweaver Portal 7.0 with SP14 for a local company. Company migrated all shared folders from filesystem into KM via Portal Drive.
    Portal is running on a VMWARE machine with Linux OS.
    Followings are common questions, when we implement a Document Management SYstem on KM. I'm writing my answers but need help in Q2 esp.
    Q1: How to backup files in KM?
    A1: KM repostory is default DBFS mode ad all files within KM are stored in DB. So backing up DB means backing up KM thus all files.
    Q2: How to backup/restore single/multiple files in KM in case of accidental deletion?
    A2: In case of accidental deletion, with SP14 "Deleted Items"  functionality given to KM and you can view and restore files deleted.
    In case of permanent deletion, there is no option for KM file backup/restore other than DB.
    Here we tried to simulate something following to backup files and restore in case of problem just like FileSystem document management:
    On Backup Server, we installed Portal Drive and mapped the Portal KM Folders.
    Then created a FileSystem backup on this mounted FS. But unable to backup in specific cases.
    Not sure what is causing the problem, may be backup software, may be VMWARE architecture or may be linux or SAP portal for the last.
    Here is the error code we get when we tried to backup KM Folders on a 32-bit windows 2003 server with Netbackup.
    6/4/2008 2:14:53 PM - granted resource MediaID=@aaaae;Path=Z:\bck;MediaServer=bkcompany
    6/4/2008 2:14:53 PM - granted resource test_disk
    6/4/2008 2:14:53 PM - estimated 16 kbytes needed
    6/4/2008 2:14:54 PM - started process bpbrm (88520)
    6/4/2008 2:14:54 PM - connecting
    6/4/2008 2:14:54 PM - connected; connect time: 00:00:00
    6/4/2008 2:14:58 PM - begin writing
    6/4/2008 2:15:05 PM - Error bpbrm(pid=88520) socket read failed, An existing connection was forcibly closed by the remote host.  (10054)
    6/4/2008 2:15:10 PM - Error bpbrm(pid=88520) could not send server status message      
    6/4/2008 2:15:10 PM - end writing; write time: 00:00:12
    file read failed(13)
    also the event log entry:
    Faulting application bpbkar32.exe, version 6.5.2007.1115, faulting module bpbkar32.exe, version 6.5.2007.1115, fault address 0x00067581.
    May be this specific case is encountered by any of you
    Does anyone have any solution or sample implementation like above.

    Hi
    Have you tried ICE Offline scenario?
    [How to distribute KM Content using ICE Protocol|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/802c1739-d270-2910-ad9f-f369de07c1bf]
    Check the Offline scenario, not Online.
    Regards
    Aparnna

  • Portal Drive Functionality process

    Hi ,
    EXperts provide me portal drive procedure?
    Regrads

    There is a tool called Portal Drive which can be downloaded from SAP ServiceMarketPlace do install that tol in end user PC and restart the PC once after that you can have Repository folders as a mapped Drive into your local PC.
    Use simple widows method Ctrl C , Ctrl V
    Windows StartMenu-->Programs>SAP Front End>Portal Drive-->Portal Drive Client
    Click on Service -
    >New
    Input Service Name :- XXXX
    ServerURL :- https://Portalserveraddress/km/docs/documents (WEBDAV URLs) (Folder Context menu--> Settings->Properties->Access Links--> WebDAV URL)
    Click on " Work Online " Enter the Portal Password
    Enter Username and Password
    Mapped Network will be created in " My Computer "
    check out
    https://forums.sdn.sap.com/thread.jspa?threadID=1413560&messageID=7874385#7874385
    Edited by: Tushar Dave on Aug 3, 2009 11:13 AM

  • Resource List Filter versus Portal Drive

    Hi all,
    i have created own resource list filter and i found out that the class receives wrong input data. The input list of resources doesn't contain resources created via Portal Drive. Has somebody same problem? Thanks in advance for whichever advice!
    Regards
    Zbynek

    Hi Zbynek,
    That sounds a bit strange. The resources are listed within the portal anyhow, but they are not passed to the filter implementation? I've never experienced that and I also have difficulties to imagine such a scenario.
    Anyhow, if it is true, you definitely should open an OSS message about it. But first, double-check your situation!
    Hope it helps
    Detlev

  • Portal Drive - Connection Problems (a problem connecting user) 2

    Hello Experts,
    I installed the latest Portal-Drive from
    [SWDC|https://websmp230.sap-ag.de/sap/bc/bsp/spn/download_basket/download.htm?objid=012002523100000835972009D]
    and followed step-by-step explanations from
    [http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/2541]
    So I created a new-service and filled fields as follows:
    Service Name: PW1
    Server URL: http://r3ebwpdb.ekostahl.agn:50000/irj/go/km/docs/documents/Hilfe
    Username: TLI399958 (That is my SAP-User)
    Server-Url (...) looks like:
    Server: r3ebwpdb.ekostahl.agn
    Port: 50000
    Server directory: irj\go\km\docs\documents\Hilfe
    Unfortunatley the connection does not work --- message:
    r3ebwpdb.ekostahl.agn is currently experiencing a problem connecting user. Please try again later.
    I read in other threats, that the URL should work in a Browser-window - unfunatley I receive the following message:
         Portal-Laufzeitfehler
    Ausnahme bei der Verarbeitung des Requests; senden Sie die ID der Ausnahme an Ihren Portaladministrator
    Ausnahme-ID 01:08_03/03/11_0039_8263550
    Weitere Details zu dieser Ausnahme finden Sie in der entsprechenden Protokolldatei
    My log-files "pw1.log" shows:
    SAP NetWeaver Portal Drive 4.5 (build 7651) on WinVista
    Service: WebDAV:
    r3ebwpdb.ekostahl.agn:50000\irj\go\km\docs\documents\Hilfe
    Sharing Level: 2
    Secure connection: No
    13:12:29 2011/03/03 Failed to connect
      Error 0000003A.
    13:12:30 2011/03/03 dirlist timeout=300, flags=4
    I checked also:
    1.
    [SAP-Help|http://help.sap.com/saphelp_nw04s/helpdata/en/42/c99b91341a6bade10000000a1553f6/frameset.htm]
    2.
    Tried several things with PROXY on Portal-Drive-App.
    3.
    Tried several things with Tab Advanced / User authentification  on Portal-Drive-App.
    Systemlandscape:
    OS: UNIX
    Portal: EP 7.00 SP20
    Thanks for your help...
    Regards,
    Thomas

    Hello Mikhail,
    I tried to logon again, because my last try was at 03.03.2011.
    I got the following-log-files:
    1. pw1.log
    2. PW1.http.0.log
    3. PW1.http.1.log
    4. PW1.http.2.log
    5. PW1.http.log
    Content of 1
    SAP NetWeaver Portal Drive 4.5 (build 7651) on WinVista
    Service: WebDAV:\\r3ebwpdb.ekostahl.agn:50000\irj\go\km\docs\documents\Hilfe
    Sharing Level: 2
    Secure connection: No
    16:12:12 2011/03/24 Failed to connect
      Error 0000003A.
    16:12:14 2011/03/24 dirlist timeout=300, flags=4

  • Portal Drive - Connection Problems (a problem connecting user)

    Hello Experts,
    I installed the latest Portal-Drive from
    [SWDC|https://websmp230.sap-ag.de/sap/bc/bsp/spn/download_basket/download.htm?objid=012002523100000835972009D]
    and followed step-by-step explanations from
    [http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/2541]
    So I created a new-service and filled fields as follows:
    Service Name: PW1
    Server URL: http://r3ebwpdb.ekostahl.agn:50000/irj/go/km/docs/documents/Hilfe
    Username: TLI399958 (That is my SAP-User)
    Server-Url (...) looks like:
    Server: r3ebwpdb.ekostahl.agn
    Port: 50000
    Server directory: irj\go\km\docs\documents\Hilfe
    Unfortunatley the connection does not work --- message:
    r3ebwpdb.ekostahl.agn is currently experiencing a problem connecting user. Please try again later.
    I read in other threats, that the URL should work in a Browser-window - unfunatley I receive the following message:
         Portal-Laufzeitfehler
    Ausnahme bei der Verarbeitung des Requests; senden Sie die ID der Ausnahme an Ihren Portaladministrator
    Ausnahme-ID 01:08_03/03/11_0039_8263550
    Weitere Details zu dieser Ausnahme finden Sie in der entsprechenden Protokolldatei
    My log-files "pw1.log" shows:
    SAP NetWeaver Portal Drive 4.5 (build 7651) on WinVista
    Service: WebDAV:
    r3ebwpdb.ekostahl.agn:50000\irj\go\km\docs\documents\Hilfe
    Sharing Level: 2
    Secure connection: No
    13:12:29 2011/03/03 Failed to connect
      Error 0000003A.
    13:12:30 2011/03/03 dirlist timeout=300, flags=4
    I checked also:
    1.
    [SAP-Help|http://help.sap.com/saphelp_nw04s/helpdata/en/42/c99b91341a6bade10000000a1553f6/frameset.htm]
    2.
    Tried several things with PROXY on Portal-Drive-App.
    3.
    Tried several things with Tab Advanced / User authentification  on Portal-Drive-App.
    Systemlandscape:
    OS: UNIX
    Portal: EP 7.00 SP20
    Thanks for your help...
    Regards,
    Thomas

    Hello Mikhail,
    I tried to logon again, because my last try was at 03.03.2011.
    I got the following-log-files:
    1. pw1.log
    2. PW1.http.0.log
    3. PW1.http.1.log
    4. PW1.http.2.log
    5. PW1.http.log
    Content of 1
    SAP NetWeaver Portal Drive 4.5 (build 7651) on WinVista
    Service: WebDAV:\\r3ebwpdb.ekostahl.agn:50000\irj\go\km\docs\documents\Hilfe
    Sharing Level: 2
    Secure connection: No
    16:12:12 2011/03/24 Failed to connect
      Error 0000003A.
    16:12:14 2011/03/24 dirlist timeout=300, flags=4

  • Portal Drive Single Sign On and Kerberos Authentication

    Hi,
    We are using NW2004s SP10 Portal and we have successfully configured Kerberos authentication with Windows Active Directory 2003. To access the KM Content in windows explorer format, we are using Portal Drive but Portal Drive still asks for authentication i.e. SSO is not working for Portal Drive. I have understood from the forums and sap help site that SSO from portal drive will work only for NTLM authentication and client certificates. Can you please help regarding below questions.
    1. Can Kerberos and NTLM authentication be configured together.
    2. If yes, what are the steps to configure NTLM authentication for NW2004s SAP Portal and Active Directory 2003.
    3. Any other approach to make Portal Drive SSO work.
    Helpful answers will be rewarded.
    Regards,
    Chandra

    Hi Gregor,
    I did two things:
    first i made a change in the portalapp.xml in the PAR file "com.sap.km.cm.par". In the section authentication scheme for "docs" I changed the authentication scheme to "default" to make sure that documents are opened using the default authentication scheme (SPNego) instead of basic authentication
    second, I used the SPNego wizard to configure SPNego. So I didn't adjust anything in the Visual Admin or the authentication template apart from adding the Template to the Ticket policy configuration.
    Again, this only worked after installing the latest vesion.
    Hope this helps
    Marcel

  • Need to create a driver class for a program i have made...

    hey guys im new to these forums and someone told me that i could get help on here if i get in a bind...my problem is that i need help creating a driver class for a program that i have created and i dont know what to do. i need to know how to do this is because my professor told us after i was 2/3 done my project that we need at least 2 class files for our project, so i need at least 2 class files for it to run... my program is as follows:
    p.s might be kinda messy, might need to put it into a text editor
    Cipher.java
    This program encodes and decodes text strings using a cipher that
    can be specified by the user.
    import java.io.*;
    public class Cipher
    public static void printID()
    // output program ID
    System.out.println ("*********************");
    System.out.println ("* Cipher *");
    System.out.println ("* *");
    System.out.println ("* *");
    System.out.println ("* *");
    System.out.println ("* CS 181-03 *");
    System.out.println ("*********************");
    public static void printMenu()
    // output menu
    System.out.println("\n\n****************************" +
    "\n* 1. Set cipher code. *" +
    "\n* 2. Encode text. *" +
    "\n* 3. Decode coded text. *" +
    "\n* 4. Exit the program *" +
    "\n****************************");
    public static String getText(BufferedReader input, String prompt)
    throws IOException
    // prompt the user and get their response
    System.out.print(prompt);
    return input.readLine();
    public static int getInteger(BufferedReader input, String prompt)
    throws IOException
    // prompt and get response from user
    String text = getText(input, prompt);
    // convert it to an integer
    return (new Integer(text).intValue());
    public static String encode(String original, int offset)
    // declare constants
    final int ALPHABET_SIZE = 26; // used to wrap around A-Z
    String encoded = ""; // base for string to return
    char letter; // letter being processed
    // convert message to upper case
    original = original.toUpperCase();
    // process each character of the message
    for (int index = 0; index < original.length(); index++)
    // get the letter and determine whether or not to
    // add the cipher value
    letter = original.charAt(index);
    if (letter >='A' && letter <= 'Z')
    // is A-Z, so add offset
    // determine whether result will be out of A-Z range
    if ((letter + offset) > 'Z') // need to wrap around to 'A'
    letter = (char)(letter - ALPHABET_SIZE + offset);
    else
    if ((letter + offset) < 'A') // need to wrap around to 'Z'
    letter = (char)(letter + ALPHABET_SIZE + offset);
    else
    letter = (char) (letter + offset);
    // build encoded message string
    encoded = encoded + letter;
    return encoded;
    public static String decode(String original, int offset)
    // declare constants
    final int ALPHABET_SIZE = 26; // used to wrap around A-Z
    String decoded = ""; // base for string to return
    char letter; // letter being processed
    // make original message upper case
    original = original.toUpperCase();
    // process each letter of message
    for (int index = 0; index < original.length(); index++)
    // get letter and determine whether to subtract cipher value
    letter = original.charAt(index);
    if (letter >= 'A' && letter <= 'Z')
    // is A-Z, so subtract cipher value
    // determine whether result will be out of A-Z range
    if ((letter - offset) < 'A') // wrap around to 'Z'
    letter = (char)(letter + ALPHABET_SIZE - offset);
    else
    if ((letter - offset) > 'Z') // wrap around to 'A'
    letter = (char)(letter - ALPHABET_SIZE - offset);
    else
    letter = (char) (letter - offset);
    // build decoded message
    decoded = decoded + letter;
    return decoded;
    // main controls flow throughout the program, presenting a
    // menu of options the user.
    public static void main (String[] args) throws IOException
    // declare constants
    final String PROMPT_CHOICE = "Enter your choice: ";
    final String PROMPT_VALID = "\nYou must enter a number between 1" +
    " and 4 to indicate your selection.\n";
    final String PROMPT_CIPHER = "\nEnter the offset value for a caesar " +
    "cipher: ";
    final String PROMPT_ENCODE = "\nEnter the text to encode: ";
    final String PROMPT_DECODE = "\nEnter the text to decode: ";
    final String SET_STR = "1"; // selection of 1 at main menu
    final String ENCODE_STR = "2"; // selection of 2 at main menu
    final String DECODE_STR = "3"; // selection of 3 at main menu
    final String EXIT_STR = "4"; // selection of 4 at main menu
    final int SET = 1; // menu choice 1
    final int ENCODE = 2; // menu choice 2
    final int DECODE =3; // menu choice 4
    final int EXIT = 4; // menu choice 3
    final int ALPHABET_SIZE = 26; // number of elements in alphabet
    // declare variables
    boolean finished = false; // whether or not to exit program
    String text; // input string read from keyboard
    int choice; // menu choice selected
    int offset = 0; // caesar cipher offset
    // declare and instantiate input objects
    InputStreamReader reader = new InputStreamReader(System.in);
    BufferedReader input = new BufferedReader(reader);
    // Display program identification
    printID();
    // until the user selects the exit option, display the menu
    // and respond to the choice
    do
    // Display menu of options
    printMenu();
    // Prompt user for an option and read input
    text = getText(input, PROMPT_CHOICE);
    // While selection is not valid, prompt for correct info
    while (!text.equals(SET_STR) && !text.equals(ENCODE_STR) &&
    !text.equals(EXIT_STR) && !text.equals(DECODE_STR))
    text = getText(input, PROMPT_VALID + PROMPT_CHOICE);
    // convert choice to an integer
    choice = new Integer(text).intValue();
    // respond to the choice selected
    switch(choice)
    case SET:
         // get the cipher value from the user and constrain to
    // -25..0..25
    offset = getInteger(input, PROMPT_CIPHER);
    offset %= ALPHABET_SIZE;
    break;
    case ENCODE:
    // get message to encode from user, and encode it using
    // the current cipher value
    text = getText(input, PROMPT_ENCODE);
    text = encode(text, offset);
    System.out.println("Encoded text is: " + text);
    break;
    case DECODE:
    // get message to decode from user, and decode it using
    // the current cipher value
    text = getText(input, PROMPT_DECODE);
    text = decode(text, offset);
    System.out.println("Decoded text is: " + text);
    break;
    case EXIT:
    // set exit flag to true
    finished = true ;
    break;
    } // end of switch on choice
    } while (!finished); // end of outer do loop
    // Thank user
    System.out.println("Thank you for using Cipher for all your" +
    " code breaking and code making needs.");
    }

    My source in code format...sorry guys :)
       Cipher.java
       This program encodes and decodes text strings using a cipher that
       can be specified by the user.
    import java.io.*;
    public class Cipher
       public static void printID()
          // output program ID
          System.out.println ("*********************");
          System.out.println ("*       Cipher      *");
          System.out.println ("*                   *");
          System.out.println ("*                          *");
          System.out.println ("*                   *");
          System.out.println ("*     CS 181-03     *");
          System.out.println ("*********************");
       public static void printMenu()
          // output menu
          System.out.println("\n\n****************************" +
                               "\n*   1. Set cipher code.    *" +
                               "\n*   2. Encode text.        *" +
                               "\n*   3. Decode coded text.  *" +
                               "\n*   4. Exit the program    *" +
                               "\n****************************");
       public static String getText(BufferedReader input, String prompt)
                                           throws IOException
          // prompt the user and get their response
          System.out.print(prompt);
          return input.readLine();
       public static int getInteger(BufferedReader input, String prompt)
                                           throws IOException
          // prompt and get response from user
          String text = getText(input, prompt);
          // convert it to an integer
          return (new Integer(text).intValue());
       public static String encode(String original, int offset)
          // declare constants
          final int ALPHABET_SIZE = 26;  // used to wrap around A-Z
          String encoded = "";           // base for string to return
          char letter;                   // letter being processed
          // convert message to upper case
          original = original.toUpperCase();
          // process each character of the message
          for (int index = 0; index < original.length(); index++)
             // get the letter and determine whether or not to
             // add the cipher value
             letter = original.charAt(index);
             if (letter >='A' && letter <= 'Z')          
                // is A-Z, so add offset
                // determine whether result will be out of A-Z range
                if ((letter + offset) > 'Z') // need to wrap around to 'A'
                   letter = (char)(letter - ALPHABET_SIZE + offset);
                else
                   if ((letter + offset) < 'A') // need to wrap around to 'Z'
                      letter = (char)(letter + ALPHABET_SIZE + offset);
                   else
                      letter = (char) (letter + offset);
             // build encoded message string
             encoded = encoded + letter;
          return encoded;
       public static String decode(String original, int offset)
          // declare constants
          final int ALPHABET_SIZE = 26;  // used to wrap around A-Z
          String decoded = "";           // base for string to return
          char letter;                   // letter being processed
          // make original message upper case
          original = original.toUpperCase();
          // process each letter of message
          for (int index = 0; index < original.length(); index++)
             // get letter and determine whether to subtract cipher value
             letter = original.charAt(index);
             if (letter >= 'A' && letter <= 'Z')          
                // is A-Z, so subtract cipher value
                // determine whether result will be out of A-Z range
                if ((letter - offset) < 'A')  // wrap around to 'Z'
                   letter = (char)(letter + ALPHABET_SIZE - offset);
                else
                   if ((letter - offset) > 'Z') // wrap around to 'A'
                      letter = (char)(letter - ALPHABET_SIZE - offset);
                   else
                      letter = (char) (letter - offset);
             // build decoded message
             decoded = decoded + letter;
          return decoded;
       // main controls flow throughout the program, presenting a
       // menu of options the user.
       public static void main (String[] args) throws IOException
         // declare constants
          final String PROMPT_CHOICE = "Enter your choice:  ";
          final String PROMPT_VALID = "\nYou must enter a number between 1" +
                                      " and 4 to indicate your selection.\n";
          final String PROMPT_CIPHER = "\nEnter the offset value for a caesar " +
                                       "cipher: ";
          final String PROMPT_ENCODE = "\nEnter the text to encode: ";
          final String PROMPT_DECODE = "\nEnter the text to decode: ";
          final String SET_STR = "1";  // selection of 1 at main menu
          final String ENCODE_STR = "2"; // selection of 2 at main menu
          final String DECODE_STR = "3"; // selection of 3 at main menu
          final String EXIT_STR = "4";  // selection of 4 at main menu
          final int SET = 1;            // menu choice 1
          final int ENCODE = 2;         // menu choice 2
          final int DECODE =3;          // menu choice 4
          final int EXIT = 4;           // menu choice 3
          final int ALPHABET_SIZE = 26; // number of elements in alphabet
          // declare variables
          boolean finished = false; // whether or not to exit program
          String text;              // input string read from keyboard
          int choice;               // menu choice selected
          int offset = 0;           // caesar cipher offset
          // declare and instantiate input objects
          InputStreamReader reader = new InputStreamReader(System.in);
          BufferedReader input = new BufferedReader(reader);
          // Display program identification
          printID();
          // until the user selects the exit option, display the menu
          // and respond to the choice
          do
             // Display menu of options
             printMenu(); 
             // Prompt user for an option and read input
             text = getText(input, PROMPT_CHOICE);
             // While selection is not valid, prompt for correct info
             while (!text.equals(SET_STR) && !text.equals(ENCODE_STR) &&
                     !text.equals(EXIT_STR) && !text.equals(DECODE_STR))       
                text = getText(input, PROMPT_VALID + PROMPT_CHOICE);
             // convert choice to an integer
             choice = new Integer(text).intValue();
             // respond to the choice selected
             switch(choice)
                case SET:
                // get the cipher value from the user and constrain to
                   // -25..0..25
                   offset = getInteger(input, PROMPT_CIPHER);
                   offset %= ALPHABET_SIZE;
                   break;
                case ENCODE:
                   // get message to encode from user, and encode it using
                   // the current cipher value
                   text = getText(input, PROMPT_ENCODE);
                   text = encode(text, offset);
                   System.out.println("Encoded text is: " + text);
                   break;
                case DECODE:
                   // get message to decode from user, and decode it using
                   // the current cipher value
                   text = getText(input, PROMPT_DECODE);
                   text = decode(text, offset);
                   System.out.println("Decoded text is: " + text);
                   break;
                case EXIT:
                   // set exit flag to true
                   finished = true ;
                   break;
             } // end of switch on choice
          } while (!finished); // end of outer do loop
          // Thank user
          System.out.println("Thank you for using Cipher for all your" +
                             " code breaking and code making needs.");
    }

  • How do I create portal groups dynamically?

    Has anyone written code to use the
    WWSEC_APP_GROUP_MGR.CREATE_GROUP procedure to create portal
    groups programmatically? I understand alot of what I'm supposed
    to pass, but some of these parameters are pretty obscure and
    obfuscated.
    I'm not sure this can be called like a normal (non-htp) stored
    procedure at all. I now understand nearly all of the
    parameters. Looking at the page source behind the Create Groups
    page, I see that many of these parameters are involved in the
    page generation itself, for example p_back_url being a variable
    that is probably attached to the action of "Previous" buttons
    that appear as you go through the process of creating a group.
    Here is my call:
    wwsec_app_group_mgr.create_group(p_groupname => 'X',
    p_description => 'TEST GROUP',
    p_db_role => 'DBA',
    p_hide_group => 'N',
    p_styleid => 6,
    p_group_id => y,
    p_siteid => 0,
    p_site_id => 1);
    where "y" is the nextval of the group sequence.
    Inserting SQLERRM into a table, I end up with this:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SYS.OWA_UTIL", line 323
    ORA-06512: at "SYS.HTP", line 860
    ORA-06512: at "SYS.HTP", line 975
    ORA-06512: at "SYS.HTP", line 993
    ORA-06512: at "PORTAL30.WWUTL_HTP", line 25
    ORA-06512: at "PORTAL30.WWERR_API_ERROR_UI", line 182
    ORA-06512: at "PORTAL30.WWSEC_APP_GROUP_MGR", line 2891
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "PORTAL30.WWSEC_APP_GROUP_MGR", line 255
    ORA-01403: no data found
    I know that this procedure is responsible for generating the
    subsequent pages in the "create group" wizard. There's just no
    possible way to figure out how to use this procedure
    dynamically. I repeat we WILL NOT BE TYPING IN OVER 3500 GROUPS
    and 7000 USERS USING THE WIZARD. There must be a way.
    I don't want to just arbitrarily insert groups into tables
    behind the scenes without knowing what I'm doing. If this is as
    simple as inserting a row into wwsec_group$, wwsec_member$,
    etc., then great, but there's no way of knowing.
    Maybe an Oracle person can help me. Is there another API I can
    use, or is there a way to use this API as a stored procedure
    where I can just loop through a driving table to create a bunch
    of users and groups?
    I appreciate any help. I need to create over 3000 groups based
    on my client's organization. We REFUSE to do this by hand using
    portal's interface. Not that it's bad, it is just impractical
    in this instance.
    Adrian Klingel

    Never mind.

  • How to find out the cause of "Cannot create JDBC driver"?

    A small Java web application constantly runs into a problem of "Cannot of create JDBC driver of class 'org.postgresql.Driver' for connect URL 'jdbc:postgresl://localhost:5432/myapp'". The problem still exists after upgrading the driver. After recycling the server, this problem will be resolved. It, however, will come back after a while.
    Any suggestions to solve this problem?
    Thanks a lot.

    jschell wrote:
    vwuvancouver wrote:
    Any suggestions to solve this problem?To start with get the full and complete stack trace.
    However since it is an intermittent problem there are only two possibilities
    1. You have some code that is written correctly and some that is not.
    2. It is a resource not code usage problem. Such as that you are not closing all result sets, statements and connections.Here is related log messages:
    2009-04-30 09:29:21,386  INFO XmlWebApplicationContext:601: - Closing application context [WebApplicationContext for namespace 'mybookmarks-servlet']
    2009-04-30 09:29:21,387  INFO DefaultListableBeanFactory:273: - Destroying singletons in {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [messageSource,viewResolver,localeResolver,untapedUrlMapping,urlMapping,localeChangeInterceptor,errorsController,myBookmarksController,bookmarkController,reminderController,accountController,userControllerMethodResolver,userFormController,searchFormController,directoryController,directoryControllerMethodResolver,secureHandlerMapping,signonInterceptor,addBookmarkFromListFormController,addBookmarkFormController,bookmarkValidator,editWebSiteEntryFormController,addCommentFormController,reminderFormController,genericReminderFormController,alterReminderDateFormController,contactFormController,invitationFormController,propertyConfigurer,mailSender]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [propertyConfigurer,mailSender,userValidator,bookmarkService,dataSource,sessionFactory,transactionManager,accountDao,categoryDao,webSiteDao,siteVisitDao,reminderDao,commentDao,bookmarkDao]; root of BeanFactory hierarchy}
    2009-04-30 09:29:21,388  INFO GenericWebApplicationContext:601: - Closing application context [org.springframework.web.context.support.GenericWebApplicationContext;hashCode=15954072]
    2009-04-30 09:29:21,389  INFO DefaultListableBeanFactory:273: - Destroying singletons in {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [modelView,addCommentFormView,discoveryFormView,mostVisitedView,bookmarkListView,contactFormView,actionResultView,accountView,reminderFormView,reminderDateFormView,searchList2View,helpView,homeView,taggedListView,searchFormView,reminderListView,webSiteEntryFormView,reminderForm2View,categorizedList2View,invitationFormView,myHomeView,taggedList2View,contactListView,aboutView,bookmarkFormView,bookmarkForm2View,newEntries2View,categorizedListView,signinFormView,accountActionResultView,userFormView,siteActionResultView,searchListView,mostVisited2View,newEntriesView,errorHttp404View]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [messageSource,viewResolver,localeResolver,untapedUrlMapping,urlMapping,localeChangeInterceptor,errorsController,myBookmarksController,bookmarkController,reminderController,accountController,userControllerMethodResolver,userFormController,searchFormController,directoryController,directoryControllerMethodResolver,secureHandlerMapping,signonInterceptor,addBookmarkFromListFormController,addBookmarkFormController,bookmarkValidator,editWebSiteEntryFormController,addCommentFormController,reminderFormController,genericReminderFormController,alterReminderDateFormController,contactFormController,invitationFormController,propertyConfigurer,mailSender]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [propertyConfigurer,mailSender,userValidator,bookmarkService,dataSource,sessionFactory,transactionManager,accountDao,categoryDao,webSiteDao,siteVisitDao,reminderDao,commentDao,bookmarkDao]; root of BeanFactory hierarchy}
    2009-04-30 09:29:21,391  INFO GenericWebApplicationContext:601: - Closing application context [org.springframework.web.context.support.GenericWebApplicationContext;hashCode=29369879]
    2009-04-30 09:29:21,392  INFO DefaultListableBeanFactory:273: - Destroying singletons in {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [modelView,addCommentFormView,discoveryFormView,mostVisitedView,bookmarkListView,contactFormView,accountView,actionResultView,reminderFormView,reminderDateFormView,searchList2View,helpView,homeView,configView,taggedListView,searchFormView,reminderListView,webSiteEntryFormView,reminderForm2View,categorizedList2View,invitationFormView,taggedList2View,myHomeView,contactListView,aboutView,bookmarkFormView,bookmarkForm2View,newEntries2View,categorizedListView,signinFormView,accountActionResultView,userFormView,siteActionResultView,searchListView,mostVisited2View,newEntriesView,errorHttp404View]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [messageSource,viewResolver,localeResolver,untapedUrlMapping,urlMapping,localeChangeInterceptor,errorsController,myBookmarksController,bookmarkController,reminderController,accountController,userControllerMethodResolver,userFormController,searchFormController,directoryController,directoryControllerMethodResolver,secureHandlerMapping,signonInterceptor,addBookmarkFromListFormController,addBookmarkFormController,bookmarkValidator,editWebSiteEntryFormController,addCommentFormController,reminderFormController,genericReminderFormController,alterReminderDateFormController,contactFormController,invitationFormController,propertyConfigurer,mailSender]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [propertyConfigurer,mailSender,userValidator,bookmarkService,dataSource,sessionFactory,transactionManager,accountDao,categoryDao,webSiteDao,siteVisitDao,reminderDao,commentDao,bookmarkDao]; root of BeanFactory hierarchy}
    2009-04-30 09:29:21,394  INFO XmlWebApplicationContext:601: - Closing application context [Root WebApplicationContext]
    2009-04-30 09:29:21,395  INFO DefaultListableBeanFactory:273: - Destroying singletons in {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [propertyConfigurer,mailSender,userValidator,bookmarkService,dataSource,sessionFactory,transactionManager,accountDao,categoryDao,webSiteDao,siteVisitDao,reminderDao,commentDao,bookmarkDao]; root of BeanFactory hierarchy}
    2009-04-30 09:29:21,396  INFO LocalSessionFactoryBean:184: - Closing Hibernate SessionFactory
    2009-04-30 09:29:21,397  INFO SessionFactoryImpl:767: - closing
    2009-04-30 09:29:21,408  WARN JDBCExceptionReporter:71: - SQL Error: 0, SQLState: null
    2009-04-30 09:29:21,410 ERROR JDBCExceptionReporter:72: - Cannot create JDBC driver of class 'org.postgresql.Driver' for connect URL 'jdbc:postgresql://localhost:5432/homepage'
    2009-04-30 09:29:21,411  WARN JDBCExceptionReporter:71: - SQL Error: 0, SQLState: null
    2009-04-30 09:29:21,414 ERROR JDBCExceptionReporter:72: - Cannot create JDBC driver of class 'org.postgresql.Driver' for connect URL 'jdbc:postgresql://localhost:5432/homepage'
    ...Your analysis seems very reasonable. As the above log messages, this application is built on Hibernate and Spring. All back end is taken care by Hibernate. I don't have a direct control on it. I should ask the Hibernate crowd about this issue. The Hibernate forum is still down at this moment.
    Edited by: vwuvancouver on Apr 30, 2009 1:12 PM

  • Creating portal desktop for the user

    Hi All-
    Please help me out...
    1) Could you let me know the detailed procedure ( if possible please provide screen shots) to create "Portal Desktop for the user".
    2)Suppose we developed a webDynpro Application and we need to make it Role Based access....please let me how to achieve this..
    3)Help me out in creation of "Roles" in Portal Content Development and the steps to assign pages to "Roles"
    Regards,
    Cris

    Hi Cris,
    Follow these links for the required info.
    Creating Portal Desktop for specific user
    Portal Branding for specific user
    Creating Roles & worksets
    http://help.sap.com/saphelp_nw04/helpdata/en/4f/bceaffeb8c114ebef8255b63079c7c/frameset.htm
    Integrating webdynpro in portal
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/2fffe990-0201-0010-aab0-e61c3250bcf3
    Hope I am helpful.
    Cheers,
    Santhosh

  • Portal drive software for Windows 7 (64-bit)

    Hi...Experts
    We could not find the portal drive software for Windows 7 (64-bit) OS on service market place. The one which is available on market place is working fine for Windows 7 (32-bit ) but it does not work for 64-bit.
    Can any one help us to get the 64-Bit Portal Drive
    Rgds
    PR

    1- Set BasicAuthLevel's value to "2"  by expand HKEY_LOCAL_MACHINE >> SYSTEM>>CurrentControlSet>>Services>>webClient>>Parameters
    2- Restart your computer.
    3- Right click "Computer" and click "Map network drive..."
    To Letter Field: Set a free drive letter.
    To Folder Field: Assume that your webDav address is http://abc.com:50000/irj/go/km/docs/ change it to
    abc.com:50000irjgokmdocs
    4- Enter your ID an Password
    thats all...
    Note: The mapping is as follows:
    0 - Basic authentication disabled
    1 - Basic authentication enabled for SSL shares only
    2 or greater - Basic authentication enabled for SSL shares and for non-SSL shares

  • "Booting from Boot Camp Assistant created USB Drive...Failed to load BOOTMGR"

    Hi Apple Ppl of the Wrld: I need help I been working on installing windows 8 on my Mac.
    Spec of equipment:
    Mac Book Pro Mid 2012
    Bootcamp Version: Version 5.0.4 (473)
    Bootable USB Flash Drive: Type Scan disk 4 GB windows 8 pro iso image but without the driver and the 2nd Scan disk USB flash drive with 32 GB with the Bootcamp Drivers downloaded and saved to this drive.
    Please Note: I also have the original back up installation disc for Microsoft 8 Prof 64 from Microsoft where I purchased it from.
    1st Bootcamp is not recognizing the Original Microsoft 8 Pro backup disk from microsoft itself.
    Solution: I created the New Image from the Original Microsoft installed disc in my desk top and changed the extension to .ISO then burned the ISO image into the newly purchased DVD+R. Then I ran Bootcamp Once again and it get the following error message "The installer disc could not be found -- Insert your Windows installer disc and wait a few seconds for the disc to be recognized. Solution
    2: Created a bootable usb drive with bootcamp assistant successfully with bootcamp. Yes I close, ejected or un-mounted any image that was open or had been previously used then i restarted the Mac. Next, I start the bootcamp assistant tool once again then i get the same insert your windows installer disc message. 
    3: Then I try to resolve the installer disc not found issue: this are the steps i took: a). Lauch disc utilities
        1. Selected the top most drive 750 GB Macintosh HDD
        2. On the right you’ll see 5 tab buttons: First Aid | Erase | Partition | RAID | Restore.
        3. Choose Partition. Then I clicked + to add another partition size of the partition was 222 GB
        4. Change the Name of the Partition to BOOTCAMP
        5. Change the Format to MS-DOS (FAT)
        6. Click Apply to save the changes and then reboot your Mac and we’ll begin Windows installation.
        7. During reboot, press and hold the alt/Option key and you’ll be presented with drives to boot from.
        8. Use the arrow keys and return button to select the Windows yellow USB key drive containing your Windows 8 installation files.
        9. This will begin the Windows install. --> then i get the following message: "Booting from Boot Camp Assistant created USB Drive...Failed to load BOOTMGR".
    4: Take the Mac to best buy and let them resolve the issue and charge me like a million dollars for it :'( since i have no other idea who to get this bootcamp working at all. This has been a terribly lengthy issue and it is not as simple as it is claimed to be since i started with the Original Windows Disc Purchased from Microsoft and I have the Optical disc drive which it should be simpler from what I understand.
    Please can you help It would be of great help.
    <Email Edited by Host>

    from what i understand you are trying to install win 8 pro from a "backup disk" the one that you purchased from microsoft.
    this will not work, it is not an installer disk.
    you need to start the process again. erase the partition you made on your hdd. in disc utility click the minus button after selecting the bootcamp partition, then manually drag the divider down fully then apply.
    next, erase your usb then format it.
    download win 8 iso from here;
    http://getintopc.com/softwares/operating-systems/download-windows-8-pro/
    it is perfectly legal to use your purchased product key in this install.
    in bootcamp select the iso image you just downloaded, select your preferred partition size, check all 3 options.
    you have the support software on another usb but you wont need it so it can be discarded. the install will work far better with the iso and support on the same drive.

  • Unable to create a Driver object from driver with Media type string CTC PHO

    Hi All,
    I am trying to develop a siebel cti adapter for avaya.
    I have loaded a custom dll into siebel server but it is throwing error "SBL-CSR-00500: Unable to create a Driver object from driver C:\Mydriver\cti.dll with Media-Type-String CTC Phone ".
    It has been long time without any progress.
    Please help
    Thanks
    Nishant

    Hi tomhowell,
    According to your description, my understanding is that you got an error when you created a site from a custom site template after migrading SharePoint 2010 to your server.
    Did you have the original solution file of the site template? Please re-deploy the solution to your SharePoint site, then create a site from the new site template, compare the result.
    Also use  SPDisposeCheck to indentify the memory leak:
    http://archive.msdn.microsoft.com/SPDisposeCheck
    http://www.fewlines4biju.com/2012/11/detected-use-of-sprequest-for.html
    Here are some similar posts for your reference:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/3a25eb86-8415-4053-b319-9dd84a1fd71f/detected-use-of-sprequest-for-previously-closed-spweb-object-please-close-spweb-objects-when-you?forum=sharepointdevelopmentprevious
    http://social.msdn.microsoft.com/Forums/en-US/50ce964f-94a6-4fda-abc0-caa34e7111f1/error-detected-use-of-sprequest-for-previously-closed-spweb-object-occurs-when-new-site-gallery
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Boot Camp For Lion -- USB ISO Method --"Booting from Boot Camp Assistant created USB Drive...Failed to load BOOTMGR"

    Hello, has anyone had experience with dealing with this speciifc problem?
    In short, upon rebooting, I am getting a black screen with a line of text that says, "Booting from Boot Camp Assistant created USB Drive...Failed to load BOOTMGR." Nothing happens after that.
    I am using Mac OS X Lion 10.7.4. I have an ISO of Windows 7 Prof. along with an 8GB usb drive. I changed the coding in my bootcamp program to allow for the normally first invisible option that allows creation of a USB Installation program using an ISO that is normally only for computers without an optical drive.
    I have that box checked, the check for new software box, and the install windows box checked. I went through the process of creating the USB, downloading the software, and partitioning the drive. Then on restart, I get the failed to load bootmgr error.
    Some people have suggested using two usb drives for this. I am trying that method but it does not seem to help thus far.
    Can anyone offer any help?
    Thanks.

    from what i understand you are trying to install win 8 pro from a "backup disk" the one that you purchased from microsoft.
    this will not work, it is not an installer disk.
    you need to start the process again. erase the partition you made on your hdd. in disc utility click the minus button after selecting the bootcamp partition, then manually drag the divider down fully then apply.
    next, erase your usb then format it.
    download win 8 iso from here;
    http://getintopc.com/softwares/operating-systems/download-windows-8-pro/
    it is perfectly legal to use your purchased product key in this install.
    in bootcamp select the iso image you just downloaded, select your preferred partition size, check all 3 options.
    you have the support software on another usb but you wont need it so it can be discarded. the install will work far better with the iso and support on the same drive.

Maybe you are looking for

  • ILoathe and iHate iTunes 7.3 and Apple's lack of support

    Like thousands of other people, I found iTunes 7.3 is unusable on my machine due to the error "The iTunes library file cannot be saved. An unknown error occurred (-50)." It has been nearly one week and Apple has not officially commented upon the erro

  • I went swimming but forgot to take my iPhone out of my pocket, how can i get it back working?

    hello everyone, i went swimming today but i forgot to take my iPhone out of my pocket, it was only about a minute in the water, but still it can't be good. I haven't touched anything to avoid damage. The screen is withe on the upper edge, behind the

  • Reciever determiantion not found

    Hi We installed PI 7.3 but not able to find receiver determination,interface determination and sender and receiver agreements. but integrated configuration is present I think only AAE is installed and IE is missing . Please let me know how to check t

  • Difference between 'Camera Raw Defaults' option and Default button

    I am using ACR 4.6 under CS3 in Windows. If I open an image and click the Default button above the exposure sliders, all the tonal settings are reset to the defaults, but Clarity, Vibrance and Saturation are not altered. If I select 'Camera Raw Defau

  • Canon Powershot A560 and Remote Shooting

    I am unable to use remote shooting with my canon powershot. I installed all of the software, but when I click the tab for remote shooting, the actual button to start is 'grayed out'. Is this a software problem, or is it related to Intel or a faulty c