Table doesnt exist

im trying to retrieve values from database and plot a graph. I downloaded jfreechart and invoke a method frm there. its a program where user choose an item from drop down list, this item is actually the tables from my database, and a textbox where they enter a pattern and it will search through from the table they selected from the combobox.
when i run this program, i get an error saying table or view does not exists. anyone can help me detect the error?
this is what ive done. this is the chart program
public barchart()
          MyBarsTest t = new MyBarsTest("test bars");
          ana.display();
            String sql = "SELECT Occurrence, megabasepairs FROM ChromosomeY where patterns ='" + pattern + "'";
         XYSeries series = new XYSeries("");
         try {
             conn = db.getConnection();
             Statement stat = conn.createStatement();
             rs = stat.executeQuery(sql);
             while (rs.next()) {
               series.add(rs.getInt("megabasepairs"), rs.getInt("Occurrence"));
           } catch (SQLException sqle) {
             sqle.printStackTrace();
         IntervalXYDataset mydataset= new XYSeriesCollection(series);
         JFreeChart chart =
          ChartFactory.createHistogram("Pattern Chart", 
             "Mbp","No. of  Patterns found",mydataset,PlotOrientation.VERTICAL,
             false,
             false,
             true                // Show legend
          ChartPanel panel = new ChartPanel(chart);
          panel.setPreferredSize(new Dimension(600, 400));
          t.setContentPane(panel);
          t.setSize(800, 600);
          t.setVisible(true);
     public static void main(String[] args)
          barchart bc = new barchart();
          bc.show();
     }this is the display method from the interface class to retrieve it.
public void display() {
          database db = new database();
          Vector occur = db.getOccur((String) chromBox.getSelectedItem(),pattTf.getText());
          Vector mega = db.getMBP((String) chromBox.getSelectedItem(),pattTf.getText());
          System.out.println();
          for (int i=0; i<occur.size(); i++)
               String mbp = (String) mega.elementAt(i);
               String occurrence = (String) occur.elementAt(i);
               System.out.println(occurrence + "\t" + mbp);
               resultTa.setText(occurrence + "\t" + mbp);
     }

ok... that line suppose to be this way, coz users have to choose ..
String sql = "SELECT Occurrence, megabasepairs FROM " + table + " where patterns ='" + pattern + "'";i have my ChromosomeY table in my database. But i don't know why it cant read. Maybe something to do with retrieving it ?

Similar Messages

  • IDOC HRMD_A + Change pointers + Infotypes change objects doesnt exist???

    Hi guys,
    I Have to send master data from infotypes 0002, 0006, 0032 and 0105 from HR to SAP PI. I've configured BD61, BD50 and BD53 to reduce Idoc HRMD_A. Then in BD52 I've tried to put this fields to activate change pointers when data from this infotypes is changed.
    But in BD52 doesnt exist infotypes 0002, 0006, 0032 and 0105. I tried with object HR_IT1002, table HRP1002 and fields BEGDA and ENDDA, then run program RBDMIDOC and the Idoc is sent, but is possible with infotypes metioned????
    Regards,
    Pablo

    Pablo,
    are you able to see entries getting created in BDCP* tables
    did you activate change pointers in BD53
    Thanks
    Bala Duvvuri
    Edited by: Bala Duvvuri on Jul 29, 2010 10:35 AM

  • Pavilion dv6 - the search for WLAN doesnt exist after installing windows 7 ultimate

    pavilion dv6 - the search for WLAN doesnt exist after installing windows 7 ultimate
    after installing windows 7 my computer only displays the LAN on my quicklaunch bar and I can even search for open WLAN networks =(

    Hi:
    You probably need to install the wireless card driver.

  • Error the class for ABAP mapping doesnt exist

    hi PI gurus,
    i faced a probleme when i was trying to call a second Mapping which type is ABAp after another one which type is Message Mapping, why i m doing that because i was trying to folow the step by step of michal :
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417100)ID0279207250DB01347930475897169967End?blog=/pub/wlg/6398
    but the problem is i get the error that the class doesnt exist but i m sure that the class exist and i cheked in se24.
    do you have any idea ????
      <SAP:Stack>Error in mapping program Z_ABAP_MAPPING_EXCEPTION_RS (type SAP-ABAP, kernel error ID CREATE_OBJECT_CLASS_NOT_FOUND) The object could not be created: The class Z_ABAP_MAPPING_EXCEPTION_RS does not exist.</SAP:Stack>
    thanx.

    Check this thread
    [Re: SOP Confituration- Maintain Copy Profiles version A00 not maintained   |SOP Confituration- Maintain Copy Profiles version A00 not maintained;
    thanks
    G. Lakshmipathi

  • I dont have my old number anymore and iMessage is still registered on the old number(it's in light grey fonts)I cannot choose or delete this number. Also I cannot recieve text on this number because it doesnt exist anymore. How can I solve this?

    I dont have my old number anymore and iMessage is still registered on the old number(it's in light grey fonts)I cannot choose or delete this number. Also I cannot recieve text on this number because it doesnt exist anymore.

    You should contact Apple support and ask them to deregister iMessage for the old number.

  • Check in Function if optional table is existing

    Dear all
    I have a function module where I have a table as optional parameter.
    No I should be able to check if this table is existing or not. How can this be done?
    I tried several things like try + catch but nothing worked. All lead in an exception when it is not given to the function.
    Thank you
    Herbert

    Hello Herbert,
    I assume you get a dump information like this:
    >
    >    This error may occur if
    >    - you address a typed field symbol before it has been set with
    >      ASSIGN or
    >   - if you address a global function interface partameter, even
    >      though the relevent function module is not active,
    >      i.e. it is not in the list of active calls. You can get the list
    >      of active calls from the this short dump.
    >
    Thus access to optional parameters is not possible in case the function module has not been called. Sounds like you need to know which module is calling your exit.  If there is no obvious way to do so possibly it would make sense to check for notes in the customer service system.
    Best Regards
      Klaus

  • DAC, ETL failed due to Post-Etl Script not exist and table not exist.

    When execute the ETL in DAC, it failed when execute the "Change Capture For Siebel OLTP"
    encounterred the following two type errors.
    how to fix these errors?
    The first is the table not exist:
    ======================================================================
    MESSAGE:::Could not truncate table 'S_ETL_I_IMG_38' because this table does not exist in database 'OLTP_SIA'.
    EXCEPTION CLASS::: com.microsoft.sqlserver.jdbc.SQLServerException
    com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Unknown Source)
    ======================================================================
    The second is the Post-Etl not exist.
    I have copied the Copy Source Files and Lookup Files. What else should I do? What script it not find? have no idea.
    ======================================================================
    Jan 20, 2009 4:11:06 PM com.siebel.etl.etlmanager.EtlExecutionManager finishEtl
    SEVERE: Incorrectly specified Post-Etl Script/Executable. The file either does n
    ot exist, or is not readable
    UNREGISTERING: com.siebel.etl.engine.bore.FixedFailedNodesFacility
    686 SEVERE Tue Jan 20 16:11:06 CST 2009
    END OF ETL
    687 SEVERE Tue Jan 20 16:11:06 CST 2009 Incorrectly specified Post-Etl Script
    /Executable. The file either does not exist, or is not readable
    UNREGISTERING: com.siebel.etl.engine.core.SessionHandler
    UNREGISTERING: com.siebel.etl.engine.bore.ServerTokenPool
    UNREGISTERING: com.siebel.etl.engine.core.TableIndexHandler
    UNREGISTERING: com.siebel.etl.engine.bore.NewDispatcher
    Stopping EtlParameters 9550256
    UNREGISTERING: com.siebel.etl.engine.bore.EtlParameters
    UNREGISTERING: com.siebel.etl.engine.bore.ExternalTaskTokenPool
    UNREGISTERING: com.siebel.analytics.etl.execution.RefreshDateHandler

    Hi tigger,
    ad scripts:
    http://download.oracle.com/docs/cd/E12102_01/books/AnyInstAdm784/AnyInstAdmFunctionalRef9.html#wp1005877
    http://download.oracle.com/docs/cd/E12102_01/books/AnyInstAdm784/AnyInstAdmFunctionalRef8.html
    ad tables:
    Without data change capture tables nothing will work. Have you looked at the actual documentaiotn? It contains everythign step by step.
    http://www.oracle.com/technology/documentation/bi_apps.html
    --> Oracle Business Intelligence Applications Fusion Edition Installation and Configuration Guide -> 4.15.3 How to Update Siebel Transactional Database Schema Definitions

  • Content Administration Workbench doesnt exist

    Hi Experts,
    I installed (XI 3.1):
      1. SAP BO Edge
      2. SAP BO client tools
      3. SAP BO Integration for SAP Solutions
    Then I wanted to do the SAP NetWaver - Server-Side Configuration:
       1. Configuration of SAP Authentication
       2. Configuration of the Publishing Servcie
       3. SAP BO Enterprise Server Definition --> Here comes my problem (having all rights in the system)
    The transaction /CRYSTAL/RPTDMIN doesnt exist in the system.
    Have I to install the ABAP Transport by manuell or reinstall SAP Integration Kit? Or can I fix the problem on another way?
    Regards,
    Jan

    Thats really Silly , an SAP documentation , doesnt have the proper steps , and then some one answer in the blog , oh you need ABAP Transporter ,, why dont you have these steps in the Manual daaaaaah

  • Java Dictionary Project with Tables already Existing

    Hi@all,
    is there a possibility to define a Dictionary Project in Developer Studio with Database Tables already existing? I tried to rebuild them manually in a project though there is no import possibility.
    But it doesen't seem to work with the frameworks requiring Java Dictioniary such as CMPs and SQLJ
    Best
    Uwe

    I forgott to mention the AppServer: it is a WebAS with J2EE (4)
    Developer Studio 7.0.11
    WebAS 7.00

  • Drop the Rules of one table from existing bi directional replication setup

    Hi All,
    I have one small question on bi directional replication setup, Its regarding table add in existing replication setup.
    What happened ,When we add a new table to existing replication setup if any reason table is not replicating between two database even we are not getting
    any error in dba_apply_error ,then we have to remove the rules for that particular table and setup again. Some time what happened we got error "queue has
    errors" i dont know the ORA number. But in that case what happened Apply process ABORETED and when we try to start the process it gives same error
    ("Queue has errors" ) and ABORTED again.
    then on metalink for doc id 203225.1 .we have remove the whole replication Manually and setup again. It's horriable....
    Could you please help that before drop the rules for particular table from exisitng bi directional replication setup then wht should we do ?
    Do we need to unscheduled the propagation process and then drop the rules becuase i read on metalink that reason behind the error ,queue has errors
    "negative rules drops while propagation process using the same rule set" .
    Please Suggest!!!!!!!!!!
    Many Thanks

    How huge those tables?. If those are small tables use Oracle MINUS function to get the defference records.

  • 0TCT_MC01 doesnt Exist...

    Hello Xperts,
    the Cube 0TCT_MC01 doesnt exist in my Development System in the Content What can I do ???
    THanks..

    Hello,
    You have to install from the Business Content
    Goto RSA1-> Business Content -> Find 0TCT_MC01 and Install.
    Thanks
    Chandran

  • *ExceptionCondition   ' Table Not Exists' raised.*

    Dear Gurus,
    We are facing a problem in lot of our queries after EHP1 SP4 upgrade.
    ExceptionCondition   ' Table Not Exists' raised.
    If somebody has any vague idea on how to resovle this. Kindly help.
    Regards,
    Dennis

    Hi Dennis,
    We ran into the same error.
    You need to run the program called SAP_DROP_TMPTABLES. Click on the parameters called Temporary Tables and Temporary Hierarchy.
    If the query is still getting this message, then you need to regenerate the query in RSRT.
    Good Luck! Bill

  • Create a new table from another table that exists ussing a stored procedure

    Hi,
    I want to know if is posibble to create a new table from another table that exists ussing a stored procedure. This new table is created from other table that exists in the DB.
    (in the next code the table tbl1 exist into the schema of the DB, but temp_tbl1 does not exist, it must be created by the procedure)
    create or replace procedute temp is
    temp_tbl1 tbl1%TYPE; //the temp_tbl1 will have the same type of tbl1
    begin
    create table temp_tbl1 as (select * from tbl1);
    end temp;
    thanks very much

    cat wrote:
    Hello,
    I think my problem is not about this grant, because if I execute this as an "anonymous procedure":
    DECLARE
    BEGIN
    EXECUTE IMMEDIATE 'CREATE TABLE Abonus (id NUMBER, amt NUMBER)';
    END;
    It runs ok
    But if I do:
    CREATE OR REPLACE procedure temp as
    BEGIN
    EXECUTE IMMEDIATE 'CREATE TABLE Abonus (id NUMBER, amt NUMBER)';
    END;
    I have the error
    ORA-01031: Insufficient privileges
    ORA-06512: at "temp", line 3Anonymous blocks are treated as "Invoker's Rights" from a privilege perspective whereas stored programs by default are treated as "Definer's Rights". Therefore using anonymous blocks is not a valid test to check this.
    The simplest form of checking this issue is by executing
    SET ROLE NONE;and then to run your statement/code block in question interactively. Using this approach you get in your session the effective rights of a "Definer's Rights" stored program, i.e. only privileges that you got granted directly to your user.
    You can revert to the default setting by issuing
    SET ROLE ALL;For more information regarding this topic, read e.g. the documentation:
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/subprograms.htm#LNPLS00809
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Is it possible to add a single table to existing CDC setup ?

    We have Asynchronous Change Data Capture setup.
    Database A : Source Database
    Database B : Staging Database
    Redo Log shipping is b/w A --> B and Capture/Apply is running on B.
    Total 32 tables outof 300 are part of these CDC setup. I'm wondering if we can add a table to existing setup, As per the documentation, We can't user streams API to add a table in capture/apply, and CDC doesn't have its owe API. So is there really no way except to rebuild entire setup?
    Thank you,
    Mahesh

    You need to follow steps below:
    1. @destination database : stop capture process
    2. @source database add supplemental logging for new tables
    3. @source database :prepares table instantiation (exec DBMS_CAPTURE_ADM.PREPARE_TABLE_INSTANTIATION(table_name => 'owner.table_name');)
    4. @destination database :create change table for additional tables
    5. @destination database: drop subscriber
    6. @destination database: start capture process ,create subscriber,recreate subscriber views and then activate subscriber then extend window
    All steps are action plan that I have done in my CDC system.
    Good luck!
    Chaiya Rakdee

  • How  to check  table have  exists any views in oracle

    hi,
    how to check table have exists any views in oracle

    SELECT * FROM user_dependencies
    WHERE type='VIEW'
    AND referenced_type='TABLE'
    AND referenced_name ='Your_Table_Name' You may use dba_dependencies to find views in different schema.

Maybe you are looking for

  • Display value in hh:mm time format in SSRS Report

    Hi Everybody, I have an SSRS report where one of the column is sum of time values. When I do the summation, the values are coming in this format. In the last column the minute value is getting displayed more than 60. How can I format it to proper tim

  • V570 video driver not working with windows 7 home premium 64 bit

    i have tried many ties instaling the video card driver from the lenovo support site for my v570, after install and reboot , blue dump screen appears and i've to restore the windows. so far i'm running without the vga driver. someone pls help to resol

  • PO email to vendor

    Hi All, I have done the following settings to send Po as email to vendor: PO as an email to Vendor: When using external mail, the following basic settings are required: 1. You must maintain an e-mail address in the address in the vendor master. 2. Th

  • 52"Samsung now flickering

    In January I hooked up my 52" Samsung LCD to the MacMini using a Belkin DVI to HDMI Cable. All worked fine until 20 minutes ago. Now every 5-10 minutes the screen flickers with several bands of green horizontal linse going through the picture. I have

  • Entry point is not defined

    Hi all, Im doing an File to Proxy scenario, in the R/3 side im getting the error as "Entry point is not defined", can anyone suggest as  what to do to resolve this issue. Regards Archanaa