Problem setting up model WRT54G

I am having difficulty in setting up my Wireless -G Broadband router model #WRT54G.  I Have Comcast High-Speed Cable Internet.  My internet connection times out after a few minutes and my connection is lost after a successful configuration of the router.

Try MAC address cloning, and see if this corrects your problem.

Similar Messages

  • Major problems setting up a WRT54G as it keeps asking me for a Passphrase i do not know...

    During the course of setting up a WRT54G, it is now asking me for a Passphrase before it will connect wireless to my notebook....  In other words, my notebook detected it and wants a Passphrase to allow the connection. It is like 16 characters long... I have no idea of what it could be. Is there any way to reset everything and start from scratch.
    Also.... the pack in CD refused to reconize my two different computers Internet configurations.... One has XP, the other has Vista.
    There is also a password box (which i never set a password to) poping up when i try to got to http://192.168.1.1
    Message Edited by   on 07-28-2007 04:42 PM

    Well, I have a couple of suggestions for solving your password issue:
    A)with out reseting
    1) if you have an ethernet cable connected to you nic in your laptop,
    2) type in your router address in your window
    3) login as the user:admin, password; admin to your router
    4) go to wireless security pick a pass phrase you want to use as your encrypted code that you will use for your laptops wireless connection, click generate.(You should get 4 varaitions of it use one, make sure you pick 64 bit or 128 bit encryption most likely the 128.CTRL-C the chosen encryption.
    5) Reconnect wirelessly to your router, Ctrl-v in the passphrase box and login.
    B)If nothin of that works reset your router and follow the steps again.

  • Problems setting up a WRT54G router with Vista

    My husband upgraded to Windows Vista Home Basic over the weekend (we don't have the newest version! omg!angst!woe!). Today, I got a call that our DSL was turned on, I set up the modem, got the internet working, and attempted to set up the wireless router.
    I have used the setup cd, the EasyLink program, and the directions to manually set up the router. I can get the router linked up properly, I can even log into the DSL modem through the router. The problem is that I can't get any of these setup programs to recognize the router. Even putting in http://192.168.1.1 brings up a "page cannot be loaded" error in both Firefox 2.0 and IE (however, when I remove the router, I can see the DSL modem fine with it). Is there some other way to get the wireless router set up, or do I need to wait for one of the two computers with XP to arrive (yay for moving with the military) to set up the router?

    Hi,
    I too am having problems connecting the WRT54GS to my vista enabled pc. I have installed the software but since connecting everything my internet access is now diabolically slow. This is on the main wired machine, not wirelessly. The router is obvioulsy doing something inbetween (possibly the firewall) but this has made the speeds almost unbearable, negating the object of the new pc !!
    Is there some settings I should eb checking ?
    Many Thanks

  • Trouble setting up my WRT54GS

    I've been having lots of problems setting up my Wireless Router Model #  WRT54GS. First of all I followed the steps here:
     http://linksys.custhelp.com/cgi-bin/linksys.cfg/php/enduser/std_adp.php?p_faqid=3686
    I got to  the part where I was told to Access the Web-Based Setup Page here:
     http://linksys.custhelp.com/cgi-bin/linksys.cfg/php/enduser/std_adp.php?p_faqid=3676
    I attempted to enter the router's IP address using the default "192.168.1.1" but I had no luck; only a Page not found message.  Afterwards I attempted to reset the router by holding the Reset button for 30 seconds (  I actually tried holding it longer on a 2nd attempt cause I noticed no changes in the behavior of the lights). After repeated attempts at resetting it to the default, I could still not access the Web Base Setup Page using the default address. I then attempted to check the router's IP address using the following instructions:
     http://linksys.custhelp.com/cgi-bin/linksys.cfg/php/enduser/std_adp.php?p_faqid=3997
    I completed the step of Checking if the Computer is Set to DHCP exactly as I was instructed but I could not complete the step "Checking the Router's IP Address." After typing "ipconfig/all" and pushing enter in the MS DOS prompt, I discovered I did not have a Default Gateway address. So I then followed the instructions here:
    http://linksys.custhelp.com/cgi-bin/linksys.cfg/php/enduser/std_adp.php?p_faqid=4736
    After running the "ipconfig/release" and then running "ipconfig/renew" I received an Error Message that said "An error occured while renewing interface Local Area Connection : unable to contact your DHCP server. Request has timed out.
    I want to reiterate that I checked, double and then triple checked to make sure that I followed the steps in the Checking if the Computer is Set Up to DHCP section correctly. All the right boxes are checked. There was no where else to go with the help from there so I came to the forums.  Please help. I would really like to get my wireless connection working in my home. 
    Thank you,
     CWood834 

    Your WRT54GS should work with your SB5101 modem when the WRT54GS is reset to factory defaults, however, in some cases, you might also need to "clone" the MAC address of your computer into your WRT54GS.  (Note:  If you clone the MAC address of your computer, be sure to use the same computer that provides a working Internet connection when wired directly to the SB5101.)
    To fix your system, please do the following:
    First, reset your router to factory defaults, use the following procedure:
    1) Power down all computers, the router, and the modem, and unplug them from the wall.
    2) Disconnect all wires from the router.
    3) Power up the router and allow it to fully boot (1-2 minutes).
    4) Press and hold the reset button for 30 seconds, then release it, then let the router reset and reboot (2-3 minutes).
    5) Power down the router.
    6) Connect one computer by wire to port 1 on the router (NOT to the internet port).
    7) Power up the router and allow it to fully boot (1-2 minutes).
    8) Power up the computer (if the computer has a wireless card, make sure it is off).
    9) Try to ping the router. To do this, click the "Start" button > All Programs > Accessories > Command Prompt. A black DOS box will appear. Enter the following: "ping 192.168.1.1" (no quotes), and hit the Enter key. You will see 3 or 4 lines that start either with "Reply from ... " or "Request timed out." If you see "Reply from ...", your computer has found your router.
    10) Open your browser and point it to 192.168.1.1. This will take you to your router's login page. Leave the user name blank, and in the password field, enter "admin" (with no quotes). This will take you to your router setup page. Note the version number of your firmware (usually listed near upper right corner of screen). Exit your browser.
    If you get this far without problems, then power down your entire network.  Leave your computer wired to the WRT54GS.   Next, using an ethernet cable, connect the ethernet port of your SB5101 to the Internet port of the WRT54GS.  Do not connect anything to the USB port of the SB5101.  Power up your modem and allow it to fully boot (1-5 minutes).  Power up the WRT54GS and allow it to fully boot (1-2 minutes).  Power up your computer.  Try to get on the Internet.  If this does not work, temporarily turn off your computer software firewall, and try again.  If you still have trouble, power down your entire network again.  Temporarily disconnect the SB5101 from the WRT54GS.  Login to the WRT54GS and clone the MAC address of your computer into the router.  Exit your browser and power down your entire network.  Reconnect the SB5101 to the WRT54GS.  Power up your network and try again to connect to the Internet.  It should work.
    If you cannot get "Reply from ..." in step 9 above, your router is likely dead. Report back with this problem
    If you get a reply in step 9, but cannot complete step 10, then either your router is dead or the firmware is corrupt. Report back with this problem.
    If you need additional help, please state the results of steps 9 and 10. Also, if you get any error messages, copy them exactly and report back.
    Please let me know how things turn out for you.
    Message Edited by toomanydonuts on 07-25-2009 01:56 AM

  • Model WRT54GS Wired Connection

    Model WRT54GS but i have my xbox 360 connected to it by a ethernet cable. i also set the port range and set a IP manually to the 360. I'm still getting strict Nat. Also, i have DSL Internet and i set the port range and firewall to the 360 IP on the DSL Modem. Wen I made the port range settings it was saying open Nat,A Day later it goes back to strict. i rechecked the port range settings and they are still set. I also have a PS3 connected wireless to the router, i set the port range for it as well. I've had no problems with the ps3 only the 360. Made sure IP are different. Help?

    Ya i forgot to mention I put the DMZ to the PS3 and it makes it Type 2 NAT but wen i take it off the PS3 it goes to Type 3(type 2-router connection open NAT Type 3-Router Connection Strict NAT). But when i put it to the 360 it still says Strict NAT. I have the IP addresses= PS3(192.168.1.15) 360(192.168.1.115). After reading your post I updated the Firmware but has not fixed problem yet
    Message Edited by JBrody89 on 02-02-2008 11:53 AM

  • Re: [iPlanet-JATO] Experiencing problem while executing model.

    Hi Todd,
    Thanks a lot for your input!
    In the case , I found that "TO_CHAR(PLAN_DT, 'MM/DD/YYYY')" is alaised as a
    column name in the resultset. So I am using this as a column in Jato
    Descriptor for Plan_Dt. Now it is working fine.
    Thanks and Regards,
    Santa.
    ----- Original Message -----
    From: Todd Fast <toddwork@c...>
    Sent: Thursday, July 26, 2001 9:50 AM
    Subject: Re: [iPlanet-JATO] Experiencing problem while executing model.
    Santa--
    I am experiencing a problem while executing a bounded model. I am usingQueryModelBase. Whenever the following query gets executed inonBeforeModel
    execute of TiledView, it throws an exception describing "PLAN_DT not found
    in ResultSet". If you execute this query on the SQL prompt then we getrows
    of data. Please could you tell us how the mapping between model and
    resultset works ? And what changes do we have to make to execute thisquery.
    >>
    SELECT PART_NM,NEWTXTDOLL
    TO_CHAR(PLAN_DT, 'MM/DD/YYYY'),
    FROM cpsselect
    WHERE CHG_DT >= TO_DATE('2001-06-17', 'YYYY-MM-DD')The mapping of result set to model is done via JDBC, using the columnnames
    you provide in your model's column descriptors. It sounds as if you are
    providing the column name "PLAN_DT" in a descriptor, and when the model
    tries to look up that column in the result set, there is no such columnand
    the operation fails.
    In order to debug this, you should try running your query with a JDBC
    connection, not SQL*Plus or your command-line SQL tool. What you need to
    find out is how the expresion "TO_CHAR(PLAN_DT, 'MM/DD/YYYY')" is aliasedas
    a column name in the resut set. The easiest way to do this is to write a
    simple class that does nothing but use your JDBC driver to connect the
    database and execute this query. After execution, use theResultSetMetaData
    information to find out the column names for the result set. Then, use
    these column names in your JATO column descriptors.
    Another Problem:We are not getting the values for NEWTXTDOLL column whenwe try to display it in a Tiled View.
    I'm sorry, this isn't enough information for me to offer any suggestions.
    Using the technique above, determine which columns are coming back in the
    result set, and make sure your display fields in the TiledView are boundto
    those column names. The problem could be something as simple as a typo in
    the field's bound name, or something more complex like the column in the
    result set being named something you don't expect.
    Another approach might be to alias the columns yourself using the "AS
    <alias>" expression, and assign them names that you choose instead ofusing
    the names assigned by the database or JDBC driver.
    Todd
    [email protected]
    The Information contained and transmitted by this E-MAIL is proprietary to
    Wipro Limited and is intended for use only by the individual or entity to
    which
    it is addressed, and may contain information that is privileged, confidential
    or
    exempt from disclosure under applicable law. If this is a forwarded message,
    the content of this E-MAIL may not have been sent with the authority of the
    Company. If you are not the intended recipient, an agent of the intended
    recipient or a person responsible for delivering the information to the named
    recipient, you are notified that any use, distribution, transmission,
    printing,
    copying or dissemination of this information in any way or in any manner is
    strictly prohibited. If you have received this communication in error, please
    delete this mail & notify us immediately at mailadmin@w...
    [Non-text portions of this message have been removed]

    Hi Todd,
    Thanks a lot for your input!
    In the case , I found that "TO_CHAR(PLAN_DT, 'MM/DD/YYYY')" is alaised as a
    column name in the resultset. So I am using this as a column in Jato
    Descriptor for Plan_Dt. Now it is working fine.
    Thanks and Regards,
    Santa.
    ----- Original Message -----
    From: Todd Fast <toddwork@c...>
    Sent: Thursday, July 26, 2001 9:50 AM
    Subject: Re: [iPlanet-JATO] Experiencing problem while executing model.
    Santa--
    I am experiencing a problem while executing a bounded model. I am usingQueryModelBase. Whenever the following query gets executed inonBeforeModel
    execute of TiledView, it throws an exception describing "PLAN_DT not found
    in ResultSet". If you execute this query on the SQL prompt then we getrows
    of data. Please could you tell us how the mapping between model and
    resultset works ? And what changes do we have to make to execute thisquery.
    >>
    SELECT PART_NM,NEWTXTDOLL
    TO_CHAR(PLAN_DT, 'MM/DD/YYYY'),
    FROM cpsselect
    WHERE CHG_DT >= TO_DATE('2001-06-17', 'YYYY-MM-DD')The mapping of result set to model is done via JDBC, using the columnnames
    you provide in your model's column descriptors. It sounds as if you are
    providing the column name "PLAN_DT" in a descriptor, and when the model
    tries to look up that column in the result set, there is no such columnand
    the operation fails.
    In order to debug this, you should try running your query with a JDBC
    connection, not SQL*Plus or your command-line SQL tool. What you need to
    find out is how the expresion "TO_CHAR(PLAN_DT, 'MM/DD/YYYY')" is aliasedas
    a column name in the resut set. The easiest way to do this is to write a
    simple class that does nothing but use your JDBC driver to connect the
    database and execute this query. After execution, use theResultSetMetaData
    information to find out the column names for the result set. Then, use
    these column names in your JATO column descriptors.
    Another Problem:We are not getting the values for NEWTXTDOLL column whenwe try to display it in a Tiled View.
    I'm sorry, this isn't enough information for me to offer any suggestions.
    Using the technique above, determine which columns are coming back in the
    result set, and make sure your display fields in the TiledView are boundto
    those column names. The problem could be something as simple as a typo in
    the field's bound name, or something more complex like the column in the
    result set being named something you don't expect.
    Another approach might be to alias the columns yourself using the "AS
    <alias>" expression, and assign them names that you choose instead ofusing
    the names assigned by the database or JDBC driver.
    Todd
    [email protected]
    The Information contained and transmitted by this E-MAIL is proprietary to
    Wipro Limited and is intended for use only by the individual or entity to
    which
    it is addressed, and may contain information that is privileged, confidential
    or
    exempt from disclosure under applicable law. If this is a forwarded message,
    the content of this E-MAIL may not have been sent with the authority of the
    Company. If you are not the intended recipient, an agent of the intended
    recipient or a person responsible for delivering the information to the named
    recipient, you are notified that any use, distribution, transmission,
    printing,
    copying or dissemination of this information in any way or in any manner is
    strictly prohibited. If you have received this communication in error, please
    delete this mail & notify us immediately at mailadmin@w...
    [Non-text portions of this message have been removed]

  • Problems setting up dual monitors

    I am having problems setting up dual monitors on a band new HP envy 700 using windows 8. I just bought this computer and bought DVI to via adapters to use. Everything is hooked up but nothing is happening on the 2nd monitor. Help!

    Jaimetech3, welcome to the forum.
    When requesting help you should always include the make/model (i.e. p6-xxxx) of the computer and/or monitor. This information is necessary for us to review the specifications of them.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • PROBLEMS SETTING UP EMAILS AS DEVICE REFUSES TO RECOGNISE PASSWORD AND/OR USER NAME

    PROBLEMS SETTING UP EMAILS AS DEVICE REFUSES TO RECOGNISE PASSWORD AND/OR USER NAME
    My 9800 ( I have 2 - one spare )  is driving me nuts- will not let me set up email accounts from my other Curve model.
    Repeatedly told that either user name or details are wrong, yet they are RIGHT on website.
    Exasperated 
    Help please??
    Fair winds and kind landfalls

    Thank you- I have read through that thread and can see some resonance with my issue.
    My AOL emails work VERY fast with BB, in fact almost simultaneously received on PC & Torch " ping ping!"
    This issue only raised its ugly head when I had 2 Torches replaced by my insurers. 
    Whilst the claim was in process I used a new Curve, loaded from backup on PC to keep emails going and of course phone & web facilities. ( I use the BB to power internet via bluetooth to my PC / laptop when living on a remote island with no phone lines or power supplies)  All was fine. Swapping email accounts took a few minutes with the usual password confirmations for each AOL screenname etc. 
    Then the new Torches came back from insurers, and I tried to swap devices. Phoning & texting is fine. Al data and contacts swap over fine.
    SETUP email accounts.............stymied every time. It says repeatedly that my user name/password is invalid etc etc etc
    Have tried security wipes. Have tried setting up new BB ID & passwords on PC website. All is OK until I try to setup emails on the Torches.  This has used up ridiculous amounts of time- all wasted.
    I love the BB phones and the fast email push......in fact I recently bought a new Sony Xperia Z1 but sent it back because of wifi coverage meant no emails on that superb phone for lots of the time.
    Good old BB I said..........I always get emails wherever I am. ( Rural Scotland has very patchy radio & wifi coverage)  
    Was about to purchase new Z10s just to get a bigger screen, but now I am averse to buying ANY BB phone again because this present mess means I may never get emails set up again.  How nuts is that?
    Many thanks for all help & suggestions..........boy do I need them!!
    Kind wishes from West of Scotland 
    Fair winds and kind landfalls

  • Wireless-G Model WRT54GS V7 Firmware 7.50.0 - easylink Advisor 1.5.1044

    I have a Wireless-G Model WRT54GS V7.50.0 Firmware for easylink Advisor 1.5.1044
    Connected to a highspeed connection, and then connected (Hardwired in port 1 of router) to a Dell system running XP SP3.
    I bought a new Laptop that is running Windows 7 and the laptop causes the connections to drop when it is powered on.
    Then the laptop is always dropping the connection and re-establishing the connection. Is this problem because of windows 7?
    If I do not bring the laptop up, i can run the desktop with no problem. Running WPA security mode.
    Thanks in advance for any help you can give me.
    John

    Is your Desktop computer is a Wired or Wireless? Are you facing the problem only on your Windows 7 Computer or on all the wireless computers?
    You can try to change the Wireless Settings on your Router and check if that makes any difference... 
    Login to the setup page of your Router and click on the Wireless tab.... and below change the Wireless Channel to 11-2.462GHz and click on Save settings.... Then click on the Sub tab "Advance Wireless Settings" and below Change the Beacon Interval to 50 .....Change the Fragmentation Threshold to 2304 Change the RTS Threshold to 2307 ....Click on "Save Settings"...
    Now see if you can locate your Wireless Network and attempt to connect... 

  • Hi, I have a wireless linksys router model WRT54G. what i...

    Hi, I have a wireless linksys router model WRT54G. what i want to do it´s configure a network in my home. I have 2 pc´s, a laptop an a desktop. what I should do to be able to share files,music,videos. between both computers? the laptop has Windows Vista, the desktop has Windows XP Professional. could you give me more details? step by step.   thank you really much.

    its really simple to set up a network, first make sure that all computers are in the same workgroup by right clicking on my computer, then properities, then computer name.
    there you can make the setting for the work group
    do not use the default one, create your own, do this for each computer.
    next thing is to choose any folder that you want to share and right click on it, select sharing, then check the two boxes to share this folder and the other one to allow others to make changes to this folder.
    doing this bypasses the trouble od setting up passwords for right now.
    you should not have the network up and running with folders being shared with all in that workgroup.
    you may want to check the manual for vesta as it may do things a bit differant that xp
    you could also run the create a network wizard in the xp system. 

  • Problem with distribution model receiver ports

    Hi,
    I am facing a problem with distribution model.
    I am using Distribution model for material classification data. I am sending my classification data using CLFMAS message type to one of the receiver. Again another person also sending classification data to another receiver.
    But both objects will run at different times.
    Problem is for every run and every change it is creating 2 idocs instead of 1 idoc.
    I am able to create an IDOC with my changes for classifications. But it is creating 2 idocu2019s instead of creating 1 idoc. Because of there is another distribution model with same message type with different receiver port has been configured. I.e. reason it is creating 2 idocu2019s and sending to both the revivers.
    When I run my changes It needs to create 1 idoc and send to my receiver port. If another person run his job it needs to create another idoc.
    So how will I filter distribution model based on receiver port? it needs to create only 1 IDOC ..

    Hi kotesh,
    A similar issue.
    check if this will help.
    Do the following:
    Go to TOOLS>ALE Development>IDoc Type Development> WE81 and create a new message type and give it a different name - say ORDERS2. Use WE82 to link it to an IDoc Type - say ORDERS05. So now you will have two message types linked to the same IDoc type. Each message type can now be referred in different logical systems without any clashes.
    Now you can use BD64 to build your model using message types ORDERS and ORDERS2 without getting the multiple recepient error message.
    Then use WE20 to set up each partner profile using your defined output conditions in message control to trigger the creation of the IDoc. Now you will beable to send the same Idoc type to different recepients.
    source:http://sap.ittoolbox.com/groups/technical-functional/sap-interfaces/sap-distribution-model-3008763
    Regards,
    SuryaD.

  • Problem setting up WDS with MSI RG54GS2 & Motorola WR850g

    Problem setting up WDS with WR850g & MSI RG54GS2
    Hi,
    I'm trying to bridge 2 routers: Motorola WR850g & MSI RG54GS2 .
    I set the MSI as the main router (it works better for me as a router than the Moto), and the Moto is the repeater. I have set it up exactly as the guide on Broadbandreports.com for the Motorola , and on Tom's Networking http://www.tomsnetworking.com/2004/04/14/how_to_wds_bridge/
    The Moto sees the MAC of the MSI (Status is UP), the MSI doesn't have a page that shows WDS MACs . I know the routers are connected because when I connect a laptop to the Moto wireless network, it gets an IP (and the DHCP on the Moto is disabled) and the default gateway of the connection is the IP of the main (MSI) router.
    The problem is I can't surf anywhere. I can't even ping the MSI router - which should be possible if the WDS works properly.The Moto Wireless Bridge Operation is set properly to Access Point/Wireless Bridge .
    Can anyone solve this?
    Thanks.

    David, welcome to the discussions.
    Are you refering to Airport Extreme Setup as the Extreme base.
    Or are you using a 3rd party Router as your primary Base, or the Express as the primary base.
    Read the supplied link, Not all 3rd party routers are WDS compatible.
    http://discussions.apple.com/thread.jspa?messageID=2785566
    Who is you Internet Service Provider?
    What brand and Model Modem did they furnish?
    Are you using Dial-Up...DSL...or Cable?
    http://docs.info.apple.com/article.html?artnum=303595
    See if there is any help from this link.
    http://discussions.apple.com/thread.jspa?messageID=607414
    Cheers Don

  • Mxmlc: Error: Problem finding external Model

    Hi,
    I am currently trying to compile a flex project with the
    mxmlc compiler. Unfortunately I always get this error message:
    Error: Problem finding external Model: config.xml
    It seems as if this resource cannot be found by the compiler.
    All source-paths and libs are are set as in the
    .actionScriptProperties file. Other resources such as style sheets
    can be found without any problem.
    Furthermore, when I write the xml model inline or if I
    provide the relative path inline the compiler understands that and
    does not show the error.
    <mx:Model id="config" source="config.xml"/> => does
    not work
    <mx:Model id="config" source="../config/config.xml"/>
    => works
    What can I do to tell the parser where the config.xml file is
    located?

    How can changing the project's properties affect asdoc.exe if I run it from the command line?
    I've tried running it from the bin folder and from the project's src folder always getting the same error.
    I went to 'Flex Build Path' in the project's properties window. It contains two tabs: 'Source path' and 'Library Path'. No 'Assets' tab.

  • Problems setting up username & password for SQL

    Due to the outstanding advice I recieved from this excellent forum, I have managed to overcome my first problem with declaring a new Class.
    This leads me to request help with my next biggest problem:
    Setting up a user GUI that takes a "username" & "password" that will be used to access a password protected database.
    I am a simple bloke, with simple thought processes, so please, go easy on me...
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.sql.*;
    public class DBQuery1 {
         String username = "" , password = "";
         public static void main(String[] arguments) {
              PassDB UPass = new PassDB();
              String data = "jdbc:odbc:JavaTestDataBase";
              try {
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   Connection conn = DriverManager.getConnection(data, "" + username, "" + password);
                   Statement st = conn.createStatement();
                   ResultSet rec = st.executeQuery(
                        "SELECT Title, ContactID, First, Last, Dear FROM Contacts "
                        + "WHERE (Title='Mr') ORDER BY ContactID");
              /*     ResultSet rec2 = st.executeQuery(
                        "SELECT Subject, ContactID FROM Calls "
                        + "WHERE (Subject Is Not Null) ORDER BY ContactID");
              System.out.println("\nFirst Name\tSurname\t\tNick Name\t\tSubject\n");
              while(rec.next()) {
                   System.out.println(rec.getString(3) + "\t\t" + rec.getString(4) + "\t\t" + rec.getString(5) /* + rec2.getString(1) */ );
              st.close();
              catch (SQLException s) {
                   System.out.println("SQL Error: " + s.toString() + " " + s.getErrorCode() + " " + s.getSQLState());
              catch (Exception e) {
                   System.out.println("Error: " + e.toString() + e.getMessage());
    class PassDB extends javax.swing.JFrame implements ActionListener {
         String username = "", password = "";
         JTextField uname = new JTextField(10);
         JTextField pword = new JTextField(10);
         // JPasswordField pword = new JTextField(10);
         PassDB() {
              super("duBe's database logon");
              setSize(220, 160);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              JPanel pane = new JPanel();
              JLabel unameLabel = new JLabel ("Username: ");
              JLabel pwordLabel = new JLabel ("Password: ");
              JButton submit = new JButton("OK");
              submit.addActionListener(this);
              pane.add(unameLabel);
              pane.add(uname);
              pane.add(pwordLabel);
              pane.add(pword);
              pane.add(submit);
              setContentPane(pane);
              setVisible(true);
         public void actionPerformed(ActionEvent evt) {
              PassDB clicked = (PassDB)evt.getSource();
              username = uname.getText();
              password = pword.getText();
    This code generates two errors, stating:
    C:\Java_progs>javac DBQuery1.java
    DBQuery1.java:14: non-static variable username cannot be referenced from a static context
    Connection conn = DriverManager.getConnection(data, "" +
    username, "" + password);
    ^
    DBQuery1.java:14: non-static variable password cannot be referenced from a static context
    Connection conn = DriverManager.getConnection(data, "" +
    username, "" + password);
                    ^
    2 errors*****************************
    The code works when I remove the reference to the variables "username" & "password" in Connection "conn" call & replace them with the actual username & password, but this is not exactly what I was after. I was hoping to make the program responsive to each individual user, not set in code.
    I also would like to make the program pause after the call in "main" to "PassDB" to wait for "PassDB" to exit before continuing.
    I would also like to make "PassDB" destroy itself after the "OK" button is pressed & the "username" & "password" set.
    If that isn't enough for you, I would really like the program to search 2 different database tables, return their values & compare them to be sure that they are the same.
    When I try & search 2 different tables, as in:
    ResultSet rec = st.executeQuery(
                        "SELECT Title, ContactID, First, Last, Dear FROM Contacts "
                        + "WHERE (Title='Mr') ORDER BY ContactID");
                   ResultSet rec2 = st.executeQuery(
                        "SELECT Subject, ContactID FROM Calls "
                        + "WHERE (Subject Is Not Null) ORDER BY ContactID")javac tells me that "ResultSet" is set to null 0
    As always, I am extremely appreciative of any assistance you are able to offer.
    Kind regards
    duBedat
    [email protected]

    This is where I'm at now:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.sql.*;
    public class DBQuery {
         static String username = "" ;
         static String password = "" ;
         public static void main(String[] arguments) {
         PassDB UPass = new PassDB();
         String data = "jdbc:odbc:JavaTestDataBase";
         try {
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              Connection conn = DriverManager.getConnection(data, "" + DBQuery.username, "" + DBQuery.password);
              Statement st = conn.createStatement();
              ResultSet rec = st.executeQuery(
              "SELECT Title, ContactID, First, Last, Dear FROM Contacts "
              + "WHERE (Title='Mr') ORDER BY ContactID");
              /*     ResultSet rec2 = st.executeQuery(
                   "SELECT Subject, ContactID FROM Calls "
                   + "WHERE (Subject Is Not Null) ORDER BY ContactID");
              System.out.println("\nFirst Name\tSurname\t\tNick Name\t\tSubject\n");
              while(rec.next()) {
                   System.out.println(rec.getString(3) + "\t\t" + rec.getString(4) + "\t\t" + rec.getString(5) /* + rec2.getString(1) */ );
              st.close();
         catch (SQLException s) {
              System.out.println("SQL Error: " + s.toString() + " " + s.getErrorCode() + " " + s.getSQLState());
         catch (Exception e) {
              System.out.println("Error: " + e.toString() + e.getMessage());
    class PassDB extends javax.swing.JFrame implements ActionListener {
         static boolean getOut = false;
         JTextField uname = new JTextField(10);
         JTextField pword = new JTextField(10);
         // JPasswordField pword = new JTextField(10);
         public PassDB() {
              super("duBe's database logon");
              setSize(220, 160);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              JPanel pane = new JPanel();          
              JLabel unameLabel = new JLabel ("Username: ");
              JLabel pwordLabel = new JLabel ("Password: ");
              JButton submit = new JButton("OK");
              submit.addActionListener(this);
              pane.add(unameLabel);
              pane.add(uname);
              pane.add(pwordLabel);
              pane.add(pword);
              pane.add(submit);
              setContentPane(pane);
              while(getOut == false)
                   setVisible(true);                         
         public void actionPerformed(ActionEvent evt) {
              PassDB clicked = (PassDB)evt.getSource();
              DBQuery.username = uname.getText();
              DBQuery.password = pword.getText();
              getOut = true;               
    }          Any advice is greatly appreciated
    duBe

  • Problems setting up an NFS server

    Hi everybody,
    I just completed my first arch install. :-)
    I have a desktop and a laptop, and I installed Arch on the desktop (the laptop runs Ubuntu 9.10). I had a few difficulties here and there, but I now have the system up and running, and I'm very happy.
    I have a problem setting up an NFS server. With Ubuntu everything was working, so I'm assuming that the Ubuntu machine (client) is set-up correctly. I'm trying to troubleshoot the arch box (server) now.
    I followed this wiki article: http://wiki.archlinux.org/index.php/Nfs
    Now, I have these problems:
    - when I start the daemons, I get:
    [root@myhost ~]# /etc/rc.d/rpcbind start
    :: Starting rpcbind [FAIL]
    [root@myhost ~]# /etc/rc.d/nfs-common start
    :: Starting rpc.statd daemon [FAIL]
    [root@myhost ~]# /etc/rc.d/nfs-server start
    :: Mounting nfsd filesystem [DONE]
    :: Exporting all directories [BUSY] exportfs: /etc/exports [3]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.1.1/24:/home".
    Assuming default behaviour ('no_subtree_check').
    NOTE: this default has changed since nfs-utils version 1.0.x
    [DONE]
    :: Starting rpc.nfsd daemon [FAIL]
    - If I mount the share on the client with "sudo mount 192.168.1.20:/home /media/desktop", IT IS mounted but I can't browse it because I have no privileges to access the home directory for the user.
    my /etc/exports looks like this:
    # /etc/exports: the access control list for filesystems which may be exported
    # to NFS clients. See exports(5).
    /home 192.168.1.1/24(rw,sync,all_squash,anonuid=99,anongid=99))
    /etc/conf.d/nfs-common.conf:
    # Parameters to be passed to nfs-common (nfs clients & server) init script.
    # If you do not set values for the NEED_ options, they will be attempted
    # autodetected; this should be sufficient for most people. Valid alternatives
    # for the NEED_ options are "yes" and "no".
    # Do you want to start the statd daemon? It is not needed for NFSv4.
    NEED_STATD=
    # Options to pass to rpc.statd.
    # See rpc.statd(8) for more details.
    # N.B. statd normally runs on both client and server, and run-time
    # options should be specified accordingly. Specifically, the Arch
    # NFS init scripts require the --no-notify flag on the server,
    # but not on the client e.g.
    # STATD_OPTS="--no-notify -p 32765 -o 32766" -> server
    # STATD_OPTS="-p 32765 -o 32766" -> client
    STATD_OPTS="--no-notify"
    # Options to pass to sm-notify
    # e.g. SMNOTIFY_OPTS="-p 32764"
    SMNOTIFY_OPTS=""
    # Do you want to start the idmapd daemon? It is only needed for NFSv4.
    NEED_IDMAPD=
    # Options to pass to rpc.idmapd.
    # See rpc.idmapd(8) for more details.
    IDMAPD_OPTS=
    # Do you want to start the gssd daemon? It is required for Kerberos mounts.
    NEED_GSSD=
    # Options to pass to rpc.gssd.
    # See rpc.gssd(8) for more details.
    GSSD_OPTS=
    # Where to mount rpc_pipefs filesystem; the default is "/var/lib/nfs/rpc_pipefs".
    PIPEFS_MOUNTPOINT=
    # Options used to mount rpc_pipefs filesystem; the default is "defaults".
    PIPEFS_MOUNTOPTS=
    /etc/hosts.allow:
    nfsd: 192.168.1.0/255.255.255.0
    rpcbind: 192.168.1.0/255.255.255.0
    mountd: 192.168.1.0/255.255.255.0
    Any help would be very appreciated!

    Thanks, I finally got it working.
    I realized that even though both machines had the same group, my Ubuntu machine (client) group has GID 1000, while the Arch one has GID 1001. I created a group that has GID 1001 on the client, and now everything is working.
    I'm wondering why my Arch username and group both have 1001 rather than 1000 (which I suppose would be the default number for the first user created).
    Anyway, thanks again for your inputs.

Maybe you are looking for

  • Why is synchronizing iTunes with apps no longer working?

    Ever since my last iPhone update, I have not been able to synchronize apps from iTunes to my iPhone 4.  I now have to buy and move my apps directly from my phone, not from iTunes.  Has anyone else had this problem or know how to solve it?

  • Is It Possible to Save a Soft-Proofed File?

    Let's assume that I have an image, foo.psd, open in PSCS4. I softproof the image for a particular paper and printer. When I hit Ctrl-Y, the image is shown in softproof mode, and the softproofing info is appended to the image name in the PSCS4 window.

  • Analysis of Emergency Purchases

    Hi all, we want to distinguish between emergency purchases and normal purchases. Please tell me that where in PR or PO , I can enter that this purchase is emergnecy purchase or normal purchase. I also want to make this field mandatory. I also want a

  • Auto Increment Columns Are Not Recognized

    Hi I am using postgre 8 and there are some auto incremented columns in some tables. The problem is when I create the DataProvider from a table or a view those columns are not recognized by the IDE. I realized this while running the generated SQL. Is

  • How to install flex 4 plugin on eclipse 3.4

    Hi guys, i need help from your end,  i installed flash builder 4 plugin on eclipse 3.4, but am not able to open new flex project, i dont no whats wrong in that, please help me out, give guidence how to install the things properly.. thanks advence, sa