Syntax to run scenario from comand line

Can some one give me the syntax to run a scenario from the command line using an agent.

According with OracleDI Getting Started (page 61):
Run the Scenario from an OS Command
1. Open an MS-DOS command prompt window or a console in UNIX.
2. In the Oracle Data Integrator installation folder, open the "bin" directory.
3. Enter the following command:
startscen LOAD_SALES_ADMINISTRATION 001 GLOBAL "-v=2"
Note: The parameters for the startscen command are:
- Scenario name
- Scenario version
- Scenario context
- Logging level
These parameters are separated by spaces.
4. When execution is finished, the command prompt should look like this:
C:\oracledi\bin>startscen LOAD_SALES_ADMINISTRATION 001 GLOBAL "-
v=2"
Oracle Data Integrator: Starting scenario
LOAD_SALES_ADMINISTRATION 001 in context GLOBAL ...
06/27/2005 11:33:05 AM(main): Creating session for
scenario:LOAD_SALES_ADMINISTRATION - 001
06/27/2005 11:33:06 AM(main): Session : 14003 is running
06/27/2005 11:33:16 AM(main): Session : 14003 finished with
return code : 0
DwgJv.main: Exit. Return code:0
But I got same error (in UNIX):
./startscen.sh FLOW9 001 Development -Name=LOCALHOST_20910
OracleDI: Starting scenario FLOW9 001 in context Development ...
com.sunopsis.core.SnpsInexistantObjectException: SnpContext.getContextByCode : SnpContext does not exist
at com.sunopsis.dwg.dbobj.SnpContext.getContextByCode(SnpContext.java)
at com.sunopsis.dwg.cmd.DwgCommandScenario.b(DwgCommandScenario.java)
at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)

Similar Messages

  • Issue with running scenario from command line-RESOLVED

    I have made appropriate changes in the odiparams.bat file and am trying to run the startscen command from the bin directory of the ODI installation on windows XP Pro SP2
    startscen DPRI_SEC_PKG_POP_PRI_SEC_TBLS 001 GLOBAL "-v=2"
    set ODI_SECU_DRIVER=oracle.jdbc.driver.OracleDriver
    set ODI_SECU_URL=jdbc:oracle:thin:@pridb-test-1:1521:PRISBOX
    set ODI_SECU_USER=PRI_MST_TST
    set ODI_SECU_ENCODED_PASS=b1ya.1dDo.cclkh.IVhi5Ovp
    set ODI_SECU_WORK_REP=PRI_WRK_TST
    set ODI_USER=SUPERVISOR
    set ODI_ENCODED_PASS=a7yXIxOwQ4avmSJZia4,79QAp
    Below is the error I get:
    OracleDI: Starting scenario DPRI_SEC_PKG_POP_PRI_SEC_TBLS 001 in context GLOBAL
    com.sunopsis.sql.c: oracle.jdbc.driver.OracleDriver
    at com.sunopsis.sql.SnpsConnection.a(SnpsConnection.java)
    at com.sunopsis.sql.SnpsConnection.connect(SnpsConnection.java)
    at com.sunopsis.dwg.cmd.e.h(e.java)
    at com.sunopsis.dwg.cmd.e.g(e.java)
    at com.sunopsis.dwg.cmd.e.y(e.java)
    at com.sunopsis.dwg.DwgJv.treatCmd(DwgJv.java)
    at com.sunopsis.dwg.DwgJv.main(DwgJv.java)
    at oracle.odi.Agent.main(Agent.java)
    DwgJv.main: Exit. Return code:-1
    Please suggest where I might be going wrong? I've made sure that the repository connections as correct. It is not really telling what is wrong or maybe I don't understand the error message.
    Edited by: user10184763 on Sep 26, 2008 10:50 AM
    ALRIGHT....I picked up the original backed up odiparams.bat file and entered all the information one more time and then it worked...I dont know waht happened..but it worked!! Thanks people!
    Edited by: zebango on Oct 14, 2008 10:39 AM

    Still getting the same error. Work repository name is correct. Passwords freshly encoded. The thing is everytime I run the command agent encode <password> it gives me a new encoded password. Is tht expected behavior??
    bq. C:\Program Files\Oracle\oracledi\oracledi\bin>startscen DPRI_SEC_PKG_POP_PRI_SEC \\ TBLS 001 GLOBAL "-v=2" \\ OracleDI: Starting scenario DPRISEC_PKG_POP_PRI_SEC_TBLS 001 in context GLOBAL \\ ... \\ com.sunopsis.sql.c: sun.jdbc.odbc.JdbcOdbcDriver \\ at com.sunopsis.sql.SnpsConnection.a(SnpsConnection.java) \\ at com.sunopsis.sql.SnpsConnection.connect(SnpsConnection.java) \\ at com.sunopsis.dwg.cmd.e.h(e.java) \\ at com.sunopsis.dwg.cmd.e.g(e.java) \\ at com.sunopsis.dwg.cmd.e.y(e.java) \\ at com.sunopsis.dwg.DwgJv.treatCmd(DwgJv.java) \\ at com.sunopsis.dwg.DwgJv.main(DwgJv.java) \\ at oracle.odi.Agent.main(Agent.java) \\ DwgJv.main: Exit. Return code:-1
    My ODI params.bat for reference. again this Windows XP Prof2
    bq. set ODI_SECU_DRIVER=sun.jdbc.odbc.JdbcOdbcDriver \\ set ODI_SECU_URL=jdbc:oracle:thin:@pridb-test-1:1521:PRISBOX \\ set ODI_SECU_USER=PRI_MST_TST \\ set ODI_SECU_ENCODED_PASS=b1yaZszHYl5dvTmffPVqRhkp \\ set ODI_SECU_WORK_REP=PRI_WRK_TST \\ set ODI_USER=SUPERVISOR \\ set ODI_ENCODED_PASS=a7yXTDTi0KW4pefy2MPpHSuDy
    Any suggestions?

  • How to run Ant from command line in Tarantella env?

    I am getting Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.tools.ant.launch.Launcher error message when I run Ant from tarantella command line. Is this Ant version issue? I can only find Ant with version 1.4.2. Where can I find the correct Ant version (1.6.5) and what class path do I need to specify if I want to run Ant from command line. This works if I run Ant inside of Jdeveloper 11g.
    thanks

    Hi
    What is the correct Java version? What are the steps to rectify the problem?

  • How to Run scenario from the web using HTTP web page?

    Hi guys
    Please let me know How to Run scenario from the web using HTTP web page?
    Regards
    Janakiram

    Hi Janakiram,
    ODI provides web based UI for running the scenarios using Metadata Navigator (read only of ur ODI components) and Lighweight designer (u can edit the mapping here).
    Please explore how to install metadata navigator in ODI and have a look at ODI Setup document for more information.
    Thanks,
    Guru

  • ODI 11g error when running scenario from startscen

    Hi,
    I'm getting the following error when trying to run the scenario using a standalone agent:
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 6, in ?
    ImportError: no module named re
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
         at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:345)
         at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:169)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2375)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java:1616)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java:1581)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2755)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:537)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
    Everything runs fine from the Designer. I can execute the scenarion using the agent from Designer no problem.
    Any idea on this error? Sounds like a path error, but I've checked everything.
    Thanks in advance.
    Nick

    I believe i have the answer.
    When are you are triggering via ODI Designer its going and reading from this folder path Oracle_ODI1\oracledi.sdk\lib
    Now there is another Folder called Lib which has the re.py causing which enables Designer to run the re module perfectly.
    When the same scenarios is being called via startscen it reads the Oracle_ODI1\oracledi\agent\lib and here there is Jython.jar is there but Lib which contains the re.py is missing.
    Temporary Solution - Copy the Lib from Oracle_ODI1\oracledi.sdk\lib to Oracle_ODI1\oracledi\agent\lib and call your startscen again .It should work.
    The reason i am calling this a temporary solution is that we would need to modify the odiparams accordingly to read from the right path namely(Lib) and i dont have much time to look at it now. i will look into it later.
    You can try if this works and if you want you can check with metalink if there is proper solution or reach Oracle Support for more appropriate solution or any other experts who have experinced the same can update the solution.

  • Running mxmlc from command line - unable to open file

    Hello all,
    Just tried to get Flex up and running - but have run into
    probably a simple problem. Here's the scenario:
    1. I've put the flex 2.0 installation folder on my C drive
    such that the path is c:\flex_sdk_2
    2. I've set my system path to reference the the mxmlc with
    c:\flex_sdk_2\bin
    3. I've set up a folder on my desktop for my flex programs,
    creatively called 'flex'
    4. From my command line I use 'xmxlc --strict=true
    --file-specs filename.mxml'
    My output is this:
    Loading configuration file <etc>
    Error: unable to open filename.mxml
    As I said before, probably an easy fix but thought I'd put
    something up to see if anybody knew an answer off the top of their
    head? I'm running Windows XP. Home Edition, V. 2002 if it helps.
    Many thanks!
    Shannan

    Nevermind, figured it out. My files had the .txt appended to
    the end of the file-name.
    *der*

  • Running report from command line with multiple value for same parameter

    Hey,
    I know how to run a report from the command line specifying parameters values each time but I was wondering if someone could tell me how I would go about running the same report multiple times in a batch program but specifying a list of values to pass to a parameter each time.
    So for example if a parameter was 'School Number', how could I run a report in a batch program that would pass a school number to the report as a parameter using a list of school numbers generated for a sql statement or something. So if I had 300 school numbers in my list then I would get 300 different reports when the batch program finished.
    This leads me to another question. How can I dynamically change the name of the report generated by the batch to use the school number value passed in, so for example if the value 3 was passed in the name would be something like School 3.pdf, if 4 was passed in the name would be School 4.pdf....etc
    Any help on this?
    Thanks

    Hello,
    Bursting and Distribution may help you ....
    37 Bursting and Distributing a Report
    http://download-uk.oracle.com/docs/cd/B14099_17/bi.1012/b13895/orbr_dist.htm
    Regards

  • Errors when running db_stat from command line

    Hi,
    I'm trying to use db_stat at the command line to generate statistics.
    However, I keep getting errors. I cannot use the db->stat call
    because this is to be done at a customer site using their existing binary.
    Note that the call to db_stat -m fails, while the call to db_stat -d <dbname>
    prints an error/warning then appears to succeed.
    Most likely, there is some usage subtlety that I have missed.
    Any suggestions about what I have done wrong?
    I am using BDB 4.6.21 on Windows. Databases are created inside a
    db environment.
    Here is a transcript:
    C:\Program Files\SonicWallES\PluginDefault\collab\data>dir __*
    Volume in drive C has no label.
    Volume Serial Number is 7084-88E3
    Directory of C:\Program Files\SonicWallES\PluginDefault\collab\data
    08/07/2008 07:11 PM 24,576 __db.001
    08/07/2008 07:11 PM 65,536 __db.002
    08/07/2008 07:11 PM 270,336 __db.003
    08/07/2008 07:11 PM 499,712 __db.004
    4 File(s) 860,160 bytes
    0 Dir(s) 2,177,224,704 bytes free
    C:\Program Files\SonicWallES\PluginDefault\collab\data>"C:\Program Files\SonicWallES\utilities\bdb\db_stat.exe" -m
    db_stat.exe: __db.001: unable to find environment
    db_stat.exe: DB_ENV->open: No such file or directory
    C:\Program Files\SonicWallES\PluginDefault\collab\data>dir ..
    Volume in drive C has no label.
    Volume Serial Number is 7084-88E3
    Directory of C:\Program Files\SonicWallES\PluginDefault\collab
    08/18/2008 12:44 PM <DIR> .
    08/18/2008 12:44 PM <DIR> ..
    08/07/2008 10:09 PM 2,646,016 c_thumbprint.db
    09/05/2008 03:08 PM <DIR> data
    07/16/2008 06:43 PM <DIR> dbs
    08/07/2008 10:09 PM 42,131,456 e_thumbprint.db
    08/07/2008 10:09 PM 10,485,760 f_thumbprint.db
    08/07/2008 10:09 PM 5,226,496 g_thumbprint.db
    08/07/2008 10:09 PM 41,869,312 h_thumbprint.db
    08/07/2008 10:09 PM 41,926,656 i_thumbprint.db
    08/09/2008 02:47 AM <DIR> old_data
    08/07/2008 10:09 PM 10,633,216 p_thumbprint.db
    08/14/2008 05:26 PM 1,749 redirect.xml
    09/08/2008 04:12 PM <DIR> sn_data
    08/07/2008 10:09 PM 78,725,120 t_thumbprint.db
    08/07/2008 10:10 PM 42,074,112 v_thumbprint.db
    08/07/2008 10:50 PM 335,790,080 x_thumbprint.db
    11 File(s) 611,509,973 bytes
    6 Dir(s) 2,177,224,704 bytes free
    C:\Program Files\SonicWallES\PluginDefault\collab\data>"C:\Program Files\SonicWallES\utilities\bdb\db_stat.exe" -d ..\x_thumbprint.db
    db_stat.exe: __db.001: unable to find environment
    Mon Sep 08 16:17:01 2008 Local time
    61561 Hash magic number
    9 Hash version number
    Little-endian Byte order
    Flags
    8192 Underlying database page size
    0 Specified fill factor
    4882732 Number of keys in the database
    4882732 Number of data items in the database
    24548 Number of hash buckets
    35M Number of bytes free on bucket pages (82% ff)
    0 Number of overflow pages
    0 Number of bytes free in overflow pages (0% ff)
    8220 Number of bucket overflow pages
    32M Number of bytes free in bucket overflow pages (51% ff)
    0 Number of duplicate pages
    0 Number of bytes free in duplicate pages (0% ff)
    1 Number of pages on the free list

    If I'm reading your code correctly, you're starting a Korn shell session, then executing your C shell script as if you were at at the session window's prompt. If that is correct, you haven't caused your standard out (stdout) to hit ENTER yet. I'm not an expert, but I hope this works for you.
    Your code:
    Process Child = runtime.exec("/usr/bin/ksh"); // execute command
                            BufferedWriter outCommand = new BufferedWriter(new OutputStreamWriter(Child.getOutputStream()));
                            outCommand.write("/home/mypath/tesh.csh");
                            outCommand.flush();I think you need to enter one extra line before the flush():
    Process Child = runtime.exec("/usr/bin/ksh"); // execute command
                            BufferedWriter outCommand = new BufferedWriter(new OutputStreamWriter(Child.getOutputStream()));
                            outCommand.write("/home/mypath/tesh.csh");
                            outCommand.newLine();  // hit ENTER
                            outCommand.flush();P.S. If you're running this script and your Java program from the same UNIX machine, you could just execute the shell script inside the runtime.exec() call.

  • SNMP stat isn't updated by Sun WebServer if started from comand line

    Reproduce steps:
    - Configure server instance for SNMP monitoring( from webconsole or server.xml)
    - restart snmp master agent and subagent server
    - start server (/opt/SUNWwbsvr/https-server1/start)
    Server information appears in SNMP start but its status(1.3.6.1.4.1.42.1.60.1.1.8) is always 0.
    Woraround: start/stop sevrer from web admin console
    and it starts to update SNMP start for next command line launches
    Problems appears at
    version: 6.1 SP4
    platforms: Linux RHEL3, AIX.
    (At Window all is fine.)
    I'm wondering if somebody met this problem and perhaps knows the sollution.

    Can you do the following and let us know the result :
    (a) ps -ef | grep httpagt
    (b) send a SIGHUP signal to httpagt process and then try to access after few seconds to see if it updates the status of the server.
    kill -HUP <pid of httpagt>
    (c) Can you see any log in <install_root>https-admserv/logs/log.httpagt ?
    Are you running both instance and admin server as different users?

  • Calling process flow / mapping from comand line on client machine?

    Looking to call a process flow / mapping from a commad line on the client machine. Online research has found some attempts at it, but nothing solid. I'd like to test this functionality so that I can eventually build these calls into a wrapper used by an enterprise scheduler.
    Thanks

    what oleg2 is writins is oke but I think
    it is easier to write you one wrap around this sql-call, because then you have to parse some parameters and do other additional stuff
    PROCEDURE "P_EXECUTE_WORKFLOW"("P_WORKSPACE" IN VARCHAR2, "P_LOCATION_NAME" IN VARCHAR2, "P_WORKFLOW_NAME" IN VARCHAR2, "P_CUSTOM_PARAMS" IN VARCHAR2 DEFAULT '","', "P_SYSTEM_PARAMS" IN VARCHAR2 DEFAULT '","') ;

  • How to execute ODI scenarios from command line in Unix

    Hi Friends,
    I am using ODI 11g.
    I want to execute ODI senarios using the command line argument in Unix.
    Please let me know how to proceed with this.
    Thanks,
    Lony

    Hi,
    unser the /your_ODI_HOME/agent/bin folder.
    Excute this
    sh startscen.sh REFRESH_ID 001 GLOBAL 5 -NAME=agent_ODI
    REFRESH_ID=Your Scenario name
    001:Version
    GLOBAL:Context name
    5=Log Level
    agent_ODI=Your agent name
    Regards

  • Error while running a Discoverer Workbook with parameter from command line

    I am trying to run a discoverer report from command line and export the results in xls on to my local machine. I could do it fine for a simple workbook, but if I add a parameter(madatory) to the workbook and run it from command line specifying the parameter value I wanted to run the report for, I do not get any results. Here is the command line I am using.
    dis51usr.exe /connect user/password@database /apps_user /apps_responsibility "System Administrator" /eul EUL_US /open C:\Disco\Test.DIS /sheet Testsheet /parameter Period Jan-07 /export xls C:\Disco\X.xls /batch
    Parameter value is entered in correct format(Jan-07).
    When I removed /batch from this to see if I get any error, Discoverer Desktop opened up, logged in and gets terminated saying 'Oracle Discoverer Desktop has encountered a problem and need to close. We are sorry for the inconvenience.'
    Did anybody come across this issue before?

    Hello,
    If you have a few minutes, Windows is also aborting for me:
    the differences are, my situation is:
    a) am running the command line from a .bat file
    b) am NOT running with parms, want the discoverer query to come up for the user
    c) am running a query from the database
    i am signing in as myself BUT running a query that was created by a generic user called SREG
    c) if i run the .bat file from Windows Explorer, the query opens fine
    d) if i execute the .bat file from within Microsoft Access using the shell command,
    the query opens and then aborts RIGHT BEFORE the parm screen would display
    e) btw, if i modify the .bat file, to run a query from MY database signon, then (d) - running .bat file
    from vb using SHELL command works
    Do you have a ideas as to why (d) does not work? I would be very grateful for your time, tx, sandra
    this is what i posted yesterday, tx: Re: Running Discoverer command line
    tx, sandra

  • Unable to build and run Javapetstore using  Sun SDK from Command Line

    Hi,
    Here is a problem I?ve come across building and running JavaPetstore from Command Line using Ant.
    It shows that Build is successful but there is an error message in very beginning:
    ?Unable to locate tools. jar. Expected to find it in C:\Program Files\Java\jre 1.5.0_11\lib\tools.jar?
    But there is no such a file in jre-1.5.0_11 or previous versions.
    The only place where the file with such name can be found is jdk\lib.
    All attempts to run end up with:
    ? BUILD FAILED.
    C:\<PETSTORE_HOME>\bp-project\command-line-ant-task.xml:77;unable to find javac compiler;com.sun.tools.javac.Main is not on the class path.
    Perhaps JAVA_HOME does not point to JDK."
    Directories C:\Sun\SDK\bin and C:\Sun\SDK\jdk are in the PATH.
    JAVA_HOME as a System variable is set up to C:\Sun\SDK\jdk.
    Building and running other applications like a BluePrints or Samples bring to same result.
    I will post more information if needed.
    Thank you in advance for help.

    If you are using Windows XP:
    1. Right click on my computer
    2. Select Properties from the popup dialog
    3. Click on the "Advanced" tab
    4. Click the button towards the bottom that says "Environment Variables"
    5. In the dialog that pops up, look in both the User variables and the System variables for a variable named CLASSPATH
    6. If its not there, you need to create it. If you want to make it available to all users of your computer, create it as a System variable. If you only want it to be available to the current user, add it as a User variable.
    7. If it is there, or if you just created it, it needs to contain the following values: the current directory (symbolically abbreviated as a period: "."), any class libraries you want to be available to the java compiler (javac) or the java interpreter (java). By default, jre/lib and jre/lib/ext are searched for classes, so you don't need to include anything located in one of these folders on the classpath.

  • JSPC Compiler gives FileNotFound Exception from command line

    I have problem running jspc from command line
              From the browser, the jsp pages compile fine.
              I have tested this on NT 4.0 and on HP UX 10.0 with Weblogic Server
              4.5.1 and SP 9.
              The command I typed in as follows:
              $java weblogic.jspc -d /opt/b2berp/jspclassfiles/ - docroot
              /opt/b2berp/web -keepgenerated true -classpath
              /opt/jdk/1.2.2/lib/classes.zip:/opt/weblogic/weblogicaux.jar:/opt/b2berp/lib
              I get the following exception:
              I checked the file is in PATH and I am also specifying the absolute path
              and filename.
              My document directory is /opt/b2berp/web/auctions/
              All of my jsp pages are under /opt/b2berp/web
              This is also my web folder.
              Gives error unable to find file
              (FileNotFoundException)
              Does anyone know what is going on.
              Rauf
              

    Hi,
              did you place setWLSEnv in your path ?
              ----Anilkumar kari

  • Work from command line but did not work from JSP call

    I have a test class that should perform Triple DES. When I run it from command line work ok, but when runs from JSP it give me an error:
    Exception:
    ======================================
    javax.crypto.IllegalBlockSizeException: Input length not multiple of 8 bytes
    put 3 check points inside the code, and run it from command line and here is the result:
    C:\Documents and Settings\salasadi\Desktop\DigitalMailer>java TDESStringEncrypto
    r 123456781234567812345678 "CID=103&A
    this is pass 3
    this is pass 1
    this is pass 2
    here is the class:
    import javax.crypto.*;
    import javax.crypto.spec.*;
    import java.security.*;
    import java.io.*;
    public class TDESStringEncryptor
    static final int DATA_STRING_LENGTH = 64;
    public static void main(String[] args)
    try
    TDESStringEncryptor enc = new TDESStringEncryptor();
    String value = enc.Encrypt(args[0], args[1]);
    System.err.println(value);
    catch (Exception ex)
    System.err.println(ex);
    public String Encrypt(String inkey, String data)
    throws Exception
    // convert key to byte array and get it into a key object
    byte[] rawkey = inkey.getBytes();
    DESedeKeySpec keyspec = new DESedeKeySpec(rawkey);
    SecretKeyFactory keyfactory = SecretKeyFactory.getInstance("DESede");
    SecretKey key = keyfactory.generateSecret(keyspec);
    Cipher cipher = Cipher.getInstance("DESede/ECB/NoPadding");
    cipher.init(Cipher.ENCRYPT_MODE, key);
    byte[] out = cipher.doFinal( padString(data).getBytes( ) );
    System.out.println("this is pass 1");
    return byteArrayToHexString( out );
    private String byteArrayToHexString(byte in[])
    byte ch = 0x00;
    int i = 0;
    if ( in == null || in.length <= 0 )
    return null;
    String pseudo[] = {"0", "1", "2", "3", "4", "5", "6", "7", "8",
    "9", "A", "B", "C", "D", "E", "F"};
    StringBuffer out = new StringBuffer( in.length * 2 );
    while ( i < in.length )
    ch = (byte) ( in[i] & 0xF0 );
    ch = (byte) ( ch >>> 4 );
    ch = (byte) ( ch & 0x0F );
    out.append( pseudo[ (int) ch] );
    ch = (byte) ( in[i] & 0x0F );
    out.append( pseudo[ (int) ch] );
    i++;
    String rslt = new String( out );
    System.out.println("this is pass 2");
    return rslt;
    private String padString( String s )
    StringBuffer str = new StringBuffer( s );
    int strLength = str.length();
    for ( int i = 0; i <= DATA_STRING_LENGTH ; i ++ )
    if ( i > strLength ) str.append( ' ' );
    System.out.println("this is pass 3");
    return str.toString();
    And here is the JSP call:
    TDESStringEncryptor encryptz = new TDESStringEncryptor();
    String cryptodata1 = encryptz.Encrypt(Keyz,cryptodata);
    Thanks

    Please use [ code ] tags when posting code.
    Please indicate the line that causes the exception.
    Please indicate what Keyz and cryptodata is.

Maybe you are looking for