Simple Java (Errors)

DriverP3.java:47: <identifier> expected
the month (integer)
                  ^
DriverP3.java:48: ')' expected
        String numString;       // number string input
                        ^
DriverP3.java:110: illegal start of expression
        void AwardCalc() throws IOException
        ^
DriverP3.java:183: illegal start of expression
        void AccountIn() throws IOException
        ^
4 errorsThese are the 4 errors I get, and cannot debug them...
Any help would be greatly apprciated...
Implementation Model for Project 03
Source Name:                           DriverP3.java
Problem:                               Implementation Model for Project 03
Date Written:                               04/10/07
Written By:                               SG
Modified By:                               
Date Modified:                         04/10/07 1805
Purpose:  To implement Project 02
import java.io.*;
public class DriverP3
     public static void main(String args[]) throws IOException
          P3 app;
          app = new P3();
          app.appMain();
     }     // end of main()
class P3
     /* Instance Data Declarations */
int accNum;           //customer number (integer)
string date;           //date for end of month (string)
float award;           //amount of award for the month (decimal)
float awardBegBal;      //beginning balance for awards (decimal)
float yrIntRate;      //yearly interest rate for awards(decimal)
float begBal;           //beginning account balance (decimal)
string transDate;      //transaction date (string)
string transType;      //transaction type (string)
int transNum;      //transaction number (integer)
float amount;           //transaction amount (decimal)
float endBal;           //ending account balance for the month (decimal)
float awardEndBal;      //ending balance for awards (decimal)
float totWithdraw;      //total withdrawals made for the month (decimal)
float totDeposit;      //total deposits made for the month (decimal)
float hiWithdraw;      //largest amount withdrawn for the month (decimal)
int hiTransNum;      //transaction number for largest withdrawal for the month (integer)     
     String numString;     // number string input
     BufferedReader stdin;     // define stdin
     /* appMain module calls for initialization, processing, output */
     public void appMain() throws IOException
          stdin = new BufferedReader
                    (new InputStreamReader(System.in));
                    // create input string object
          RptInit();
          AccountIn();
          while(transType != �N�)
               TransProc();
                   AwardCalc ();
          RptOut();
     }     // end of appMain()
     /* process nnnn for a single xxxx*/
     void TransProc () throws IOException
          TransProc();
          if(transType != �N�)
               TransVarsUpdate();
               RecordOut();
          return;
     } // end TransProc ()
     /* initialize variables */
     void RptInit() throws IOException
          totWithdraw = 0;
     totDeposit = 0;
     hiWithdraw = 0;
     transType = �x�;          
     return;
     } // end of RptInit()
     /* process nnnn */
     void TransVarsUpdate() throws IOException
          if(transType = �W�)
               totWithdraw = totWithdraw + amount;
               endBal = (endBal - amount);
               if(amount > hiWithdraw)
               hiWithdraw = amount;
               hiTransNum = transNum;
          else
               totDeposit = totDeposit + amount;
               endBal = endBal + amount;     
     } // end TransVarsUpdate ()
     void AwardCalc() throws IOException
          if(transType != �N�)
               award = (yrIntRate * endbal/12);
               awardEndBal = awardBegBal;
          else
               award = 0;
               awardEndBal = awardBegBal;
          return;
     } // AwardCalc
     /* output xxxx numbers */
     void RecordOut()
          System.out.println(�The Transaction Type is = � + transType);
          System.out.println(�The Transaction Date is = � + transDate);
          System.out.println(�The Transaction Number is = � + transNum);
          System.out.println(�The Transaction Amount is = � + amount);
          System.out.println(�The End Balance is = � + endBal);
          return;
     } // end DetailOut()
     /* final output numbers */
     void RptOut()
System.out.println(�Account Number is � + accNum);
System.out.println(�Date is � + date);
System.out.println(�Beginning Award Balance Is � + awardBegBal);
System.out.println(�Yearly Interest Rate is � + ytIntRate);
System.out.println(�Beginning Balance is � + begBal);
System.out.println(�*********************************** �);
System.out.println(�End Balance is � + endBal);
System.out.println(�Amount of Award is � + award);
System.out.println(�End Balance for Awards is � + awardEndBal);
System.out.println(�Total Withdraws is  � + totWithdraw);
System.out.println(�Total Deposits is � + totDeposit);
System.out.println(�Highest Withdraw is � + hiWithdraw);
System.out.println(�Transaction Number for high Withdraw is � + hiTransNum);
return;
     } // end RptOut()
     /* input the Account Info */
     void AccountIn() throws IOException
     System.out.print("\n\n Enter the account number: ");
          numString = stdin.readLine();
          transNum = Integer.parseFloat(numString);
     System.out.print("\n\n Enter the date of the end of the month: ");
          numString = stdin.readLine();
          date = numString.charAt();
     System.out.print("\n\n Enter awards beginning balance: ");
          numString = stdin.readLine();
          awardBegBal = Float.parseFloat(numString);
     System.out.print("\n\n Enter the yearly interest rate: ");
          numString = stdin.readLine();
          yrIntRate = Float.parseFloat(numString);
     System.out.print("\n\n Enter the beginning account balance: ");
          numString = stdin.readLine();
          begBal = Float.parseFloat(numString);
     endBal = begBal;
          return;
     /* input the transaction*/
     void AccountIn() throws IOException
     System.out.print("\n\n Enter the Transaction Type: ");
          numString = stdin.readLine();
          transType = numString.charAt();
     if (transType !=  �N�)
     System.out.print("\n\n Enter the Transaction Date: ");
          numString = stdin.readLine();
          transDate = numString.charAt();
     System.out.print("\n\n Enter Transaction Number: ");
          numString = stdin.readLine();
          transNum = Integer.parseFloat(numString);
     System.out.print("\n\n Enter the Amount: ");
          numString = stdin.readLine();
          amount = Float.parseFloat(numString);
          return;
}

There is a missing closing brace in the TransVarsUpdate() method.
Try using correct indentation, it would make such mistakes easy to find.class P3
    /* Instance Data Declarations */
    int accNum;             //customer number (integer)
    String date;            //date for end of month (string)
    float award;            //amount of award for the month (decimal)
    float awardBegBal;      //beginning balance for awards (decimal)
    float yrIntRate;        //yearly interest rate for awards(decimal)
    float begBal;           //beginning account balance (decimal)
    String transDate;       //transaction date (string)
    String transType;       //transaction type (string)
    int transNum;   //transaction number (integer)
    float amount;           //transaction amount (decimal)
    float endBal;           //ending account balance for the month (decimal)
    float awardEndBal;      //ending balance for awards (decimal)
    float totWithdraw;      //total withdrawals made for the month (decimal)
    float totDeposit;       //total deposits made for the month (decimal)
    float hiWithdraw;       //largest amount withdrawn for the month (decimal)
    int hiTransNum;         //transaction number for largest withdrawal for the month (integer)    
    String numString;       // number string input
    BufferedReader stdin;   // define stdin
    /* appMain module calls for initialization, processing, output */
    public void appMain() throws IOException
        stdin = new BufferedReader
        (new InputStreamReader(System.in));
        // create input string object
        RptInit();
        AccountIn();
        while(transType != "N")
            TransProc();
        AwardCalc ();
        RptOut();
    }       // end of appMain()
    /* process nnnn for a single xxxx*/
    void TransProc () throws IOException
        TransProc();
        if(transType != "N")
            TransVarsUpdate();
            RecordOut();
        return;
    } // end TransProc ()
    /* initialize variables */
    void RptInit() throws IOException
        totWithdraw = 0;
        totDeposit = 0;
        hiWithdraw = 0;
        transType = "x";               
        return;
    } // end of RptInit()
    /* process nnnn */
    void TransVarsUpdate() throws IOException
        if(transType = "W")
            totWithdraw = totWithdraw + amount;
            endBal = (endBal - amount);
            if(amount > hiWithdraw)
                hiWithdraw = amount;
                hiTransNum = transNum;
            else
                totDeposit = totDeposit + amount;
                endBal = endBal + amount;      
        } // end TransVarsUpdate ()
        void AwardCalc() throws IOException
            if(transType != "N")
                award = (yrIntRate * endbal/12);
                awardEndBal = awardBegBal;
            else
                award = 0;
                awardEndBal = awardBegBal;
            return;
        } // AwardCalc
        /* output xxxx numbers */
        void RecordOut()
            System.out.println("The Transaction Type is = " + transType);
            System.out.println("The Transaction Date is = " + transDate);
            System.out.println("The Transaction Number is = " + transNum);
            System.out.println("The Transaction Amount is = " + amount);
            System.out.println("The End Balance is = " + endBal);
            return;
        } // end DetailOut()
        /* final output numbers */
        void RptOut()
            System.out.println("Account Number is " + accNum);
            System.out.println("Date is " + date);
            System.out.println("Beginning Award Balance Is " + awardBegBal);
            System.out.println("Yearly Interest Rate is " + ytIntRate);
            System.out.println("Beginning Balance is " + begBal);
            System.out.println("*********************************** ");
            System.out.println("End Balance is " + endBal);
            System.out.println("Amount of Award is " + award);
            System.out.println("End Balance for Awards is " + awardEndBal);
            System.out.println("Total Withdraws is  " + totWithdraw);
            System.out.println("Total Deposits is " + totDeposit);
            System.out.println("Highest Withdraw is " + hiWithdraw);
            System.out.println("Transaction Number for high Withdraw is " + hiTransNum);
            return;
        } // end RptOut()
        /* input the Account Info */
        void AccountIn() throws IOException
            System.out.print("\n\n Enter the account number: ");
            numString = stdin.readLine();
            transNum = Integer.parseFloat(numString);
            System.out.print("\n\n Enter the date of the end of the month: ");
            numString = stdin.readLine();
            date = numString.charAt();
            System.out.print("\n\n Enter awards beginning balance: ");
            numString = stdin.readLine();
            awardBegBal = Float.parseFloat(numString);
            System.out.print("\n\n Enter the yearly interest rate: ");
            numString = stdin.readLine();
            yrIntRate = Float.parseFloat(numString);
            System.out.print("\n\n Enter the beginning account balance: ");
            numString = stdin.readLine();
            begBal = Float.parseFloat(numString);
            endBal = begBal;
        return;
        /* input the transaction*/
        void AccountIn() throws IOException
            System.out.print("\n\n Enter the Transaction Type: ");
            numString = stdin.readLine();
            transType = numString.charAt();
        if (transType !=  "N")
            System.out.print("\n\n Enter the Transaction Date: ");
            numString = stdin.readLine();
            transDate = numString.charAt();
            System.out.print("\n\n Enter Transaction Number: ");
            numString = stdin.readLine();
            transNum = Integer.parseFloat(numString);
            System.out.print("\n\n Enter the Amount: ");
            numString = stdin.readLine();
            amount = Float.parseFloat(numString);
        return;
}

Similar Messages

  • Missing Defines Error in Simple Java Stored Procedure

    Anyone have any suggestions on what might be causing the unusual behavior described below? Could it be a 10g java configuration issue? I am really stuck so I'm open to just about anything. Thanks in advance.
    I am writing a java stored procedure and am getting some SQLException's when executing some basic JDBC code from within the database. I reproduced the problem by writing a very simple java stored procedure which I have included below. The code executes just fine when executed outside of the database (10g). Here is the output from that execution:
    java.class.path=C:\Program Files\jEdit42\jedit.jar
    java.class.version=48.0
    java.home=C:\j2sdk1.4.2_04\jre
    java.vendor=Sun Microsystems Inc.
    java.version=1.4.2_04
    os.arch=x86
    os.name=Windows XP
    os.version=5.1
    In getConnection
    Executing outside of the DB
    Driver Name = Oracle JDBC driver
    Driver Version = 10.1.0.2.0
    column count=1
    column name=TEST
    column type=1
    TEST
    When I execute it on the database by calling the stored procedure I get:
    java.class.path=
    java.class.version=46.0
    java.home=/space/oracle/javavm/
    java.vendor=Oracle Corporation
    java.version=1.4.1
    os.arch=sparc
    os.name=Solaris
    os.version=5.8
    In getConnection
    We are executing inside the database
    Driver Name = Oracle JDBC driver
    Driver Version = 10.1.0.2.0
    column count=1
    column name='TEST'
    column type=1
    MEssage: Missing defines
    Error Code: 17021
    SQL State: null
    java.sql.SQLException: Missing defines
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:158)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
    at oracle.jdbc.driver.OracleResultSetImpl.getString(Native Method)
    at OracleJSPTest.test(OracleJSPTest:70)
    Here is the Java code:
    // JDBC classes
    import java.sql.*;
    import java.util.*;
    //Oracle Extensions to JDBC
    import oracle.jdbc.*;
    import oracle.jdbc.driver.OracleDriver;
    public class OracleJSPTest {
    private static void printProperties(){
         System.out.println("java.class.path="+System.getProperty("java.class.path"));
         System.out.println("java.class.version="+System.getProperty("java.class.version"));
         System.out.println("java.home="+System.getProperty("java.home"));
         System.out.println("java.vendor="+System.getProperty("java.vendor"));
         System.out.println("java.version="+System.getProperty("java.version"));
         System.out.println("os.arch="+System.getProperty("os.arch"));
         System.out.println("os.name="+System.getProperty("os.name"));
         System.out.println("os.version="+System.getProperty("os.version"));
    private static Connection getConnection() throws SQLException {
         System.out.println("In getConnection");      
    Connection connection = null;
    // Get a Default Database Connection using Server Side JDBC Driver.
    // Note : This class will be loaded on the Database Server and hence use a
    // Server Side JDBC Driver to get default Connection to Database
    if(System.getProperty("oracle.jserver.version") != null){
              System.out.println("We are executing inside the database");
              //connection = DriverManager.getConnection("jdbc:default:connection:");                    
              connection = new OracleDriver().defaultConnection();
    }else{
         System.out.println("Executing outside of the DB");
         DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
         connection = DriverManager.getConnection("jdbc:oracle:thin:@XXX.XXX.XXX.XX:XXXX:XXXX","username","password");
    DatabaseMetaData dbmeta = connection.getMetaData();
    System.out.println("Driver Name = "+ dbmeta.getDriverName());
    System.out.println("Driver Version = "+ dbmeta.getDriverVersion());
    return connection;
    public static void main(String args[]){     
         test();     
    public static void test() {   
         printProperties();
    Connection connection = null; // Database connection object
    try {
         connection = getConnection();
         String sql = "select 'TEST' from dual";
         Statement stmt = connection.createStatement();
    ResultSet rs = stmt.executeQuery(sql);     
         ResultSetMetaData meta = rs.getMetaData();     
         System.out.println("column count="+meta.getColumnCount());
         System.out.println("column name="+meta.getColumnName(1));
         System.out.println("column type="+meta.getColumnType(1));
         if(rs.next()){
              System.out.println(rs.getString(1));
    } catch (SQLException ex) { // Trap SQL Errors
         System.out.println("MEssage: " + ex.getMessage());
         System.out.println("Error Code: " + ex.getErrorCode());
         System.out.println("SQL State: " + ex.getSQLState());
         ex.printStackTrace();
    } finally {
    try{
    if (connection != null || !connection.isClosed())
    connection.close(); // Close the database connection
    } catch(SQLException ex){
    ex.printStackTrace();
    Message was edited by:
    jason_mac

    Jason,
    Works for me on Oracle 10.1.0.3 running on Red Hat Enterprise Linux AS release 3 (Taroon).
    Java code:
    import java.sql.*;
    * Oracle Java Virtual Machine (OJVM) test class.
    public class OjvmTest {
      public static void test() throws SQLException {
        Connection conn = DriverManager.getConnection("jdbc:default:connection:");
        PreparedStatement ps = null;
        ResultSet rs = null;
        try {
          ps = conn.prepareStatement("select 'TEST' from SYS.DUAL");
          rs = ps.executeQuery();
          if (rs.next()) {
            System.out.println(rs.getString(1));
        finally {
          if (rs != null) {
            try {
              rs.close();
            catch (SQLException sqlEx) {
              System.err.println("Error ignored. Failed to close result set.");
          if (ps != null) {
            try {
              ps.close();
            catch (SQLException sqlEx) {
              System.err.println("Error ignored. Failed to close statement.");
    }And my PL/SQL wrapper:
    create or replace procedure P_J_TEST as language java
    name 'OjvmTest.test()';And here is how I execute it in a SQL*Plus session:
    set serveroutput on
    exec dbms_java.set_output(2000)
    exec p_j_testGood Luck,
    Avi.

  • Error while compiling and building file [java] ERROR: ejbc couldn't invoke

    *[java] [EJBCompiler] : Compliance Checker said bean was compliant*
    *[java] ERROR: Error from ejbc: Access is denied*
    *[java] java.io.IOException: Access is denied*
    *[java] at java.io.WinNTFileSystem.createFileExclusively(Ljava.lang.Stri*
    ng;)Z(Native Method)
    *[java] at java.io.File.checkAndCreate(File.java:1314)*
    *[java] at java.io.File.createTempFile(File.java:1402)*
    *[java] at java.io.File.createTempFile(File.java:1439)*
    *[java] at weblogic.utils.compiler.CompilerInvoker.execCompiler(Compiler*
    Invoker.java:227)
    *[java] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Comp*
    ilerInvoker.java:428)
    *[java] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok*
    er.java:328)
    *[java] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok*
    er.java:336)
    *[java] at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:27*
    *0)*
    *[java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:4*
    *76)*
    *[java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:3*
    *97)*
    *[java] at weblogic.ejbc20.runBody(ejbc20.java:517)*
    *[java] at weblogic.utils.compiler.Tool.run(Tool.java:192)*
    *[java] at weblogic.utils.compiler.Tool.run(Tool.java:147)*
    *[java] at weblogic.ejbc.main(ejbc.java:29)*
    *[java] ERROR: ejbc couldn't invoke compiler*
    BUILD FAILED

    Yshemi,
    You do not have to explicitly point the server to a compiler. Its already in
    the IDE classpath. Can you provide more information on the steps you
    followed.
    You had stated that you had created a new workshop domain. Is this the
    domain in which your are creating the new application ?
    You can choose the server when you create the application or by editing the
    application properties.
    Can you verify this ?
    Can you test the built in sample to check if it works fine ?
    What is the operating system that you are working on ?
    Can you try by creating a new empty application, and an ejb project and let
    me know the results ?
    Regards,
    Raj Alagumalai
    WebLogic Workshop Support
    "yshemu" <[email protected]> wrote in message
    news:3f4eabaf$[email protected]..
    >
    Hi Guys,
    I have created a workshop domain with the configuration wizard.
    I am trying to build a simple EJB - stateless session, has one method
    that returns a string.
    when I try to build I get the following :
    "ERROR: ERROR: Error from ejbc: Compiler failed executable.exec
    ERROR: ERROR: ejbc couldn't invoke compiler
    BUILD FAILED
    ERROR: ERROR: Error from ejbc: Compiler failed executable.exec
    ERROR: ERROR: ejbc couldn't invoke compiler
    Application Build had errors."
    It seems like Workshop can't find the compiler.
    I added "c:\bea81\jdk141_03\bin" to the application properties under
    "server classpath additions" and still get the same error.
    Does anyone know how I can point workshop to the compiler ?
    Thanks
    yshemi

  • Java Error while executing the excel template in the BIP 10g report server

    Hello Gurus,
    While we are executing the excel template we are getting the following java error and the report cannot be rendered to user who triggers the report. Where as the same excel template is generating output when user run it against the same data locally.
    "oracle.apps.xdo.servlet.scheduler.ProcessingException: [ID:652] Document file to deliver not found : C:\Oracle\bipublisher\oc4j_bi\j2ee\home\applications\xmlpserver\xmlpserver\xdo\tmp\xmlp3307tmp
    at oracle.apps.xdo.servlet.scheduler.XDOJob.deliver(XDOJob.java:1172)
    at oracle.apps.xdo.servlet.scheduler.XDOJob.execute(XDOJob.java:495)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)"
    We have tried with designing the .rtf template for this report and we are able to generate the report form the server. Please let us know the cause for this error in the server and way to rectify the exception from the report server.
    Thanks,
    Kamath.

    "oracle.apps.xdo.servlet.scheduler.ProcessingException: [ID:652] Document file to deliver not found : C:\Oracle\bipublisher\oc4j_bi\j2ee\home\applications\xmlpserver\xmlpserver\xdo\tmp\xmlp3307tmp
    imho it's about empty result file
    Data are there
    may be yes but is some data from all for report itself ?
    in other words data can be in output ( in xml ) but report can filters data and so report doesn't have appropriate data to representation ( it's assumption for error )
    Data are there, when we are using rtf template, it is generating the output.
    if you sure about data for report and on this data report works fine by bip desktop, so no ideas, only SR
    btw you can first check my assumption and try to catch "no data found" in template
    also you can check data itself, is it well-formed xml

  • Problem while executing simple java program

    Hi
    while trying to execute a simple java program,i am getting the following exception...
    please help me in this
    java program :import java.util.*;
    import java.util.logging.*;
    public class Jump implements Runnable{
        Hashtable activeQueues = new Hashtable();
        String dbURL, dbuser, dbpasswd, loggerDir;   
        int idleSleep;
        static Logger logger = Logger.getAnonymousLogger();      
        Thread myThread = null;
        JumpQueueManager manager = null;
        private final static String VERSION = "2.92";
          public Jump(String jdbcURL, String user, String pwd, int idleSleep, String logDir) {
            dbURL = jdbcURL;
            dbuser = user;
            dbpasswd = pwd;
            this.idleSleep = idleSleep;
            manager = new JumpQueueManager(dbURL, dbuser, dbpasswd);
            loggerDir = logDir;
            //preparing logger
            prepareLogger();
          private void prepareLogger(){      
            Handler hndl = new pl.com.sony.utils.SimpleLoggerHandler();
            try{
                String logFilePattern = loggerDir + java.io.File.separator + "jumplog%g.log";
                Handler filehndl = new java.util.logging.FileHandler(logFilePattern, JumpConstants.MAX_LOG_SIZE, JumpConstants.MAX_LOG_FILE_NUM);
                filehndl.setEncoding("UTF-8");
                filehndl.setLevel(Level.INFO);
                logger.addHandler(filehndl);
            catch(Exception e){
            logger.setLevel(Level.ALL);
            logger.setUseParentHandlers(false);
            logger.addHandler(hndl);
            logger.setLevel(Level.FINE);
            logger.info("LOGGING FACILITY IS READY !");
          private void processTask(QueueTask task){
            JumpProcessor proc = JumpProcessorGenerator.getProcessor(task);       
            if(proc==null){
                logger.severe("Unknown task type: " + task.getType());           
                return;
            proc.setJumpThread(myThread);
            proc.setLogger(logger);       
            proc.setJumpRef(this);
            task.setProcStart(new java.util.Date());
            setExecution(task, true);       
            new Thread(proc).start();       
         private void processQueue(){       
            //Endles loop for processing tasks from queue       
            QueueTask task = null;
            while(true){
                    try{
                        //null argument means: take first free, no matters which queue
                        do{
                            task = manager.getTask(activeQueues);
                            if(task!=null)
                                processTask(task);               
                        while(task!=null);
                    catch(Exception e){
                        logger.severe(e.getMessage());
                logger.fine("-------->Sleeping for " + idleSleep + " minutes...hzzzzzz (Active queues:"+ activeQueues.size()+")");
                try{
                    if(!myThread.interrupted())
                        myThread.sleep(60*1000*idleSleep);
                catch(InterruptedException e){
                    logger.fine("-------->Wakeing up !!!");
            }//while       
        public void setMyThread(Thread t){
            myThread = t;
        /** This method is only used to start Jump as a separate thread this is
         *usefull to allow jump to access its own thread to sleep wait and synchronize
         *If you just start ProcessQueue from main method it is not possible to
         *use methods like Thread.sleep becouse object is not owner of current thread.
        public void run() {
            processQueue();
        /** This is just another facade to hide database access from another classes*/
        public void updateOraTaskStatus(QueueTask task, boolean success){
            try{         
                manager.updateOraTaskStatus(task, success);
            catch(Exception e){
                logger.severe("Cannot update status of task table for task:" + task.getID() +  "\nReason: " + e.getMessage());       
        /** This is facade to JumpQueueManager method with same name to hide
         *existance of database and SQLExceptions from processor classes
         *Processor class calls this method to execute stored proc and it doesn't
         *take care about any SQL related issues including exceptions
        public void executeStoredProc(String proc) throws Exception{
            try{
                manager.executeStoredProc(proc);
            catch(Exception e){
                //logger.severe("Cannot execute stored procedure:"+ proc + "\nReason: " + e.getMessage());       
                throw e;
         *This method is only to hide QueueManager object from access from JumpProcessors
         *It handles exceptions and datbase connecting/disconnecting and is called from
         *JumpProceesor thread.
        public  void updateTaskStatus(int taskID, int status){       
            try{
                manager.updateTaskStatus(taskID, status);
            catch(Exception e){
                logger.severe("Cannot update status of task: " + taskID + " to " + status + "\nReason: " + e.getMessage());
        public java.sql.Connection getDBConnection(){
            try{
                return manager.getNewConnection();
            catch(Exception e){
                logger.severe("Cannot acquire new database connection: " + e.getMessage());
                return null;
        protected synchronized void setExecution(QueueTask task, boolean active){
            if(active){
                activeQueues.put(new Integer(task.getQueueNum()), JumpConstants.TH_STAT_BUSY);
            else{
                activeQueues.remove(new Integer(task.getQueueNum()));
        public static void main(String[] args){
                 try{
             System.out.println("The length-->"+args.length);
            System.out.println("It's " + new java.util.Date() + " now, have a good time.");
            if(args.length<5){
                System.out.println("More parameters needed:");
                System.out.println("1 - JDBC strign, 2 - DB User, 3 - DB Password, 4 - sleeping time (minutes), 5 - log file dir");
                return;
            Jump jump = new Jump(args[0], args[1], args[2], Integer.parseInt(args[3]), args[4]);
            Thread t1= new Thread(jump);
            jump.setMyThread(t1);      
            t1.start();}
                 catch(Exception e){
                      e.printStackTrace();
    } The exception i am getting is
    java.lang.NoClassDefFoundError: jdbc:oracle:thin:@localhost:1521:xe
    Exception in thread "main" ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2
    JDWP exit error AGENT_ERROR_NO_JNI_ENV(183):  [../../../src/share/back/util.c:820] Please help me.....
    Thanks in advance.....sathya

    I am not willing to wade through the code, but this portion makes me conjecture your using an Oracle connect string instead of a class name.
    java.lang.NoClassDefFoundError: jdbc:oracle:thin:@localhost:1521:xe

  • I have Mac OSX 10.5.8 and get java "error" message when trying to use research tool on Morningstar Java referred me to Apple but they had no update.Any ideas? thanks.e

    I have a imac OSX 10.5.8 and get a java "error" message when trying to use a research tool on Morningstar.Java referred me to Apple but they had no updates. Any ideas? thanks.

    Well I solved my problem.
    What still doesn't make sense though is that dragging iTune audio files directly on to the iTunes application icon gave me the error message... which is why I originally discounted it as being a potential link problem. If I had been able to get files to open normally (i.e. without an error message) I would have known it was a simple link problem. Strange.
    Anyway... relinking my folder of audio files did the trick.
    If you don't already know how here are the steps...
    iTunes > Preferences > Advanced > click on the "Change" button and browse to the folder that contains all of your iTunes audio files... that's it.

  • What's wrong with this simple java file

    I am learning java input methods. When I tried to compile the below simple java file, there were two errors.
    import java.io.*;
    public class MainClass {
       public static void main(String[] args)  {
        Console console = System.console();
        String user = console.readLine("user: ");
        System.out.println(user);
    }The compiler errors:
    h:\java\MainClass.java:5: cannot resolve symbol
    symbol : class Console
    location: class MainClass
    Console console = System.console();
    ^
    h:\java\MainClass.java:5: cannot resolve symbol
    symbol : method console ()
    location: class java.lang.System
    Console console = System.console();
    ^
    2 errors
    Could anyone take a look and shed some lights on this?

    I have changed to "import java.io.Console;" but this below errors:
    h:\java\MainClass.java:1: cannot resolve symbol
    symbol : class Console
    location: package io
    import java.io.Console;
    ^
    h:\java\MainClass.java:5: cannot resolve symbol
    symbol : class Console
    location: class MainClass
    Console console = System.console();
    ^
    h:\java\MainClass.java:5: cannot resolve symbol
    symbol : method console ()
    location: class java.lang.System
    Console console = System.console();
    ^
    3 errors
    -----------

  • Simple Java DB example

    I am using Java 1.6 and Eclipse Galelio on Vista, Do I need to configure anything is there any story of setting path?
    How to check my Java DB is working or not or everything is fine or not?
    I found many totorial with simple Java DB example but they seem dealing with previous version of JDK, I guess SUN too on http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javadb/ , kindly provide me the simplest example which uses Java DB.
    I am not able to figure out the whole thing of JAVA DB , how it works, in plain language I want to know is there any way of interacting with database from Command prompt? If so how?

    When I am running a simpleApp.java
    I am getting this error:
    Unable to load the JDBC driver org.apache.derby.jdbc.EmbeddedDriver
    Please check your CLASSPATH.
    java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at SimpleApp.loadDriver(SimpleApp.java:414)
         at SimpleApp.go(SimpleApp.java:125)
         at SimpleApp.main(SimpleApp.java:93)
    ----- SQLException -----
    SQL State: 08001
    Error Code: 0
    Message: No suitable driver found for jdbc:derby:derbyDB;create=true
    SimpleApp starting in embedded mode
    SimpleApp finished

  • Personal ID Java Error

    Java error in ESS for Personal ID and Family members/ iview  
    Posted: Jan 12, 2009 1:04 PM       E-mail this message      Reply 
    Hi Experts,
    In ESS i am facing one problem in Personal ID iview.
    I am able to create a record through ESS. but when I click on "EDIT/DELETE" button in Overview screen of ESS system showing error message as below.
    Please suggest me on the same
    This service is for Singapore. and we are on ECC 6.0, EP7.0
    Note: Same error message is shown for IT0021 Family memembers/Dependents Data iview also
    500 Internal Server Error
    SAP NetWeaver Application Server 7.00/Java AS 7.00
    Failed to process request. Please contact your system administrator.
    Hide
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
    java.lang.IndexOutOfBoundsException: Index: 2, Size: 0
    at java.util.ArrayList.RangeCheck(ArrayList.java:507)
    at java.util.ArrayList.get(ArrayList.java:324)
    at com.sap.tc.webdynpro.progmodel.context.Node$ElementList.getElement(Node.java:2034)
    at com.sap.tc.webdynpro.progmodel.context.Node.getElementAtInternal(Node.java:621)
    at com.sap.tc.webdynpro.progmodel.context.Node.getElementAt(Node.java:628)
    ... 64 more
    See full exception chain for details.
    System Environment
    Client
    Web Dynpro Client Type
    HTML Client
    User agent
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
    Version
    null
    DOM version
    null
    Client Type
    msie6
    Client Type Profile
    ie6
    ActiveX
    enabled
    Cookies
    enabled
    Frames
    enabled
    Java Applets
    enabled
    JavaScript
    enabled
    Tables
    enabled
    VB Script
    enabled
    Server
    Web Dynpro Runtime
    Vendor: SAP, build ID: 7.0017.20081009134733.0000 (release=NW04S_17_REL, buildtime=2008-11-03:07:38:44UTC, changelist=48644, host=pwdfm114), build date: Sat Nov 08 00:34:28 GMT+08:00 2008
    J2EE Engine
    7.00 patchlevel 48199.450
    Java VM
    Java HotSpot(TM) 64-Bit Server VM, version:1.4.2_17-b06, vendor: Sun Microsystems Inc.
    Operating system
    Windows 2003, version: 5.2, architecture: amd64
    Session & Other
    Session Locale
    en
    Time of Failure
    Fri Jan 02 16:31:41 GMT+08:00 2009 (Java Time: 1230885101049)
    Web Dynpro Code Generation Infos
    sap.com/pb
    SapDictionaryGenerationCore
    7.0017.20061002105236.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:01:31UTC, changelist=419377, host=PWDFM101.wdf.sap.corp)
    SapDictionaryGenerationTemplates
    7.0017.20061002105236.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:01:37UTC, changelist=419377, host=PWDFM101.wdf.sap.corp)
    SapGenerationFrameworkCore
    7.0017.20060719095755.0000 (release=645_VAL_REL, buildtime=2008-09-17:12:48:53UTC, changelist=411255, host=PWDFM101.wdf.sap.corp)
    SapIdeWebDynproCheckLayer
    7.0017.20080801093115.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:07:06UTC, changelist=495367, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCommon
    7.0017.20061002105432.0000 (release=645_VAL_REL, buildtime=2008-09-17:12:49:40UTC, changelist=419384, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCore
    7.0017.20061002105432.0000 (release=645_VAL_REL, buildtime=2008-09-17:12:49:34UTC, changelist=419384, host=PWDFM101.wdf.sap.corp)
    SapMetamodelDictionary
    7.0017.20060719095619.0000 (release=645_VAL_REL, buildtime=2008-09-17:12:58:48UTC, changelist=411251, host=PWDFM101.wdf.sap.corp)
    SapMetamodelWebDynpro
    7.0017.20080801093120.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:03:59UTC, changelist=495368, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationCTemplates
    7.0017.20080829103545.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:16:41UTC, changelist=499141, host=pwdfm101)
    SapWebDynproGenerationCore
    7.0017.20080801093115.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:07:12UTC, changelist=495367, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationTemplates
    7.0017.20080829103545.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:16:41UTC, changelist=499141, host=pwdfm101)
    sap.com/tcwddispwda
    No information available
    null
    sap.com/pb_api
    SapDictionaryGenerationCore
    7.0017.20061002105236.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:01:31UTC, changelist=419377, host=PWDFM101.wdf.sap.corp)
    SapDictionaryGenerationTemplates
    7.0017.20061002105236.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:01:37UTC, changelist=419377, host=PWDFM101.wdf.sap.corp)
    SapGenerationFrameworkCore
    7.0017.20060719095755.0000 (release=645_VAL_REL, buildtime=2008-09-17:12:48:53UTC, changelist=411255, host=PWDFM101.wdf.sap.corp)
    SapIdeWebDynproCheckLayer
    7.0017.20080801093115.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:07:06UTC, changelist=495367, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCommon
    7.0017.20061002105432.0000 (release=645_VAL_REL, buildtime=2008-09-17:12:49:40UTC, changelist=419384, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCore
    7.0017.20061002105432.0000 (release=645_VAL_REL, buildtime=2008-09-17:12:49:34UTC, changelist=419384, host=PWDFM101.wdf.sap.corp)
    SapMetamodelDictionary
    7.0017.20060719095619.0000 (release=645_VAL_REL, buildtime=2008-09-17:12:58:48UTC, changelist=411251, host=PWDFM101.wdf.sap.corp)
    SapMetamodelWebDynpro
    7.0017.20080801093120.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:03:59UTC, changelist=495368, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationCTemplates
    7.0017.20080829103545.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:16:41UTC, changelist=499141, host=pwdfm101)
    SapWebDynproGenerationCore
    7.0017.20080801093115.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:07:12UTC, changelist=495367, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationTemplates
    7.0017.20080829103545.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:16:41UTC, changelist=499141, host=pwdfm101)
    sap.com/tcwdcorecomp
    No information available
    null
    Detailed Error Information
    Detailed Exception Chain
    java.lang.IndexOutOfBoundsException: Index: 2, Size: 0
    at java.util.ArrayList.RangeCheck(ArrayList.java:507)
    at java.util.ArrayList.get(ArrayList.java:324)
    at com.sap.tc.webdynpro.progmodel.context.Node$ElementList.getElement(Node.java:2034)
    at com.sap.tc.webdynpro.progmodel.context.Node.getElementAtInternal(Node.java:621)
    at com.sap.tc.webdynpro.progmodel.context.Node.getElementAt(Node.java:628)
    at com.sap.xss.per.fc.persinfo.FcPersInfo.getSubtypevalue(FcPersInfo.java:2199)
    at com.sap.xss.per.fc.persinfo.wdp.InternalFcPersInfo.getSubtypevalue(InternalFcPersInfo.java:953)
    at com.sap.xss.per.fc.persinfo.FcPersInfoInterface.getSubtypevalue(FcPersInfoInterface.java:388)
    at com.sap.xss.per.fc.persinfo.wdp.InternalFcPersInfoInterface.getSubtypevalue(InternalFcPersInfoInterface.java:357)
    at com.sap.xss.per.fc.persinfo.wdp.InternalFcPersInfoInterface$External.getSubtypevalue(InternalFcPersInfoInterface.java:581)
    at com.sap.xss.hr.per.sg.family.overview.VcPerFamilySgOverview.onEvent(VcPerFamilySgOverview.java:208)
    at com.sap.xss.hr.per.sg.family.overview.wdp.InternalVcPerFamilySgOverview.onEvent(InternalVcPerFamilySgOverview.java:287)
    at com.sap.xss.hr.per.sg.family.overview.VcPerFamilySgOverviewInterface.onEvent(VcPerFamilySgOverviewInterface.java:115)
    at com.sap.xss.hr.per.sg.family.overview.wdp.InternalVcPerFamilySgOverviewInterface.onEvent(InternalVcPerFamilySgOverviewInterface.java:124)
    at com.sap.xss.hr.per.sg.family.overview.wdp.InternalVcPerFamilySgOverviewInterface$External.onEventhi
    (InternalVcPerFamilySgOverviewInterface.java:200)
    at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:534)
    at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:438)
    at com.sap.pcuigp.xssfpm.wd.FPMComponent.access$600(FPMComponent.java:78)
    at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.raiseEvent(FPMComponent.java:938)
    at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPMProxy.raiseEvent(FPMComponent.java:1101)
    at com.sap.xss.hr.per.sg.family.overview.VcPerFamilySgOverview.edit(VcPerFamilySgOverview.java:251)
    at com.sap.xss.hr.per.sg.family.overview.wdp.InternalVcPerFamilySgOverview.edit(InternalVcPerFamilySgOverview.java:299)
    at com.sap.xss.hr.per.sg.family.overview.BizCardsView.onActionEdit(BizCardsView.java:175)
    at com.sap.xss.hr.per.sg.family.overview.wdp.InternalBizCardsView.wdInvokeEventHandler(InternalBizCardsView.java:241)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
    at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
    at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:733)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:668)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
    at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
    at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:860)
    at com.sap.tc.webdynpro.portal.pb.impl.localwd.LocalApplicationProxy.sendDataAndProcessAction(LocalApplicationProxy.java:77)
    at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1299)
    at com.sap.portal.pb.PageBuilder.SendDataAndProcessAction(PageBuilder.java:326)
    at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:868)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136)
    at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    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:102)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Regds,
    Bharghava.K

    Hi Bharghava. K,
    Did this help resolve the IT0021 Family memembers/Dependents Data iview also ? Based on your thread (Java error in ESS for Personal ID and Family members/ iview)
    Thanks,
    Sam

  • After Upgrade to PI7.1 getting Simple transformation error

    HI Experts,
    I have an Issue, the scenario which i', working its working properly in DEV, QA, PROD in PI 7.0, We upgraded the system to PI7.1
    Unknown Simple transformation error in converting XML to internal table
    Application error in mapping program , error text: Unknown Simple transformation error in converting XML to internal table An exception has occurred.
    Can any one suggest related notes are suggestion.
    appericate in advance for the solutions which you all provide me
    Thank you
    Venkat Anil

    What kind of mapping is that ? Graphical, Java, XSLT, ABAP ?
    The XML parser in 7.1 contains many subtle changes compared to 3.0
    But this error sounds like a bug. Is there something special in the XML input ? is it wellformed-XML ?
    CSY

  • Simple transformation error in converting XML to internal table

    Hi Team,
    I have an issue, its working in Dev, QA, and Prod in PI 7.0, once we upgrade it to PI 7.1 I'm getting the  below mention error,   
    Unknown Simple transformation error in converting XML to internal table
    Application error in mapping program ZF_INT006_FILE_TO_SAP_FILE, error code: , error text: Unknown Simple transformation error in converting XML to internal table An exception has occurred.
    Can any one suggest related notes are suggestion.
    appericate in advance for the solutions which you all provide me
    Thank you
    Venkat Anil

    Check the flag "use SAP XML toolkit" for the operation mapping and try, if that works then.
    Check the flag for all XSLT and Java mappings which is migrated from PI 7.0

  • Getting Java error While click on Test model for New configuration.

    From ” Configurator Administrator responsibility” we use the below link and getting Java Error:
    Log in -> Configurator Administrator responsibility -> Configurator Developer -> Simple Search -> Item Name: r100s -> Click Edit -> Click Test Model -> select Start New Configuration -> Click Next -> select Model UI -> Click Finish -> get java.lang.NullPointerException.
    If any body have encountered the same error , Please let me know the solution.
    Regards,

    Below is the Error:
    [Dec 1, 2009 9:48:51 AM GMT+00:00]:1259660931381:Thread[Thread-127,10,main]:1467:85913090:essapdu31z1.emrsn.com:10.236.93.46:27619:27620:EXCEPTION:[cz.servic
    e.ConfiguratorServiceLocal.From processMessage()]:[null_3a1685d_2 # 31] null
    java.lang.NullPointerException
    at oracle.apps.cz.service.ConfiguratorService.fetchModeldata(ConfiguratorService.java:1708)
    at oracle.apps.cz.service.ConfiguratorService.processMessage(ConfiguratorService.java:447)
    at oracle.apps.cz.service.ConfiguratorServiceLocal.onMessage(ConfiguratorServiceLocal.java:18)
    at oracle.apps.cz.runtime.PageController.postServiceMessage(PageController.java:535)
    at oracle.apps.cz.runtime.PageController.fetchModelData(PageController.java:707)
    at oracle.apps.cz.runtime.oa.server.CZApplicationModuleImpl.submitDataRequest(CZApplicationModuleImpl.java:954)
    at oracle.apps.cz.runtime.oa.webui.AbstractMainPageController.getModelData(AbstractMainPageController.java:547)
    at oracle.apps.cz.runtime.oa.webui.AbstractMainPageController.loadPageStructure(AbstractMainPageController.java:2313)
    at oracle.apps.cz.runtime.oa.webui.MainPageController.processRequest(MainPageController.java:65)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
    Regards

  • Java Error (NoClassDefFoundError)

    Hello! There,
    Here are some error with my java program. I have successfully compiled my simple java program without any error, but that is not running while I am try to run that there were an error occurring like this:
    Exception in thread "main" java.lang.NoClassDefFoundError: X
    Caused by: java.lang.ClassNotFoundException: X
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Could not find the main class: X. Program will exit.
    Sample Example is as follows:
    Program Path is E:\X.java
    import java.io.*;
    public class X
         public static void main(String args[])
              //System.out.println("\033[31m\033[44mHello world\033[0m\n");
              System.out.println("This is me");
              //System.out.println((setColor(Color.red)"This is me."));
    }Please tell me about this error.

    Hi,
    how are you trying to start your simple test application? From what directory?
    There is a difference between the compile-time-classpath and the run-time-classpath. This is why you may be able to compile successfully, but fail to run (if you have errors in your run-time-classpath).
    Please show some more details.
    Bye.

  • Java error on commadmin command

    Sun One Messaging server 6.0 Patch 1 (built Jan 28 2004)
    I am getting this Java error on this command
    # ./commadmin domain create -D admin -d efg.com -n abc.com -w password -S email,cal -H test.abc.com
    Internal Server Error: Internal Server Error
    java.io.IOException: Internal Server Error: Internal Server Error
    at sun.comm.client.CLIObject.authenticate(CLIObject.java:967)
    at sun.comm.client.CLITask.doStuff(CLITask.java:175)
    at sun.comm.client.CommAdmin.main(CommAdmin.java:278)
    Invalid value for Identity server host name: test.abc.com
    Invalid value for Identity server port: 82
    Enter Identity server port[82]:
    Enter Identity server host name[test.abc.com]: test.abc.com
    Internal Server Error: Internal Server Error
    java.io.IOException: Internal Server Error: Internal Server Error
    at sun.comm.client.CLIObject.authenticate(CLIObject.java:967)
    at sun.comm.client.CLITask.doStuff(CLITask.java:175)
    at sun.comm.client.CommAdmin.main(CommAdmin.java:278)
    Invalid value for Identity server host name: test.abc.com
    Invalid value for Identity server port: 82
    Enter Identity server port[82]:
    As I install the JES as shown below
    I chose the Custom Install option for each application
    ) Installed Application Server, Directory Server and Admin Server. Did not install sample data.
    ) Started Application Admin Server
    /var/opt/SUNWappserver7/domains/domain1/admin-server/bin/startserv
    ) Then created a new instance called `server1'
    ) Installed Identity Server in the newly created Application Server instance server1
    ) I verified Identity server was accessible and working correctly
    ) Installed Messaging Server & Calendar Server
    ) Executed 'perl comm_dssetup.pl'
    Server Root : /var/opt/mps/serverroot
    Server Instance : slapd-test
    Users/Groups Directory : Yes
    Update Schema : yes
    Schema Type : 2
    DC Root : o=abc.com
    User/Group Root : o=abc.com
    Add New Indexes : yes
    Directory Manager DN : cn=Directory Manager
    ) Setup additional Indexes & added Self Ref. Plug-in to LDAP server then restarted LDAP server and Application server.
    ) Executed /opt/SUNWcomm/sbin/config-iscli
    Chose to put users in Base DN as this is simple test system
    ./asadmin deploy user admin password <pw> --instance server1 \
    host test.abc.com port 4848 name commcli contextroot commcli \
    /opt/SUNWcomm/lib/jars/commcli-server.war
    )permission java.util.PropertyPermission "*", "write"; to /var/opt/SUNWappserver7/domains/domain1/server1/config/server.policy
    ) Restarted Application Server
    ) Executed /opt/SUNWmsgvr/sbin/configure
    ) Added Mail service from /opt/SUNWam/samples/integration
    /opt/SUNWam/bin/amadmin \
    --runasdn uid=admin,ou=People,o=abc.com,o=abc.com\
    password <pw> schema sampleMailServerService.xml
    ) Created a domain to Registered the simple Mail service in Identity Manager.
    # ./commadmin domain create -D admin -d efg.com -n abc.com -w password -S email,cal -H test.abc.com

    I did change the amAdmin password, because I was using the same password for admin and amAdmin.
    I can log in to http://server_name:82/amserver with amAdmin username and password (even at that time as well when I was using the same password for admin and amAdmin). Its means integration between directory and identity is ok because I can see correct credentials for LDAP under service configuration tab on amconsole link.
    So it seems like the commcli is not working correct. Should I have to delete the application hosted under server1 and deploy it again using commcli-server.war, Under directory server delete all the entries under o=comms-config for commcli and commcli itself and run the config-iscli again?

  • A simple Java program to be compiled with ojc and executed with java.exe

    Hi ,
    This thread is relevant to Oracle Java Compiler (file ojc) and jave.exe file.
    I have written a simple java program which consists of two simple simple classes and using the JDev's 10.1.3.2 ojc and java files , i'm trying to execute it after the successful compilation....
    The problem is that trying to run it... the error :
    Exception in thread "main" java.lang.NoClassDefFoundError: EmployeeTest
    appears.
    How can i solve this problem...????
    The program is as follows:
    import java.util.*;
    import corejava.*;
    public class EmployeeTest
    {  public static void main(String[] args)
       {  Employee[] staff = new Employee[3];
          staff[0] = new Employee("Harry Hacker", 35000,
             new Day(1989,10,1));
          staff[1] = new Employee("Carl Cracker", 75000,
             new Day(1987,12,15));
          staff[2] = new Employee("Tony Tester", 38000,
             new Day(1990,3,15));
          int i;
          for (i = 0; i < 3; i++) staff.raiseSalary(5);
    for (i = 0; i < 3; i++) staff[i].print();
    class Employee
    {  public Employee(String n, double s, Day d)
    {  name = n;
    salary = s;
    hireDay = d;
    public void print()
    {  System.out.println(name + "...." + salary + "...."
    + hireYear());
    public void raiseSalary(double byPercent)
    {  salary *= 1 + byPercent / 100;
    public int hireYear()
    {  return hireDay.getYear();
    private String name;
    private double salary;
    private Day hireDay;
    For compilation... i use :
    D:\ORACLE_UNZIPPED\JDeveloper_10.1.3.2\jdev\bin\ojc -classpath D:\E-Book\Java\Sun_Java_Book_I\Corejava EmployeeTest.java
    For execution , i issue the command:
    D:\ORACLE_UNZIPPED\JDeveloper_10.1.3.2\jdk\bin\java EmployeeTest
    NOTE:I tried to use the jdk of Oracle database v.2 but the error :
    Unable to initialize JVM appeared....
    Thanks , a lot
    Simon

    Hi,
    Thanks god....
    I found a solution without using Jdev.....
    C:\oracle_files\Java\Examples>SET CLASSPATH=.;D:\E-Book\Java\Sun_Java_Book_I\Corejava
    C:\oracle_files\Java\Examples>D:\ORACLE_UNZIPPED\JDeveloper_10.1.3.2\jdk\bin\javac EmployeeTest.java
    C:\oracle_files\Java\Examples>D:\ORACLE_UNZIPPED\JDeveloper_10.1.3.2\jdk\bin\java EmployeeTest
    What does Ant has to do with this?Sorry, under the Ant tree a classpath label is found....I'm very new to Java and JDev...
    You need to include the jar file that has the Day method in it inside project properties->libraries.I have not .jar file.. just some .java files under the corejava directory.... By the way , I have inserted the corejava directory to the project pressing the button Add Jar/Directory.... , but the problem insists..
    Thanks , a lot
    Simon

Maybe you are looking for

  • Images are not showing in Google Reader for some websites, others are fine

    Some blogs show images in Google Reader, some do not. I can click on the blog subject and go to that blog directly in another tab and I see the images just fine, just not in the reader.

  • Getting error -9809 when trying to buy gift Music

    Hello, I'm receiving an error -9808 when I click learn more on buying songs or music to send as gifts. But the others (Printable Gift Certs, etc) links work fine. I've been trying for several days and from 4 different systems - same error. I'm runnin

  • Business Area not matching the project

    Hi PS gurus, Here Im giving the Business area of irrelevant WBS Element, it is not throwing any error message in FB01.It is taking the wrong Business Area. please guide me. Thanks, Sanju. Edited by: Sanjana on Sep 10, 2008 11:54 AM

  • Fork in process chain using ABAP program

    Hello everyone. I need a fork in my chain. Depending on the values in some db table I will make a decision: do some process or skip and go further. The only solution I can see is using ABAP program. But unfortunately It doesn't return status. Any sug

  • IPhoto sort order changes on iPad/iPhone when photos are edited

    I have been having issues getting photos to display in the correct order on my iPad, iPhone and Apple TV. When I go into an event I want the first photo taken to be at the top and the last at the bottom. I sort by date so that photos taken on differe