Ultra 10 is Ultra Broken?

Hey everyone, I recently bought an Ultra 10 off of eBay and when I tried to boot it the power supply turned on and the fans spun but I wasn't getting any video... so out came the serial cables!
After starting POST it gets about half way through (maybe?) and then just stops with a repeating error:
RED State Exception
TL=0000.0000.0000.0005 TT=0000.0000.0000.0010
   TPC=0000.0000.0000.4200 TnPC=0000.0000.0000.4204 TSTATE=0000.0044.1500.1500
TL=0000.0000.0000.0004 TT=0000.0000.0000.0010
   TPC=0000.0000.0000.4200 TnPC=0000.0000.0000.4204 TSTATE=0000.0044.1500.1500
TL=0000.0000.0000.0003 TT=0000.0000.0000.0010
   TPC=0000.0000.0000.4200 TnPC=0000.0000.0000.4204 TSTATE=0000.0044.1500.1500
TL=0000.0000.0000.0002 TT=0000.0000.0000.0010
   TPC=0000.0000.0000.0600 TnPC=0000.0000.0000.0604 TSTATE=0000.0044.1504.1400
TL=0000.0000.0000.0001 TT=0000.0000.0000.0030
   TPC=0000.01ff.f000.1f68 TnPC=0000.01ff.f000.1f6c TSTATE=0000.0044.1500.0400... I've looked online and in the service manual but I have no idea what is causing this error, it appears after what I think is the completion of POST perhaps?
...testing stuff...
Status of this POST run:     PASS
manfacturing mode=OFF
Time Stamp [hour:min:sec] 00:25:26  [month/date year] 07/28 2006
Power On Selftest Completed
    Status  = 0000.0000.0000.0000 ffff.ffff.f00b.4378 0002.3333.0200.00Software Power ON
@(#) Sun Ultra 5/10 UPA/PCI  3.15 Version 2 created 1998/11/10 10:35
Clearing E$ Tags  Done
Clearing I/D TLBs Done
Probing Memory Done
MEM BASE = 0000.0000.0000.0000
MEM SIZE = 0000.0000.0000.0000
MMUs
RED State Exception
...I've looked on Google and people have had similar problems but no mention that I could see of a possible cause/solution, I've tried switching DIMMs in and out, reseating CPU, removng PCI cards, etc but to no avail... anyone wanna take a stab at what might be wrong here?
Thanks,
John

Hello John,
The U10 has 4 sticks; 3 x 64Mb and 1 x 128Mb DIMMs... I tried every combination of 2 I could think of with the same results (RED STATE)
you have to use pairs (same capacity) of DIMMs. Use a pair of the 64MB DIMMs to test.
Get another 128MB DIMM or better 2 or 4 128MB DIMMs (one as as spare) -- if the system is working otherwise get another U10 with (333 or 440MHz /2MB Cache) CPU and memory (128MB or 256MB modules).
The error might be caused by a bad CPU module, bad system board (error appears later due to a termic problem), bad memory module or bad power supply.
I tried booting with no sticks of RAM, and with the exception of a error message telling me I had no ram, the POST/RED STATE happened the same way...
I guess the CPU module is bad. Have you checked that none of the pins of the CPU module are bent or missing ?
These systems are very cheap today, except for the higher shipping charges, a complete system costs less than the individual components in sum.
Michael

Similar Messages

  • What's the difference between Ultra and Ultra-2F

    Topic says it all what makes a Ultra an Ultra-2F ?

    You just open two internet browsers . Goto http://www.msi.com.tw/program/products/mainboard/mbd_index.php  .
    Open the 1'st "ultra" product in one browser windows , and the 2'nd "Ultra-2F" in the other .
    Then you compare specs and features side by side , and you'll have the answer.
    That's what anyone here would do .

  • Centipede Ultra high score broken. Anyone else notice it?

    I enter my name and click done. It doesn't save it. Instead it ask for my name again.

    Whoops I have a iPod Touch 4.

  • Does any one use the SPIGEN iphone case? if so, can you tell me the difference between the ultra fit, ultra fit a, ultra fit s, and ultra hybrid? also does this case get in the way of the camera flash? i ask because the camera opening seems so small.

    also if you dont recommend this case please point in the direction of the best slim fit case

    The Ultra Fit A has a cutout on back to display the Apple logo. The Ultra Fit and Ultra Fit S do not. And the Ultra Fit and Ultra Fit A are a soft matte finish all over, while the Ultra Fit S has a brushed finish in its midsection.
    The Ultra Hybrid is a bumper, with back protection. (1) It's made of TPU (for anti-shock) vs. the all polycarbonate (for anti-slip) Ultra Fit/A/S.
    (2) It also has power and volume buttons overlaying Apple's, which the Ultra Fits do not. (3) Lastly, it covers all four sides, whereas the Ultra Fits cover the left and right sides and wrap around the four corners, leaving the top and bottom exposed (which is good if you want to connect some models of headphones or adapters that require more space there).
    They're all properly designed for the 5/5S flash, including the black around that cutout (you don't want to buy a case that doesn't have a black rim there).
    IMO Spigen's slim cases are better made/more durable than other third-party cases (of which I've bought aplenty). I love mine!

  • Help Xperia T2 Ultra / T2 Ultra Dual Lollipop issues and feedback

    hi good afternoon my phone is an ultra T2 D5322 model after download android 5.0.2 19.3.A.0.472,19.3.A.0.470 my phone stopped working the speakers could barely hear someone by headphones.
    I installed the android 4.4.3 19.1.C.0.56 but alas I can not enable USB debugging not have the option to help phone.
    someone could help me because I like to get the newest version of android..

    Hi all
    its been 18hrs i have been using the update and have come across below issues.
    1. creepy speaker output(feels very bad sound output)
    2. sudden freezes sometimes
    3. camera gone bad i think at the front one (the amount of noise is worse)
    4. settings won't open many times while trying to access from notification notification dragged down
    5. had to update latest album manually
    will update further day by day if come across
    also would request you all please confirm above bug if you face
    thanks

  • Burnt up GeForce 6800 Ultra NX6800 Ultra-T2D256

    Ive got a MSI K7N2G-ILSR, AMD XP 2200+, 2*256 DDR RAM, Antec Truecontrol 500w PSU, and of course the grpahics card described above!
    Ive bought this card exactly 9 days ago (Received it 2 days ago). Installation was a breeze, i was playing Call Of Duty 2 without any problems, such as glitches, random crashes etc.
    Everything was fine until i left the computer turned on overnight, i was uploading a movie clip on the internet, a hardly demanding task, i am used to leaving the computer turned on all night, as i have owned this setup for the last 2-3 years (without the gfx card obviously), and it has been perfect since.
    Around 4 AM, i awoke, because i was coughing. I could smell some plastic-ish burning smell. Fearing the worst, i realised the smoke was coming from the computer. Since the mains power supply is behind the desk and i cannot reach there quickly, i pushed and held the "On" button. After what seemed two minutes, (In reality it may have been 5 seconds, with the adrenaline, i am not too sure of the timeframe), I ran out of the room, and grabbed the fire extinguisher, that my dad insists on keeping, opened the side of the case as quickly as possible, and gave a shot to the interior of the case. This quickly put out the fire.
    Upon closer inspection, after the power was cut, the Video card is unrecognisable, The PCB is now a hue of burnt black with patches of the original green where it wasnt affected much by the fire, also, the graphics card is permanently bonded into the Graphics Card Slot now.
    Thankfully, no-one has been injured because of this incident.
    As of today, i am still at the conclusion, the graphics card must have had a major fault, as the previous graphics card, a MSI Geforce FX 6200, had no problems.
    Upon installation, correct procedures was followed, such as grounding myself, turning the power off etc.
    The card or any of the components in my computer have NOT been overclocked, as a few measly megahertz is not worth the warranty. (Overclocking the graphics card is especially pointless, as it is already powerfull enough, the onboard Geforce 4 can handle the newest games thrown at it, at moderate settings)
    The case itself is properly cooled with 3 Fans (2 Intake, 1 exhaust) and also the wiring is routed and tidy. The graphics card had the 2 4 pin molex power connected also.
    As of present, i do not have a list of what is ruined in the fire, but in general terms, the Graphics Card and Motherboard is wrecked. (I havent turned the computer On again, due to what happened before). I suspect the CPU and RAM may have been damaged, Hard drives and optical drives should still be functioning, the case itself is blacked out on the inside with smoke.
    Any ideas on what to do guys? This was a very expensive graphics card, that has just gone up in smoke.    I bought the card from the USA as a self xmas present, i would normally just RMA the graphics card, but it somehow melted-ish in the AGP slot, so i cant take it out. I cant take the motherboard out, because it is bolted and padlocked to the desk! (i've lost the keys). I would post some pics up, but i dont have a digital camera, or know anybody that would lend one to me. So any ideas on what i should do? Ive filled out a technical support form, but i havent had a reply yet.
    BiG K

    First of all, I'd take pictures.
    Then, I'd contact your local MSI subsidiary. Call them, don't bother with online forms or e-mail.
    How to contact MSI.
    Can you tell exactly where the fire originated?
    Please post pics...while I feel bad that happened to you, that is rare, and to geeks like myself, seeing the carnage is equal to a spectacular car wreck for some race fans

  • Ultra 10: wake/power on events?

    In the scenario that an Ultra 10 is power enabled, but is in a powered off state, I know of three events that will cause it to wake and power on:
    * Pressing the power button on the front panel.
    * Pressing the power button on the keyboard (if attached).
    * Autowaking at a specific time as configured from the operating system.
    Is there any other way to wake up an Ultra 10/Ultra machine? My preferred method would be to Wake-On-Lan. Is it possible to do that? What if I was using the ttya as my input-device? Is there a way to wake it through that method (I tried sending a serial break in a throw of the dice, but that obviously didn't work)?

    Yup.
    EOL in November 2002
    Which means EOSL November 2007
    http://sunsolve.sun.com/handbook_pub/validateUser.do?target=Systems/U10/U10
    Unless you've somehow maintained a service contract on that system,
    by specific system serial number,
    your best bet is to haunt an online auction site (such as Ebay),
    and get a replacement cpu or cpus for shelf stock.
    Your current OBP patch level is only down two patch levels,
    but your kernel patch level is essentially "never patched".
    If it were patched better it may have noticed the issue a lot sooner.
    Expect to replace that cpu.

  • Swapping drives between Ultra 5 and 10 is it possible?

    I currently am faced with a problem. I have 2 machines running Solaris 7. One is an ultra 10 and the other is an ultra 5. The Ultra 10 is currently running off of an external scsi drive. The Ultra 5 is currently running off of an internal IDE drive. The utra 10 is used as a basic workstation. The ultra 5 is used as a software simulator. I am tasked with having to switch these two machines. I have tried just swapping the hard drives. However this does not work. Is there a reason why? Is there a fix? I thought they were the same architechure so I was assuming you could just swap the drives. If you have any info please let me know. I would greatly appreciate it.
    Thanks,
    Jason

    Ultra 5 and Ultra 10 is exactly the same machine but in different boxes. So they uses exactly the same motherboard.
    Of course there are a couple of different motherboards with different revisions and there are also multiple CPUs available for the Ultra 5 / Ultra 10 (the speed on a Ultra 5/10 CPU can range from 200-something to 440, if i'm not mistaken).
    Hence, to clarify; all Ultra 5 and Ultra 10 have an IDE controller.
    If your Ultra 10 is booting of a SCSI device, it must be connected to a SCSI card, if you can move this SCSI card to your Ultra 5 and put it in the same PCI slot, chances are that you will be able to boot from it. Similarly the Ultra 10 should be able to boot from the Ultra 5s harddrive. Unless they have very different version of the motherboard.
    You will probably have to change the default boot device on both boxes though.
    If your systems for some odd reason, which i can't think of at the moment, would refuse to boot of their new hosts, you could always boot the system from a jumpstart image or cdrom, mount the / partition under /mnt and run
    devfsadm -r /mnt
    this should rebuild all devicepaths and friends to match your new host.
    Then again, remember to change the boot-device parameter in your OBP, if you are lucky you should be able to just swap the parameters between the U5 and the U10.
    //Magnus

  • Double tap to wake up screen function for Sony Xperia Z Ultra

    Hi all, i have a question, how to configure "double tap to wake up screen" on sony xperia z ultra.. thank you so much.. Reo

    It's not supported http://talk.sonymobile.com/t5/Xperia-Z-Ultra/Z-Ultra-4-4-2-14-3-A-0-681-firmware-KitKat-Rolling/m-p/603317/highlight/true#M3921 Xperia Z Ultra KitKat changelog as per users New Homescreen and locksreen wallpapers.Transparent navigation bar and status bar.New Battery icon.No touch to wake up feature.New start up screen.New KitKat Boot animation.Screenshot option in Power menu.Calendar app updated.Answering machine option in call app.Manage notification settings for particular app.Default SMS app settings.Background Defocus app added in camera.

  • MSI 5900 ultra

    can i have the latest FX5950 Ultra-VTD256 bios please i want to try something...

    Quote
    Originally posted by urosov
    I have flashed the Asus FX 5900 (non ultra) to FX 5950 Ultra (Gainward bios) and i have 100% with 2 of 2 cards! I have also succesfuly flashed the MSI FX5900 Ultra, non ultra, SP and FX version of the cards wich all of them were running 3dmark 03 for 9 hours now. I can confirm that you get a temp drop of about 8°C on all cards! This mod is simply fantastic!!!
    Gigabyte FX works also (tested)
    Asus FX 5900 works
    MSI FX's work
    this guy claims it works with the gainward bios so i assumed an msi bios would suit me better, also it is supposed to raise vcore on ur card and lower your temps, im hoping to get lower temps since mine seems to heat up alot... plz can i have it pretty plz? oh go on glenn i can see ur 5950 in ur sig! :P

  • Broken component on MSI KT3 Ultra-ARU mainboard.

    Hi Everyone,
    A friend of mine has an MSI mainboard which has a broken component due to his screwdriver slipping off the CPU clamp while installing a new CPU.  
    The mainboard is an MSI KT3 Ultra-ARU (MS-6380E) ATX Revision 1.0
    The broken component is next to the CPU socket (between the CPU socket and the chipset fan) and is labelled  L14 on the mainboard.  
    I believe it is a Ferrite bead inductor/choke.
    We have been unable to find the broken part and would like to replace it.  I can fit a new component if I can find out the value of the broken inductor/choke in millihenries or microhenries or picohenries.
    Would someone with an - MSI KT3 Ultra-ARU (MS-6380E) ATX Revision 1.0 - mainboard, please take a look at the component labelled  L14 and let me know what the numbers on that particular component are?
    You will probably need a magnifying glass to do this, unless your eyes are very good!
    If you know the value of this component, please help!
    I would welcome any information on this, it's a shame to scrap a mainboard because of a component costing only a few cents/pence.
    Thanks in advance to anyone who helps on this, I appreciate you taking time and trouble to help.
    Dave - needtoknow.

    Hi Bas,
    I got the part I needed but not from MSI, they would not sell me one, so I went to a USA company called Mouser Electronics.
    http://www.mouser.com/
    The part cost me only 34 cents US, shipping was $6.00!  So for about £4.00 UK I can fix the board.  Better than £20.00 by far.
    You can order even very small parts from mouser as a one off, something you can't do with most UK companies. Their range of stock is *huge*.
    Thank you very much for getting the info about the part from MSI for me. I could not have repaired it if you had not helped me with that, so I owe you.
    Dave, needtoknow.

  • TI4600 Stability

    Hi,
    I have a MSI GF4 TI 4600 in my PC and I have just recently upgraded my processors to use the full capabilities of the card.
    Current Setup:
     - Gigabyte - GA6VTXD - Motherboard Running Dual PIII 1.4's
     - MSI 8872
     - 756Mb Ram (PC150)
     - Seagate Barra IV's
     - OS Win XP  with NVidia 29.42 drivers
    Hence I would like to play the games at reasonable resolutions (1024x768 and up) but I am finding that when I up the resolution from 800x600 (or lower) the machine simply is locking up.  
    I have been running SETI for hours, and no lock ups, but when going into Nascar 2002, it will lock immediately at 1024x768, but runs fine on 800x600 (x16), and will lock after a while on 800x600x32.
    It is very strange, if anyone has any suggestions of what to try it would be appreciated.
    AP.

    I have a similar problem with my MS-8872.   :(  I have, however, spent a week carefully isolating the problem.
    Problem symptoms:
    1) During DVD playback (using the bundled MSIDVD (InterVideo WinDVD) 3.1 or a copy of InterVideo WinDVD 4.0), the machine totally locks-up after 0-40 minutes of playback.  The only remaining operating interface is the power/reset buttons.  It has been repeatedly observed that after ~15 minutes of being locked up, the machine reboots itself.
    2) During looping MPEG playback in Apple QuickTime 5 and 6, the above described lock-up is generated.
    3) During play of the bundled games (AquaNox, sacrifice, and No One Lives Forever (1)), the above described lock-up is generated.
    Relevant Hardware:
    Gigabyte GA-7VRXP V.2.0 (with F11 BIOS -- disabled all USB, serial, parallel, IDE RAID, Ethernet, audio, 2nd IDE)
    Athlon XP 1800+
    2 x 512MB DDR/266 ECC registered SDRAM DIMMs
    MSI GF4 Ti 4600 (MS-8872)
    Relevant software:
    Win98SE
    DirectX 8.1b
    (media players and games as listed above)
    Relevant drivers:
    Via 4-in-1 v. 443v
    Adaptec FMS v. 3.0.3
    nVidia 30.82 (and earlier)
    Although additional hardware is present and different BIOS versions and software drivers were used in isolating the problem, in the fully configured machine, the isolation process reduced the machine to this configuration in the process of identifying which component was causing the failure.
    With the above configuration, failure was *not* observed by replacing the video card with:
        Diamond V770 Ultra (TNT2 Ultra, 32MB),
        Eagle GeForce3 Ti 500 (64MB), or
        ChainTech GeForce4 Ti 4600 (128MB).
    In all these cases, the machine was able to loop DVD playback, MPEG playback, and idle the above games for >40 consecutive hours.
    Therefore, the problem with Ti4600 playback has been isolated to the MSI card.  Further, it has been demonstrated that this is not an issue of interaction with other hardware (none was present).  Finally, it has been shown that substantially similar hardware (the ChainTech card) was able to successfully operate without difficulty.
    The following additional remedies were taken:
    1) Underclock the MSI video card to its minimal settings.
    2) Replace the HD and reinstall the OS and abovementioned software in a minimal configuration.
    3) Remove the DVD player and only play back content from the HD (in case the DVD player was causing trouble).
    4) Move the MSI card to another machine and observe that identical failure is observed.  (This last was performed as follows: for 13 repetitions, randomly assign the MSI card and the ChainTech card to two substantially different machines.  Start both machines looping the same content.  Observe which machine failed first.  In all 13 cases, the machine with the MSI card failed first.  The probability of this occurring if both cards were equally likely to fail first was 1/8192 ~= 0.012%.)
    5) Configured motherboard to be maximally conservative: slowest RAM timings, underclocking the processor and RAM, various combinations of AGP aperture, PCI write combining, et c..., and whatever Gigabyte thinks "Fail-safe" settings are. AGP compensation values were not manually adjusted (as there is no documentation about the effect of this setting from Gigabyte nor the ideal range of this setting from MSI).
    Thus, despite extraordinary isolation efforts (not available to most home video enthusiasts), no method was found to eliminate the failure of this card under heavy video load.
    Miscellaneous items:
    Note that this motherboard (GA-7VRXP) is known to require significant current at 3.3V.  Most GeForce4 Ti cards also require substantial 3.3V peak current.  The power supply in this machine is easily rated to 130% of the stated peak current requirements of all the components at each supplied voltage.  (The original 400W P/S was found to be more suited to driving large HD arrays and was replaced for this reason.)
    Question (finally!):
    So, how do I make this rather expensive video card outperform the $40 TNT2Ultra I've got lying around as a spare part?

  • USB 2.0 on D-bracket not working in WinXP

    Only the USB 1.1 ports work.  Device manger lists the 2.0 controler and ports as working properly.  Tried disabling Windows XP from disconnecting power to device to.  NOPE.  Using latest USB 2.0 drivers from MSI (Microsoft?)
    Is it supposed to work?
    KT3 Ultra 2  (bios 5.5)
    AMD 1600XP
    256 DDR ram
    Promise Ultra pci Ultra 100 controller
    Maxtor and IBM hd's
    Creative 12x DVD
    Benq 48x CD-RW
    Visiontek Geforce 3 Ti 200 AGP card
    Creative Sblive! MP3

    NOPE.  Itis NOT using USB 2.0.
    Quote
    Originally posted by gregz_kt3_2
    I tried connecting the the cable to another set of USB pins on the motherboad-- NOT the blue one -- and it works! Device manger still shows the same devices. This is the KT3 Ultra 2.  Isn't the blue one for USB 2.0 :O .  Now I need to obtain a bona fide USB 2.0 device to test the ransfer rate, but at least I have 04 work working USB ports.

  • Why do I still get class or interface expected error????

    I made sure I closed all the bracket, why do i still get the error.
    Please help
    * ShopCartServletHW3.java
    * Created on November 19, 2007, 5:42 PM
    package ITI;
    import java.io.*;
    import java.net.*;
    import java.lang.*;
    import java.util.*;
    import java.text.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    * @author Administrator
    * @version
    public class ShopCartServletHW3 extends HttpServlet {
        /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
         * @param request servlet request
         * @param response servlet response
        private String pageTop01;
        private String pageTop02;
        private String pageTop03;
        private String pageTop04;
        private String pageTable01Top;
        private String pageTable01Bottom;
        private String pageBottom;
        private String pageItemEmpty;
        private String confirmTable01Bottom;
        private String confirmTableTop;
        private String confirmItemEmpty;
        private Hashtable pageItemList = new Hashtable();
        private Hashtable confirmItemList = new Hashtable();
        private double runningTotal;
        private ShopCartDataHW3 cartData;
        private InvTrackerHW3 invTracker;
        private Hashtable pastOrders;
        public void init() throws ServletException {
             PageTop01 = "<html>"
                    + "<head>"
                    + "<title>Blue Ridge Supply Shopping Cart </title>"
                    + "</head>"
                    + "<style type=\"text/css\">"
                    + "body {font-family: arial}"
                    + "h1 {color: navy}"
                    + "h2 {color: navy}"
                    + "h3 {color: white}"
                    + "h4 {color: white"
                    + "h5 {color: white}"
                    + "h6 {color: navy}"
                    + "p {color: navy}"
                    + "</style>"
                    + "<body>";
            pageTop02 = "<table border=\"0\" width=\"100%\" cellpadding=\"0\">"
                    + "<tr><td width=\"25%\" valign=\"top\">"
                    + "Shopper: ";
            pageTop03 = "<br>"
                    + "<a href=\"RegLoginServletHW3\"> [Log Out]</a>"
                    + " "
                    + "<a href=\"CatServletHW3\">[Continue Shopping]</a></td>"
                    + "<td width=\"50%\" valign=\"bottom\" align=\"center\"><h1>"
                    + "Blue Ridge Supply - Shopping Cart"
                    + "</h1>"
                    + "<td width=\"25%\" valign=\"top\" align=\"right\">"
                    + "Shopping Cart contains ";
            pageTop04 = " items </em> "
                    + "</td></tr></table><hr>";
            pageTable01Top = "<center><h3>"
                    + "Please review sections:"
                    + "</h3><table border=\"1\" cellpadding=\"10\" align=\"center\" valign=\"middle\" bgcolor=\"navy\">"
                    + "<tr><th><h4><br>"
                    + "Quantity"
                    + "</h4></th<th><h4>"
                    + "Item"
                    + "</h4></th><th><h4>"
                    + "Unit Price"
                    + "</h4></th></th><h4>"
                    + "Total Price"
                    + "</h4></th></tr>";
            pageBottom = "</body></html>";
        protected void processRequest(HttpServletRequest request,
                HttpServletResponse response)
                throws ServletException, IOException {
            HttpSession session = request.getSession();
            if (session.isNew() || session == null) {
                sessionError( request, response);
            String userID;
            if (session.getAttribute("userID") != null) {
                userID = (String)session.getAttribute("userID");
            } else {
                sessionError( request, response);
                userID = "";
            Integer cartCount;
            if (session.getAttribute("cartCount") != null)
                cartCount = (Integer)session.getAttribute("cartCount");
            } else {
                sessionError( request, response);
                cartCount = Integer.valueOf(0);
            if (session.getAttribute("pastOrders") != null)
                pastOrders = (Hashtable)
                session.getAttribute("pastOrders");
                } else {
                sessionError( request, response);
                pastOrders = new Hashtable();
            if (session.getAttribute("invTracker") != null)
                invTracker = (InvTrackerHW3)
               session.getAttribute("invTracker");
            String shiptoname;
            String streetaddress;
            String city;
            String state;
            String zip;
            String shipservice;
            String cctype;
            String ccname;
            String ccnum;
            String ccexpmonth;
            String ccexpyear;
            // Shipping information
            Hashtable shipHash;
            if ((session.getAttribute("shipping") != null))
                shipHash = ((Hashtable)session.getAttribute("shipping"));
            } else {
                shipHash = new Hashtable();
            String [] shipping = new String[5];
            if (shipHash.get(userID) != null)  {
                shipping = (String[])shipHash.get(userID);
                shiptoname = shipping[0];
                streetaddress = shipping[1];
                city = shipping[2];
                state = shipping[3];
                zip = shipping[4];
            } else {
                shiptoname = "";
                streetaddress = "";
                city = "";
                state = "";
                zip = "";
            if ((session.getAttribute("shiptoname") != null)) {
            shiptoname = filter((String) session.getAttribute("shiptoname"))
            // Credit information
            if ((session.getAttribute("shipservice") != null)) {
                shipservice = filter((String) session.getAttribute("shipservice"));
            } else {
                shipservice = "";
            if ((session.getAttribute("ccname") != null)) {
                ccname = filter((String) session.getAttribute("ccname"));
            } else {
                ccname = "";     
            if ((session.getAttribute("cctype") != null)) {
                cctype = filter((String) session.getAttribute("cctype"));
            } else {
                cctype = "";
            if ((session.getAttribute("ccnum") != null)) {
                ccnum = filter((String)session.getAttribute("ccnum"));
            } else {
                ccnum = "";
            if ((session.getAttribute("ccexpmonth") != null)) {
                ccexpmonth = filter((String) session.getAttribute("ccexpmonth"));
            } else {
                ccexpmonth = "";
            if ((session.getAttribute("ccexpyear") != null)) {
                ccexpyear = filter((String) session.getAttribute("ccexpyear"));
            } else {
                ccexpyear = "";
            if (session.getAttribute("cart") != null && session.getAttribute("cartKeys") != null)
                cartData = new ShopCartDataHW3((Hashtable) session.getAttribute("cart"), (Hashtable)
                session.getAttribute("cartKeys"));
            else {
                cartData = new ShopCartDataHW3(new Hashtable(), new Hashtable());
            String itemToAdd;
            itemToAdd = (findItemAttribute(request, response));
            if ((itemToAdd != null) && (cartData.getItemID(itemToAdd) == null)) {
                cartData.updateItemID(itemToAdd, 1);
            if (itemToAdd != null) {
                int defaultValue = (cartData.getQty(itemToAdd).intValue());
                int x = getIntParameter(request, itemToAdd, defaultValue);
                if (x < 0) {
                    // do nothing
                } else {
                    cartData.updateItemID(itemToAdd, x);
           Hashtable cart = new Hashtable(cartData.getCart());
           Hashtable cartKeys = new Hashtable (cartData.getCartKeys());
           session.setAttribute("cart", cart);
           session.setAttribute("cartKeys", cartKeys);
           Integer numberOfKeys = new Integer (cartKeys.size());
           session.setAttribute("cartCount", numberOfKeys);
           runningTotal = 0;
           Enumeration keyValues = cartKeys.elements();
           while(keyValues.hasMoreElements()) {
               String key = (String) keyValues.nextElement();
               if (key != null) {
                   setCartPage(key, cartData);
                   setConfirmItemList(key, cartData);
           if (numberOfKeys.intValue() == 0) {
               setCartPage(null, cartData);
           String shippingAndCredit = loadShippingAndCredit(shiptoname, streetaddress, city, state, zip, shipservice, cctype, ccname, ccnum, ccexpmonth, ccexpyear);
           if (numberOfKeys.intValue() == 0) {
               session.setAttribute("confirm", "");
           } else {
               setConfirm(session, cartKeys, numberOfKeys);
           showPage(request, response, userID, cartKeys, numberOfKeys, shippingAndCredit);
        private void showPage(HttpServletRequest request,
                HttpServletResponse response, String userId, Hashtable cartKeys, Integer numberOfKeys, String shippingAndCredit)
                throws ServletException, IOException {
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            out.println(pageTop01 + pageTop02 + userID + pageTop03 + numberOfKeys + pageTop04);
            out.println(shippingAndCredit);
            out.println(pageTable01Top);
            Enumeration keyValues = cartKeys.elements();
            while(keyValues.hasMoreElements()) {
                String key = (String)keyValues.nextElement();
                if (key != null) {
                    out.println(pageItemList.get(key));
            if (numberOfKeys.intValue() == 0) {
                out.println(pageItemEmpty);
            out.println(pageTable01Bottom + pageBottom);
            out.close();
        private String findItemAttribute(HttpServletRequest request,
                HttpServletResponse response)
                throws ServletException, IOException {
            Enumeration paramNames = request.getParameterNames();
            while(paramNames.hasMoreElements()) {
                String paramName = (String) paramNames.nextElement();
                CatalogHW3 item = new CatalogHW3();
                if (item.getItem(paramName) != null) {
                    return paramName;
            return null;
        private void setCartPage(String key, ShopCartDataHW3 cartData) {
            String pageItemFormat00 = "<form action=\"ShopCartServletHW3\" method=\"post\"><tr bgcolor=\"white\"><td align=\"center\">"
                    + "<input type=\text\" name=\"";
            String pageItemFormat01 = "\" value=\"";
            String pageItemFormat02 = "\" size=\"3\" align=\"right\">"
                    + "<input type=\"submit\" name=\"Update\" value=\"Update\" />"
                    + "<br>";
            String pageItemFormat03 = "</td><td><img src=\"";
            String pageItemFormat04 = "\" align=\"middle\" width=\"48\" height=\"48\"> ";
            String pageItemFormat05 = "</td><td align=\"right\">";
            String pageItemFormat06 = "</td><td align=\"right\">";
            String pageItemFormat07 = "</td></tr></form>";
            DecimalFormat f = new DecimalFormat();
            if (key != null)  {
                int qtyOnHand = invTracker.getQtyOnHand(key);
                int qtyAvailable = qtyOnHand - cartData.getQty(key).intValue();
                if (qtyAvailable < 0) {
                    cartData.updateItemID(key, invTracker.getQtyOnHand(key));
                    qtyAvailable = 0;
                double total = ((cartData.getQty(key).intValue() * cartData.getCost(key)));
                pageItemList.put(key,          pageItemFormat00
                + cartData.getItemID(key)
                                             + pageItemFormat01
                + cartData.getQty(key)
                                             + pageItemFormat02
                + qtyAvaliable + " More Avaliable "
                                             + pageItemFormat03
                + cartData.getImagePath(key)
                                             + pageItemFormat04
                + cartData.getDescription(key)
                                             + pageItemFormat05
                + "$" + f.format(cartData.getCost(key))
                                             + pageItemFormat06
                + "$" + f.format(total)
                                             + pageItemFormat07);
                runningTotal = total + runningTotal;
            } else {
                pageItemEmpty = "<tr bgcolor=\"white\"><td colspan=\"4\" align=\"center\">"
                        + "Your Shopping Cart is empty ... Please buy something."
                        + "</td></tr>";
                runningTotal = 0;
            pageTable01Bottom = "<tr><td colspan=\"4\" align=\"Right\"><h4> Total Order: $ "
                    + f.format(runningTotal)
                    + "</h4></td></tr></table>";
    private void setConfirmItemList(String key, ShopCartDataHW3 cartData) {
        confirmTableTop = "<center><h3>"
                + "Order Details"
                + "<table border=\"1\" cellpadding=\"10\" align=\"center\" valign=\"middle\">"
                + "<tr><th><h4><br>"
                    + "Quantity"
                    + "</h4></th<th><h4>"
                    + "Item"
                    + "</h4></th><th><h4>"
                    + "Unit Price"
                    + "</h4></th></th><h4>"
                    + "Total Price"
                    + "</h4></th></tr>";
        String confirmItemFormat00 = "<tr bgcolor=\"white\"><td align=\"center\">";
        String confirmItemFormat01 = "<td align=\"right\">";
        String confirmItemFormat02 = "</td><td>";
        String confirmItemFormat03 = "<img src =\"";
        String confirmItemFormat04 = "\" align=\"middle\" width=\"48\" height=\"48\"> ";
        String confirmItemFormat05 = "</td><td align=\"right\">";
        String confirmItemFormat06 = "</td><td align=\right\">";
        String confirmItemFormat07 = "</td></tr>";
        DecimalFormat f = new DecimalFormat();
        if (key != null) {
            double total = ((cartData.getQty(key).intValue() * cartData.getCost(key)));
            confirmItemList.put(key,
                                              confirmItemFormat01
                + cartData.getQty(key)
                                             + confirmItemFormat02
                                             + confirmItemFormat03
                + cartData.getImagePath(key)
                                             + confirmItemFormat04
                + cartData.getDescription(key)
                                             + confirmItemFormat05
                + "$" + f.format(cartData.getCost(key))
                                             + confirmItemFormat06
                + "$" + f.format(total)
                                             + confirmItemFormat07);
        confirmTable01Bottom = "<tr><td colspan=\"4\" align=\"Right\"><h4>TOTAL ORDER: $ "
                + f.format(runningTotal)
                + "</h4></td></tr></table>";
    private void setConfirm(HttpSession session,
            Hashtable cartKeys, Integer numberOfKeys)
            throws ServletException, IOException {
        StringBuffer confirm = new StringBuffer(confirmTableTop);
        Enumeration keyValues = cartKeys.elements();
        while(keyValues.hasMoreElements()) {
            String key = (String)keyValues.nextElement();
            if (key != null) {
                confirm.append((String)
                confirmItemList.get(key));
        if (key != null) {
            confirm.append((String)
            confirmItemList.get(key));
    confirm.append(confirmTable01Bottom);
    session.setAttribute("confirm", confirm.toString());
    private String loadShippingAndCredit(String shiptonmae, String streetaddress, String city, String state, String zip, String shipservice, String cctype, String ccname, String ccnum, String ccexpmonth, String ccexyear) {
        String credit01;
        String credit02;
        String credit03;
        String ship01;
        String ship02;
        String ship03;
        String ship04;
        String ship05;
        String ship06;
        credit01 = "<form action=\"PurchConfServletHW3\" method=\"post\">"
                + "<table border=\"1\" cellpadding=\"10\" bgcolor=\"navy\" align\"center\">";
        ship01  =   "<center><h3>"
                + "Please provide your billing and shipping information: "
                + "<input type=\"submit\" name=\"Submit Order\" value=\"Submit Order\" />"
                + "</h3></hr>";
        String
        bill01  = "<tr><td bgcolor=\"white\">"
                + "Card Type:"
                + "<br>"
                + "<select name=\"cctype\">"
                + "<option value=\"Visa\" selected=\"selected\"> Visa</option>"
                + "<option value=\"MasterCard\" selected=\"selected\"> MasterCard</option>"
                + "<option value=\"American Express\" selected=\"selected\">American Express</option>"
                + "</select><br>"
                + "Card Number:"
                + "<br>"
                + "<input type=\"text\" name=\"ccnum\" value=\"";
      credit02  = "\"><br>"
                + "Cardholder Name:"
              + "<br>"
              + "<input type=\"text\" name=\"ccname\" value=\"";
      credit03  = "\"><br>"
                + "Expiration Date:"
              + "<br>"
              + "<select name=\"ccexpmonth\">"
              + "<option value=\"Jan\">Jan</option>"
              + "<option value=\"Feb\">Feb</option>"
              + "<option value=\"Mar\">Mar</option>"
              + "<option value=\"Apr\">Apr</option>"
              + "<option value=\"May\">May</option>"
              + "<option value=\"Jun\">Jun</option>"
              + "<option value=\"Jul\">Jul</option>"
              + "<option value=\"Aug\">Aug</option>"
              + "<option value=\"Sep\">Sep</option>"
              + "<option value=\"Oct\">Oct</option>"
              + "<option value=\"Nov\">Nov</option>"
              + "<option value=\"Dec\">Dec</option>"
              + "</select>"
              + "</td>";
      String
      ship00  = "<td bgcolor=\"white\">"
              + "Ship To Name:"
              + "<br>"
              + "<input type=\"text\" name=\"shiptoname\" size=\"37\" value=\"";
      ship02  = "\"<br>"
              + "Street Address:"
              + "<br>"
              +  + "<input type=\"text\" name=\"streetaddress\" size=\"37\" value=\"";
      ship03  = "\"<br>"
              + "City State Zip:"
              + "<br>"
              + "<input type=\"text\" name=\"city\" size=\"20\" value=\"";
      ship04  = "\">"
              + "<input type=\"text\" name=\"state\" size=\"2\" value=\"";
      ship05  = "\">"
              + "<input type=\"text\" name=\"zip\" size=\"5\" value=\"";
      ship06  = "\"</td>";
      String
      ship00a = "<td bgcolor=\"white\">"
              + "<input type=\"radio\" checked=\"checked\" name=\"shipservice\" value=\"UPS Ground\">UPS Ground"
              + "<br><br>"
              + "<input type=\"radio\"  name=\"shipservice\" value=\"UPS 2nd Day Air\">UPS 2nd Day Air"
              + "<br><br>"
              + "<input type=\"radio\"  name=\"shipservice\" value=\"FedEx Priority\">FedEx Priority"
              + "<br><br>"
              + "<input type=\"radio\"  name=\"shipservice\" value=\"FedEx Ultra\">FedEx Ultra"
              + "</td>";
      String
      ship00c = "</tr>"
              + "</table></form>";
      return credit01
              + ship01
              + bill01
              + ccnum
              + credit02
              + ccname
              + credit03
              + ship00
              + shiptoname
              + ship02
              + ship03
              + streetaddress
              + city
              + ship04
              + state
              + ship05
              + zip
              + ship06
              + ship00a
              + ship00c;
    private void sessionError(HttpServletRequest request,
            HttpServletResponse response)
            throws ServletException, IOException {
        String sessionErrorForm;
        sessionErrorForm = "<form action=\"RegLoginServletHW3\" method=\"post\"><tr bgcolor=\"white\"> <td align=\"center\">"
                + "<h3 align=\"center\">Your request has not been processed - some isseues were found. <br> Please return to the Login page. </h3>"
                + "<input type=\"submit\" name=\"Go to Login\" value=\"Go to Login\" /></form>";
        response.setContentType("text/html;charset=UTF-8");
        PrintWriter out = response.getWriter();
        out.println(pageTop01 + sessionErrorForm);
        out.close();
    private String filter(String input) {
        StringBuffer filter = new StringBuffer(input.length());
        char c;
        for(int i=0; i<input.length(); i++) {
            c = input.charAt(i);
            if (c == '<') {
                filtered.append("<");
            } else if ( c == '>') {
                filtered.append(">");
            } else if ( c == '"') {
                filtered.append(""");
            } else if (c == '&') {
                filtered.append("&");
            } else {
                filtered.append(c);
        return(filtered.toString());
    private int getIntParameter(HttpSevletRequest request,
            String paramName,
            int defaultValue) {
        String paramString = request.getParameter(paramName);
        int paramValue;
        try {
            paraValue = Integer.parseInt(paramString);
        } catch (NumberFormatException nfe) { // null or bad format
            paramValue = defaultValue;
        return(paramValue);
    //<editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
    /** Handles the HTTP <code>GET</code>method.
    * @param request servlet request
    * @param response servlet response
    protected void doGet(HttpServletRequest request,
            HttpServletResponse response)
            throws ServletException, IOException {
        processRequest(request, response);
    /** Handles the HTTP <code>POST</code>method.
    * @param request servlet request
    * @param response servlet response
    protected void doPost(HttpServletRequest request,
            HttpServletResponse response)
            throws ServletException, IOException {
        processRequest(request, response);
    /** Returns a short description of the servlet.
    public String getServletInfo() {
        return "Short description";
    // </editor-fold>
    }

    When you have errors, you should post them.
    I got 72 errors when I tried to compile the code you posted. Many of them are due to syntax errors like { and } not lining up.

  • Can you advise me?

    Hi, I have just recently purchased my first mac computer for my business (and love it) and am now in need of a laptop. I am new to this and need to make this purchase soon. I am wondering what the difference is between the MacBook Pro and the MacBook Air.
    Any input would be greatly appreciated.
    With thanks,
    Crackstep

    The MacBook Air is an ultra-light, ultra-thin, ultra-portable machine primarily intended for extremely frequent air travelers. It's less powerful in most respects and less feature-rich than even the low-end MacBook Pros.

Maybe you are looking for

  • Service Ticket - Project Management Add-on

    Background: We currently offer a third party e-commerce solution for our clients called Four51. Four51 is integrated into our SAPB1 platform. We provide comprehensive print managment and marketing fulfillment programs for medium and large sized organ

  • Oracle 10.2.0.2 to Oracle RAC 10.2.0.4

    Hi Need some advice, I currently have a oracle hot backupset via rman taken from a 10.2.0.2 single instance. I am in the process of building a rac and I am at a state of patching it. shall I shutdown all the services and take a copy of all the homes,

  • How to install a network card on Solaris 10

    Hi to all, I have installed for the first time Solaris 10 on i386 system. All went fine. Although Solaris did not found the PCI network card, is this normal? How can I install the (Realtek) network card; Thank you. Costas. Edited by: tritsako on Feb

  • JBuilder/package problem

    I'm going to 'port' my website to servlet tech, so after developing the thing on paper I wanted to write some test codes. There was no javax.servlet(.http) package! I found it with tomcat server and tried to put it to JBuilder2005/lib, also edited CL

  • Question about navigation

    Is it possible to have a navigation menu to switch between different portals(dashboards) to have different iviews appearing for different departments in a company? The dashboard has different departments, so for example, the director would need to sw