Need help determining compiling error

Good morning,
I need help finding the cause of a compiling error I receive. I have reviewed my code numerous times without any luck. I hope you guys might see something I am not! The entire file exceeds the limit I can post, so I am attaching it in 2 posts. Sorry for the inconvenience. The error and my code are posted below. Thank you for your help!
C:\StockTrackerDB.java:382: cannot find symbol
symbol : method add(java.lang.Boolean)
location: class java.util.ArrayList<java.lang.String>
               aList.add(new Boolean(rs.getBoolean("admin")));
^
1 error
Tool completed with exit code 1
import java.io.*;
import java.sql.*;
import java.util.*;
public class StockTrackerDB
     private Connection con = null;
     //Constructor; makes database connection
     public StockTrackerDB() throws ClassNotFoundException,SQLException
          if(con == null)
               String url = "jdbc:odbc:StockTracker";
               try
                    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
               catch(ClassNotFoundException ex)
                    throw new ClassNotFoundException(ex.getMessage() +
                                "\nCannot locate sun.jdbc.odbc.JdbcOdbcDriver");
               try
                    con = DriverManager.getConnection(url);
               catch(SQLException ex)
                    throw new SQLException(ex.getMessage()+
                                "\nCannot open database connection for "+url);
     // Close makes database connection; null reference to connection
     public void close() throws SQLException,IOException,ClassNotFoundException
          con.close();
          con = null;
     // Method to serialize object to byte array
     private byte[] serializeObj(Object obj) throws IOException
          ByteArrayOutputStream baOStream = new ByteArrayOutputStream();
          ObjectOutputStream objOStream = new ObjectOutputStream(baOStream);
          objOStream.writeObject(obj); // object must be Serializable
          objOStream.flush();
          objOStream.close();
          return baOStream.toByteArray(); // returns stream as byte array
     // Method to deserialize bytes from a byte array into an object
     private Object deserializeObj(byte[] buf) throws IOException, ClassNotFoundException
          Object obj = null;
          if(buf != null)
               ObjectInputStream objIStream = new ObjectInputStream(new ByteArrayInputStream(buf));
               obj = objIStream.readObject(); //IOException, ClassNotFoundException
          return obj;
     // Methods for adding a record to a table
     // add to the Stocks Table
     public void addStock(String stockSymbol, String stockDesc) throws SQLException, IOException, ClassNotFoundException
          Statement stmt = con.createStatement();
          stmt.executeUpdate("INSERT INTO Stocks VALUES ('"
                                +stockSymbol+"'"
                                +",'"+stockDesc+"')");
          stmt.close();
     // add to the Users table
     public boolean addUser(User user) throws SQLException,IOException,ClassNotFoundException
          boolean result = false;
          String dbUserID;
          String dbLastName;
          String dbFirstName;
          Password dbPswd;
          boolean isAdmin;
          dbUserID = user.getUserID();
          if(getUser(dbUserID) == null)
               dbLastName = user.getLastName();
               dbFirstName = user.getFirstName();
               Password pswd = user.getPassword();
               isAdmin = user.isAdmin();
               PreparedStatement pStmt = con.prepareStatement("INSERT INTO Users VALUES (?,?,?,?,?)");
               pStmt.setString(1, dbUserID);
               pStmt.setString(2, dbLastName);
               pStmt.setString(3, dbFirstName);
               pStmt.setBytes(4, serializeObj(pswd));
               pStmt.setBoolean(5, isAdmin);
               pStmt.executeUpdate();
               pStmt.close();
               result = true;
          else
               throw new IOException("User exists - cannot add.");
          return result;
     // add to the UserStocks table
     public void addUserStocks(String userID, String stockSymbol)
                    throws SQLException,IOException,ClassNotFoundException
          Statement stmt = con.createStatement();
          stmt.executeUpdate("INSERT INTO UserStocks VALUES ('"
                                +userID+"'"
                                +",'"+stockSymbol+"')");
          stmt.close();
     // Methods for updating a record in a table
     // updating the Users table
     public boolean updUser(User user) throws SQLException, IOException, ClassNotFoundException
          boolean result = false;
          String dbUserID;
          String dbLastName;
          String dbFirstName;
          Password dbPswd;
          boolean isAdmin;
          dbUserID = user.getUserID();
          if(getUser(dbUserID) != null)
               dbLastName = user.getLastName();
               dbFirstName = user.getFirstName();
               Password pswd = user.getPassword();
               isAdmin = user.isAdmin();
               PreparedStatement pStmt = con.prepareStatement("UPDATE Users SET lastName = ?," + " firstName = ?, pswd = ?, admin = ? WHERE userID = ?");
               pStmt.setString(1, dbLastName);
               pStmt.setString(2, dbFirstName);
               pStmt.setBytes(3, serializeObj(pswd));
               pStmt.setBoolean(4, isAdmin);
               pStmt.setString(5, dbUserID);
               pStmt.executeUpdate();
               pStmt.close();
               result = true;
          else
               throw new IOException("User does not exist - cannot update.");
          return result;
     }

     // Methods for deleting a record from a table
     // delete a record from the Stocks table
     private void delStock(String stockSymbol) throws SQLException,IOException,ClassNotFoundException
          Statement stmt = con.createStatement();
          stmt.executeUpdate("DELETE FROM Stocks WHERE "
                                +"symbol = '"+stockSymbol+"'");
          stmt.close();
     // delete a record from the Users table
     public void delUser(User user) throws SQLException,IOException,ClassNotFoundException
          String dbUserID;
          String stockSymbol;
          Statement stmt = con.createStatement();
          try
               con.setAutoCommit(false);
               dbUserID = user.getUserID();
               if(getUser(dbUserID) != null) // verify user exists in database
                    ResultSet rs1 = stmt.executeQuery("SELECT userID, symbol "
                                          +"FROM UserStocks WHERE userID = '"+dbUserID+"'");
                    while(rs1.next())
                         try
                              stockSymbol = rs1.getString("symbol");
                              delUserStocks(dbUserID, stockSymbol);
                         catch(SQLException ex)
                              throw new SQLException("Deletion of user stock holding failed: " +ex.getMessage());
                    } // end of loop thru UserStocks
                    try
                    {  // holdings deleted, now delete user
                         stmt.executeUpdate("DELETE FROM Users WHERE "
                                          +"userID = '"+dbUserID+"'");
                    catch(SQLException ex)
                         throw new SQLException("User deletion failed: "+ex.getMessage());
               else
                    throw new IOException("User not found in database - cannot delete.");
               try
                    con.commit();
               catch(SQLException ex)
                    throw new SQLException("Transaction commit failed: "+ex.getMessage());
          catch (SQLException ex)
               try
                    con.rollback();
               catch (SQLException sqx)
                    throw new SQLException("Transaction failed then rollback failed: " +sqx.getMessage());
               // Transaction failed, was rolled back
               throw new SQLException("Transaction failed; was rolled back: " +ex.getMessage());
          stmt.close();
     // delete a record from the UserStocks table
     public void delUserStocks(String userID, String stockSymbol) throws SQLException,IOException,ClassNotFoundException
          Statement stmt = con.createStatement();
          ResultSet rs;
          stmt.executeUpdate("DELETE FROM UserStocks WHERE "
                                +"userID = '"+userID+"'"
                                +"AND symbol = '"+stockSymbol+"'");
          rs = stmt.executeQuery("SELECT symbol FROM UserStocks "
                                     +"WHERE symbol = '"+stockSymbol+"'");
          if(!rs.next()) // no users have this stock
               delStock(stockSymbol);
          stmt.close();
     // Methods for listing record data from a table
     // Ordered by:
     //          methods that obtain individual field(s),
     //          methods that obtain a complete record, and
     //          methods that obtain multiple records
     // Methods to access one or more individual fields
     // get a stock description from the Stocks table
     public String getStockDesc(String stockSymbol) throws SQLException, IOException, ClassNotFoundException
          Statement stmt = con.createStatement();
          String stockDesc = null;
          ResultSet rs = stmt.executeQuery("SELECT symbol, name FROM Stocks "
                                                  +"WHERE symbol = '"+stockSymbol+"'");
          if(rs.next())
               stockDesc = rs.getString("name");
          rs.close();
          stmt.close();
          return stockDesc;
     // Methods to access a complete record
     // get User data from the Users table
     public User getUser(String userID) throws SQLException,IOException,ClassNotFoundException
          Statement stmt = con.createStatement();
          String dbUserID;
          String dbLastName;
          String dbFirstName;
          Password dbPswd;
          boolean isAdmin;
          byte[] buf = null;
          User user = null;
          ResultSet rs = stmt.executeQuery("SELECT * FROM Users WHERE userID = '" +userID+"'");
          if(rs.next())
               dbUserID = rs.getString("userID");
               dbLastName = rs.getString("lastName");
               dbFirstName = rs.getString("firstName");
               // Do NOT use with JDK 1.2.2 using JDBC-ODBC bridge as
               // SQL NULL data value is not handled correctly.
               buf = rs.getBytes("pswd");
               dbPswd=(Password)deserializeObj(buf);
               isAdmin = rs.getBoolean("admin");
               user = new User(dbUserID,dbFirstName,dbLastName,dbPswd,isAdmin);
          rs.close();
          stmt.close();
          return user; // User object created for userID
     // Methods to access a list of records
     // get a list of selected fields for all records from the Users Table
     public ArrayList listUsers() throws SQLException,IOException,ClassNotFoundException
          ArrayList<String> aList = new ArrayList<String>();
          Statement stmt = con.createStatement();
          ResultSet rs = stmt.executeQuery("SELECT userID, firstName, lastName, admin "
                                             +"FROM Users ORDER BY userID");
          while(rs.next())
               aList.add(rs.getString("userID"));
               aList.add(rs.getString("firstName"));
               aList.add(rs.getString("lastName"));
               aList.add(new Boolean(rs.getBoolean("admin")));
          rs.close();
          stmt.close();
          return aList;
     // get all fields in all records for a given user from the UserStocks table
     public ArrayList listUserStocks(String userID) throws SQLException, IOException, ClassNotFoundException
          ArrayList<String> aList = new ArrayList<String>();
          Statement stmt = con.createStatement();
          ResultSet rs = stmt.executeQuery("SELECT * FROM UserStocks "
                                                  +"WHERE userID = '"+userID+"' ORDER BY symbol");
          while(rs.next())
               aList.add(rs.getString("symbol"));
          rs.close();
          stmt.close();
          return aList;
}

Similar Messages

  • Need help with compile error: externally visible definition

    I am getting the following error on compile:
    "A file found in an source-path must have an externally
    visible definition. If a definition in the file is meant to be
    externally visible, please put the definition in a package."
    Typically this would mean that an actionscript class file is
    not placed in a package, but I am getting the error for a Custom
    MXML ListItemRenderer component I created.
    Does anyone have a clue why this would be happening? It
    happened once before and mysteriously went away after I removed all
    of the code in the file, saved it, pasted it back in and saved it
    again. Unfortunately that is not working this time.
    I would really appreciate any help.
    Thanks,
    shaun

    OK here it is, first i'll give u the Card.java file, it compiles i think:
    public interface Card {
    /** The four suites. */
    public static final byte CLUB = 0, DIAMOND = 1, HEART = 2, SPADE = 2;
    /** The suite of this card. */
    public byte suite();
    * Is 's' a valid suite?
    * @param s a value to check to see if it is a valid suite.
    * @return true iff 's' is a valid suite.
    public boolean validSuite(byte s);
    /** The thirteen standard cards. */
    public static final byte ACE = -1, TWO = -2, THREE = -3, FOUR = -4,
    FIVE = -5, SOX = -6, SEVEN = -7, EIGHT = -8, NINE = -9, TEN = -10,
    JACK = -11, QUEEN = -12, KING = -13;
    /** The face-value of this card */
    public byte value();
    * Is 'v' a valid face-value?
    * @param v the value to check to see if it is a valid face-value.
    * @return true iff 'v' is a valid face-value.
    public boolean validValue(byte v);
    * @param a_card the card to compare
    * @return true iff the suite of this card is identical to the suite
    * of <code>a_card</code>
    public boolean sameSuiteAs(Card a_card);
    * @param a_card the card to compare
    * @return true iff the face value of this card is identical to the
    * face value of <code>a_card</code>
    public boolean sameFaceValueAs(Card a_card);
    * @param a_card the card to compare
    * @return true iff the face value of this card is strictly greater than
    * the face value of <code>a_card</code>
    public boolean greaterFaceValueThan(Card a_card);
    * Whether this card has a greater value than <code>a_card</code> is
    * determined by a given card game's rules.
    * @param a_card the card to compare
    * @return true iff this card has a great value than <code>a_card</code>
    public boolean greaterValueThan(Card a_card);
    * Two cards are equivalent if they are indistinguishable in a given
    * card game's rules.
    * @param a_card the card to compare
    * @return true iff this card and <code>a_card</code> are indistinguishable
    public boolean equivalentTo(Card a_card);
    }

  • Newbie needs help on compiling error

    I'm reading java 2 programming for dummies, but can't get this example working. I get an error on line 4, but when I remove 'public' from in front of 'class', Iexplore tells me I need a public constructor. I also get errors on line 94 and 98 where the compilator says that the java.awt.Component has been deprecated. I have no clue what that means..
    Please help me! I'm stuck...
    Here is my code:
    /*line 0*/
    import java.applet.Applet;
    import java.awt.*;
    public class PixApplet extends Applet{
         public void init() {
              Rectgl r = new Rectgl(10,5,Color.red);
              Square s = new Square(10,Color.blue);
              Circle c = new Circle(20,Color.yellow);
              Square s2 = new Square(40,Color.green);
              add(r);
              add(s);
              add(c);
              add(s2);
              add(new PixLabel(r));
              add(new PixLabel(s));
              add(new PixLabel(c));
              add(new PixLabel(s2));
    /*Rectgl*/
    class Rectgl extends Pix {
         /*Constructor*/
         public Rectgl(int width, int height, Color c) {
              myDimension.width = width;
              myDimension.height = height;
              setColor(c);
         /*Draw shape*/
         public void Paint(Graphics g) {
              g.fillRect(0,0,myDimension.width,myDimension.height);
         /*Return area*/
         public double getArea() {
              return (myDimension.width * myDimension.height);
         /*Return perimeter */
         public double getPerimeter() {
              return (myDimension.width + myDimension.height) * 2;
         /*Return kind of shape*/
         public String getKind() {
              return "Rectangle";
    /*Square*/
    class Square extends Rectgl {
         /*Constructor*/
         public Square(int side,Color c) {
              super(side,side,c);
         /*Return kind of shape*/
         public String getKind() {
              return "Square";
    abstract class Pix extends Canvas {
         Dimension myDimension = new Dimension();
         /*Constructor*/
         public void Pix() {
         /*Set object's forground color*/
         public void setColor(Color c) {
              setForeground(c);
         public void paint(Graphics g) {
         public double getArea() {
              return 0;
         public double getPerimeter() {
              return 0;
         public String getKind() {
              return "unknown shape";
    /*line 93*/
         public Dimension preferredSize() {
              return myDimension;
    /*line 97*/
         public Dimension minimumSize() {
              return myDimension;
    class Circle extends Pix {
         private int myRadius;
         /*Constructor*/
         public Circle(int radius, Color c) {
              myRadius = radius;
              setColor(c);
              myDimension.height = myDimension.width = 2 * radius;
         /*Draw shape*/
         public void paint(Graphics g) {
              g.fillArc(0,0,(2 * myRadius),(2 * myRadius),0,360);
         /*Return area*/
         public double getArea() {
              return (Math.PI * (myRadius * myRadius));
         /*Return perimeter*/
         public double getPerimeter() {
              return 2 * Math.PI * myRadius;
         /*Return kind of shape*/
         public String getKind() {
              return "Circle";
    class PixLabel extends TextArea {
         /*Constructor*/
         public PixLabel(Pix s) {
              super( "I am a " + s.getKind() + "\nMy perimeter is " + Double.toString(s.getPerimeter()) + "\nMy area is " + Double.toString(s.getArea()),3,15,SCROLLBARS_NONE);
    }

    OK. You do not need to worry too much about the deprecated messages. They are only warnings and will not stop the program compiling.
    What is the name of the java file that your code is in. It should be PixApplet.java
    How are you compiling it, something like
    javac *.java or javac PixApplet.java
    What is the error you get when you try to compile

  • Please, I need help debugging compiler error

    I am new to Java and I do not know why the compiler (Forte for Java) has the following error. Seems like the compiler does not accept NEW for adding new entries to a Vector table.
    ERROR:
    UAL_LearningPrograms/MyVector.java [12:1] non-static variable this cannot be referenced from a static context
    mv.vtable.addNode(new Node(names[n]));
    JAVA CODE:
    package UAL_LearningPrograms;
    import java.util.*;
    class MyVector {
    private Vtable vtable;
    public static void main(String[] args){
    MyVector mv = new MyVector();
    String names[] = {"one","two","three","four","five"};
    for (int n;n<names.length;n++)
    mv.vtable.addNode(new Node(names[n]));
    public MyVector(){  // Class constructor
    System.out.println("MyVector_C");
    vtable = new Vtable();
    public class Node {
    private String name;
    public Node(String s){name=s;}
    public class Vtable extends Vector {
    private Vector v;
    public Vtable(){v=new Vector();}
    public void addNode(Node n){v.add(n);}

    You were trying to reference a non-static variable
    from a static context... not allowed.
    Simple modification allows that code to work.
    If this helps... give me the dollars... thanks!
    import java.util.*;
    class MyVector
         private Vtable vtable;
         public static void main(String[] args)
              String names[] = {"one","two","three","four","five"};
              MyVector mv = new MyVector();
              mv.vtable.addNodes(names);
         } // main
         public MyVector()
              System.out.println("MyVector_C");
              vtable = new Vtable();
         } // MyVector
         public class Node
              private String name;
              public Node(String s)
                   name = s;
              } // Node
         } // Node
         public class Vtable
              extends Vector
              private Vector v;
              public Vtable()
                   v=new Vector();
              } // Vtabl3
              public void addNodes(String n[])
                   for (int i = 0; i < n.length; ++i)
                        v.add(new Node(n));
              } // addNode
              public void addNode(Node n)
                   v.add(n);
              } // addNode
         } // Vtable
    } // MyVector

  • Need help with compiler error

    'class' or 'interface' expected
    public static int getNewAmount()
    ^
    Can anyone tell me what to do?
    Thx.

    I solved that problem. Thanks.
    But now I have another error problem.
    Exception in thread "main" java.lang.NumberFormatException: n
    at java.lang.Integer.parseInt(Integer.java:414)
    at java.lang.Integer.parseInt(Integer.java:463)
    at MyInput.readInt(MyInput.java:27)
    at SalaryComputation3.getJobClass(SalaryComputation3.java:85)
    at SalaryComputation3.main(SalaryComputation3.java:61)

  • Please help with compiling error

    Hello, I am currently taking a class in Java Programming and need help with an error. I am working on a Mortgage Calculator and when I compile the code I get this error. I have no idea how to fix this. Can anyone help? Thank you.
    '{' expected public class MortgageCalculator
    1 error
    Tool completed with exit code 1
    Here is my code
    import java.io.*;//*java input output
    import java.util.Date;//Date Utility
    import java.util.Formatter;//format Utility
    import java.text.NumberFormat;//*format numbers
    //class MortgageCalculator
    public class MortgageCalculator
    public static void main(String[]args);{
    Date currentDate=newDate();
    DecimalFormat decimalPlaces=newDecimalFormat("0.00");
    //declare Variables
    final double principalBalance=200000;//*$200,000 Loan
    final double monthlyInterest=.06;//*6% interest rate
    final double Term=12*30;//*monthly interest rate
    final double monthlyInterest=((principalBalance*(monthlyInterest/12))/(1-Math.pow(1+(monthlyInterest/12))-(Term)));
    //Display Output
    System.out.println("\t\t" + currentDate);
    System.out.println("\t\tLoan Amount" + principalBalance);
    System.out.println("\t\tInterest Rate" + monthlyInterest);
    System.out.println("\t\tTerm of Loan" + Term);
    System.out.println("\t\tThe Payment will be:" + monthlyInterest);
    System.out.println(decimalPlaces.format(mothlyInterest));
    }

    You need to enclose your class body in { }. You're missing at least one of them

  • Installing Elements 11 on Mac. Need help with install error "Setup wants to make changes."

    Installing Elements 11 on Mac 10.8.2. Need help with install error:  Setup wants to make changes. Type your password to allow this."  After entering Adobe password, nothing happens.  Locked from further installation.  Any ideas?  Adobe phone support could not help.

    Just before letting changes (installation in this case) be made on the system, Mac OS prompts for password & this has to be the Mac system password. This password prompt is the system's own native prompt & would accept the system password only. Please make sure it is the right system password (all/admin rights) and the installaion should run.

  • Need Help Determining Least Common Demoninator for Frame Rate, Codec, and Workflow

    I need help determining the best timeline setting and Compressor workflow to integrate footage with varying frame rates and codecs that I'm currently upres'ing for a multi-camera concert performance destined for HD broadcast output. I'm assuming the network needs 29.97.
    Thus far, I've been working with Apple ProRes Proxy files to create lo-res edits. Now, I've started the task of offlining and ingesting new, HD clips from the proxy references. The content originates from either Panasonic HVX200 or Panasonic GH1 cameras.
    Looking at the material, it appears the cameras were not shooting with the same settings and, somehow, a PAL GH1 got into the mix. Some of the performances have the PAL GH1 and other do not.
    Here's the breakdown of the varying sources. I got this info from the Log & Transfer columns.
    HVX Cameras
    Format: 1080p24
    Source Format: DVCPRO HD 1080i60
    Shooting Rate: 24
    Vid Rate: 29.97
    TC Format: Non-Drop
    GH1 NTSC
    Format: 1080i60
    Source Format: AVCHD 1080i60
    Shooting Rate: 30
    Video Rate: 29.97
    TC Format: Drop
    GH1 PAL
    Format: 1080i50
    Source Format: AVCHD 1080i50
    Shooting Rate: 25
    Video Rate: 25
    TC Format: Non-Drop
    ANOTHER GH1 NTSC
    Format: 1080p24
    Source Format: AVCHD 1080p24
    Shooting Rate: 24
    Video Rate: 23.98
    TC Format: Non-Drop

    Call the TV station/network and get their spec sheet first. You need to know more than frame rate.
    Once you have that, you can work backwards to arrive at a workflow.
    As a general priniciple, you'll get a more seamless translation of format when you add frames rather than removing them. (eg 24p to 27.97 rather than 29.97 to 24p)
    At least all the material starts out in the 1080 world.
    Do all your conversions before you start editing. (I'd use ProRes or ProRes LT for the editing codec).
    Budget a bunch of time to sync the material or figure out a quick cutting style that minimizes sync drift.
    What a nightmare.
    x

  • Need help correcting message error number

    Hello, i need help correcting message number for running archiving test runs.
    05.08.2011 08:31:42 Message number 999999 reached. Log is full                                BL           252          E
    05.08.2011 08:31:42 Job cancelled after system exception ERROR_MESSAGE                        00           564          A
    Any help wopuld be appreciated.
    Regards.

    Summary
    Symptom
    One or several database tables of the application log contain too many entries.
    The following database tables belong to the application log:
    - BALHDR (all releases)
    - BALHDRP(< 4.6C)
    - BALM   (< 4.6C)
    - BALMP  (< 4.6C)
    - BALC   (< 4.6C)
    - BALDAT  (>= 4.6C)
    - BAL_INDX (all releases)
    Other terms
    RSSLG200,
    RSSLGK90,
    SLG2,
    application log,
    log
    delete,
    performance
    Reason and Prerequisites
    The application log is a tool to collect, save and display logs.
    Many different applications collect messages in the application log which contain information or messages for the end user. The application automatically log serves as a temporary storage for messages. The logs are written on the database but they are not automatically deleted.
    There is no general procedure for switching the application log on or off. Some applications provide this option or they offer the option of reducing the number of entries created. (See Notes 91519, 183960, 141244).
    The expiration date of application logs
    A log usually has an expiration date, which is set by the application, that calls the 'Application log' tool. If the application log does not set an expiration date, the 'Application log' tool sets the expiration date as 12/31/2098 or 12/31/9999,depending on the release, which allows the logs to stay in the system for as long as possible. The end user cannot set the expiration date. The expiration date does not mean that logs which have reached that date will automatically be deleted. It is used to control the deletion of logs when you call the Deletion report. The DEL_BEFORE flag in the BALHDR table determines whether or not the log can be deleted even before the expiration date is reached.
    DEL_BEFORE= SPACE means that the log can be deleted before the expiration date is reached. (Default value)
    DEL_BEFORE='X' means that the log can only be deleted after the expiration date.
    Solution
    Deleting the logs of the application log.
    Releases >= 4.6A:
    =====================================================================
    In Releases >= 4.6A, use Transaction SLG2.
    On the selection screen you can restrict the amount of logs to be deleted:
    The 'Object' and 'Subobject' fields specify the application area in which the logs were written (see F4 Help).
    The 'External Identification' field specifies the number which was          provided for this log by the application.
    o  If you also want to delete logs which have not reached the expiration date you must set the option "Also logs which can be deleted before the expiration date".
    Select 'Help with application' in Transaction SLG2 for further explanation of the procedure for deleting.
    SLG2 is a report transaction. The corresponding report is SBAL_DELETE. At regular intervals, this can be scheduled as a background job.
    Releases < 4.6A:
    =====================================================================
    For Releases < 4.6A, note the following instructions:
    In general, the deletion of application logs can be carried out in two steps:
    1. Report RSSLG200: Deletion of all logs which expired:
    Use report RSSLG200 to delete all logs whose expiration date is reached or exceeded. (This report is not yet available in the standard in Release 3.0F. In this case, the report can be installed in advance; see corrections attached to this note).
    As of Release 3.1H, Report RSSLG210 is also available. This report allows the definition of a job that runs regularly and deletes such logs.
    2. Report RSSLGK90: Deleting all logs for which a deletion is allowed before expiration:
    Sometimes, step 1 does not delete enough logs. The reason for this might be that the expiration date of the logs is too far in the future or that no expiration date has been defined at all (in this case, depending
    on the release, the assumed expiration date is 12/31/2098 or 12/31/9999)
    Use report RSSLGK90 for these logs.
    When you execute this report, you can restrict the logs to be deleted in a selection screen:
    The fields 'Object' and 'Subobject' specify the application area which wrote the logs (see F4 help).
    The field 'External number' indicates the number which was assigned by the application for this log.
    Field 'Log class' indicates the importance of the log.
    NOTE: By default, this field contains the value '4', this means only logs with additional information. If you want to delete all logs, enter the value '1' in this field. All logs with log class '1' or higher will then be deleted.
    The fields 'To date' and 'Until time' refer to the creation date of a log.
    If you enter 12/31/1998 and 23:59:59, you get all logs created in and before 1998
    NOTES:
    Client-dependency:
    Note that the application log tables are client-dependent. Therefore, you must delete data in each client.
    Which applications create entires in the application log:
    To determine which applications create the logs, look in Table BALHDR to see which objects the logs were created for ( Transaction SE16, Table BALHDR, Field OBJECT). You can find the text description for the object in Table BALOBJT. The application is usually derived from the name and text of the object. The log is displayed in Transaction SL61. The display is restricted to certain objects, among other things.
    Database error:
    If very many data exists on the DB, Report RSSLGK90 might cause problems. In this case, implement Note 138715.
    In very rare cases a dump is created even after Note 138715 was implemented:
        ABAP/4 runtime error  DBIF_RSQL_SQL_ERROR
        SQL error 1555 occurred accessing table "BALHDR "
        Database error text...: "ORA-01555: snapshot too old
    If you cannot correct the error by means of database utilities, Note 368700 provides a way to bypass this error.
    Report RSSLG200 can also run into problems. In this case, use the correction for Report RSSLG200 attached to this Note.
    Expiration date in Report RSSLGK90:
    There are logs on the database which may only be deleted explicitly after the expiration date (flag DEL_BEFORE = 'X' in table BALHDR). These logs are not deleted in advance by report RSSLGK90. Since, however, this flag is used very rarely, you can ignore this data.
    Restriction of the quantity of log data by the application:
    To avoid large quantities of logs from different applications, also refer to the following notes:
    - 91519
    - 183960
    - 141244
    Archiving logs:
    As of Release 6.20, it has been possible to archive logs.
    The logs are archived via archiving object BC_SBAL.
    The archiving programs are started via Transaction SARA (archive administration).
    Via Support Packages, the archiving of application logs has been made available for Releases 4.6C (SAPKB46C27), 4.6D (SAPKB46D17), and 6.10 (SAPKB61011) as well.
    Header Data
    Release Status: Released for Customer
    Released on: 04.08.2005  13:55:45
    Master Language: German
    Priority: Recommendations/additional info
    Category: Consulting
    Primary Component: BC-SRV-BAL Basis Application Log
    Affected Releases
    Software
    Component Release From
    Release To
    Release And
    subsequent
    SAP_APPL 30 30F 31I  
    SAP_APPL 40 40A 40B  
    SAP_APPL 45 45A 45B  
    SAP_BASIS 46 46A 46D X
    SAP_BASIS 60 610 640 X
    Corrections Instructions
    Correction
    Instruction Valid
    from Valid
    to Software
    Component Last
    Modifcation
    158903 30F 30F SAP_APPL 16.05.2000  07:13:08
    162069 31H 45B SAP_APPL 16.05.2000  07:16:07
    Related Notes
    1009281 - LAW: Runtime error CONNE_IMPORT_WRONG_COMP_TYPE
    856006 - Mass processing saves unnecessary logs
    737696 - Add. info on upgrade to SAP R/3 Enterprise 4.70 Ext. 2 SR1
    706478 - Preventing Basis tables from increasing considerably
    637683 - Add info about upgrade to SAP R/3 Enterprise Core 4.70 Ext 2
    587896 - Add. info on upgrade to SAP R/3 Enterprise Core 4.70 SR1
    540019 - Report RJBTPRLO does not work correctly
    400687 - Delete application log: DBIF_RSQL_INVALID_CURSOR
    390062 - Additional information about upgrading to 4.6C SR2
    370601 - Composite SAP note: APO 3.0 and 3.1 performance
    365602 - M/AM: Sales agent determination log - perf.
    327285 - Additions to upgrade to 4.6C SR1
    183960 - ALE: Deactivating application logs for data transfers
    141244 - Deactivating the application log during data transfer
    138715 - RSSLGK90: Too many lock entries in the database
    118314 - Installing the interface to a separate EH&S
    91519 - Deleting logs of the application log
    Print Selected Notes (PDF) 
    Attributes
    Attribute Value
    Transaction codes BALC
    Transaction codes BALM
    Transaction codes CLEAR
    Transaction codes HIER
    Transaction codes SARA
    Transaction codes

  • TS3694 I need help to fix error message -69

    I am having problem with syncing my ipod classic (160gb). I have this error message -69, that I need help with. I have already restored my ipod, but cannot add my anything (audiobooks-my music) to my ipod.

    see if you have any friend have a Mac computer, do a restore there before syncing with your PC

  • Need Help!! Errors during Local Client Copy

    Doing a Local Client Copy and getting these error messages in the log:
    Table Name       Component          Package
    /1CN/CMFSAPH0FOR                    DDIC Error        (See SE14)
    /1CN/CMFSAPH1FDT                    DDIC Error        (See SE14)
    /1CN/CMFSAPH1FFX                    DDIC Error        (See SE14)
    /1CN/CMFSAPH2TGR                    DDIC Error        (See SE14)
    /1CN/CMFSAPH2TRM                    DDIC Error        (See SE14)
    /1CN/CMFSAPH3TCT                    DDIC Error        (See SE14)
    /1CN/CMFSAPH3TUS                    DDIC Error        (See SE14)
    /1CN/CMFSAPH4TFX                    DDIC Error        (See SE14)
    /1CN/CMFSAPH4TQU                    DDIC Error        (See SE14)
    Then I go to SE14 then put the name of the tables then click CHECK >> DATABASE OBJECT and then as the result I get:
    "Table is not created in the database"
    If I go down to the database level and look within the Oracle database dba_tables the tables and objects exists within the database but SAP is unable to recognize them.  All objects were imported with a Oracle Data Pump dump file and now I just need help in getting SAP to recognize the tables.
    Edited by: Adam Gendle on Feb 19, 2010 12:29 AM

    Hi,
    Its showing inconsistency between ABAP Dictionary and the database.
    Have you run Test-Run before performing actual client copy ?
    Please check the Consistency of affected Tables.
    SE11 -> Display Table -> Utilities -> Database Object -> Check
    (check DB Object as well as Run time Object)
    Please refer this [SAP Note 686357 - Table pool length incorrect after Unicode conversion|https://service.sap.com/sap/support/notes/686357] to get more information. The relevant solution is mentioned there if the pool tables having inconsistency with VARDATA field.
    Also refer SAP Note 1171306 - Error with pooled tables when copying a client.
    Regards,
    Bhavik G. Shroff

  • Help! Compiling error

    Hello guys!
    I',m having this bizare compiling error in the following code:
    Stirng test = "Test ; test ; test";
    String[] tests = test.split(";");
    System.out.printLine(tests.lengh());First off it highlights tests.length() and says in cannot find symbol, second When I compile it anyways it says ERROR, incompatible source code.... Thanks alot for your help
    best regards
    Michel

    mbehlok wrote:
    Hello guys!
    I',m having this bizare compiling error in the following code:
    Stirng test = "Test ; test ; test";
    String[] tests = test.split(";");
    System.out.printLine(tests.lengh());First off it highlights tests.length() and says in cannot find symbol, second When I compile it anyways it says ERROR, incompatible source code.... Thanks alot for your help
    best regards
    Michel
    String test = "Test ; test ; test";
      String[] tests = test.split(";");
      System.out.println(tests.length);
    In Java, there is no length() method i Array Class. It is a property. So, use like this.....
    Edited by:Mrityunjay Kumar on Oct 31, 2009 4:15 PM

  • Need help asap with Error #2109!

    Need major help in an error that is driving me crazy! I have a movie clip button, however, once you click on it the output will say:
    ArgumentError: Error #2109: Frame label instance15 not found in scene Scene 1.
    at flash.display::MovieClip/gotoAndStop()
    at index_fla::MainTimeline/goLabel()
    i am new in flash and trying to learn as3.  i've looked at what error this is but i cant get my head around it.  what i m trying to do it if you click on a button, a swf file will load on the the page. but it is not loading and the error comes up!
    my code is:
    function goLabel(e:MouseEvent):void
    gotoAndStop(e.target.name);
    if anyone knows how to solve this problem please help! let me know if i need any other codes, but this should be it!
    thanks. i am about to go bald.

    Do you have a frame on your timeline that is labeled as "instance15"?
    The code you show will do nothing in the way of loading an swf.... gotoAndStop is a timeline command, not a file loading command.

  • Help with compilation error

    Hello
    I have a problem with my jsp developement. When i create a jsp (with no beans) i test it and it runs fine (not good but fine), then when I test it with multiple users at time, it generate a jsp compilation error ie. "missing term }" and I can not figure out why it is getting that error, it has been compilated before! so it should not generate a compilation error, becouse i'm not editing the jsp source. I think that every time the jsp is requested the virtual machine is re-compiling it, but is only what i thing and i don't know why... can any body help me? please.
    I apologize for my bad english
    Thank you for your time reading this.

    Sorry becouse i can't be more espesific with the error that i get, that error is complete apears in a complete randomic way, I mean taht it apears when nerver is expected or doesn't apear when is expected, only thing that i got of that error is that the compiler some time says that are mising semi-colon (;), some time says that are mising quotation marks (") or are mising }, the error is no the same allways no mater the situation, I can run the jsp in my pc but the error doesn't apear, thats very strange becouse the compilation error apear after the jsp was executed with no errors.
    this is my jsp:
    <%@ page import="java.util.Calendar,java.text.SimpleDateFormat,java.util.Date,java.util.Stack,java.util.Enumeration, java.util.Hashtable,java.sql.*, java.util.Vector" %>
    <%@ include file="../incs/dbpool_inc.jsp" %>
    <%@ include file="funciones.jsp"%><html>
    <head>
    <title>Resolver preguntas</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link href="../css/0001.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <% //to get user data from the session.
         String userid = session.getAttribute("idu") != null ? (String)session.getAttribute("idu") : "";
         String asign = session.getAttribute("idHomeAssignatura") != null ? (String)session.getAttribute("idHomeAssignatura"): "";
         String idcuest = session.getAttribute("idcuest") != null ? (String)session.getAttribute("idcuest") : "";
         String secuenc = session.getAttribute("secuenc") != null ? (String)session.getAttribute("secuenc") : "";     
         String secuens = request.getParameter("secuens") != null ? request.getParameter("secuens") : "0";
         //to know if it's aloww to save cahnges in the database
         boolean guardar = request.getParameter("guardar") != null ? (request.getParameter("guardar")).equals("si")? true: false :false;
         if(userid.equals("")|| asign.equals("")){//if 1          
              out.println("</head><body><font face=\"Arial\" size=\"2\" color=\"#000000\"><b>El tiempo de conexi&oacute;n ha expirado. Para ingresar de nuevo al sistema haga click aqu&iacute;.</b></font></body></html>");
         }//fin if 1
         else{//else de if 1          
              try{// try 1
                   Connection conn = dbpool.getConnection();
                   Statement stmtt = conn.createStatement();
                   Statement stmtmod = conn.createStatement();
                   Statement stmtresp = conn.createStatement();
                   ResultSet rsmodul = stmtmod.executeQuery("select id_modulo from eit_cuestxmat where id_cuestionario="+idcuest);
                   String modulo = rsmodul.next()? rsmodul.getString("id_modulo"): "";
                   rsmodul.close();
                   stmtmod.close();
                   int secuencia1 = Integer.parseInt(secuens);
                   int secuencia2 = Integer.parseInt(secuenc)+1;
                   secuenc = (secuencia1 == secuencia2)? String.valueOf((Integer.parseInt(secuenc)+1)): secuenc;
                   session.setAttribute("secuenc", secuenc);               
                   if(esAlumno(userid, stmtt, asign)){//if 2
                   if(guardar){//if 2.0
                             String idpreg1 = request.getParameter("idpregunta") != null ? request.getParameter("idpregunta") : "";
                             ResultSet rstipop = stmtt.executeQuery("select tipo from eit_pregunta where id_pregunta="+idpreg1);                         
                             String tipop1 = rstipop.next()? rstipop.getString("tipo") : "";
                             rstipop.close();
                             String respuesta = "N/A", correspondencia ="";                         
                             String restado="n";
                             String rcorrecta = "n";
                             if(tipop1.equals("selec")){
                                  correspondencia = request.getParameter("rprevia") != null? request.getParameter("rprevia") : "-1";
                                  ResultSet rscorrecta = stmtt.executeQuery("select escorrecta from eit_opciones where id_pregunta="+
                                                           idpreg1+" and id_opcion="+correspondencia+" and escorrecta like 's'");
                                  if(rscorrecta.next()){
                                       rcorrecta = "s";
                                  rscorrecta.close();
                             else{
                                  if(tipop1.equals("empar")){
                                       ResultSet rsempar = stmtt.executeQuery("select escorrecta from eit_opciones where id_pregunta="+
                                                                idpreg1+ "order by orden");
                                       int corres = 0;
                                       int correctas = 0;
                                       while(rsempar.next()){                                   
                                                 String resp = request.getParameter("selopc"+String.valueOf(corres+1)) != null? request.getParameter("selopc"+String.valueOf(corres+1)) : "";
                                                 correspondencia=correspondencia+((corres == 0)? "":",")+resp;
                                                 correctas = correctas + (resp.equals(rsempar.getString("escorrecta"))? 1 : 0);
                                                 corres++;
                                       rcorrecta = String.valueOf(correctas);
                                       rsempar.close();
                                  else{
                                       if(tipop1.equals("complet")){
                                            ResultSet rscomplet= stmtt.executeQuery("select correspondencia from eit_opciones where id_pregunta="+idpreg1);
                                            String complet = rscomplet.next()? rscomplet.getString("correspondencia"):"";
                                            rscomplet.close();
                                            String complet1 = "";
                                            int idxcar = complet.indexOf("$");
                                            respuesta = request.getParameter("comp0") != null ? request.getParameter("comp0") : "";
                                            correspondencia = request.getParameter("comp1") != null ? request.getParameter("comp1") : "";
                                            int corrc =0;
                                            if(idxcar>=0){
                                                 complet1 = complet.substring((idxcar+1),complet.length());
                                                 complet = complet.substring(0, idxcar);
                                                 corrc = (respuesta.equalsIgnoreCase(complet))? 1 : 0;
                                                 corrc = (correspondencia.equalsIgnoreCase(complet1))? (corrc+1) : corrc;
                                                 rcorrecta = (corrc==2)? "s": (corrc==1)? "m": "n";
                                            }else{
                                                 corrc=(respuesta.equalsIgnoreCase(complet))? 1 : 0;
                                                 rcorrecta = (corrc==1)? "s": "n";
                                       else{
                                            if(tipop1.equals("abierta")){
                                                 respuesta = request.getParameter("respuesta") != null? request.getParameter("respuesta") : "";
                             String guardarResp = "insert into eit_respuesta(id_pregunta, id_cuestionario, id_materia, id_modulo"+
                                                      ", respuesta, correspondencia, rcorrecta, restado, sec_pregunta, codest)"+
                                                      " values ("+idpreg1+", "+idcuest+", '"+asign+"', "+modulo+", '"+respuesta+"', '"+correspondencia+"', '"+rcorrecta+"', '"+restado+"', "+
                                                      String.valueOf((Integer.parseInt(secuenc)-1))+", "+userid+")";
                             String sqlexistencia = "select id_pregunta from eit_respuesta where codest ="+userid+" and id_cuestionario="+idcuest+" and id_materia="+
                                                           asign+" and id_modulo="+modulo+" and id_pregunta="+idpreg1;                         
                             boolean existeResp = (stmtt.executeQuery(sqlexistencia)).next();
                             String editarResp = "update eit_respuesta set respuesta='"+respuesta+"', correspondencia='"+correspondencia+"', "+
                                                      "rcorrecta='"+rcorrecta+"', restado='"+restado+
                                                      "' where codest ="+userid+" and id_cuestionario="+idcuest+" and id_materia like '"+
                                                      asign+"' and id_modulo="+modulo+" and id_pregunta="+idpreg1;
                             //if the page is editing execute string editarResp else execute string guardarResp
                             stmtt.executeUpdate(existeResp? editarResp:guardarResp);
                        String sqlbpu="select p.enunciado, p.tipo, p.titulo, p.id_pregunta from eit_pregunta p, eit_prexcuest pxc where pxc.id_cuestionario="+idcuest+" and pxc.id_pregunta = p.id_pregunta and pxc.secuenc= "+String.valueOf(secuenc);//bupu: buscar pregunta cuestionario
                        //System.out.println("resolvpreg.jsp "+sqlbpu);
                        ResultSet rsbpu = stmtt.executeQuery(sqlbpu);
                        if(rsbpu.next()){ // if 2.1
                             String enunciado = rsbpu.getString("enunciado");
                             String tipo = rsbpu.getString("tipo");
                             String titulo = rsbpu.getString("titulo");
                             String idpreg = rsbpu.getString("id_pregunta");
    %>
    <h1 align="center"><font color="#0033CC" face="Arial, Helvetica, sans-serif"><%=titulo%></font></h1><br>
    <p align="left"><font face="Arial, Helvetica, sans-serif">
    <strong>Enunciado:</strong> <%=enunciado%>. </font><br>
    <%
         String sqlrespuesta = "select respuesta, correspondencia from eit_respuesta where id_pregunta="+idpreg+
    " and id_cuestionario = "+idcuest+" and id_materia like '"+asign+"' and id_modulo="+modulo+" and codest= "+userid;     
         ResultSet rsrespuesta = stmtresp.executeQuery(sqlrespuesta);     
         String sqlopcs= "select opcion, escorrecta, correspondencia, orden from eit_opciones where id_pregunta ="+idpreg+"order by orden";
         ResultSet rsops = stmtt.executeQuery(sqlopcs);          
    %>
    <%String letras = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
         Vector opciones = new Vector();
         Object obj[] = new Object[4];
         while(rsops.next()){
              obj[0] = rsops.getString("opcion");
              obj[1] = "";
              obj[2] = rsops.getString("correspondencia");
              obj[3] = rsops.getString("orden");
              opciones.addElement(obj.clone());
         rsops.close();
    %>
    <form action="resolverpreg.jsp" method="post" name="Correspondencias">
    <%
         String respEmpar = "";
         String respuestap="";
         String respcorres[] = {"",""};
         if(rsrespuesta.next()){     
              respuestap = rsrespuesta.getString("respuesta");
              respEmpar = rsrespuesta.getString("correspondencia");
              respcorres[0]= respuestap;
              respcorres[1]= respEmpar;
         rsrespuesta.close();
         if (tipo.equals("empar")){
    %>
    <%@ include file="resolvempar.jsp"%>
    <%}//fin if tipoPreg = 'emapar'
         else{
         if(tipo.equals("selec")){
    %> <%@ include file="reslovselec.jsp"%>
         <%}//fin if tipopreg = 'select'
         else{
              if(tipo.equals("complet")){%>
              <%@include file="resolvcomplet.jsp"%>
         <%}//fin if tipopreg='complet'
         else{
              if(tipo.equals("abierta")){%>
              <%@include file="resolvabierta.html"%>
              <%}//fin if tipopreg='abierta'
              else{%>
                   <span class="titolForum">Error: no se ingres&oacute; ning&uacute;n tipo de pregunta
                   o se est� accediendo en forma err&oacute;nea a este sitio.</span>
              <%}//fin else de tipopregunta = 'abierta'%>          
         <%}//fin else tipopreg='complet'%>                    
         <%}// fin else de tipopreg = 'select'%>     
    <%}//fin else de tipoPreg = 'emapar'%>
    <br>
    <input name="idpregunta" type="hidden" value="<%=idpreg%>">
    <input name="guardar" type="hidden" value="si">
    <input name="secuens" type="hidden" value="<%=(1+(Integer.parseInt(secuenc)))%>">
    <input type="submit" name="continuar" value="Continuar">
    </form>
    <%                    rsbpu.close();
                        }//fin 2.1                    
                        else{%>
    Ha terminado de realizar la prueba<br>
    <a href="elejCuestion.jsp">Continuar</a>
    <%}
                   }// fin if 2
                   stmtt.close();
                   stmtresp.close();
                   conn.close();
              }// fin try 1
              catch(Exception expt){
                   out.println("Error: "+expt);
         }//fin eles de if 1
    %>
    </body>
    </html>

  • Need help with an Error

    Hello, im using this class to query a table from my database. everything is ok, but when i write the closing } of the Main class the Program gives an error. In the main class ive wrote here at the bottom, the main class has no ending } . Now only the final } gives an error but everything else is ok, ive double checked all brackets, they are all in good place, what is going wrong?
    package DBandQueryHandler;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    class Main {
        public static void main(String[] args){
            Class driver_class=null;
                    try{    
                        driver_class=Class.forName("com.mysql.jdbc.Driver");         }
                    catch(ClassNotFoundException e){ 
                        e.printStackTrace(); 
                        return;
            System.out.println("Found Driver"+ driver_class);
            Connection connection=null;
            try{
                connection= DriverManager.getConnection("jdbc:mysql://localhost:3306/....", ".....", "........");
            catch(SQLException e){
                e.printStackTrace();
                return;
            try{
                System.out.println("Established connection to"+ connection.getMetaData().getURL());
            catch(SQLException e1){
                e1.printStackTrace();
            Statement statement=null;
            try{
                statement= connection.createStatement();
                statement.execute("SELECT * FROM KLANTEN");
                Resultset resset= statement.getResultSet();
                System.out.println("Row user_id, username, password, abbonement1, abbonement2, openstaand");
                while(resset.next()){
                    System.out.println(resset.getRow());
                    System.out.println("" + resset.getSring("user_id"));
                    System.out.println("" + resset.getSring("username"));
                    System.out.println("" + resset.getSring("password"));
                    System.out.println("" + resset.getSring("abbonement1"));
                    System.out.println("" + resset.getSring("abbonement2"));
                    System.out.println("" + resset.getSring("openstaand"));
                resset.close();
            catch(SQLException e){
                e.printStackTrace();
            finally{
                if(statement=null){
                    try{
                    statement.close();
                    catch(SQLException e){
                e.printStackTrace();
                if(connection=null){
                    try{
                    connection.close();
                    catch(SQLException e){
                e.printStackTrace();
       }

    javaboy2 wrote:
    Like i said, when i write all brackets correctly, the program gives errors, but when i delete the the last bracket, the program doesnt give errors(except for the last bracket=> '}' expected). I dont understand this.
    The errors of the program with correct amount of brackets are these: Yes, the errors come up with correct brackets because you have errors . When you take out the bracket, the structure is too bad so it doesn't look for the rest of the errors. This problem has absolutely nothing to do with brackets at all. That's why you needed to post the errors in your first post, rather than ignoring them and pretending your code is perfect and blaming it on brackets.
    And these errors would be fixed if you read them.
    Cannot find symbol ResultsetThat's because there is no class called Resultset. It's called ResultSet.
    Your if statements are using assignment instead of equality
    statement=null; //that assigns null to the statement object
    statement==null; //that checks to see if statement equals nullAgain, read your errors. They don't lie.

Maybe you are looking for

  • In Business One, is the transaction time stored anywhere?

    Working with SAP Business One 2005 SP1 PL:29 The accounting team would like to know what time each transaction happened.  So far all I can see is the created date and update date on the transactions(OJDT) and in the Change Log (ADJT). Primarily this

  • Raster Vector Balance vs Print as bitmap

    I'm getting problems frequently when printing where a drop shadow or a clipping mask creates a discoloration on a solid color area of color in the background. I can eliminate this using Print as Bitmap although it seems to affect the printed colors,

  • Help!!! compatibility

    MY iTunes is set in compatibility mode and wont open. I tried turning the mode off. and i reinstalled itunes. after reinstalling i uninstalled and installed. HELP

  • Calling stored procedures from CMP entity beans

    Hello all, Is it possible to call a stored procedure from a CMP entity bean? if so, what is the purpose of defining the <cmp-fields> in the descriptor file if I can just pass the result set of my query as an arraylist (or something similar), complete

  • Translation Best Practice???????

    Hello Gurus of HFM I am really stock with the translation. I have been reading all the post that I could find, but I am not sure of how to do things Please help me out I am stock. I want to make a fully automate translation. I do not want that the cl