Strange problem with database log in...

Hi all,
I am doing a small interface which will contain the name and password textField for user to log in.
The strange thing is, the program doesn't go through the line
       rec = st.executeQuery( "SELECT * FROM tbladmin WHERE Name ='"+nField.getText()+"' AND Password = '"+pField.getText()+"'" );If I try to display some message before this line, it showing properly but if after that line, nothing happen.
import java.sql.*;
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
import java.util.*;
import java.text.*;
import java.awt.geom.*;
import java.awt.image.*;
import javax.swing.border.*;
import java.text.DecimalFormat.*;
public class admin extends JFrame implements ActionListener
    private Container cont;
    private GridBagLayout lay;
    private GridBagConstraints cons;
    private JLabel mainLabel = new JLabel(" Daddy Care Web Browser Administrator System ");
    private JLabel nLabel = new JLabel(" Name ");
    private JLabel pLabel = new JLabel(" Password ");
    private JTextField nField = new JTextField(20);
    private JTextField pField = new JTextField(20);
    private JButton vButtons[];
    private String vButtonnames[] = {" Log In ", "Exit"};
    private String data= "jdbc:odbc:admin";
    private String driver = "sun.jdbc.odbc.JdbcOdbcDriver";
    private Connection conn;
    private Statement st;
    private ResultSet rec;
    private PreparedStatement ps;
   GridBagLayout gb = new GridBagLayout();
   Panel Pane1 = new Panel(gb);
   boolean option1 = false;
    /** Creates a new instance of dmp */
    int i =0;
  public void actionPerformed(ActionEvent e)
        int i =0;
        if(e.getSource() == vButtons[0])
            try{
            ps = conn.prepareStatement(" SELECT * FROM tbladmin  ");
           // st = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
            rec = st.executeQuery( "SELECT * FROM tbladmin WHERE Name ='"+nField.getText()+"' AND Password = '"+pField.getText()+"'" );
            boolean more = rec.next();
            if(!more)
                JOptionPane.showMessageDialog(null,"wrong ler....");
                else
                JOptionPane.showMessageDialog(null,"wahaha !!!");
           // dispose();
            catch(SQLException ex)
         if(e.getSource()== vButtons[1])
            System.exit(0);
    public admin ()
        super("Daddy Care Website Filter");
        setSize(500,200);
        int i;
        cont = getContentPane();
        lay = new GridBagLayout();
        cont.setLayout(lay);
        try
             Class.forName(driver);
       catch(ClassNotFoundException c)
           { System.err.print("ClassNotFoundException: ");System.err.println(c.getMessage());}     
       catch (Exception s)
           {  s.printStackTrace();  } 
      /* Open Connection */  
       try
            conn = DriverManager.getConnection(data,"","");
            st = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
            rec = null;
       catch(SQLException ex)
                   System.err.println("SQLException: " + ex.getMessage());
               if (conn != null)
                    try
                         System.err.print("Transaction is being ");
                         System.err.println("rolled back");
                         conn.rollback();
                                catch(SQLException excep)
                         System.err.print("SQLException: ");
                         System.err.println(excep.getMessage());
        cons = new GridBagConstraints();
        vButtons = new JButton[vButtonnames.length];
        for( i=0; i<vButtonnames.length;i++ )
             vButtons= new JButton(vButtonnames[i]);
vButtons[i].addActionListener(this);
cons.weightx = 5;
cons.weighty = 1;
cons.gridwidth = GridBagConstraints.REMAINDER;
addComponent(mainLabel);
cons.gridwidth = GridBagConstraints.EAST;
addComponent(nLabel);
cons.gridwidth = GridBagConstraints.REMAINDER;
addComponent(nField);
cons.gridwidth = GridBagConstraints.EAST;
addComponent(pLabel);
cons.gridwidth = GridBagConstraints.REMAINDER;
addComponent(pField);
cons.gridwidth = GridBagConstraints.REMAINDER;
addComponent(vButtons[0]);
cons.gridwidth = GridBagConstraints.REMAINDER;
addComponent(vButtons[1]);
setSize(300,200);
setVisible(true);
private void addComponent(Component component)
lay.setConstraints(component, cons);
cont.add(component);
public static void main(String args[])
admin a = new admin();
a.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
The name of the adatabase and the table for it is ' admin ' and that are only 2 field in the table "Name" and Password".
Can somebody help me in this? THANKS !!!

#As long as you put in statements like
catch(SQLException ex)
                { };you don't deserve any help. Sorry.

Similar Messages

  • Strange problem with Database LInk

    Hi Everyone,
    I have strange problem with Database Link in Oracle 11g Express Edition;
    There are two computers: computer-server and computer-client. Tnsnames.ora are the same on both computers ie.
    CT =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = krzysztof)(PORT = 1521))
    (CONNECT_DATA = (SERVICE_NAME = XE)
    I created database link :
    Create database link zdalny
    Connect to <user_id> identified by <password>
    using ‘CT’;
    Client can’t connect with server when I am using above command. But when I change “using” for using ‘krzysztof:1521’ or using ‘krzysztof’ or using ‘server IP:1521’ – everything is ok.
    Why I am asking. Because in all materials which I am reading about Oracle command with using ‘CT’ should be working correct. But there is not. Do you know, why?
    Thanks in advance and apologize for my English.
    Rgds
    Krzysztof

    Krzysztof Szymaniak wrote:
    Thanks for all replies.
    Below is server's tnsnames.ora
    CT =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = krzysztof)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    SQL Error: ORA-12154: TNS:could not resolve the connect identifier specified
    12154. 00000 - "TNS:could not resolve the connect identifier specifie
    Rgds
    Krzysztof
    PS. I tried with using 'XE' - not working.Assuming that is the correct tnsnames, of course XE is not working. You don't have a tnsnames entry for 'XE'.
    You need to be aware that when using a dblink, the client is the db in which the link is defined, not the desktop from which you connect to that database.
    I think you need to start here:
    http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/
    http://edstevensdba.wordpress.com/2011/02/09/sqlnet_overview/ (Help! I can’t connect to my database )
    http://edstevensdba.wordpress.com/2011/02/16/sqlnet_client_cfg/ (Help! I can’t connect to my database (part duex) )
    The fact that your client (db link) is a database doesn't change anything taught in the above.

  • Strange problem with my build JAR

    Hiii everybody... I'm having a strange problem with my build (JAR file)... when I work with the Eclipse and I click in the table that returns the clients stored in my PostGre database it works fine, but when I build my application and it generates my JAR file and I open it and click in the same table to return the objects that I have.. it does not appears anymore.. just show when I work with eclipse... and the database is the same for both.
    I already checked the database path in my properties file... and the application recognize the database because I can login and there isn't any runtime exception...
    In that application I work with Hibernate and Spring... for me it is very strange because the application works fine when I run by eclipse... but does not return the database data when I click on my Jar file to open the application..
    Someone can help me with that?
    I dont know if the problem is in the Spring, Hibernate, Libraries...
    thanks in advance...

    So what's the error then? Are there any error messages? Have you checked the console? Or are you just clicking on the jar and you wouldn't even see the errors if there are any?
    What do the logs say?
    You're not giving a lot to work on here.

  • [Solved] Strange problem with my '/home/evert/Music' folder

    Good evening everybody,
    I'm having since a few weeks some very strange problems with one directory on my hard disk: '/home/evert/Music/'.
    The problem is that this directory excists, with all it's subfolders. But i can't see a single file (mostly mp3's) in that folder or subfolders.
    Some more background information to make sure i'm not doing something wrong :
    http://pastebin.be/4419 : the log file of a 'mpd --create-db' command. This clearly shows that mpd fills his database with the music. And even more, i'm able to play all that music.
    evert@localhost ~/Music $ du --max-depth=1 -h -c | tail -n 1
    15G total
    So this folder really excists and is filled with a lot of music files normally .
    evert@localhost ~/Music/Metallica/loaded $ ls -a
    Strange ? In this folder really was music acording to the mpd --create-db log file ?!
    drwxr-xr-x 161 evert users 8192 2007-08-10 17:57 Music
    As user i'm having all rights to this folder, so that isn't the fault.
    Even when trying to see the files, neither konq in su mode or MC works.
    Anybody who knows something more about this problem or could help me a bith further pls ?  I'm running XFS as filesystem on this partition.
    Thanks in advance,
    Evert
    Last edited by evert_ (2007-08-13 19:23:36)

    MrWeatherbee wrote:
    shining wrote:You don't have anything in ~/Music/Metallica/loaded but you have stuff in ~/Music/Music/Metallica/loaded
    It's really an awful mess, I would suggest you clean your music folders.
    Shall he clean his room, too?
    If his home is as messy as his $HOME, then yes, totally.

  • Strange Problems With Display and Permissions Since 10.5.1 update.

    Since I've done the 10.5.1 update I have been having a strange problem with my desktop and dock displays. On my desktop I have these strange lines that appear any time I log in or open any application, the lines never go away and change locations on the screen once I open an application or move a window. My dock has the reflective shelf for about half of it, the rest is a dull grey. I've also had problems with verifying and repairing my permissions. I can never actually complete either permissions task. I've used some third party apps, they always fail as well. The only time I can actually repair my permissions is by booting in to single user mode and doing a fsck -f command. When I boot back in to Leopard and try to use the Disk Utility to repair, it continues to fail.
    I'm not sure if the video problem I am having stems from a permissions issue or possibly a corrupt video driver. Either way, I've done a lot research and haven't found anyone with the same problems I have been having so I thought I would give these forums a shot.
    I am using a PowerMac G4 Quicksilver with dual 800Mhz, 1.5gb RAM, and a GeForce4 Ti 4600 128mb video card.
    Here is a screen shot of the line and dock problem.
    Here is a screen shot of my "About This Mac.
    If anyone could lend some light on this issue, I would greatly appreciate it.
    Thanks
    Jeff

    you can pile it on this: http://discussions.apple.com/thread.jspa?threadID=1246649&tstart=0
    btw - no solution yet.

  • Strange problem with Adobe Acrobat X (crash without a trace)

    Hi,
    I have a strange problem with Adobe Acrobat. It happens totally randomly, it leaves no signs in system logs.
    What is happening: during my work Adobe Acrobat sudennly crashes. After a crash I cannot run it again - system seems to do something for a second, but then nothing happends. When i look into taks manager - there are no processes of Acrobat.exe. It just doesn't want to run. What I need to do is to reinstall whole Adobe Acrobat - which requires restart.
    I've already tried to restart system after crash, it doesn't help - reinstall is required.
    Sometimes everyting is fine for a 3 months, sometimes crash happens a week after the previous one. It also happens in very different situations (somtimes  while opening a file, sometimes when doing something simple, sometimes in more complex tasks).
    Has anyone encountered a similar problem?
    Acrobat version: 10.1.1
    System info: Windows 7 64 bit

    Hi Kelvin,
    Please let me know what OS version you are using.
    The error also shows OS requirements not met.
    Futher please try the steps below :
    > Enable the hidden Admin Account on Windows 7 ( Ref :  http://www.howtogeek.com/howto/windows-vista/enable-the-hidden-administrator-account-on-wi ndows-vista/ )
    > Disable all Non-Microsoft Startup Services. (Ref : http://helpx.adobe.com/x-productkb/global/disable-startup-items-services-windows.html )
    > Disable all the Antivirus softwares like CA, Norton,Mc Afee etc. temporarily from the computer.
    Reboot and try installing in the new enabled Admin user account and check.
    Please refer the Kb Doc : http://helpx.adobe.com/creative-suite/kb/error-exit-6-exit-7.html.
    Also see Troubleshoot with install logs | CS5, CS5.5, CS6 - http://helpx.adobe.com/creative-suite/kb/troubleshoot-install-logs-cs5-cs5.html for information on how to review your installation logs
    Regards,
    Rave

  • Strange problem with ACLs

    Hi,
    I have just migrated an oracle database from 11.1.0.7 on Win Server 2003 to 11.2 on Linux 64 bit. I am having a strange problem with ACLs - I can create the ACL but when I perform either of the following two commands:
    SELECT * FROM DBA_NETWORK_ACLS
    or
    SELECT * FROM NET$_ACL
    I get no rows returned. The ACL exists somehow because if I try and create it again I get the error that it exists. Has anyone got any advice here? Something is out of sync and I need to know how to fix it up.
    Thanks
    Adam

    BEGIN
    DBMS_NETWORK_ACL_ADMIN.CREATE_ACL (
    acl => 'email_server_acl.xml',
    description => 'Network connection Email Server',
    principal => 'MAIL',
    is_grant => TRUE,
    privilege => 'connect');
    END;
    PL/SQL procedure successfully completed.
    select * from DBA_NETWORK_ACLS;
    (no rows)
    BEGIN
    DBMS_NETWORK_ACL_ADMIN.CREATE_ACL (
    acl => 'email_server_acl.xml',
    description => 'Network connection Email Server',
    principal => 'MAIL',
    is_grant => TRUE,
    privilege => 'connect');
    END;
    ORA-31003: Parent /sys/acls/ already contains child entry email_server_acl.xml
    ORA-06512: at "SYS.DBMS_NETWORK_ACL_ADMIN", line 252
    ORA-06512: at line 2
    Edited by: Adam J. Sawyer on 15/04/2011 17:08

  • Strange problem with desktop

    Hi, I have a very strange problem with desktops and dashboards something else. For example, when I am on desktop 2 and i go to desktop 1, when I click with the mouse on it, it goes again to desktop 2. or when I am on desktop 1 and I go to ddashboard, it returns again to desktop 1 when i click to something in the dashboard.
    but, if i am on desktop 3, and i go to desktop 1 throguh desktop 2, there is no problem. the same if i go from desktop 2 to dashboard.
    I hope i've been clear enough to let you understand this... explanation =P
    Anyone can help?

    My system has started "freezing". Actually, usually when I'm browsing the net, Chromium stops loading pages. Conky stops updating, and usually I can't switch to another programs. I can't start xkill from menu, menu opens but nothing starts. If I run "ls" etc in Terminal, nothing happens
    I can however control+alt+F1 to CLI, but if I try to login nothing happens.If doesn't help even if I kill X (I started it with startx). And if I don't kill X, I can't go back from CLI with control+alt+F7, there's just a black screen.
    I'm using Nvidia drivers also, and XFCE4. This started happening some time ago, I think I was using Gnome2 back then. And I have updated my system, and this has happened at least with 3 kernel versions. There's nothing on logs. Well, actually, there's "TCP: Possible SYN flooding on port 6881. Sending cookies" errors on everything.log. But those don't happen when system freezes. And sometimes Chromium stops loading pages but other programs don't freeze, I think it's a problem with cache or something.
    Not really sure if this everything happens because of Chromium. I think I'm gonna switch back to Firefox and see what happens. Usually I'm running Chromium, Opera (use it just for a couple of pages), couple of Terminals and Kaffeine.

  • Strange problem with reminders when waking iMac

    I'm having a strange problem with reminders in Mountain Lion, and I thought someone might be able to help. If I have a reminder set, and it goes off when my iMac is asleep, after waking the iMac I can't dismiss the reminder. I can click on "Close" or "Snooze" once, and there is the puff of smoke like it has been dismissed, but the notice is still on the screen (even in the Dashboard view), and hover over it only gives the spinning beachball and I can't access notifications with the two finger swipe. So far, restarting my iMac is the only solution I have found to this situation.
    Is anyone else having this happen? Is there an easy solution? Thanks!

    user11000236 wrote:
    Thanks for the info.
    How does Oracle/SQLPLUS allows any username or password to log in to DB with SYSDBA Privillages? What is the concept behind this.?
    This is explainted in the above mentioned link:
    Operating system authentication takes precedence over password file authentication. If you meet the requirements for operating system authentication, then even if you use a password file, you will be authenticated by operating system authentication.

  • Strange Problem with Mail & Address Book

    Hi,
    I'm having a strange problem with Mail & Address Book.
    When I go to compose a new message from Mail and hit the Address button (to show my email addresses), it won't launch the contacts window!
    I get this log from console;
    2007-10-15 22:55:59.079 Mail[410] * -[NSCFArray objectAtIndex:]: index (0) beyond bounds (0)
    If I try to launch the Address Book from my Applications folder, it won't open, and it gives me this log from console;
    2007-10-15 22:57:57.348 Address Book[417] * -[NSKeyedUnarchiver initForReadingWithData:]: data is NULL
    Oct 15 22:57:57 PB-G4 /Applications/Address Book.app/Contents/MacOS/Address Book: CGImageSourceCreateWithData data parameter is nil\n
    2007-10-15 22:57:57.350 Address Book[417] Don't know about packed image EditLeftCapStd
    2007-10-15 22:57:57.350 Address Book[417] Exception raised during posting of notification. Ignored. exception: * -[NSCFArray addObject:]: attempt to insert nil
    If I quit Address Book, i'll get this from console;
    2007-10-15 22:58:37.892 Address Book[417] -[ABAddressBook setDefaultCountryCode:] called with a unknown country code 'us'
    I tried deleting the preferences, re-installing Address Book, also tried creating a new user, again no luck!
    Can somebody help!!!
    Please?!

    Hi dp13.
    Do you have any Address Book plug-ins or system utilities that could interfere with Address Book? In the Finder, go to each of the following folders (if they exist). What do you see there?
    /Library/Address Book Plug-Ins/
    ~/Library/Address Book Plug-Ins/
    To make accurately reporting this information easier, you may open /Applications/Utilities/Terminal, type the following command (you can just copy it here and paste it in Terminal), and press <Return>. You can then copy the output of that command from Terminal and paste it in your reply to this post:
    ls -1 /Library/Address\ Book\ Plug-Ins ~/Library/Address\ Book\ Plug-Ins
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder. You can easily locate any of the folders referred to in this post by copying the folder path here, doing Go > Go to Folder in the Finder, and pasting the folder path there.
    <hr>
    Did you also reinstall the appropriate Combo Update after reinstalling Address Book?
    Quit all the applications and verify/repair the startup disk (not just permissions), as described here:
    The Repair functions of Disk Utility: what's it all about?
    After having fixed all the filesystem issues, if any, reinstall the Combo Update for the type of computer and the version of Mac OS X you’re using, unless this is the version of Mac OS X that came with the computer:
    About the Mac OS X 10.4.10 Combo Update
    Mac OS X 10.4.10 Combo Update for PowerPC
    Mac OS X 10.4.10 Combo Update for Intel
    After installing the Combo Update, the computer may restart twice and the first restart may take several minutes. This is normal.
    Take a look at the following articles for guidelines on how to properly install system updates:
    Troubleshooting installation and software updates
    Installing software updates
    Basically, you should verify/repair the startup disk and back up before installing the update, no applications should be running while installing it, and you may experience unexpected results if you have third-party system software modifications (not normal applications) installed.

  • Strange problem with purple-remote

    Hi, I experience a strange problem with purple-remote (program which allow to control Pidgin via D-Bus) :
    To get the current status message, you have to type
    $ purple-remote getstatusmessage
    This works, but when I type
    $ echo $(purple-remote getstatusmessage)
    this fails with the error
    Traceback (most recent call last):
    File "/usr/bin/purple-remote", line 238, in <module>
    print output
    UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 12: ordinal not in range(128)
    Why?
    How can this program work in the first case but not in the second?
    Thank you
    Edit: BTW, is there a workaround to put the output of `purple-remote getstatusmessage' in a variable? $(), redirections and piping doesn't work.
    Fractal
    Last edited by Fractal (2010-04-04 12:09:56)

    Hi Andyh,
    Welcome to the forum.  How annoying does that sound, if I had to get up every time I wanted to change channel or volume I would crack up.
    Drop me an email to [email protected], please include your BT account details and I will see what can be done to help.
    Cheers
    Sean
    BTCare Community Manager
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • Strange Problem With Extra Spaces

    Hello,
    My development staff is experiencing a very strange problem with our JSP pages which display the values from a JDBC result set. We have two environments here: development and production. We have been creating pages in development which work out fine in our development environment. But when we move the page into production, each value which results from the ResultSet getString() method is having multiple blank spaces appended to the end of the value. So, for example, a 5 digit zip code field is really showing up with a length of 8 or 9 because there are extra spaces added to the end of the value.
    We are able to work around this problem by using the trim() method, but this is getting quite tedious to do to every single page in the site. It is very annoying because the problem does not exist in the development environment.
    So you figure there must be a difference in our development and production environments. But there really isn't. Here is the details for both environments:
    OS: Windows NT 4.0
    Web Server: Apache with Tomcat setup as a plugin
    Database: Sybase ASA 6.0.3
    JDK: 1.3
    Apache and Tomcat were installed from the same download on both servers. Sybase was installed from the same CD on both servers - and the JDBC Driver (SybDriver) was copied from one server to the next.
    Sorry for the long explanation - but does anyone have any idea what could be occurring? Why are the extra spaces being appended to the production pages and not the development pages?
    As always, thanks in advance for any suggestions!
    -- Chris

    Hello Paul,
    Thank you for taking the time to analyze this case.
    The data in the system comes from two different sources. The first source is a nightly feed from a legacy system. The second source is user input via the JSP application. The records that were inserted from the nightly feed have an accurate length() value (meaning there is no untrimmed spaces trailing along.) But the values coming in from the application have extra spaces appended to them. In the development environment, however, both sources provide properly trimmed data.
    If I enter an 8 character last name into the web form in the production app, the value which ends up in the database upon submission will have 2 to 3 extra spaces. I know that this sounds strange - and believe me, it is boggling everyone here. I suspect this problem has to do with the Tomcat installation - even though it was installed identically in each server.
    I think we are just going to have live with using the trim() for every database submission. As always, thank you for the help, and all ideas are always welcome.
    -- Chris

  • Strange problem with Domain Values

    Dear All,
      I encounter one strange problem with Domain Fixed Values.
    Background:
       We have a custom domain ( ZXREF2) created for custom data element(ZXREF2) which has replaced standard dataelement in BSEG for field XREF2. This domain has 12 Fixed values. The idea was to have F4 help for field "Reference Key2" in FBL5N/FBL01 tcodes. It is working fine with these 12 Fixed value, means, on F4 we could see all these 12 values and when selecting a line from F4 the entry got thru the screen validation ( plz note hat this validation is like checking the mandatory value so this is done even before PAI).
    Problem:
      The requirement was to add a new line to F4 values( tecnically, 13th record in domain ZXREF2). We added this line to domain and moved to Quality system. Its working fine in both Dev and Qality, but the strange problem occured after moving and testing in Production.
      In production, we could see all 13 lines in F4 help. <b>BUT</b>, after selecting the new one( 13th one), and after the value appears on screen field, when Enter is pressed, it gives error message "Enter Valid value".
       This error message also comes when we enter any value which is not there in F4. That means, system is able to recognize the new value in F4, but falied to validate that.
      We thought that, this might be the problem with Buffer, and request Client to re-start the system. Even after system restart, it still gives the same error message.
    Please note that, the error message is triggered even before PAI of the screen called. So noway( I already tried system debugging) we can debug this error message to findout the rootcause.
    Any quick help would be highly appriciated.
    Thanks and Regards,
    Prasad.

    Hello Max,
      I guess DB Utility ( SE14 ) is to be run only when there is a change at structure level, to make Runtime and Database objects in sync. Here, we just added a new line to existing domain, and this added a new row to the Database table DD07T/DD07L.
      Could you please expalin it more clearly if your view is different that what I just described. 
    Prasad.

  • Strange problem with jpcap library.

    Hello everone;)
    I have a very strange problem with jpcap. I have ubuntu 8.10, libpcap installed by apt (manually upgraded to 0,9,8) and jpcap 0.7 (installed from deb package).
    My code is:
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package agh;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import jpcap.*;
    import jpcap.packet.Packet;
    * @author iceman
    public class Main
         * @param args the command line arguments
        public static void main(String[] args)
            try
                Tcpdump interfejsy = new Tcpdump();
            catch (Exception ex)
                Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
    //        agh_MainFrame ramka = new agh_MainFrame();
    //        ramka.setVisible(true);
        // TODO code application logic here
    class Tcpdump implements PacketReceiver
        public void receivePacket(Packet packet)
            System.out.println(packet);
        public Tcpdump() throws Exception
            System.out.println("wszedlem do wykazu interfejsow");
            NetworkInterface[] devices = JpcapCaptor.getDeviceList();
            if (devices.length ==0)
               System.out.println("no devices");
            for (int i = 0; i < devices.length; i++)
                System.out.println(i + " :" + devices.name + "(" + devices[i].description + ")");
    System.out.println(" data link:" + devices[i].datalink_name + "(" + devices[i].datalink_description + ")");
    System.out.print(" MAC address:");
    for (byte b : devices[i].mac_address)
    System.out.print(Integer.toHexString(b & 0xff) + ":");
    System.out.println();
    for (NetworkInterfaceAddress a : devices[i].addresses)
    System.out.println(" address:" + a.address + " " + a.subnet + " " + a.broadcast);
    When i start this simple code it isn't working correctly. On the output i have only "no devices". JpcapCaptor doesn't see any mine network interfaces. On windows this code works correctly.
    Anyone has any idea  what is wrong?
    Thanks,
    iiceberg                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi, guys,
    I also have a similar problem but in Windows. I've been using a W2008 Server for a short time. For what I've seen and have been told, it works like a Vista. I've wrote a program which uses jpcap and winpcap and, first of all, gets the device list.
    Well, if I boot my computer and log on with my usual account, which in theory is an administrator, gets 0 devices when I run the program.
    Then, if I log on with the actual Administrator account i works perfectly.
    And, if after logging and running the program with the Administrator account (NOT just logging on) I log on with my usual account, it works too.
    It's like the Adm account has some kind of "top" permission that doesn't go away at logoff. I tried that because I had some other problems accessing the DVD-ROM for writing from my usual account.
    I think that I doesn't happen in WXP, but I haven't tested that last problem, yet.
    Any ideas??
    Thank you.

  • Strange problem with Istant DB

    Hello,
    i have a strange problem with idb and classloader... if i try to connect to my db using a servlet, i get a ClassNotFoundException, but if i try to connect to it normally, it's all ok...
    C:\jwsdp\webapps\ROOT\prova\DB>java DataBase
    Enhydra InstantDB - Version 3.26
    The Initial Developer of the Original Code is Lutris Technologies Inc.
    Portions created by Lutris are Copyright (C) 1997-2001 Lutris Technologies, Inc.
    All Rights Reserved.
    Database movies is shutting down...
    Database movies shutdown complete.
    What's the problem??? why
    Class.forName("org.enhydra.instantdb.jdbc.idbDriver");
    in a servlet application catch a ClassNotFoundException???
    this is my classpath:
    %JAXP_HOME%\lib\jaxp-api.jar;
    %JAXB_LIBS%\jaxb-api.jar;
    %JAXB_LIBS%\jaxb-ri.jar;
    %JAXB_LIBS%\jaxb-xjc.jar;
    %JAXB_LIBS%\jaxb-libs.jar;
    %JWSDP_HOME%\common\lib\catalina-ant.jar;
    %JWSDP_HOME\common\lib\servlet.jar;
    C:\idb\Classes;
    C:\idb\Classes\idb.jar;
    C:\idb\Classes\idbexmpl.jar;
    C:\idb\Classes\jta-spec1_0_1.jar;
    C:\j2sdk\lib;
    C:\jwsdp\jaxb-1.0\lib;
    C:\jwsdp\jaxb-1.0;
    C:\jwsdp\jaxb-1.0\lib\jaxb-api.jar;
    C:\jwsdp\jaxb-1.0\lib\jaxb-libs.jar;
    C:\jwsdp\jaxb-1.0\lib\jaxb-ri.jar;
    C:\jwsdp\jaxb-1.0\lib\jaxb-xjc.jar;
    Thanks, Marco

    There should be a xml configuration file for tomcat, and it should be possible to state additional classpaths there. But I'd suggest to use the pre-configured classpaths. In which directory does your servlet class reside, or where is your document root for the web application of this servlet?
    Regards

Maybe you are looking for

  • Port Forwarding and Internet Sharing

    Hey all, I have a wireless network set up through a Time Capsule. My iBook is connected to this network via Airport. In addition, I have a computer with no wireless connected to my laptop via Ethernet. I have my System Preferences set up to Share Int

  • Problem with BADI BADI_HU_DIALOG.

    I want to  display some customer fields in the screen 'Addit. Data' in  the Handling Units (transaction vl02n/vl03n). Therefore I use the BADI 'BADI_HU_DIALOG', method DEFINITION_SUBSCREEN. I need the subscreen in the details, so I use the flag 'IF_D

  • Group and channelname in legend

    To have the channelname in the legend is easy I just add @CN(#)@ but is it possible to have the groupname aswell?? Solved! Go to Solution.

  • Quick question about repeating frames

    Hello, I just wonder if I have a three frames long movieclip and I want a script on the second frame that tells it to begin from frame 1 again so it keeps replaying from 1 to 2 all the time. But I'm able get to frame 3 with gotoAndPlay using a key or

  • Share "selection only"

    Here's what I'd like to do: I've imported an hour long vcr tape and then went ahead and dragged it into the Project as the whole thing will be used, just with chapter breaks and transitions. But, I'd like to upload 30 second clips from the various Ch