Help me with DaffodilDB database

Im stuk up with this problem since 2 days.... and I am not able to solve this problem. kindly help me a sit is very urgent.
I am using DaffodilDB for the back-end(database).
I have created a database called "Black" containing a table " BlackListed"
Im also using QuicKTool to get the output onto a table.
The following parameters are passed to it....
dBTable1.connectDatabase("in.co.daffodil.db.rmi.RmiDaffodilDBDriver", "jdbc:daffodilDB://localhost:3456:/BlackListed", "" ,"");
But when I run the program.. i am getting the following exceptions:
java.sql.SQLException: java.rmi.ConnectException: Connection refused to host: 192.168.77.60; nested exception is:
     java.net.ConnectException: Connection refused: connect
     at in.co.daffodil.db.rmi.RmiDaffodilDBDriver.getServer(Unknown Source)
     at in.co.daffodil.db.rmi.RmiDaffodilDBDriver.getConnection(Unknown Source)
     at in.co.daffodil.db.jdbc.A_2074.connect(Unknown Source)
     at java.sql.DriverManager.getConnection(Unknown Source)
     at java.sql.DriverManager.getConnection(Unknown Source)
     at quick.dbtable.s.byte(DBTableModel.java:192)
     at quick.dbtable.DBTable.connectDatabase(DBTable.java:2309)
     at com.bs.bank.BlackListed$EventHandler.connectToDatabase(BlackListed.java:410)
     at com.bs.bank.BlackListed$EventHandler.actionPerformed(BlackListed.java:395)
     at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
     at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
     at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
     at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
     at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
     at java.awt.Component.processMouseEvent(Unknown Source)
     at java.awt.Component.processEvent(Unknown Source)
     at java.awt.Container.processEvent(Unknown Source)
     at java.awt.Component.dispatchEventImpl(Unknown Source)
     at java.awt.Container.dispatchEventImpl(Unknown Source)
     at java.awt.Component.dispatchEvent(Unknown Source)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
     at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
     at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
     at java.awt.Container.dispatchEventImpl(Unknown Source)
     at java.awt.Window.dispatchEventImpl(Unknown Source)
     at java.awt.Component.dispatchEvent(Unknown Source)
     at java.awt.EventQueue.dispatchEvent(Unknown Source)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.run(Unknown Source)
So please help me.... write a mail if possible to [email protected] ...pls bcoz it is very very urgent.
Thanks in advance.
P. Madan

Hi,
make sure that your Daffodil DB server is running on 3456 port.
You can start the Daffodil DB server using the "StartServer.bat" file available in Tools directory of Daffodil DB installation. You can test the server by running "ShellServer.bat" file and taking connection with your database.
Jdbc url seems to be correct. Can you tell me the Daffodil DB version used?
Thanks,
Parveen
www.daffodildb.com

Similar Messages

  • Need some help on data encryption in Forms 6i with Oracle Database.

    Hi,
    Here is my requirement:
    I have a username and a password field, and i can add new users to it and ofcourse set a password for it.This password will be visible as asteriks on the forms but i want it to entered in the encrypted format in the database in the designated table.Can anyone help me with this.(hope my question is clear!!!)
    Thanks,
    Aparna.
    null

    Hi,
    try it in the follwing very simple way:
    translate each character of the password to it's ascii value and add a constant value you like. e.g. i = asc(substr(pwstring,i,1)) + k. concatenate each char-value of i(whitch have to be a fix length string of f.e. 4 digits) to build op the encrypted string. you can rich up this by calculating k in differents ways like:
    K = offset + i. and by the way this encryption can call n times, mean encrypt the encryption, if you want.
    the decryption is yout turn ;-)
    hope this will help you...
    Regrads
    biki
    null

  • Problem with accessing database in minisap 4.6 d( very urgent need ur help)

    hi all sap masters please help me.
    i have installed the minisap 4.6d system in the windows 200 prof os.
    i had the following problem in my minisa access.
    while Displaying table contents with transactions SE11 or SE16
    gives an error "No changes on SAP objects allowed".
    while Accessing the logical database F1S gives a syntax error because the
    include DBF1SF01 is missing.
    so i have used the mbspatch1 that comes with the cd.
    i have copied the mbscorr0104200 file in the directory '<MBS_DIR>\trans\tmp' as mentioned.
    and i have followed the steps as follows.but i have the same problem.please have a look at the
    process below and hel me to make it work roerly.
    this roblem is really eating me a lot and since many in this forum are sap master,thought
    you all can help me please.
    C:\>cd mbs
    C:\MBS>dbenv.cmd
    C:\MBS>REM Setting environment for db connect to MBS
    C:\MBS>set dbms_type=mss
    C:\MBS>set DIR_LIBRARY=.
    C:\MBS>set MSSQL_DBNAME=MBS
    C:\MBS>cd trans\tmp
    C:\MBS\TRANS\TMP>r3trans -i mbscorr01042000
    'R3TRANS' is not recognized as an internal or external command,
    operable program or batch file.
    hope there was some problem here only,but to continue i have pasted the r3trans in the folder C:\MBS\TRANS\TMP
    C:\MBS\TRANS\TMP>r3trans -i mbscorr01042000
    This is R3TRANS version 6.05 (release 46D - 04.10.00 - 09:16:00).
    2EETW169 no connect possible: "connect failed with DBLI_RC_LOAD_LIB_FAILED."
    R3TRANS finished (0012).
    then i have done the generate program step .
    (4) Generate programs:
         - Logon as user BCUSER to the MBS system.
         - Start transaction SE38.
         - Enter the program 'SAPLSTRD' and select 'Program -> Generate'.
         - Enter the program 'SAPDBF1S' and select 'Program -> Generate'.
    while generating the second program i got the error Accessing the logical database F1S gives a
    syntax error because the include DBF1SF01 is missing.
    hope somebody could have got the same problem.so please help me with your experience.iam new to this
    minisap problems.
    again all the problem of acessing the tables exit even after doing the steps.
    hope i have explained my problem very clearly.
    please find where i went wrong or suggest some help to acess the datadase tables with the minisap cd.

    all webas downloads (ABAP, java)
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/cfc19866-0401-0010-35b2-dc8158247fb6
    webas 6.40 ABAP server
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/b2918eea-0601-0010-6284-e6cb7eee4399 [original link is broken]
    SAP gui
    https://www.sdn.sap.com/irj/sdn/softwaredownload?download=ftp://ftp.sap.com/pub/sdn/devkits/netweaver/abap/50072743_4.zip&df=0
    Regards
    Raja

  • I am new to networked databases. Kindly help me with a basic implementation of a database system.

    Until now, I have only worked with local database files. My forte is designing custom database solutions tailored to client needs in VB.NET.
    I have however, never worked on a "database shared over a network".
    My client has 3 - 4 PC's that need to be able to access a central database (3500+ entries - each data row contains 15-20 text fields and one image field).
    My questions are?
    1) Can I use SQL server express? Will there be licensing issues since I will be distributing (or manually installing) it on his PC? Is it legal to do so?
    2) I already have an Access database on one PC? Should I just use that or convert it to SQL Express Database?
    3) I am currently using the express editions of Visual Studio products. Will I be able to make a software that can interact with network (and eventually internet) shared databases?
    Regards,
    Vivek

    Hi,
    yes you can use SQL Express, no issues, but be aware of the limitations: https://msdn.microsoft.com/en-us/library/cc645993.aspx
    Yes, you may convert (migrate) your access to MSSQL database. You can use SQL Server Migration Assistant for Access. https://msdn.microsoft.com/en-us/library/hh313039%28v=sql.110%29.aspx
    yes you can
    I hope it helps.
    János
    There are 10 type of people. Those who understand binary and those who do not.
    My Blog |
    Hire Me

  • Help Needed!! Working with SQL Databases

    Hi All,
    I'm currently working on an application that interfaces with an SQL database, and I seem to have ran into a roadblock.
    I have a multicolumn list box on my front panel which is filled in with data extracted from the database. On selecting any of the rows in the list box, another one is opened displaying another set of data extracted by a generated SQL query. At the moment I am only selecting one row at a time to view it's related data, but I want to expand such that I can select mutiple rows from the list box at a time and see all of their corresponding data.
    With only a single selection, I can pass the index value of the selection to an Index Array Function with the database as the other input and build my SQL statement.
    But with multiple selections, I imagine I would have to build an array on index values and use those as a reference to build the SQL statment. And I am not sure how exactly to go about doing that.
    Here is the code that I currently have working for a single selection from the list box.
    Any help is appreciated. Cheers.
    Solved!
    Go to Solution.

    tdog wrote:
    Hi All,
    I'm currently working on an application that interfaces with an SQL database, and I seem to have ran into a roadblock.
    I have a multicolumn list box on my front panel which is filled in with data extracted from the database. On selecting any of the rows in the list box, another one is opened displaying another set of data extracted by a generated SQL query. At the moment I am only selecting one row at a time to view it's related data, but I want to expand such that I can select mutiple rows from the list box at a time and see all of their corresponding data.
    With only a single selection, I can pass the index value of the selection to an Index Array Function with the database as the other input and build my SQL statement.
    But with multiple selections, I imagine I would have to build an array on index values and use those as a reference to build the SQL statment. And I am not sure how exactly to go about doing that.
    Here is the code that I currently have working for a single selection from the list box.
    Any help is appreciated. Cheers.
    Regarding building the array:
    I can see hat you multicolumn listbox has not multiselection enabled, and is limited to one or zero selected item at once. To enable multiselction; simply rightclick your multicolumn listbox and change your selection mode to support multiple selected items. The NewVal at the event structure should change from a single index number to a 1D array of indexed numbers. No coding needed. Then just retrive out all the items (since you know the indexes) and create the quiry. The quiry part I dont really know (long time no see SQL), but it looks like a for loop to create the string should do the trick?

  • Help with a database view/table

    Hi,
    I have seperate oracle9i database on one machine (UNIX).
    Myview view has poor performance in dbtest, but it has good performance in dbdev.
    Both DBs are having relatively similar configuration.
    When I set the autotrace on I realized the indexes are in place on both databases.
    But it takes 2 times more to query dbtest than dbdev.
    Here is the difference when I query both views and the autotrace is on:
    SELECT id from Myview; on DBTEST:
    Statistics
    105 recursive calls
    0 db block gets
    83147 consistent gets
    456 physical reads
    0 redo size
    2777 bytes sent via SQL*Net to client
    400 bytes received via SQL*Net from client
    10 SQL*Net roundtrips to/from client
    4 sorts (memory)
    0 sorts (disk)
    122 rows processed
    SELECT id from Myview; on DBDEV:
    Statistics
    105 recursive calls
    0 db block gets
    42537 consistent gets
    267 physical reads
    0 redo size
    3601 bytes sent via SQL*Net to client
    414 bytes received via SQL*Net from client
    12 SQL*Net roundtrips to/from client
    4 sorts (memory)
    0 sorts (disk)
    157 rows processed
    How can I identify where the problem is? Why "consistent gets" and "physical reads" parameters are about 2 times in DBTEST. I believe this is why I have poor performance in DBTEST.
    Could someone give me a clue on how to idetify the issue?
    Thanks

    "I have seperate oracle9i database on one machine (UNIX)."Correction: "I have two seperate oracle9i database installed on one machine (UNIX).
    Can anyone help me with this? If you need more infor let me know.
    Thanks in advance.

  • Help needed to sync cache with the database using CacheStore

    Hi,
    I need to have my cache in sync with the database. I followed the tutorial to create a DBCacheStore class which will act as a CacheStore between Cache and my Oracle database. My Cache-Config file contains
    <backing-map-scheme>
                        <read-write-backing-map-scheme>
                             <internal-cache-scheme>
                                  <local-scheme></local-scheme>
                             </internal-cache-scheme>
                             <cachestore-scheme>
                                  <class-scheme>
                                       <class-name>com.coherence.cacheUtil.DBCacheStore</class-name>
                                       <init-params>
                                            <init-param>
                                                 <param-type>java.lang.String</param-type>
                                                 <param-value>{cache-name}</param-value>
                                            </init-param>
                                       </init-params>
                                  </class-scheme>
                             </cachestore-scheme>                         
                        </read-write-backing-map-scheme>                    
                   </backing-map-scheme>
    Now, what I am trying to achieve is,
    1. Load the cache with values when the cache server is up, without any need to run separate program
    2. Integrate all read/write cache operations with the database
    I am aware that CacheStore class implements store, storeAll, erase, eraseAll, load, loadAll methods from undelying interface and I need to write corresponding code to add/remove/update records in the database.
    But, I am really not sure how and when to include the logic to load the cache with the data from the database when the server is up.
    Thank for the help. Much appreciated!

    Could you try something like this to load the cache?
    HashSet buffer=new HashSet();
    s = conn.createStatement();
    rs = s.executeQuery("select key from table");
    while (rs.next())
    String key = rs.getString(1);
    buffer.add(key);
    // this loads 1000 items at a time into the cache
    if ((count++ % 1000) == 0)
    cache.getAll(buffer);
    buffer.clear();
    if (!buffer.isEmpty())
    cache.getAll(buffer);
    This web page also gives a good example:
    http://www.oracle.com/technology/pub/articles/vohra-coherence.html
    -Luk

  • Help with searching database

    good morning.... could someone please help me with some coding for the following program... i need a text box that i can enter a customers name into that then will search the database and display the appropriate record.. i have written the following code for displaying the whole database but am having trouble with the text box and the searching of the database if anyone could point me to some helpfull links or anything else that would be great.. thanks..
    CODE SO FAR
    import java.sql.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class customer extends JFrame {
    private Connection connection;
    private JTable table;
    public customer()
    String url = "jdbc:odbc:Info";
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    connection = DriverManager.getConnection(url);
    catch (ClassNotFoundException cnfex){
    System.err.println(
    "Failed to load JDBC/ODBC driver.");
    cnfex.printStackTrace();
    System.exit(1);
    catch(SQLException sqlex){
    System.err.println("Unable to connect");
    sqlex.printStackTrace();
    getTable();
    setSize(450,200);
    show();
    private void getTable()
    Statement statement;
    ResultSet resultSet;
    try{
    String query = "Select * from custDetails";
    statement = connection.createStatement();
    resultSet = statement.executeQuery(query);
    displayresultSet(resultSet);
    statement.close();
    catch (SQLException sqlex){
    sqlex.printStackTrace();
    private void displayresultSet(ResultSet rs)
    throws SQLException
    boolean moreRecords = rs.next();
    if(!moreRecords){
    JOptionPane.showMessageDialog(this,
    "ResultSet contained no records");
    setTitle("No records to diaplay");
    return;
    setTitle("Customer Details Table from Customer");
    Vector columnHeads = new Vector();
    Vector rows = new Vector();
    try{
    ResultSetMetaData rsmd = rs.getMetaData();
    for(int i=1; i<=rsmd.getColumnCount();++i)
    columnHeads.addElement(rsmd.getColumnName(1));
    do{
    rows.addElement(getNextRow(rs, rsmd));
    }while (rs.next());
    table = new JTable(rows, columnHeads);
    JScrollPane scroller = new JScrollPane(table);
    getContentPane().add(
    scroller, BorderLayout.CENTER);
    validate();
    catch (SQLException sqlex){
    sqlex.printStackTrace();
    private Vector getNextRow(ResultSet rs,
    ResultSetMetaData rsmd)throws SQLException
    Vector currentRow = new Vector();
    for (int i=1; i<rsmd.getColumnCount();++i)
    switch(rsmd.getColumnType(i)){
    case Types.VARCHAR:
    currentRow.addElement(rs.getString(i));
    break;
    case Types.INTEGER:
    currentRow.addElement(
    new Long(rs.getLong(i)));
    break;
    default:
    System.out.println("Type was:"+
    rsmd.getColumnTypeName(i));
    return currentRow;
    public void shutDown()
    try{
    connection.close();
    catch (SQLException sqlex){
    System.err.println("Unable to disconnect");
    sqlex.printStackTrace();
    public static void main(String args[])
    final customer app = new customer();
    app.addWindowListener(
    new WindowAdapter(){
    public void windowClosing(WindowEvent e)
    app.shutDown();
    System.exit(0);
    }

    what is it that you actually want to do and what errors are u getting.
    cheers

  • Install Lightroom on a new computer - error message 2203.database Cannot open database file system error 2147287037. Can anyone help me with this?

    I am trying to install lightroom on a new computer and am getting error message 2203.database Cannot open database file system error 2147287037. Can anyone help me with this?

    This site has some info
    Error 2203 | Install | Creative Suite 4, 5, or 5.5 products or updates

  • Pl help,i need to validate the data in UI with my database-mysql

    Hello All,
    pl help.
    i'm a newbie with jdbc and mysql
    i'll tell my requirment -i need to check whether the email id in the UI matches with the email id in the db,if the email id exists,i need to find its eid(eid is t priamary key,auto_increment),i've set my email id to be unique key...
    so if the email id matches with the email id in the db,i should get the eid,other wise ,need to insert the email id in the user_table...pl help me with the code.i'm working using exadel and java...need t code 2 do this in java
    pl..pl

    The user comes to the UI and enters the email address and he hits on submit button .... (if i am right)
    it is a simple task of passing the value from jsp to action class and do those operation.
    Can u provide the code that u have wriiten... so that i can help u !!!!

  • Help with local database

    hye...
    i have some problem with mySQLite database.i have this code
    for my application (in attachment).when you clik the load button,it
    will load a text file on the desktop directory.when you click the
    filter function it will split the text file according to an array
    that i have specified.
    the text file consist of some data like this:66.249.71.54 - -
    [10/Oct/2008:03:31:01 +0800] "GET
    /mod.php?_call=Kalendar&day=2014-05-09 HTTP/1.1" 200
    66.249.71.54 - - [10/Oct/2008:03:31:57 +0800] "GET
    /KERIAN%20ENG/Towns/Main_Town.htm HTTP/1.0" 404
    i have created a database on my desktop using one tool that i
    have downloaded and point to that database.
    the probllem now is,i want to store the "200" only strings
    into the database.strings other than "200" will be not stored in
    the database.can u show me how to do this..
    i hope you can understand what i want...
    thanks for your time..

    ty for your reply
    my boss was dead set to make it work so we get down to it.. he says that this particular conf was now soppurted by oracle (dont think so), but well we modified the realese and now we have the vm server in the box with the vm manager and cam working..
    now i what to discover the server and throws this error
    OVMAPI_4010E Attempt to send command: discover_hardware to server: ovm1.grtn.cfe.gob.mx failed. OVMAPI_4004E Sync command failed on server: 10.0.2.210. Command: discover_hardware, Server error: org.apache.xmlrpc.XmlRpcException: <type 'exceptions.Exception'>:ERROR 0 @ 730 parse_multipath_conf_file() ERROR: /etc/multipath.conf could not be read !?! ERROR 1 @ 372 fill_blkDevInfo_scsi_device() blkdev 'dm-0' bad devLink [../devices/virtual] !?! Runtime errors occured [2] [Tue Jan 20 05:58:32 CST 2015] [Tue Jan 20 05:58:32 CST 2015]
    this is in the vm manager 3.3.1 console
    try to check the etc/multipath.conf and its not there and i have no idea why..

  • Help needed with secondary DPM backup of SQL databases

    I am having difficulties with some SQL databases not backing up to my secondary DPM server. a number of them are in "Replica is inconsistent" state and a few are in "Recovery Point creation failed" state though they are all OK on the
    primary DPM server.
    The primary server is getting lots of Event ID 4222 errors for MSDPM (DPM has run out of free recovery point space and will fail snapshots) even though the disk allocated looks healthy.
    On the primary, VSSADMIN LIST Writers says the DPM Writer is State: [7] Failed and in non-retryable error state but I can't work out why or how to fix it so far.
    There are no errors on the secondary other than the failure to backup some databases on the primary.
    I am using DPM 2012 R2 on Windows Server 2012 R2 for both primary and secondary.
    Any suggestions would be most welcome.
    Thanks
    Mark

    The errors I get on the secondary DPM server are:
    Those databases with Replica is Inconsistent
    Affected area: <database name>(SQL Server <servername>)
    Occurred since: 18/07/2014 16:38:46
    Description: The replica of SQL Server 2012 database <database name>(SQL Server <servername>) on <Primary DPM Server> is inconsistent with the protected data source. All protection activities for data source will fail until the replica is
    synchronized with consistency check. You can recover data from existing recovery points, but new recovery points cannot be created until the replica is consistent.
    For SharePoint farm, recovery points will continue getting created with the databases that are consistent. To backup inconsistent databases, run a consistency check on the farm. (ID 3106)
     Synchronization for replica of <database name>(SQL Server <servername> on <Primary DPM Server> failed because the replica is not in a valid state or is in an inactive state. (ID 30300 Details: VssError:The writer experienced a non-transient
    error.  If the backup process is retried,
    the error is likely to reoccur.
     (0x800423F4))
     More information
    Recommended action: Review the application event log on the protected computer for errors from the DPM writer service. Take appropriate action and retry the operation.
     Synchronize with consistency check.
     Run a synchronization job with consistency check...
    Resolution: To dismiss the alert, click below
     Inactivate
    For those databases with Recovery Point creation failed
    Affected area: <database name>(SQL Server <servername>)
    Occurred since: 18/07/2014 09:05:15
    Description: Recovery point creation jobs for SQL Server 2012 database <database name>(SQL Server <servername>) on <Primary DPM Server> have been failing. The number of failed recovery point creation jobs = 74.
     If the data source protected has some dependent data sources (like a SharePoint Farm), then click on the Error Details to view the list of dependent data sources for which recovery point creation failed. (ID 3114)
     Synchronization for replica of <Database name>(SQL Server) on <Primary DPM Server> failed because the replica is not in a valid state or is in an inactive state. (ID 30300 Details: VssError:The writer experienced a non-transient error. 
    If the backup process is retried,
    the error is likely to reoccur.
     (0x800423F4))
     More information
    Recommended action: Review the application event log on the protected computer for errors from the DPM writer service. Take appropriate action and retry the operation.
     Create a recovery point...
    Resolution: To dismiss the alert, click below
     Inactivate

  • Can someone pls help me with this code

    The method createScreen() creates the first screen wherein the user makes a selection if he wants all the data ,in a range or single data.The problem comes in when the user makes a selection of single.that then displays the singleScreen() method.Then the user has to input a key data like date or invoice no on the basis of which all the information for that set of data is selected.Now if the user inputs a wrong key that does not exist for the first time the program says invalid entry of data,after u click ok on the option pane it prompts him to enter the data again.But since then whenever the user inputs wrong data the program says wrong data but after displaying the singlescreen again does not wait for input from the user it again flashes the option pane with the invalid entry message.and this goes on doubling everytime the user inputs wrong data.the second wrong entry of data flashes the error message twice,the third wrong entry flashes the option pane message 4 times and so on.What actually happens is it does not wait at the singlescreen() for user to input data ,it straight goes into displaying the JOptionPane message for wrong data entry so we have to click the optiion pane twice,four times and so on.
    Can someone pls help me with this!!!!!!!!!
    import java.util.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.text.*;
    import java.util.*;
    public class MainMenu extends JFrame implements ActionListener,ItemListener{
    //class     
         FileReaderDemo1 fd=new FileReaderDemo1();
         FileReaderDemo1 fr;
         Swing1Win sw;
    //primary
         int monthkey=1,counter=0;
         boolean flag=false,splitflag=false;
         String selection,monthselection,dateselection="01",yearselection="00",s,searchcriteria="By Date",datekey,smonthkey,invoiceno;
    //arrays
         String singlesearcharray[];
         String[] monthlist={"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"};
         String[] datelist=new String[31];
         String[] yearlist=new String[100];
         String[] searchlist={"By Date","By Invoiceno"};
    //collection
         Hashtable allinvoicesdata=new Hashtable();
         Vector data=new Vector();
         Enumeration keydata;
    //components
         JButton next=new JButton("NEXT>>");
         JComboBox month,date,year,search;
         JLabel bydate,byinvno,trial;
         JTextField yeartext,invtext;
         JPanel panel1,panel2,panel3,panel4;
         JRadioButton single,range,all;
         ButtonGroup group;
         JButton select=new JButton("SELECT");
    //frame and layout declarations
         JFrame jf;
         Container con;
         GridBagLayout gridbag=new GridBagLayout();
         GridBagConstraints gc=new GridBagConstraints();
    //constructor
         MainMenu(){
              jf=new JFrame();
              con=getContentPane();
              con.setLayout(null);
              fr=new FileReaderDemo1();
              createScreen();
              setSize(500,250);
              setLocation(250,250);
              setVisible(true);
    //This is thefirst screen displayed
         public void createScreen(){
              group=new ButtonGroup();
              single=new JRadioButton("SINGLE");
              range=new JRadioButton("RANGE");
              all=new JRadioButton("ALL");
              search=new JComboBox(searchlist);
              group.add(single);
              group.add(range);
              group.add(all);
              single.setBounds(100,50,100,20);
              search.setBounds(200,50,100,20);
              range.setBounds(100,90,100,20);
              all.setBounds(100,130,100,20);
              select.setBounds(200,200,100,20);
              con.add(single);
              con.add(search);
              con.add(range);
              con.add(all);
              con.add(select);
              search.setEnabled(false);
              single.addItemListener(this);
              search.addActionListener(new MyActionListener());     
              range.addItemListener(this);
              all.addItemListener(this);
              select.addActionListener(this);
         public class MyActionListener implements ActionListener{
              public void actionPerformed(ActionEvent a){
                   JComboBox cb=(JComboBox)a.getSource();
                   if(a.getSource().equals(month))
                        monthkey=((cb.getSelectedIndex())+1);
                   if(a.getSource().equals(date)){
                        dateselection=(String)cb.getSelectedItem();
                   if(a.getSource().equals(year))
                        yearselection=(String)cb.getSelectedItem();
                   if(a.getSource().equals(search)){
                        searchcriteria=(String)cb.getSelectedItem();
         public void itemStateChanged(ItemEvent ie){
              if(ie.getItem()==single){
                   selection="single";     
                   search.setEnabled(true);
              else if (ie.getItem()==all){
                   selection="all";
                   search.setEnabled(false);
              else if (ie.getItem()==range){
                   search.setEnabled(false);
         public void actionPerformed(ActionEvent ae){          
              if(ae.getSource().equals(select))
                        if(selection.equals("single")){
                             singleScreen();
                        if(selection.equals("all"))
                             sw=new Swing1Win();
              if(ae.getSource().equals(next)){
                   if(monthkey<9)
                        smonthkey="0"+monthkey;
                   System.out.println(smonthkey+"/"+dateselection+"/"+yearselection+"it prints this");
                   allinvoicesdata=fr.read(searchcriteria);
                   if (searchcriteria.equals("By Date")){
                        System.out.println("it goes in this");
                        singleinvoice(smonthkey+"/"+dateselection+"/"+yearselection);
                   else if (searchcriteria.equals("By Invoiceno")){
                        invoiceno=invtext.getText();
                        singleinvoice(invoiceno);
                   if (flag == false){
                        System.out.println("flag is false");
                        singleScreen();
                   else{
                   System.out.println("its in here");
                   singlesearcharray=new String[data.size()];
                   data.copyInto(singlesearcharray);
                   sw=new Swing1Win(singlesearcharray);
         public void singleinvoice(String searchdata){
              keydata=allinvoicesdata.keys();
              while(keydata.hasMoreElements()){
                        s=(String)keydata.nextElement();
                        if(s.equals(searchdata)){
                             System.out.println(s);
                             flag=true;
                             break;
              if (flag==true){
                   System.out.println("vector found");
                   System.exit(0);
                   data= ((Vector)(allinvoicesdata.get(s)));
              else{
                   JOptionPane.showMessageDialog(jf,"Invalid entry of date : choose again");     
         public void singleScreen(){
              System.out.println("its at the start");
              con.removeAll();
              SwingUtilities.updateComponentTreeUI(con);
              con.setLayout(null);
              counter=0;
              panel2=new JPanel(gridbag);
              bydate=new JLabel("By Date : ");
              byinvno=new JLabel("By Invoice No : ");
              dateComboBox();
              invtext=new JTextField(6);
              gc.gridx=0;
              gc.gridy=0;
              gc.gridwidth=1;
              gridbag.setConstraints(month,gc);
              panel2.add(month);
              gc.gridx=1;
              gc.gridy=0;
              gridbag.setConstraints(date,gc);
              panel2.add(date);
              gc.gridx=2;
              gc.gridy=0;
              gc.gridwidth=1;
              gridbag.setConstraints(year,gc);
              panel2.add(year);
              bydate.setBounds(100,30,60,20);
              con.add(bydate);
              panel2.setBounds(170,30,200,30);
              con.add(panel2);
              byinvno.setBounds(100,70,100,20);
              invtext.setBounds(200,70,50,20);
              con.add(byinvno);
              con.add(invtext);
              next.setBounds(300,200,100,20);
              con.add(next);
              if (searchcriteria.equals("By Invoiceno")){
                   month.setEnabled(false);
                   date.setEnabled(false);
                   year.setEnabled(false);
              else if(searchcriteria.equals("By Date")){
                   byinvno.setEnabled(false);
                   invtext.setEnabled(false);
              monthkey=1;
              dateselection="01";
              yearselection="00";
              month.addActionListener(new MyActionListener());
              date.addActionListener(new MyActionListener());
              year.addActionListener(new MyActionListener());
              next.addActionListener(this);
              invtext.addKeyListener(new KeyAdapter(){
                   public void keyTyped(KeyEvent ke){
                        char c=ke.getKeyChar();
                        if ((c == KeyEvent.VK_BACK_SPACE) ||(c == KeyEvent.VK_DELETE)){
                             System.out.println(counter+"before");
                             counter--;               
                             System.out.println(counter+"after");
                        else
                             counter++;
                        if(counter>6){
                             System.out.println(counter);
                             counter--;
                             ke.consume();
                        else                    
                        if(!((Character.isDigit(c) || (c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)))){
                             getToolkit().beep();
                             counter--;     
                             JOptionPane.showMessageDialog(null,"please enter numerical value");
                             ke.consume();
              System.out.println("its at the end");
         public void dateComboBox(){          
              for (int counter=0,day=01;day<=31;counter++,day++)
                   if(day<=9)
                        datelist[counter]="0"+String.valueOf(day);
                   else
                        datelist[counter]=String.valueOf(day);
              for(int counter=0,yr=00;yr<=99;yr++,counter++)
                   if(yr<=9)
                        yearlist[counter]="0"+String.valueOf(yr);
                   else
                        yearlist[counter]=String.valueOf(yr);
              month=new JComboBox(monthlist);
              date=new JComboBox(datelist);
              year=new JComboBox(yearlist);
         public static void main(String[] args){
              MainMenu mm=new MainMenu();
         public class WindowHandler extends WindowAdapter{
              public void windowClosing(WindowEvent we){
                   jf.dispose();
                   System.exit(0);
    }     

    Hi,
    I had a similar problem with a message dialog. Don't know if it is a bug, I was in a hurry and had no time to search the bug database... I found a solution by using keyPressed() and keyReleased() instead of keyTyped():
       private boolean pressed = false;
       public void keyPressed(KeyEvent e) {
          pressed = true;
       public void keyReleased(KeyEvent e) {
          if (!pressed) {
             e.consume();
             return;
          // Here you can test whatever key you want
       //...I don't know if it will help you, but it worked for me.
    Regards.

  • Help needed with condition based joins in pl\sql

    Hi,
    I need to get data from 6 tables,
    Scenario 1 : I need to join 4 tables and join this result set to 5th table
    Scenario2: resultset of join of 4 tables to 6th table
    In this case how do i save the intermediate result set of 4 tables to use it in further joins.

    Welcome to the forum.
    Your question is broad.
    http://tkyte.blogspot.com/2005/06/how-to-ask-questions.html
    A more detailed example would help.
    Mention your database version as well and see the FAQ http://forums.oracle.com/forums/help.jspa when it comes to posting formatted examples using the {noformat}{noformat} tag
    However, i think using the WITH clause or a subquery ( a.k.a. inline view) is what you're looking for.
    Do some searches on http://asktom.oracle.com to find many examples.
    Also see:
    http://www.oracle-base.com/articles/misc/WithClause.php
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries007.htm#sthref3193                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • I'm using iphoto9.1.3 but now it doesn't seem to work, whenever I try to open it, it just shows loading, but never loads. Can anybody help me with this ?

    I'm using iphoto9.1.3 but now it doesn't seem to work, whenever I try to open it, it just shows loading, but never loads. Can anybody help me with this ?    

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

Maybe you are looking for