No such table error in my ap (html5) testing in Xcode

Hi, I ve developed an ap in HTML 5 using phone gap with locl database, it works online but not when I tst in Xcode?!
Please help... I get error saying no such table
See my post with code here http://www.codingforums.com/showthread.php?p=1167534#post1167534

Hi hoek ,
Actually the v_state column entered by user. I've provide the sample block only.
my problem is how to make the where condition as true if user enters state name with initial space?
Edited by: SB on Nov 26, 2011 12:56 AM

Similar Messages

  • Error #3115: SQL Error.', details:'no such table

    Hi,
    I'm creating my Adobe Air App using Flash CS5 Professional and facing exactly the following error.
    SQLError: 'Error #3115: SQL Error.', details:'no such table: 'categories'', operation:'execute', detailID:'2013'
    My SQLite Db has been created using Firefox extension - SQLite Manager. The db file is placed into the same folder as the .fla and .swf files. The db has three tables namely: categories, period and activity. I don't understand why I'm getting this error. I have even tried copy pasting other source code from AS 3.0 reference guide but same error every time.
    The code below is a modified version of example code in AS 3.0 reference documentation. Can you suggest how the above error can be fixed?
    /you can also reply to me directly at [email protected]
    /regards
    import flash.data.SQLConnection;
    import flash.data.SQLResult;
    import flash.data.SQLStatement;
    import flash.display.Sprite;
    import flash.events.SQLErrorEvent;
    import flash.events.SQLEvent;
    import flash.filesystem.File;
    var conn:SQLConnection;
    var insertCategory:SQLStatement;
    var dbFile:File;
    databaseConnect();
    function databaseConnect():void
    // define where to find the database file
    var appStorage:File = File.applicationStorageDirectory;
    dbFile = appStorage.resolvePath("MyBudgetCalc.db");
    // open the database connection
    conn = new SQLConnection();
    conn.addEventListener(SQLErrorEvent.ERROR, errorHandler);
    conn.addEventListener(SQLEvent.OPEN, openHandler);
    trace("dbFile.exists:"+ dbFile.exists);
    conn.openAsync(dbFile);
    // Called when the database is connected
    function openHandler(event:SQLEvent):void
    conn.removeEventListener(SQLEvent.OPEN, openHandler);
    // start a transaction
    //Object(this).inputfield.text = "openHandler called.. ";
    conn.addEventListener(SQLEvent.BEGIN, beginHandler);
    conn.begin();
    trace("exiting openHandler..");
    // Called when the transaction begins
    function beginHandler(event:SQLEvent):void
    conn.removeEventListener(SQLEvent.BEGIN, beginHandler);
    //trace("beginHandler - SQLEvent message: "+SQLEvent.message);
    Object(this).inputfield.text = "beginHandler called.. ";
    insertCategory = new SQLStatement();
    insertCategory.sqlConnection = conn;
    insertCategory.text = "INSERT INTO categories(id, name) VALUES (', Auto')";
    insertCategory.execute();
    insertCategory.addEventListener(SQLEvent.RESULT, insertCategoryHandler);
        insertCategory.addEventListener(SQLErrorEvent.ERROR, errorHandler);
    trace("exiting beginHandler..");
    // Called after the phone number record is inserted
    function insertCategoryHandler(event:SQLEvent):void
    insertCategory.removeEventListener(SQLEvent.RESULT, insertCategoryHandler);
    insertCategory.removeEventListener(SQLErrorEvent.ERROR, errorHandler);
    // No errors so far, so commit the transaction
    conn.addEventListener(SQLEvent.COMMIT, commitHandler);
    conn.commit();
    trace("exiting insertCategoryHandler after conn.commit()..");
    // Called after the transaction is committed
    function commitHandler(event:SQLEvent):void
    conn.removeEventListener(SQLEvent.COMMIT, commitHandler);
    trace("exiting commitHandler(): Transaction complete..");
    // Called whenever an error occurs
    function errorHandler(event:SQLErrorEvent):void
    trace("entering errorHandler()..");
    // If a transaction is happening, roll it back
    if (conn.inTransaction)
    conn.addEventListener(SQLEvent.ROLLBACK, rollbackHandler);
    conn.rollback();
    trace(event.error.message);
    trace(event.error.details);
    trace("exiting errorHandler()..");
    // Called when the transaction is rolled back
    function rollbackHandler(event:SQLEvent):void
    conn.removeEventListener(SQLEvent.ROLLBACK, rollbackHandler);

    Can you try creating the table using the AIR ActionScript APIs? It is possible the SQLLite Manager program that you are using is creating a database that isn't compatible with AIR.

  • SQLError: 'Error #3115: SQL Error.', details:'no such table: 'contact'', operation:'execute', detail

    hi
    just create database with SQLite Database Browser 2.0 b1 after creating the data base when i tried connect it in flash cs4-with air 1.1 its showing me error
    SQLError: 'Error #3115: SQL Error.', details:'no such table: 'contact'', operation:'execute', detailID:'2013' i tried to found every where but did not get the solution of this
    my code is here
    import flash.filesystem.File;
    import flash.data.*;
    import flash.data.SQLConnection;
    import flash.data.SQLStatement;
    import flash.data.SQLConnection;
    var dbFile:File=File.applicationStorageDirectory.resol  vePath("mydb.db");
    var sqlConn:SQLConnection = new SQLConnection();
    var sqlState:SQLStatement = new SQLStatement();
    sqlConn.open(dbFile);
    sqlState.sqlConnection = sqlConn;
    trace(sqlConn.connected+"current status "); // its show "true" here
    sqlState.text = "SELECT name FROM contact";
    sqlState.execute();
    var resultArray:Array = sqlState.getResult().data;
    thanks in advance

    Hi,
    I'm creating my Adobe Air App using Flash CS5 Professional and facing exactly the same error.
    SQLError: 'Error #3115: SQL Error.', details:'no such table: 'categories'', operation:'execute', detailID:'2013'
    My SQLite Db has been created using Firefox extension - SQLite Manager. The db file is placed into the same folder as the .fla and .swf files. The db has three tables namely: categories, period and activity. I don't understand why I'm getting this error. I have even tried copy pasting other source code from AS 3.0 reference guide but same error every time.
    The code below is a modified version of example code in AS 3.0 reference documentation. Can you suggest how the above error can be fixed?
    /you can also reply to me directly at [email protected]
    /regards
    import flash.data.SQLConnection;
    import flash.data.SQLResult;
    import flash.data.SQLStatement;
    import flash.display.Sprite;
    import flash.events.SQLErrorEvent;
    import flash.events.SQLEvent;
    import flash.filesystem.File;
    var conn:SQLConnection;
    var insertCategory:SQLStatement;
    var dbFile:File;
    databaseConnect();
    function databaseConnect():void
    // define where to find the database file
    var appStorage:File = File.applicationStorageDirectory;
    dbFile = appStorage.resolvePath("MyBudgetCalc.db");
    // open the database connection
    conn = new SQLConnection();
    conn.addEventListener(SQLErrorEvent.ERROR, errorHandler);
    conn.addEventListener(SQLEvent.OPEN, openHandler);
    trace("dbFile.exists:"+ dbFile.exists);
    conn.openAsync(dbFile);
    // Called when the database is connected
    function openHandler(event:SQLEvent):void
    conn.removeEventListener(SQLEvent.OPEN, openHandler);
    // start a transaction
    //Object(this).inputfield.text = "openHandler called.. ";
    conn.addEventListener(SQLEvent.BEGIN, beginHandler);
    conn.begin();
    trace("exiting openHandler..");
    // Called when the transaction begins
    function beginHandler(event:SQLEvent):void
    conn.removeEventListener(SQLEvent.BEGIN, beginHandler);
    //trace("beginHandler - SQLEvent message: "+SQLEvent.message);
    Object(this).inputfield.text = "beginHandler called.. ";
    insertCategory = new SQLStatement();
    insertCategory.sqlConnection = conn;
    insertCategory.text = "INSERT INTO categories(id, name) VALUES (', Auto')";
    insertCategory.execute();
    insertCategory.addEventListener(SQLEvent.RESULT, insertCategoryHandler);
        insertCategory.addEventListener(SQLErrorEvent.ERROR, errorHandler);
    trace("exiting beginHandler..");
    // Called after the phone number record is inserted
    function insertCategoryHandler(event:SQLEvent):void
    insertCategory.removeEventListener(SQLEvent.RESULT, insertCategoryHandler);
    insertCategory.removeEventListener(SQLErrorEvent.ERROR, errorHandler);
    // No errors so far, so commit the transaction
    conn.addEventListener(SQLEvent.COMMIT, commitHandler);
    conn.commit();
    trace("exiting insertCategoryHandler after conn.commit()..");
    // Called after the transaction is committed
    function commitHandler(event:SQLEvent):void
    conn.removeEventListener(SQLEvent.COMMIT, commitHandler);
    trace("exiting commitHandler(): Transaction complete..");
    // Called whenever an error occurs
    function errorHandler(event:SQLErrorEvent):void
    trace("entering errorHandler()..");
    // If a transaction is happening, roll it back
    if (conn.inTransaction)
    conn.addEventListener(SQLEvent.ROLLBACK, rollbackHandler);
    conn.rollback();
    trace(event.error.message);
    trace(event.error.details);
    trace("exiting errorHandler()..");
    // Called when the transaction is rolled back
    function rollbackHandler(event:SQLEvent):void
    conn.removeEventListener(SQLEvent.ROLLBACK, rollbackHandler);

  • Adobe Air for iOS - SQLError: 'Error #3115' no such table

    I am developing Adobe Air application for iOS with sqlite on it. When running on my local machine, it worked like charm (add, edit & delete). Unfortunately, when tried running on iPAD, it gives me the following error:
    SQLError: 'Error #3115', details:'no such table: 'tblEmploye'', operation:'execute', detailID:'2013'
    Here's my code when opening the sqlite database: ** data file is saved on the current application directory where all the files are stored:
            exampleDBFile = File.documentsDirectory.resolvePath("mydb.db");
            if (exampleDBFile==null || !exampleDBFile.exists) {
                MovieClip(root).mcSong.visible = false;
                MovieClip(root).mcAlert.visible = true;
                MovieClip(root).mcAlert.enabled = true;
                MovieClip(root).mcAlert.txtErrorMessage.text = "Database not found";
            exampleDB = new SQLConnection();
            exampleDB.addEventListener(SQLEvent.OPEN, onExampleDBOpened);
            exampleDB.addEventListener(SQLErrorEvent.ERROR, onExampleDBError);
            //exampleDB.openAsync(exampleDBFile);
            exampleDB.open(exampleDBFile);
    I also tried using the following but still no luck
    exampleDBFile = File.applicationDirectory.resolvePath("mydb.db");           
    when using this, i receive a different error : Error:Error #3104
    And heres the code for adding new entries
            sqlInsert = "insert into tblLyrics (empName, empDesc) values
                        ('"+ strReplace(txtSearchMe.text, "'", "") + "','"+ strReplace(txtContent.text,"'","") +"')";
            dbStatement.text = sqlInsert;       
            dbStatement.addEventListener(SQLEvent.RESULT, onDBStatementInsertResult);       
            dbStatement.execute();
    Hoping for your advice....

    Hi,
    I am sorry you are facing this issue. Is the code that you posted all that you are doing? It is missing a few things:
    1) You are not creating the dbFile and the table tblEmployee. Do they already exist on your desktop? On device, you would need to create them.
    2) dbStatement.SQLConnection property is not set anywhere.
    The following sample code is from http://help.adobe.com/en_US/air/reference/html/flash/data/SQLConnection.html. Could you try and see if it works for you?
    package
         import flash.data.SQLConnection;
         import flash.data.SQLResult;
         import flash.data.SQLStatement;
         import flash.display.Sprite;
         import flash.events.SQLErrorEvent;
         import flash.events.SQLEvent;
         import flash.filesystem.File;
         public class MultipleInsertTransactionExample extends Sprite
              private var conn:SQLConnection;
              private var insertEmployee:SQLStatement;
              private var insertPhoneNumber:SQLStatement;
              private var dbFile:File
              public function MultipleInsertTransactionExample():void
                   // define where to find the database file
                   //var appStorage:File = File.applicationDirectory;
              dbFile = new File(File.documentsDirectory.nativePath + File.separator + "ExampleDatabase.db");
                   // open the database connection
                   conn = new SQLConnection();
                   conn.addEventListener(SQLErrorEvent.ERROR, errorHandler);
                   conn.addEventListener(SQLEvent.OPEN, openHandler);
                   conn.openAsync(dbFile);
              // Called when the database is connected
              private function openHandler(event:SQLEvent):void
                   conn.removeEventListener(SQLEvent.OPEN, openHandler);
                   // start a transaction
                   conn.addEventListener(SQLEvent.BEGIN, beginHandler);
                   conn.begin();
              // Called when the transaction begins
              private function beginHandler(event:SQLEvent):void
                   conn.removeEventListener(SQLEvent.BEGIN, beginHandler);
                   // create and execute the first SQL statement:
                   // insert an employee record
                   var createEmployees:SQLStatement = new SQLStatement();
                   createEmployees.sqlConnection = conn;
                   createEmployees.text =
                        "CREATE TABLE IF NOT EXISTS employees(lastName, firstName, email, birthday) ";
                   createEmployees.execute();
                   insertEmployee = new SQLStatement();
                   insertEmployee.sqlConnection = conn;
                   insertEmployee.text =
                        "INSERT INTO employees (lastName, firstName, email, birthday) " +
                        "VALUES (:lastName, :firstName, :email, :birthday)";
                   insertEmployee.parameters[":lastName"] = "Smith";
                   insertEmployee.parameters[":firstName"] = "Bob";
                   insertEmployee.parameters[":email"] = "[email protected]";
                   insertEmployee.parameters[":birthday"] = new Date(1971, 8, 12);
                   insertEmployee.addEventListener(SQLEvent.RESULT, insertEmployeeHandler);
                   insertEmployee.addEventListener(SQLErrorEvent.ERROR, errorHandler);
                   insertEmployee.execute();
              // Called after the employee record is inserted
              private function insertEmployeeHandler(event:SQLEvent):void
                   insertEmployee.removeEventListener(SQLEvent.RESULT, insertEmployeeHandler);
                   insertEmployee.removeEventListener(SQLErrorEvent.ERROR, errorHandler);
                   // Get the employee id of the newly created employee row
                   var result:SQLResult = insertEmployee.getResult();
                   var employeeId:Number = result.lastInsertRowID;
                   // Add a phone number to the related phoneNumbers table
                   var createTab:SQLStatement = new SQLStatement();
                   createTab.sqlConnection = conn;
                   createTab.text =
                        "CREATE TABLE IF NOT EXISTS phoneNumbers(employeeId, type, number)";
                   createTab.execute();
                   insertPhoneNumber = new SQLStatement();
                   insertPhoneNumber.sqlConnection = conn;
                   insertPhoneNumber.text =
                        "INSERT INTO phoneNumbers (employeeId, type, number) " +
                        "VALUES (:employeeId, :type, :number)";
                   insertPhoneNumber.parameters[":employeeId"] = employeeId;
                   insertPhoneNumber.parameters[":type"] = "Home";
                   insertPhoneNumber.parameters[":number"] = "(555) 555-1234";
                   insertPhoneNumber.addEventListener(SQLEvent.RESULT, insertPhoneNumberHandler);
                   insertPhoneNumber.addEventListener(SQLErrorEvent.ERROR, errorHandler);
                   insertPhoneNumber.execute();
              // Called after the phone number record is inserted
              private function insertPhoneNumberHandler(event:SQLEvent):void
                   insertPhoneNumber.removeEventListener(SQLEvent.RESULT, insertPhoneNumberHandler);
                   insertPhoneNumber.removeEventListener(SQLErrorEvent.ERROR, errorHandler);
                   // No errors so far, so commit the transaction
                   conn.addEventListener(SQLEvent.COMMIT, commitHandler);
                   conn.commit();
              // Called after the transaction is committed
              private function commitHandler(event:SQLEvent):void
                   conn.removeEventListener(SQLEvent.COMMIT, commitHandler);
                   trace("Transaction complete");
              // Called whenever an error occurs
              private function errorHandler(event:SQLErrorEvent):void
                   // If a transaction is happening, roll it back
                   if (conn.inTransaction)
                        conn.addEventListener(SQLEvent.ROLLBACK, rollbackHandler);
                        conn.rollback();
                   trace(event.error.message);
                   trace(event.error.details);
              // Called when the transaction is rolled back
              private function rollbackHandler(event:SQLEvent):void
                   conn.removeEventListener(SQLEvent.ROLLBACK, rollbackHandler);
                   // add additional error handling, close the database, etc.
    Thanks,
    Sanika

  • No such partitiono error

    In the below procedure partition name in update statement not getting substituted!
    [no such partitiono error]
    create or replace procedure pname (partition_name varchar2) --- partition_name is an arguement (to be tested for different partitions)
    as
    cur is ref cursor;
    Hash_01 varchar2(10);
    cur1 cur;
    type t1 is table of table1.col1%type;
    type t2 is table of table2.col1%type;
    type t3 is table of table2.col2%type;
    type t4 is table of rowid;
    tt1 t1;
    tt2 t2;
    tt3 t3;
    tt4 t4;
    begin
    open c1 for 'select col1,col2 from table1,table2 partition('||Hash_01||')';
    loop
    fetch c1 bulk collect into tt1,tt2,tt3;
    forall i in 1..tt4
    update /*+ parallel(d_Svo_prof,4) */ table1 partition(Hash_01)
    set
    col4=tt3.col2;
    where tt1.col1=t2.col1;
    comiit;
    end;
    Edited by: user13006393 on Apr 25, 2010 5:19 AM
    Edited by: user13006393 on Apr 25, 2010 5:20 AM

    This is not how partitioning should be used (never mind incorrect code and not for example also using dynamic SQL in the forall statement).
    Oracle's CBO has the intelligence to perform partitioning pruning - to decide (correctly so) which partitions to use and not use for a specific SQL statement.
    There's absolutely no reason to specify the partition name in an application SQL statement. In most cases, it will also be the wrong to thing to do.
    Partitioning is a physical feature of the database table. It is not part of the logical database implementation. Application SQL must deal with the logical database layer - not physical. And it should be obvious why...

  • No such method error when launching the Interactive form

    Hi Experts,
    I have developed a simeple Java Webdynpro application and added an Interactive form without any controls in it. Created the context with one value node and a binary value attribute.
    I have assigned  value node to datasource and binary attribute to pdfSource. When I launch the application I am getting the following no such method error.
    java.lang.NoSuchMethodError: com/sap/tc/webdynpro/clientserver/uielib/adobe/api/IWDInteractiveForm.setTemplateSource(Ljava/lang/String;)V
    The currently executed application, or one of the components it depends on, has been compiled against class file versions that are different from the ones that are available at runtime.
    If the exception message indicates, that the modified class is part of the Web Dynpro Runtime (package com.sap.tc.webdynpro.*) then the running Web Dynpro Runtime is of a version that is not compatible with the Web Dynpro Designtime (Developer Studio or Component Build Server) which has been used to build + compile the application.
    My NWDS is of Version 7.0.06
    and J2EE Engine is of Version 6.40.
    any guess why I am getting this error.
    Thanks
    Chinna.

    Issue solved. Compatablility issue NWDS 2.0 Version should use for NW 2004.

  • Asset acquisition-Table error

    While doing an Asset posting from MM Side, the following error is happening:
    "No accounts have been entered for depreciation area 01 account allocation 31000 (Chart of accounts 1000)". 
    "Table Error"
    I have assigned accounts in AO90 for the acquisition/depreciation accounts.  Still I dont not understand why this error is happening ?  Please give some helpful inputs.

    Hi,
    in the IMG Fixed Asset Accounting you have several check and consistency reports. Run them, maybe you get some hints what could be missing in your configuration.
    Regards,
    Markus

  • No Such Domain error

    Hi
    Why do I get a "No Such Domain" error page when trying to login ?
    Michael

    what are you putting in the URL when you try to login?
    michaels wrote:
    Hi
    Why do I get a "No Such Domain" error page when trying to login ?
    Michael

  • No such File Error

    Hi I am getting a no such file error though I am calling functions correctly. I am able to compile successfully but getting these runtime errors.
    Can anybody point out what mistake I am doing:-
    Here are the error lines:-
    java.io.FileNotFoundException:  (No such file or directory)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(FileInputStream.java:137)
            at java.io.FileInputStream.<init>(FileInputStream.java:96)
            at java.io.FileReader.<init>(FileReader.java:58)
            at Clamando$Roger3.readFile(Clamando.java:96)
            at Clamando$Roger3.<init>(Clamando.java:85)
            at Clamando.main(Clamando.java:260)
    java.io.FileNotFoundException:  (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:137)
        at java.io.FileInputStream.<init>(FileInputStream.java:96)
        at java.io.FileReader.<init>(FileReader.java:58)
        at Clamando$Roger3.readFile(Clamando.java:96)
        at Clamando$Roger3.<init>(Clamando.java:85)
        at Clamando.<init>(Clamando.java:50)
        at Clamando$1.run(Clamando.java:265)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:602)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)readFile(filename); line 85
    BufferedReader fh = new BufferedReader(new FileReader(filename)); line 96
    getContentPane().add(paintPanel, BorderLayout.CENTER);
    new Clamando(0, 0, 0, 0, null, null).setVisible(true);
          public class Clamando extends JFrame {
                  public Color color;
                  public int top;
                  public int fixvalue1;
                  public int fixvalue2;
                  public int width;
                  public String text;
                  public int end;
                  public int value1;
                  public int value2;
                  public int mywidth;
                  private JPanel Roger3;
          public Clamando(int top, int fixvalue1, int width, int fixvalue2, Color c,String text) {
            this.color = c;
            this.top = top;
            this.fixvalue1 = fixvalue1;
            this.width = width;
            this.fixvalue2 = fixvalue2;
            this.text = text;
          setDefaultCloseOperation(EXIT_ON_CLOSE);
          setMinimumSize(new Dimension(1000, 200));
          Roger3 = new Roger3();
          getContentPane().add(Roger3, BorderLayout.CENTER);
          pack();
          static class Roger3 extends JPanel implements MouseMotionListener, MouseListener {
          public List<Glyph> glyphs;
              public int top;
              public int bottom;
              public int width;
              public String f[];
              public int value1;
              public int value2;
              BufferedImage image;
          Graphics2D g2d;
              Point startPoint = null;
              Point endPoint = null;
              public int start;
              public int x;
              public int y;
              int scaledvalue;
              public int end;
              public String filename = new String();
            public Roger3(){
                super();
                addMouseMotionListener(this);
                addMouseListener(this);
                boolean mouseClicked = false;
                readFile(filename);
                System.out.println(filename);
            public void readFile(String filename){
               this.filename = filename;
               glyphs = new ArrayList<Glyph>();
               String n = null; 
            try{
                BufferedReader fh = new BufferedReader(new FileReader(filename));   
                while((n = fh.readLine()) != null && (n = n.trim()).length() > 0){
                    f = n.split("\t");
                    value1 = Integer.parseInt(f[5].trim());
                    value2 = Integer.parseInt(f[6].trim());
                    top = value1 / 1;
                    bottom = value2 / 1;
                    width = bottom - top; 
                    String text = f[5];
                    Color color = new Color(Integer.parseInt(f[7]));
                    int fixvalue1 = 60;
                    int fixvalue2 = 27;
                    glyphs.add(new Glyph(top, fixvalue1, width, fixvalue2, color, text));
                fh.close();
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (IOException e2) {
                e2.printStackTrace();
          public void paintComponent(Graphics g) {
          public void mousePressed(MouseEvent e) {       
          public void mouseDragged(MouseEvent e) {
          public void mouseReleased(MouseEvent e) {
          public void mouseMoved(MouseEvent e) {
          public void mouseClicked(MouseEvent e) {}
          public void mouseEntered(MouseEvent e) {}
          public void mouseExited(MouseEvent e) {}
          static class Glyph {
          private Rectangle bounds;
          private Color color;
          private Paint paint;
          private String label;
          private boolean showLabel = false;
          public Glyph(int x, int y, int width, int height, Color color, String label) {
          bounds = new Rectangle(x, y, width, height);
          this.color = color;
          this.paint = new GradientPaint(x, y, color, x, y+height, Color.WHITE);
          this.label = label;
          public void draw(Graphics g){
          Graphics2D g2 = (Graphics2D)g;
          g2.setPaint(paint);
          g2.fill(bounds);
          if (showLabel){
          g2.setColor(Color.BLACK);
          int labelWidth = g2.getFontMetrics().stringWidth(label);
          int fontHeight = g2.getFontMetrics().getHeight();
          g2.drawString( label,
          (int)(bounds.getX()),
          (int)(bounds.getY()));
          public boolean contains(int x, int y){
          return bounds.contains(x,y);
          public void showLabel(boolean show){
          showLabel = show;
          public static void main(String args[]) {
           Roger3 hhh = new Roger3();
           hhh.readFile(args[0]);
          java.awt.EventQueue.invokeLater(new Runnable() {
          public void run() {
          new Clamando(0, 0, 0, 0, null, null).setVisible(true);
        public Color getColor(){
            return color;
        public String toString() {
            return String.format("Color=%s,top=%d,bottom=%d,width=%d", color.toString(), top, fixvalue1, width, fixvalue2, text);
          }Thanks

    I tried the same thing like this and it works perfectly but why its not working in the above code ?
    Here is the code that works:-
    import java.io.FileNotFoundException;
    import java.io.BufferedReader;
    import java.io.*;
    public class Testwow {
        public String filename = new String();
        public int one;
        public int two;
        public String f[];
        public Testwow(){
            readFile(filename);
            System.out.println(filename);
        public void readFile(String filename){
               this.filename = filename;
               System.out.println(filename);
               String n = null; 
               BufferedReader fh;
            try{
                fh = new BufferedReader(new FileReader(filename));   
                while((n = fh.readLine()) != null && (n = n.trim()).length() > 0){
                    f = n.split("\t");
                    one = Integer.parseInt(f[5].trim());
                    two = Integer.parseInt(f[6].trim());
                    System.out.println(one);
                    System.out.print(       two);
                fh.close();
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (IOException e2) {
                e2.printStackTrace();
        public static void main(String args[]){
            Testwow wow = new Testwow();
            wow.readFile(args[0]);
    }

  • Another User Modified Table Error.

    Dear All,
            My Client is using SAP B1 2007 B PL 11, When he is updating the Freight Amount in the Freight Window at that time he is getting the Error of Another User Modified Table Error.
           Plz guide me solving this issues.
      Regards
    Hitesh Parsawala

    Hi Hitesh ,
    This problem occurs when 2 users access the same form simultaneously .
    So just restart the SAP , It will work ..
    Hope it Helps
    Thanks
    -- Ashish Ranjan

  • SRKIM: Synchronize Wf Local Tables Errors: Ora-01400

    PURPOSE
    Synchronize Wf Local Tables 수행 시 발생한 ora-01400 error 를 해결한다.
    Problem Description
    Synchronize Wf Local Tables 수행 시 아래와 같은 error 가 발생하였다.
    ERROR
    FNDWFLSC module: Synchronize WF LOCAL tables
    Current system time is 31-AUG-2005 09:39:54
    **Starts**31-AUG-2005 09:39:54
    **Ends**31-AUG-2005 09:40:33
    ORA-12801: error signaled in parallel query server P000
    ORA-01400: cannot insert NULL into
    ("APPLSYS"."WF_LOCAL_ROLES_STAGE"."DISPLAY_NAME")
    STEPS
    The issue can be reproduced at will with the following steps:
    Submit the concurrent program Synchronize WF LOCAL tables.
    Log file shows error.
    Workaround
    N/A
    Solution Description
    해당 error 는 per_all_people_f table 의 global_name 이 null 이기 때문에 발생하는 error 로 가장 간단하게는 아래와 같이 처리 하면 된다.
    update per_all_people_f
    set global_name = full_name
    where global_name is null;
    commit;
    위의 작업 후 다시 Synchronize WF LOCAL tables process 를 수행 한다.
    해당 issue 에 대한 원인은 note. 397219.1 - Why Are There NULL Values For global_name In 를 참조 하도록 한다.
    Reference Documents
    Note 375508.1 - Synchronize Wf Local Tables Errors: Ora-01400: Cannot

    Hi Hussein,
    Thanks for reply. Please find the below details.
    RELEASE_NAME
    12.1.3
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    Linux **** 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
    Conc Req Log file
    Application Object Library: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    FNDWFLSC module: Synchronize WF LOCAL tables
    Current system time is 19-JUN-2012 05:49:20
    **Starts**19-JUN-2012 05:49:20
    **Ends**19-JUN-2012 05:49:20
    ORA-14501: object is not partitioned
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    Output file size:
    0
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 19-JUN-2012 05:49:20
    ---------------------------------------------------------------------------

  • I am from iran. i can not download from app store. iTune gives me such an error like this : you must download version 11.1 iTune and when i want to do that i can not.

    i am from iran. i can not download from app store. iTune gives me such an error like this : you must download version 11.1 iTune and when i want to do that i can not.

    Try Here  >  https://discussions.apple.com/thread/4074945?tstart=0

  • Mutation table error

    i am trying to updata any row at the time i am getting mutating table error for some triggers
    fired on that table.what is the resonn and how to solve this problem,plz..help

    Here's a good resource
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:290416059674

  • Solve mutating table error

    Hi,
    I want a solution for mutating table error. I am a newbie in oracle.
    I'll explain my scenario.
    There are two tables TEACHER and STUDENT
    both are linked using the field 'tid'. the foreign key relation is given as ON DELETE CASCADE
    so if i delete a row from teacher , the corresponding rows in student get deleted, but i want to back up all the students who comes under that teacher, who is getting deleted.
    I tried in TRIGGER, but getting mutating table error.
    Please help
    Thanks in advance
    Divya

    This extract from an earlier post might be of help:
    You can solve this problem by using following thing
    1)create a view on same table with all fields
    and write trigger on table (insert,update or delete ) while inserting or updating or deleting row from table read from view.
    (Mutating error come when you are reading from one table and want to update,insert or delete row of same table).
    2)create a temporary table(but it is possible in 8i onword only) same as table on which you want to write trigger,while updating,inserting or deleting rows of table read from temporary table and after your work is over temporary table auotomatically drop (see proper command in oracle documentation to create temporary table).
    null

  • Mutating table error

    Hi All,
    I am getting the “ORA-04091 - mutating table error" when my trigger on a table "fnd_flex_values" fires. As I understand it, this error is occuring because, the users are trying to add rows to this table (it is an after insert trigger) and the trigger is trying to get values from the same table.
    Any suggestions on how to get around the mutating table error?
    My trigger code :
    CREATE OR REPLACE TRIGGER "APPS".ST_BU_PARENT_CC
    after insert on APPLSYS.FND_FLEX_VALUES REFERENCING OLD AS OLD NEW AS NEW
    for each row
    Declare
    v_flex_value    varchar2(150) :=null;
    v_desc          varchar2(2) := null;
    v_createdby     number      :=null;
    v_lstupdby      number      :=null;
    v_lstupdlogin   number      :=null;
    begin
      if inserting then
         select a.last_update_login,a.last_updated_by,a.created_by,a.flex_value,
                   rtrim(substr(description,instr(b.description,',')+1,5))
         into v_lstupdlogin,v_lstupdby,v_createdby,v_flex_value,v_desc
         from fnd_flex_values a,
                 fnd_flex_values_tl b
            where a.flex_value_id = b.flex_value_id
            and   a.flex_value_set_id = :new.flex_value_set_id
         and   a.flex_value_set_id = 1009635
            and   (a.flex_value like '1%' or a.flex_value like '7%')
         order by flex_value asc;
         insert into applsys.fnd_flex_value_hierarchies
            values(:new.flex_value_set_id,v_desc||'STO',v_flex_value,v_flex_value,sysdate,v_lstupdby,sysdate,v_createdby,null,null,null);
            insert into applsys.fnd_flex_value_norm_hierarchy
            values(:new.flex_value_set_id,v_desc||'STO','P',v_flex_value,v_flex_value,sysdate,v_lstupdby,sysdate,v_createdby,v_lstupdlogin,null,null);
      end if;
      exception
        when no_data_found then
          raise;
    end;Thanks,
    Chiru

    >>
    Any suggestions on how to get around the mutating
    table error?
    This link by Tom Kyte should help you with the
    "mutating table" error.
    http://asktom.oracle.com/tkyte/Mutate/index.html
    pratzPratz,
    Thanks for the quick reply. I am trying to create a temp table (log_table) but having the "insufficient privilages" issues.
    Thanks,
    Chiru

Maybe you are looking for

  • Tips On Buying a New Display

    I've received many informative replies to my questions on this site, so I thought I would post my recent monitor research. The info presented is my opinion, and based on my experience - your results may vary: The technology used in mid-priced panels

  • One table containing DIMENSION and FACT columns ... How to make it work?

    Guys, i have a question that relates to OBIEE working with a single table containing both fact and dimension columns. What is the "best" strategy to get this to behave like a star schema? Following are my questions: - Should i alias each dim set of c

  • Photoshop CS6 Filter Gallery not working...

    The Filter Gallery in my Photoshop CS6 is "greyed out" all of the sudden! I cannot access it! So... I cannot use my filters... Any ideas what might be wrong? It was fine yesterday.

  • Package and Deployment

    Hello all, I know in Visual Basic there is a Packaging and Deployment wizard that will allow you to create an executable setup to install your application, and I am wondering if there is such a tool for use in Java? I use TextPad as my editor, and no

  • Can iDvd burn to Blu Ray?

    I bought a blu ray burner and blu ray disks and can't figure out how to use iDvd to burn any such animal ... any suggestions?