Need help determining why 10.6.x clients take FOREVER to login to X Serve

Issue:
New MacBooks running of 10.6.x are taking a ridiculous amount of time to log in to network as clients.
FIle Server (location of Open Directory):
Xserve G5
2 x 2.3 GHz PowerPC G5
8 GB Memory
Mac OS X Server 10.5.8 (Build 9L34)
Client Computers:
17" Intel iMacs (mostly running TIger, starting to image with Leopard)
17" G5 iMacs (running Tiger)
20" Intel iMacs (all running 10.5.8)
MacBook unibodies (shipped with 10.6 and upgraded to 10.6.2)
Current situation:
1. Extreme lag time on Snow Leopard MacBook login for network clients—we are looking at well over 90 seconds. BUT, once logged in, the machines log out quickly with no issues.
2. Local accounts log in with no issue and shared computers/servers are showing up in the finder.
3. Used Migration Assistant on first new MacBook to "clone" current Applications and accounts from a 10.5.8 master computer and proceeded to update the unit to 10.6.2. Unboxed another new MacBook and did not use MA but instead set up the unit to the our network using Directory Utility. Both machines behave similarly when trying to log in using a client's account. The only difference I can tell is during the actual login box. The migrated MacBook switches from name/password to the "Logging In..." progress bar (which takes up to 2 minutes). The "factory" MacBook stays on the name/password login box with a carousel-ing progress circle to the right of the text boxes.
4. I've triple checked all the Network/Directory/Account settings on our master 10.5.8 machine (which accesses the network for all clients and run perfectly) vs. the two new MacBooks with 10.6.2—no differences. Maybe that is the problem.....
5. Unfortunately, we are using a jumble of OSs here. Tiger, Leopard, and now Snow Leopard. We manage accounts using WorkGroupManager (both from 10.5 and 10.4—probably not the best idea)
Questions:
Do Snow Leopard machines need folder relocation for things such as Directory?
Does our X Serve need to be altered in anyway?
Your expertise is needed....
Thank you in advance for any input

Past migrations can get pretty messy.
I'm sure the root of your problem lies in your ldapv3 settings; including contacts and searches
Revisit the directory settings, via system prefs--> accounts.
Look for older "migrated" setting that are no longer needed.
Perseverance brings good fortune.
You're welcome.

Similar Messages

  • Need help determining why my podcast has disappeared from the iTunes store.

    For a while, the last ten episodes or so were missing, but now the entire show is gone. The feed url is: www.warrenandbradley.com/feed/podcast
    The feed seems to be perfectly valid and work just fine. I can't think of anything I've changed, and have been submitting new episodes very regularly. Is there any way to determine why it's disappeared from iTunes?
    Any help would be greatly appreciated.

    bradavic wrote:
    If I am forced to submit it again, would this mean that I'd lose all my subscribers?
    So far you haven't lost any subscribers because your feed is still there - they read it directly and the Store is not involved. It's just that without the Store you aren't likely to get any new ones.
    If you can manage to resubmit it by changing the title but not the feed URL then it won't affect subscribers. However sometimes you need to change both (and it can help to change the contents of the 'link' tag) and of course if you change the URL your subscribers will lose contact with you.
    You can get round this by adding the 'itunes:new-feed-url' tag to the existing feed, redirecting to the new feed - this will seamlessly move subscribers to the new feed (provided of course that you have access to the feed to edit it). The details are given here:
    http://www.wilmut.webspace.virginmedia.com/notes/podcast.html#move
    (It refers to moving the Store to the new feed; of course this isn't relevant here, but it applies equally to subscribers.)

  • Need help determining why my nothing is showing up after setting up site to site vpn

    Ok, so I'm am trying to figure out why I can't get nothing to show up when I do sh crypto isakmp sa or sh crypto ipsec sa. I did the basic setup for a site to site vpn and I can ping across both networks just fine no problem. So when I ping from a pc in the 172.16.0.0 network to 192.168.0.0 network there is no problem at all because the pings are recieved just fine. But when I go to sh crypto isakmp sa, there is just nothing there and I can't for the life of me figure out why. I looked at my sh run for both routers and everything looks fine, but I guess I may be overlooking something. If someone could help me diagnose this problem I would truely appreciate.   I have attached my packet tracer file and both routers are using the password binary. I put the password on there for the sake of it and to have a more real feel.

    Here are the show runs for both routers
    Router Main A
    hostname RmainA
    ip dhcp pool ITS
    network 172.16.150.0 255.255.255.0
    default-router 172.16.150.1
    option 150 ip 172.16.150.1
    username ciscosdm privilege 15 password 0 ciscosdm
    crypto isakmp policy 2
    encr aes 128
    authentication pre-share
    group 2
    crypto isakmp key binary address 192.0.2.27
    crypto ipsec transform-set yasser esp-aes 128 esp-sha-hmac
    crypto map vader 100 ipsec-isakmp
    set peer 192.0.2.27
    set pfs group2
    set transform-set yasser
    match address S2S-VPN-TRAFFIC
    no ip domain-lookup
    spanning-tree mode pvst
    interface Loopback0
    ip address 172.16.95.100 255.255.255.255
    interface FastEthernet0/0
    ip address 192.0.2.25 255.255.255.248
    duplex auto
    speed auto
    crypto map vader
    interface FastEthernet0/0.1
    no ip address
    interface FastEthernet0/1
    description TRUNK TO MAIN SWITCH A
    no ip address
    duplex auto
    speed auto
    interface FastEthernet0/1.10
    encapsulation dot1Q 10
    ip address 172.16.10.1 255.255.255.240
    interface FastEthernet0/1.20
    encapsulation dot1Q 20
    ip address 172.16.20.1 255.255.255.0
    interface FastEthernet0/1.30
    encapsulation dot1Q 30
    ip address 172.16.30.1 255.255.255.0
    interface FastEthernet0/1.40
    encapsulation dot1Q 40
    ip address 172.16.40.1 255.255.255.0
    interface FastEthernet0/1.70
    encapsulation dot1Q 70
    ip address 172.16.70.1 255.255.255.0
    interface FastEthernet0/1.95
    encapsulation dot1Q 95
    ip address 172.16.95.1 255.255.255.240
    interface FastEthernet0/1.100
    encapsulation dot1Q 100
    ip address 172.16.100.1 255.255.255.0
    shutdown
    interface FastEthernet0/1.150
    encapsulation dot1Q 150
    ip address 172.16.150.1 255.255.255.0
    interface Serial0/0/0
    description TO BRANCH
    ip address 10.0.0.1 255.255.255.252
    clock rate 64000
    shutdown
    interface Serial0/0/1
    no ip address
    clock rate 125000
    shutdown
    interface Serial0/1/0
    no ip address
    clock rate 2000000
    shutdown
    interface Serial0/1/1
    no ip address
    clock rate 2000000
    shutdown
    interface FastEthernet1/0
    switchport mode access
    shutdown
    interface FastEthernet1/1
    switchport mode access
    shutdown
    interface FastEthernet1/2
    switchport mode access
    shutdown
    interface FastEthernet1/3
    switchport mode access
    shutdown
    interface FastEthernet1/4
    switchport mode access
    shutdown
    interface FastEthernet1/5
    switchport mode access
    shutdown
    interface FastEthernet1/6
    switchport mode access
    shutdown
    interface FastEthernet1/7
    switchport mode access
    shutdown
    interface FastEthernet1/8
    switchport mode access
    shutdown
    interface FastEthernet1/9
    switchport mode access
    shutdown
    interface FastEthernet1/10
    switchport mode access
    shutdown
    interface FastEthernet1/11
    switchport mode access
    shutdown
    interface FastEthernet1/12
    switchport mode access
    shutdown
    interface FastEthernet1/13
    switchport mode access
    shutdown
    interface FastEthernet1/14
    switchport mode access
    shutdown
    interface FastEthernet1/15
    switchport mode access
    shutdown
    interface Vlan1
    no ip address
    shutdown
    router ospf 1
    log-adjacency-changes
    network 10.0.0.0 0.0.0.3 area 0
    network 192.0.2.24 0.0.0.7 area 0
    network 172.16.0.0 0.0.0.255 area 1
    network 172.16.1.0 0.0.0.255 area 1
    network 172.16.10.0 0.0.0.255 area 1
    network 172.16.20.0 0.0.0.255 area 1
    network 172.16.30.0 0.0.0.255 area 1
    network 172.16.70.0 0.0.0.255 area 1
    network 172.16.95.1 0.0.0.0 area 1
    network 172.16.95.0 0.0.0.15 area 1
    network 172.16.100.0 0.0.0.3 area 1
    network 172.16.150.0 0.0.0.255 area 1
    network 0.0.0.0 255.255.255.255 area 1
    default-information originate
    ip classless
    ip default-network 10.0.0.0
    ip access-list extended S2S-VPN-TRAFFIC
    permit ip 172.16.0.0 0.0.0.255 192.168.0.0 0.0.0.255
    dial-peer voice 150 voip
    destination-pattern 20..
    session target ipv4:192.168.150.1
    telephony-service
    max-ephones 30
    max-dn 30
    ip source-address 172.16.150.1 port 2000
    auto assign 1 to 30
    ephone 1
    device-security-mode none
    mac-address 0014.6AAC.2355
    type 7960
    ephone 2
    device-security-mode none
    ephone 3
    device-security-mode none
    ephone 4
    device-security-mode none
    ephone 5
    device-security-mode none
    ephone 6
    device-security-mode none
    ephone 7
    device-security-mode none
    ephone 8
    device-security-mode none
    ephone 9
    device-security-mode none
    ephone 10
    device-security-mode none
    ephone 11
    device-security-mode none
    ephone 12
    device-security-mode none
    ephone 13
    device-security-mode none
    ephone 14
    device-security-mode none
    ephone 15
    device-security-mode none
    ephone 16
    device-security-mode none
    ephone 17
    device-security-mode none
    ephone 18
    device-security-mode none
    ephone 19
    device-security-mode none
    ephone 20
    device-security-mode none
    ephone 21
    device-security-mode none
    ephone 22
    device-security-mode none
    ephone 23
    device-security-mode none
    ephone 24
    device-security-mode none
    ephone 25
    device-security-mode none
    ephone 26
    device-security-mode none
    ephone 27
    device-security-mode none
    ephone 28
    device-security-mode none
    ephone 29
    device-security-mode none
    ephone 30
    device-security-mode none
    line con 0
    exec-timeout 90 0
    password binary
    logging synchronous
    login
    line vty 0 4
    password binary
    login local
    end

  • Need Help Determining Least Common Demoninator for Frame Rate, Codec, and Workflow

    I need help determining the best timeline setting and Compressor workflow to integrate footage with varying frame rates and codecs that I'm currently upres'ing for a multi-camera concert performance destined for HD broadcast output. I'm assuming the network needs 29.97.
    Thus far, I've been working with Apple ProRes Proxy files to create lo-res edits. Now, I've started the task of offlining and ingesting new, HD clips from the proxy references. The content originates from either Panasonic HVX200 or Panasonic GH1 cameras.
    Looking at the material, it appears the cameras were not shooting with the same settings and, somehow, a PAL GH1 got into the mix. Some of the performances have the PAL GH1 and other do not.
    Here's the breakdown of the varying sources. I got this info from the Log & Transfer columns.
    HVX Cameras
    Format: 1080p24
    Source Format: DVCPRO HD 1080i60
    Shooting Rate: 24
    Vid Rate: 29.97
    TC Format: Non-Drop
    GH1 NTSC
    Format: 1080i60
    Source Format: AVCHD 1080i60
    Shooting Rate: 30
    Video Rate: 29.97
    TC Format: Drop
    GH1 PAL
    Format: 1080i50
    Source Format: AVCHD 1080i50
    Shooting Rate: 25
    Video Rate: 25
    TC Format: Non-Drop
    ANOTHER GH1 NTSC
    Format: 1080p24
    Source Format: AVCHD 1080p24
    Shooting Rate: 24
    Video Rate: 23.98
    TC Format: Non-Drop

    Call the TV station/network and get their spec sheet first. You need to know more than frame rate.
    Once you have that, you can work backwards to arrive at a workflow.
    As a general priniciple, you'll get a more seamless translation of format when you add frames rather than removing them. (eg 24p to 27.97 rather than 29.97 to 24p)
    At least all the material starts out in the 1080 world.
    Do all your conversions before you start editing. (I'd use ProRes or ProRes LT for the editing codec).
    Budget a bunch of time to sync the material or figure out a quick cutting style that minimizes sync drift.
    What a nightmare.
    x

  • My email address is ***********, Apple ID I forgot my password, why not send links that Reset Pass on my email, I need help than why? Contact Us By Email me back with ***********, Thanks

    My email address is ***********, Apple ID I forgot my password, why not send links that Reset Pass on my email, I need help than why? Contact Us By Email me back with ***********, Thanks
    <E-mails Edited by Host>

    You are not addressing Apple here. This is a user-supported technical support forum. If you have tried to restore your Apple ID using iForgot, then try contacting iTunes Customer Service.

  • Hello everyone I need help! Why i cant Update to Mountain Lion if Im gonna try to update my Macbook Pro with Mac OS X 2.3 GHz Intel Core i5. It always says "Your Software is up to date" which is only Mac Os X ver. 10.7.5

    Hello everyone I need help! Why i cant Update to Mountain Lion if Im gonna try to update my Macbook Pro with Mac OS X 2.3 GHz Intel Core i5. It always says "Your Software is up to date" which is only Mac Os X ver. 10.7.5

    Not sure what exactly you did (or not), but it looks as if you should attempt doing it all again, only this time all right and by the book. Many millions have done so, and sure it'll work for you as well.
    If you've indeed purchased ML already, you'll find it exactly there in the App Store: under Purchases.

  • I need help with resetting my ichat. When i try to login now it wont let me... it says "AOL Instant Messenger password" and then "iChat can't log in to ... because your login ID or password is incorrect. How do I reset this if I cant log in?

    I need help with resetting my ichat. When i try to login now it wont let me... it says "AOL Instant Messenger password" and then "iChat can't log in to ... because your login ID or password is incorrect. How do I reset this if I cant log in? When I try to press online the same thing pops up and I have no way of logging in or asking for help.

    Hi,
    iChat (it would help to know which version) can accept Apple IDs as valid AIM Screen Names.
    However if you have iChat 5 or earlier you cannot use ones ending in @me.com or @icloud.com issued by iCloud. (they can be used in iChat 6 or Messages as these versions make a double login to AIM and Apple to allow the use of the password).
    In addition if you are using an Apple ID for an AIM Screen Name the password still needs to keep to the 16 character limit that AIM has.
    AN @mac.com name can be used on any version of iChat  (Until the 30th June 2014)
    As it does not need a double check with Apple you can use it to log in to the AIM Web pages
    Login here with an AIM Name registered at AIM or and @mac.com name and see if you get any suspended account messages.
    Sometimes account can be suspended. Usually because something has triggered the "Unusual Activity" item.
    About a year ago many @mac.com users that travelled out of their own country found themselves suspended when they got home.
    If the Name checks out of if an Apple ID the password in known to be 16 characters or Less then do this:-
    In Lion upwards open a Finder Window and use the Go Menu whilst holding down the ALT key.
    Select the Library that appears in the menu list.
    Navigate to Preferences.
    (If you have version earlier than Lion the just navigate to ~/Library/Preferences (that's the Library in you Home - Little House icon - folder)
    Fnd com.apple.ichat.aim.plist (even if you are using Messages)
    Drag the file to the Trash and Restart the app.
    7:39 pm      Thursday; May 29, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Dear apple management,  I have purchased I pad mini e few days ago. I need help as follows:  (1) Camera: i did take a few photos but something has gone wrong. As i press the camera icon, I get a blank dark black screen. What do you think has gone wrong ?

    Dear apple management, apple support communities
    I have purchased I pad mini e few days ago. I need help as follows:
    (1) Camera: i did take a few photos but something has gone wrong. As i press the camera icon, I get a blank dark black screen. What do you think has gone wrong ? HELP URGENTLY REQUIRED.
    (2) How do i sync my pc  with I pad mini?
    (3)i can read on i pad mini  file made in microsoft excel but all numbers are very different from the original document. What is the solutuon?
    Dr Uma S Nayak
    <Personal Information Edited by Host>

    You are talking to fellow users on these forums, not iTunes Support or Apple - I've asked the hosts to remove your phone number from your post.
    For the Camera app, try closing it via the taskbar and see if it works when you re-open the app : from the home screen (i.e. not with the Camera app 'open' on-screen) double-click the home button to bring up the taskbar at the bottom of the iPad's screen, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Camera app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't fix it then try a soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
    In terms of syncing, you will need iTunes on your computer - if you haven't already downloaded it then you can do so from here : http://www.apple.com/itunes/download/
    You can conncet the iPad to your computer and select it on the left-hand sidebar of your computer's iTunes (you can enable the sidebar on iTunes 11 on a PC via control-S), and use the tabs on the right-hand side of the iTunes screen to sycn your content to the iPad.
    Syncing music : http://support.apple.com/kb/HT1351
    Syncing apps : http://support.apple.com/kb/PH12315
    If you haven't yet synced your iPad to your computer you may also find this page useful : https://discussions.apple.com/docs/DOC-3141
    For the excel file, what app are you viewing/editing it in ? If the values are different then it may be that the app that you are using doesn't support all the formulas that are being used in the spreadsheet. Apps that 'support' excel documents include Apple's Numbers app, and from third-parties apps such as Documents To Go ('premium' version) and QuickOffice Pro HD.

  • Need Help!! Errors during Local Client Copy

    Doing a Local Client Copy and getting these error messages in the log:
    Table Name       Component          Package
    /1CN/CMFSAPH0FOR                    DDIC Error        (See SE14)
    /1CN/CMFSAPH1FDT                    DDIC Error        (See SE14)
    /1CN/CMFSAPH1FFX                    DDIC Error        (See SE14)
    /1CN/CMFSAPH2TGR                    DDIC Error        (See SE14)
    /1CN/CMFSAPH2TRM                    DDIC Error        (See SE14)
    /1CN/CMFSAPH3TCT                    DDIC Error        (See SE14)
    /1CN/CMFSAPH3TUS                    DDIC Error        (See SE14)
    /1CN/CMFSAPH4TFX                    DDIC Error        (See SE14)
    /1CN/CMFSAPH4TQU                    DDIC Error        (See SE14)
    Then I go to SE14 then put the name of the tables then click CHECK >> DATABASE OBJECT and then as the result I get:
    "Table is not created in the database"
    If I go down to the database level and look within the Oracle database dba_tables the tables and objects exists within the database but SAP is unable to recognize them.  All objects were imported with a Oracle Data Pump dump file and now I just need help in getting SAP to recognize the tables.
    Edited by: Adam Gendle on Feb 19, 2010 12:29 AM

    Hi,
    Its showing inconsistency between ABAP Dictionary and the database.
    Have you run Test-Run before performing actual client copy ?
    Please check the Consistency of affected Tables.
    SE11 -> Display Table -> Utilities -> Database Object -> Check
    (check DB Object as well as Run time Object)
    Please refer this [SAP Note 686357 - Table pool length incorrect after Unicode conversion|https://service.sap.com/sap/support/notes/686357] to get more information. The relevant solution is mentioned there if the pool tables having inconsistency with VARDATA field.
    Also refer SAP Note 1171306 - Error with pooled tables when copying a client.
    Regards,
    Bhavik G. Shroff

  • I need help diagnosing why my Macbook pro is crashing my internet?

    Hi, I need help diagnosing a problem with my macbook pro early 2011.  For the past two weeks all of a sudden my internet was crashing and really slow. Finally I was getting so fed up I called my internet provider and we ruled out that it isnt the cable modem or router.  When I turned my macbook off everything was working fine and all my tablets and apple TV was streaming fine with the speeds I pay for.  I've already went to the genius bar and they did a clean install of maverick.  After the clean install the internet worked for one day and the next day when I got home at night it stopped working. Went to the genius bar once more and took my router and the problem was encountering the same at the store we reseted the router and everything worked fine again.  When I got home I reseted the router setup up with new ssisd and same problem internet crashing. Finally I decided to make another account and the internet was working fine again. Before going to my second trip to the genius bar I made a second account which was working good with good internet speeds, but I still decided to go in cause I don't want to have to have multiple accounts since I'm the only user.  Right now the only way the internet isn't crashing is using another account rather than the administer account. Please help cause I've already went to the apple store twice and feel like I'm at the end of the road and never going to fix the problem

    When you next have the problem, note the exact time: hour, minute, second.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Scroll back in the log to the time you noted above. Select any messages timestamped from then until the end of the episode, or until they start to repeat, whichever comes first. Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Need help determining compiling error

    Good morning,
    I need help finding the cause of a compiling error I receive. I have reviewed my code numerous times without any luck. I hope you guys might see something I am not! The entire file exceeds the limit I can post, so I am attaching it in 2 posts. Sorry for the inconvenience. The error and my code are posted below. Thank you for your help!
    C:\StockTrackerDB.java:382: cannot find symbol
    symbol : method add(java.lang.Boolean)
    location: class java.util.ArrayList<java.lang.String>
                   aList.add(new Boolean(rs.getBoolean("admin")));
    ^
    1 error
    Tool completed with exit code 1
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    public class StockTrackerDB
         private Connection con = null;
         //Constructor; makes database connection
         public StockTrackerDB() throws ClassNotFoundException,SQLException
              if(con == null)
                   String url = "jdbc:odbc:StockTracker";
                   try
                        Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   catch(ClassNotFoundException ex)
                        throw new ClassNotFoundException(ex.getMessage() +
                                    "\nCannot locate sun.jdbc.odbc.JdbcOdbcDriver");
                   try
                        con = DriverManager.getConnection(url);
                   catch(SQLException ex)
                        throw new SQLException(ex.getMessage()+
                                    "\nCannot open database connection for "+url);
         // Close makes database connection; null reference to connection
         public void close() throws SQLException,IOException,ClassNotFoundException
              con.close();
              con = null;
         // Method to serialize object to byte array
         private byte[] serializeObj(Object obj) throws IOException
              ByteArrayOutputStream baOStream = new ByteArrayOutputStream();
              ObjectOutputStream objOStream = new ObjectOutputStream(baOStream);
              objOStream.writeObject(obj); // object must be Serializable
              objOStream.flush();
              objOStream.close();
              return baOStream.toByteArray(); // returns stream as byte array
         // Method to deserialize bytes from a byte array into an object
         private Object deserializeObj(byte[] buf) throws IOException, ClassNotFoundException
              Object obj = null;
              if(buf != null)
                   ObjectInputStream objIStream = new ObjectInputStream(new ByteArrayInputStream(buf));
                   obj = objIStream.readObject(); //IOException, ClassNotFoundException
              return obj;
         // Methods for adding a record to a table
         // add to the Stocks Table
         public void addStock(String stockSymbol, String stockDesc) throws SQLException, IOException, ClassNotFoundException
              Statement stmt = con.createStatement();
              stmt.executeUpdate("INSERT INTO Stocks VALUES ('"
                                    +stockSymbol+"'"
                                    +",'"+stockDesc+"')");
              stmt.close();
         // add to the Users table
         public boolean addUser(User user) throws SQLException,IOException,ClassNotFoundException
              boolean result = false;
              String dbUserID;
              String dbLastName;
              String dbFirstName;
              Password dbPswd;
              boolean isAdmin;
              dbUserID = user.getUserID();
              if(getUser(dbUserID) == null)
                   dbLastName = user.getLastName();
                   dbFirstName = user.getFirstName();
                   Password pswd = user.getPassword();
                   isAdmin = user.isAdmin();
                   PreparedStatement pStmt = con.prepareStatement("INSERT INTO Users VALUES (?,?,?,?,?)");
                   pStmt.setString(1, dbUserID);
                   pStmt.setString(2, dbLastName);
                   pStmt.setString(3, dbFirstName);
                   pStmt.setBytes(4, serializeObj(pswd));
                   pStmt.setBoolean(5, isAdmin);
                   pStmt.executeUpdate();
                   pStmt.close();
                   result = true;
              else
                   throw new IOException("User exists - cannot add.");
              return result;
         // add to the UserStocks table
         public void addUserStocks(String userID, String stockSymbol)
                        throws SQLException,IOException,ClassNotFoundException
              Statement stmt = con.createStatement();
              stmt.executeUpdate("INSERT INTO UserStocks VALUES ('"
                                    +userID+"'"
                                    +",'"+stockSymbol+"')");
              stmt.close();
         // Methods for updating a record in a table
         // updating the Users table
         public boolean updUser(User user) throws SQLException, IOException, ClassNotFoundException
              boolean result = false;
              String dbUserID;
              String dbLastName;
              String dbFirstName;
              Password dbPswd;
              boolean isAdmin;
              dbUserID = user.getUserID();
              if(getUser(dbUserID) != null)
                   dbLastName = user.getLastName();
                   dbFirstName = user.getFirstName();
                   Password pswd = user.getPassword();
                   isAdmin = user.isAdmin();
                   PreparedStatement pStmt = con.prepareStatement("UPDATE Users SET lastName = ?," + " firstName = ?, pswd = ?, admin = ? WHERE userID = ?");
                   pStmt.setString(1, dbLastName);
                   pStmt.setString(2, dbFirstName);
                   pStmt.setBytes(3, serializeObj(pswd));
                   pStmt.setBoolean(4, isAdmin);
                   pStmt.setString(5, dbUserID);
                   pStmt.executeUpdate();
                   pStmt.close();
                   result = true;
              else
                   throw new IOException("User does not exist - cannot update.");
              return result;
         }

         // Methods for deleting a record from a table
         // delete a record from the Stocks table
         private void delStock(String stockSymbol) throws SQLException,IOException,ClassNotFoundException
              Statement stmt = con.createStatement();
              stmt.executeUpdate("DELETE FROM Stocks WHERE "
                                    +"symbol = '"+stockSymbol+"'");
              stmt.close();
         // delete a record from the Users table
         public void delUser(User user) throws SQLException,IOException,ClassNotFoundException
              String dbUserID;
              String stockSymbol;
              Statement stmt = con.createStatement();
              try
                   con.setAutoCommit(false);
                   dbUserID = user.getUserID();
                   if(getUser(dbUserID) != null) // verify user exists in database
                        ResultSet rs1 = stmt.executeQuery("SELECT userID, symbol "
                                              +"FROM UserStocks WHERE userID = '"+dbUserID+"'");
                        while(rs1.next())
                             try
                                  stockSymbol = rs1.getString("symbol");
                                  delUserStocks(dbUserID, stockSymbol);
                             catch(SQLException ex)
                                  throw new SQLException("Deletion of user stock holding failed: " +ex.getMessage());
                        } // end of loop thru UserStocks
                        try
                        {  // holdings deleted, now delete user
                             stmt.executeUpdate("DELETE FROM Users WHERE "
                                              +"userID = '"+dbUserID+"'");
                        catch(SQLException ex)
                             throw new SQLException("User deletion failed: "+ex.getMessage());
                   else
                        throw new IOException("User not found in database - cannot delete.");
                   try
                        con.commit();
                   catch(SQLException ex)
                        throw new SQLException("Transaction commit failed: "+ex.getMessage());
              catch (SQLException ex)
                   try
                        con.rollback();
                   catch (SQLException sqx)
                        throw new SQLException("Transaction failed then rollback failed: " +sqx.getMessage());
                   // Transaction failed, was rolled back
                   throw new SQLException("Transaction failed; was rolled back: " +ex.getMessage());
              stmt.close();
         // delete a record from the UserStocks table
         public void delUserStocks(String userID, String stockSymbol) throws SQLException,IOException,ClassNotFoundException
              Statement stmt = con.createStatement();
              ResultSet rs;
              stmt.executeUpdate("DELETE FROM UserStocks WHERE "
                                    +"userID = '"+userID+"'"
                                    +"AND symbol = '"+stockSymbol+"'");
              rs = stmt.executeQuery("SELECT symbol FROM UserStocks "
                                         +"WHERE symbol = '"+stockSymbol+"'");
              if(!rs.next()) // no users have this stock
                   delStock(stockSymbol);
              stmt.close();
         // Methods for listing record data from a table
         // Ordered by:
         //          methods that obtain individual field(s),
         //          methods that obtain a complete record, and
         //          methods that obtain multiple records
         // Methods to access one or more individual fields
         // get a stock description from the Stocks table
         public String getStockDesc(String stockSymbol) throws SQLException, IOException, ClassNotFoundException
              Statement stmt = con.createStatement();
              String stockDesc = null;
              ResultSet rs = stmt.executeQuery("SELECT symbol, name FROM Stocks "
                                                      +"WHERE symbol = '"+stockSymbol+"'");
              if(rs.next())
                   stockDesc = rs.getString("name");
              rs.close();
              stmt.close();
              return stockDesc;
         // Methods to access a complete record
         // get User data from the Users table
         public User getUser(String userID) throws SQLException,IOException,ClassNotFoundException
              Statement stmt = con.createStatement();
              String dbUserID;
              String dbLastName;
              String dbFirstName;
              Password dbPswd;
              boolean isAdmin;
              byte[] buf = null;
              User user = null;
              ResultSet rs = stmt.executeQuery("SELECT * FROM Users WHERE userID = '" +userID+"'");
              if(rs.next())
                   dbUserID = rs.getString("userID");
                   dbLastName = rs.getString("lastName");
                   dbFirstName = rs.getString("firstName");
                   // Do NOT use with JDK 1.2.2 using JDBC-ODBC bridge as
                   // SQL NULL data value is not handled correctly.
                   buf = rs.getBytes("pswd");
                   dbPswd=(Password)deserializeObj(buf);
                   isAdmin = rs.getBoolean("admin");
                   user = new User(dbUserID,dbFirstName,dbLastName,dbPswd,isAdmin);
              rs.close();
              stmt.close();
              return user; // User object created for userID
         // Methods to access a list of records
         // get a list of selected fields for all records from the Users Table
         public ArrayList listUsers() throws SQLException,IOException,ClassNotFoundException
              ArrayList<String> aList = new ArrayList<String>();
              Statement stmt = con.createStatement();
              ResultSet rs = stmt.executeQuery("SELECT userID, firstName, lastName, admin "
                                                 +"FROM Users ORDER BY userID");
              while(rs.next())
                   aList.add(rs.getString("userID"));
                   aList.add(rs.getString("firstName"));
                   aList.add(rs.getString("lastName"));
                   aList.add(new Boolean(rs.getBoolean("admin")));
              rs.close();
              stmt.close();
              return aList;
         // get all fields in all records for a given user from the UserStocks table
         public ArrayList listUserStocks(String userID) throws SQLException, IOException, ClassNotFoundException
              ArrayList<String> aList = new ArrayList<String>();
              Statement stmt = con.createStatement();
              ResultSet rs = stmt.executeQuery("SELECT * FROM UserStocks "
                                                      +"WHERE userID = '"+userID+"' ORDER BY symbol");
              while(rs.next())
                   aList.add(rs.getString("symbol"));
              rs.close();
              stmt.close();
              return aList;
    }

  • I need help with Tiger 10.4.11 saving / deleting files on a Win 2003 Server

    Some of my Mac users are experiencing extremely slow file saves to my Windows Server 2003 server. It is not specific to file types. Illustrator, Quark all take forever and the file size is not the issue either. They are also having to force quit Finder after attempting to delete files from the Server.
    I have found that if they boot into Safe Boot they can delete the files without a problem. As soon as I do a normal login the problem returns.
    The problem seems to be specific to the machine. If user A logs on to her Mac she has problems deleting files from the server. If she logs into a Mac that isn't having problems (using her login) she doesn't have problems. If User B who has no problems on her Mac logs into User A's Mac then User B will have the same problems.
    In order to rebind the Mac to the Active Directory I had to remove the Mac from AD. So I don't think it's the Computer's SID. I even tried unbinding the Mac, changing it's name and then Binding it to AD. Same problems.
    I thought it was the Mac and just wasted a day wiping the Mac and reinstalling everything on it, but when I went to delete a file from the Server, finder locked up and I had to force quit finder.
    I even changed the IP Address of one of the Macs having problems, but that didn't work either.
    I've done a Permission repair as well with no change.
    Anyone help?

    OK, there was a System Events in the System Preferences>Accounts>Login Items, but after removing it and restarting I still had to force quit finder after attempting to delete some files off of the server.
    I do not have (or can't find) the /private/var/run/startupitems.
    The Library/StartupItems has 2 entries: AdobeVersionQueCS2 and IntegoCommon, both of which I removed the other day and tried to delete files after rebooting with the usual (not good) result.
    In the System/Library/StartupItems there are 16 items. I will list them as I am not sure what shouldn't be there. I believe that they should all be from Apple though:
    Apache
    AppleShare
    AuthServer
    CrashReporter
    Disks
    FibreChannel
    IFCStart
    IPServices
    Metadata
    NetworkTime
    NFS
    NIS
    PrintingServices
    RemoteDesktopAgent
    SNMP
    Thanks for your help so far.

  • Need help understanding why "1 is always equal to 1" is necessary in my Advanced Action

    I am using Captivate 7 and publishing as a SWF.
    I have an interaction that works, but there's one script that I use (which I found in a tutorial) that I don't understand the purpose of.
    The interaction is contained on a single slide where a user clicks two buttons in any order and a graphic appears after the second click. On each button I have a Conditional Advanced Action where I first check that it will always be true that "1 is equal to 1", then assign each variable with "1", then check that each variable was equal to 1 after which the graphic appears.
    The part that confuses me is checking if "1 is always equal to 1." Why is this script necessary in this case? Is it necessary because I'm including a Standard Advanced Action (assigning variables to "1") within the Conditional Advanced Action? Or is related to the fact that I'm doing everything on one slide (not using an On Enter slide event executing a Conditional Advanced Action)?
    Thanks.

    Perhaps it will help to think using different terms.
    If you need a script that performs a check against some condition, you need a Conditional Action. Maybe you need to show an image if button 1 has been clicked. And if button 2 has been clicked, you need to show a different image.
    Before checking to see which button has been pressed, you need to hide both images so that only the desired image is shown. So you need to perform the same action each time before checking some variable to take a specific action.
    This is where the "If 1=1" would come from.
    Each time the script is run, hide both images. Since the check to see if 1=1 will ALWAYS evaluate as true, the "ELSE" part will never be reached. So you would always perform the same actions just as a Standard Action would do.
    Perhaps if you posted some screen captures of your scripts, we might better explain it.
    Cheers... Rick

  • Need help: Using JMS to callback a client.

    Hi everyone,
    I'm having a very frustrating problem. I'm just started to use JMS to overcome callback
    problem with EJBs. I simply want my EJB to send something (pub/sub) to my client so it
    can update some display. I first instantiate my Client and TopicConnection etc. etc. then
    create the EJB, invoke it and the EJB sends some TextMessage back. However, the TextMessage
    never seems to arrive at my Client. The TextListener never seems to deliver.
    Here's the snippet:
    EJB:
    private void createPublisher() {
    try {
    Context ctx = new InitialContext();
    System.out.println("Server looking up JMS Service");
    TopicConnectionFactory conFtry = (TopicConnectionFactory) ctx.lookup("java:com
    p/env/jms/MobiDTopicConnectionFactory");
    topic = (Topic) ctx.lookup("java:comp/env/jms/TopicName");
    con = conFtry.createTopicConnection();
    session = con.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
    publisher = session.createPublisher(topic);
    TextMessage mesg = session.createTextMessage();
    System.out.println("Server is sending message, see anything?");
    mesg.setText("This is from publisher");
    publisher.publish(mesg);
    // Exception catching stuff snipped.
    public void ejbCreate() { createPublisher(); }
    Client:
    public void createSubscriber() {
    try {
    Context ctx = new InitialContext();
    TopicConnectionFactory conFtry = (TopicConnectionFactory) ctx.lookup("java:com
    p/env/jms/MobiDTopicConnectionFactory");
    Topic topic = (Topic) ctx.lookup("java:comp/env/jms/TopicName");
    con = conFtry.createTopicConnection();
    session = con.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
    subscriber = session.createSubscriber(topic);
    subscriber.setMessageListener(new TextListener());
    con.start();
    System.out.println("Connection started");
    // Exception stuff snipped.
    public static void main(String args[]) {
    try {
    ConverterClient cc = new ConverterClient();
    cc.createSubscriber();
    System.out.println("Subscriber is ready");
    Context initial = new InitialContext();
    System.out.println("Looking up the bean...");
    Object ref = initial.lookup("java:comp/env/ejb/SimpleConverter");
    System.out.println("Getting the home interface");
    ConverterHome home = (ConverterHome) PortableRemoteObject.narrow(ref,
    ConverterHome.class);
    Converter conv = home.create();
    double amount = conv.dollarToYen(100.00);
    InputStreamReader inputStreamReader = new InputStreamReader(System.in);
    char answer = '\0';
    while (!((answer == 'q') || (answer == 'Q'))) {
    try {
    answer = (char) inputStreamReader.read();
    } catch (IOException e) {
    System.out.println("I/O exception: "
    + e.toString());
    Can anyone spot what's wrong with the code? I've been trying to get this to work for the
    past two days but to no avail. Please help...
    Thank you in advance.
    -vincent

    Hi, thanks for all your reply.
    The TextListener is the one downloaded from this website in the
    tutorial but I used it in different program. Here's the TextListener:
    public void onMessage(Message message) {
    System.out.println("Receiving message in onMessage()");
    TextMessage msg = null;
    try {
    if (message instanceof TextMessage) {
    msg = (TextMessage) message;
    System.out.println("Reading message: " +
    msg.getText());
    } else {
    System.out.println("Message of wrong type: " +
    message.getClass().getName());
    } catch (JMSException e) {
    System.out.println("JMSException in onMessage(): " +
    e.toString());
    } catch (Throwable t) {
    System.out.println("Exception in onMessage():" +
    t.getMessage());
    Strangely, this does not work as it never print the message. Can't see what's
    wrong from a glance though and I'm not getting any error message whatsoever.
    However, I tried my own listener:
    static class MyListener implements MessageListener {
    public MyListener() { }
    public void onMessage(Message msg) {
    try {
    System.out.println("Message received: " + ((TextMessage) msg).getText())
    catch(JMSException ex) { ex.printStackTrace(); }
    And this works...I just don't get it. MyListener is a static because I used it in my main().
    Anyone can give any comment?
    thanks,
    -vincent

  • I need help. Why isn't my bluetooth working anymore?

    I have a 20 inch iMac. I use a bluetooth wireless keyboard and mouse. Recently, my mac displayed that the connection of my mouse nd keyboard were lost. I used an old keyboard and mouse to go o system prefs. but there was nothing there and when went to spotlight and clicked bluetooth mouse, it said the following message
    "The Bluetooth tab of Keyboard & Mouse preferences is hidden because you don't have a Bluetooth module installed or attached to your computer."
    But I have been using bluetooth for a while now. Please help me find out why it stopped all of the sudden. Thanks

    Did you try shutting down (powering off) the iMac, and starting up again, if you have not done so since this problem occurred?
    If Bluetooth appears in System Preferences Network pane as a networking service (in the sidebar), and you don't use Bluetooth for networking, try removing it from the sidebar. You can always add it back later. Then restart.

Maybe you are looking for

  • Not able to spy objects in ie9 using coded UI Test Builder Spy, giving exception -Interface not registered(Exception from HRESULT:0X....

    Not able to spy objects in ie9 using coded UI Test Builder Spy, giving exception - "Interface not registered(Exception from HRESULT:0X...." I am not able to capture any objects of my web application using coded ui recorder. Even though it is a simple

  • Add button to TS Top Level VI

    I would like to add a button to the TestStand (v3.5) operator interface Full OI-TopLevelVI.  What we want to do is have this toggle (off/on) indicate whether we're in a special debug mode or not.  I want to do two things (1) grey out the button if th

  • IPad printer not found........please help

    Hi all, recently I bought a hp 3050 jeskjet printer, installed everything and works with laptop plugged in and wirelessly, so brill. Problem I have is with iPad printing. I downloaded hp iprint 3.0 but can not find the printer but when I select scann

  • Collaborative BPM across Value Chain Evaluation of Approaches

    Hi all, Question: Which approach is easy for modelling Collaborative BPM across value chain A) Centralise, B.) Decentralise, and C) Peer to Peer approach for? What are the pros and cons? What are the other important factors related with each approach

  • Using C functions with JNI

    Hello, I am just looking at JNI for the first time today. I have to write some utility functions in C for the a linux Red Hat 7 server, and then be able to call them from java applications. I am having some trouble when I try and compile the c source