GroupAggregator and DistinctValues woes

Hi --
I have crafted a contrived TestCase and I just can't get the thing to output the results I expect.
Posting the classes (TestCase/Person), followed by the output I get, followed by the output I would have thought I should get.
Running on Mac OS 10.5.5, single node, stock configuration (not specified a custom XML config file) and the TestCase class is run with local storage set to false. Using the 3.4 download I picked up yesterday from the Oracle site; we also use 3.4 at work.
Any help appreciated!
----------8<----------------------------8<-------------------------------
// TestCase.java - the main class
package org.foo;
import com.tangosol.net.CacheFactory;
import com.tangosol.net.NamedCache;
import com.tangosol.util.NullFilter;
import com.tangosol.util.aggregator.DistinctValues;
import com.tangosol.util.aggregator.GroupAggregator;
public class TestCase {
     public static void main(String[] args) {
          // get a stock cache - no custom config
          NamedCache cache = CacheFactory.getCache("theCache");
          cache.clear();
          // add some people to the cache
          cache.put(1, new Person(1, "Albert"));
          cache.put(2, new Person(2, "Albert"));
          cache.put(3, new Person(3, "Albert"));
          cache.put(4, new Person(4, "Cindy"));
          // i want to find the id's of employees who share the same name, so i group by name
          GroupAggregator ga = GroupAggregator.createInstance("getName", new DistinctValues("getId"));
          // do the aggregation
          Object result = cache.aggregate(new NullFilter(), ga);
          // dump the result
          System.out.println(result);
----------8<----------------------------8<-------------------------------
package org.foo;
import java.io.Serializable;
public class Person implements Serializable {
     private int id;
     private String name;
     public Person(int id, String name) {
          this.id = id;
          this.name = name;
     public int getId() {
          return id;
     public String getName() {
          return name;
     public int hashCode() {
          final int prime = 31;
          int result = 1;
          result = prime * result + id;
          return result;
     public boolean equals(Object obj) {
          if (this == obj)
               return true;
          if (obj == null)
               return false;
          if (getClass() != obj.getClass())
               return false;
          Person other = (Person) obj;
          if (id != other.id)
               return false;
          return true;
----------8<----------------------------8<-------------------------------
ACTUAL OUTPUT: {Cindy=[3, 1, 2], Albert=[3, 1, 2]}
EXPECTED OUTPUT: {Cindy=[4], Albert=[3, 1, 2]}
----------8<----------------------------8<-------------------------------

Hi good stuff,
If will work as expected if you change your TestCase to
// i want to find the id's of employees who share the same name, so i group by name
        GroupAggregator ga = GroupAggregator.createInstance("getName", new MyDistinctValues("getId"));where MyDistinctValues is
import com.tangosol.util.ValueExtractor;
import com.tangosol.util.aggregator.DistinctValues;
import java.util.Set;
import java.util.HashSet;
import java.util.Collection;
* dimitri Oct 6, 2008 12:50:08 AM
public class MyDistinctValues extends DistinctValues
    public MyDistinctValues()
        super();
    public MyDistinctValues(ValueExtractor extractor)
        super(extractor);
    public MyDistinctValues(String sMethod)
        super(sMethod);
    public Object aggregate(Set setEntries)
        Set setResults = (Set) super.aggregate(setEntries);
        return new HashSet(setResults);
    public Object aggregateResults(Collection collResults)
        Set setResults = (Set) super.aggregateResults(collResults);
        return new HashSet(setResults);
    }Regards,
Dimitri

Similar Messages

  • K7N2 Delta ISLR and XP3200 Woes

    Let me share some of my experience with random crashes and lock ups on my main system.
    Hopefully some might find it helpful and others might have useful comments to add.
    It all started when I decided to upgrade my system. I waited until new technology was announced and then went out and bought the hardware that was knocked off the top spot.
    My current system is:
    Althon XP3200 Barton
    1Gig PC3200 (2x512M)
    K7N2 Delta ISLR Bios 7.7
    Radeon 9700pro
    Antec TruePower 550W PSU
    XP Professional
    SATA 120G Barracuda
    When I first assembled the system I could not, and still cannot, get it to run stable as a XP3200 with a FSB of 200MHz (400MHz) and the memory in dual channel mode. The system wouldn’t boot, would randomly crash, would come up with fatal XP errors.
    So after consulting the message boards I was informed it was probably be down to two causes; a inadequate power supply or overheating.
    That is when I went out and bought the Antec TruePower 550W PSU. The reason being the CPU temperature was around 47C - 52C (107F - 115F) with ambient around 35C (88F). Not too hot I thought.
    Anyway this did not solve the problem so I then decided to change the CPU coolers. I now have a nice collection, Alaska, Aero, Gigabyte and others. Current one on order is SLK-900A with a delta FFB0912EHE fan. But again this did not solve the problem.
    I then thought that maybe the ambient inside temperature was too high and therefore pushing the CPU temperature up. To solve this I fitted two hard-drive fans, four 80mm case fans and a PCI exhaust fan. This was on top of the 3 fans already in the system. Still the system would not run. I even took the side panel off and had a 6” mains fan blowing into the case. Still couldn’t make it stable.
    I have just ordered a Thermaltake Wingo V8000A case.
    So I decided to check out the XP3200 and memory. After playing around I found out that:
    1. The memory is fine running dual channel at 400MHz. I ran memtest using my CPU and memory in a friends PC for 12 hours without any problems (Abit board).
    2. The system is stable if I drop the FSB to the processor to 166MHz (333MHz). How I am currently run the machine.
    3. The system was more stable if I ran the memory in single channel mode.
    4. The point it becomes unstable is when the CPU FSB is 192MHz (384Mhz).
    5. The problem occurs on another K7N2 Delta ISLR motherboard. Actually exactly the same problem running a different XP3200 and 1Gig.
    I have tried all possible combinations in the bios, except Vcore, Vddim voltage levels. Which is my next step. I think I need to up the Vcore at higher frequencies as I believe it may be a bios /motherboard inherent problem.
    I hope this might be helpful to some who are experiencing the sample problems.
    Couple of things I don’t like about the mother generally a part from the fact I can’t set it up correctly.
    1. The decoupling capacitors around the CPU socket are too close. This limits the choice of CPU coolers you can fit.
    2. Motherboard components interfere / prevent you from fitting certain cards in the PCI slots. Such as the SPDF adapter that comes with the motherboard.
    And does anyone know:
    1. What is the maximum temperature I should be seeing for stable operation on a XP3200?
    2. Any recommendations on another suitable motherboard? I basically spent all the money I had so if I can’t get it working I’ll bin the motherboard and buy another one.
    Oh, why don't I run it at 333MHz? Well then I got a slower system than I started with and it means I admit defeat!

    I have this same board with the same BIOS and am also using an Athlon XP 3200+ (with Corsair TWINX1024-3200C2 RAM) and had the same excruciating stability problems.  I had tried/tested everything in sight and no stability.  Then I found a posting in this forum made a few months back by WebFan (with an XP 3200+ and basically the same RAM), who said he had the same kind of problem.  He had only achieved stability when he reduced the FSB setting to 192 MHz (obviously not a coincidence).  (Thank you ever so much WebFan.)  I reached the heaven of stability by making the same change.  Then I started experimenting; I moved the bus speed to 193, still okay.  I set the RAM settings to the 3-3-6 2.5 that Corsair says are stable, still okay.  
    Then, and this I believe is the key step, I installed the lastest set of chipset drivers from nVidia (not the older version provided by MSI).  This change subjectively seemed to improve performance noticeably, so I decided to take the big plunge and return the FSB to the rated 200 MHz setting.  It's only been three days, but STILL OKAY!  Before setting the FSB to 192, I was having all kinds of blue-screen crashes numerous times a day.  I haven't had a single one in ten days, three days running at the full 200 MHz.
    It seems to me that the board/chipset were not tuned to handle the 3200+.  If you look at the description of the board on the MSI global site, it says it's compatible with Athlon XP 3000+ and up.  My guess is that only the lastest edition of the drivers, version 4.24/4.27, is up to the job.  (I'm not interested in overclocking and so haven't been interested in seeing if I can do better than the rated 200 MHz setting [400 MHz DDR clock speed].  Leave well enough alone, if you ask me.)
    Try them; you have nothing to lose but your instability.

  • Ipod and itunes woes

    "Attempting to copy to the disk 'ipod' failed. The disk could not be read from or written to."
    iTunes 7 on my G5 keeps giving me this error message when I transfer music to my ipod. However, if I remain persistent and continually drag and drop the perceived "trouble song" the ipod eventually accepts it. I never have had this problem before iTunes 7 and my ipod is a 30gig photo ipod. It's really frustrating since I'm trying to move 70 songs over and I have to do it one-by-one. iTunes tells me that the iPod is up-to-date. any suggestions?

    i had the exact problem as you. have you tried using a different usb port? these were the steps i took:
    1) reset iPod.
    2) restore iPod on my laptop iTunes (because it wasn't working on my g5).
    3) then i kept trying to sync the iPod with iTunes on my g5 (because that was where my main music library was), but i kept getting the message: "The disk could not be read from or written to." i was using the usb port at the front of the g5.
    4) then i tried a different usb port. the first one i tried was on a usb hub. i manually added a few songs to the iPod. IT WORKED! then i switched to another usb port on the back of the g5. IT WORKED there, too!
    5) so i sync'ed the iPod to iTunes on the g5. a few times during the sync, i would receive that same message: "The disk could not be read from or written to."
    6) so i would safely eject the iPod, then reconnect, and re-sync all over again until the iPod was completely updated. a little bit of a pain, but at least my iPod is functioning again (after being dead for a couple of weeks.)
    hope this helps.

  • Streaming video and USB woes

    Hello, I have 10.5.7 installed on a macbook pro (october 2006 model).
    When I am watching streaming video in safari (I'm a baseball fan, and keep up with my team on mlb.tv), I have issues with my USB ports. For some reason, they turn off and on while streaming video. All of my harddrives, mouse, and keyboard disconnect and reconnect a few seconds later. I am using 2 powered USB hubs and the issue happens no matter the configuration. And it only happens when I stream a video (in flash, if that matters).
    Please tell me there is a fix, because my computer is basically unusable when this starts to happen.
    Thanks,
    -Daniel Brim

    If you have items connected directly to the computer, do you have issues? Try connecting 2 peripherals at a time to your computer (or 3, if you have that many USB ports on the computer) and see if they work fine. If so, the problem may be with the hubs you're using.
    ~Lyssa

  • App store log-in problems and alarm woes

    I have a couple issues with my new iPhone.
    I've been trying to download the free myspace app and when I do it asks me to enter my account information. I have two different Apple IDs and have tried BOTH (even resetting a password to make sure that it was correct) and no matter which one I use, it won't log me in. It tells me "Authorization failed. Please connect to iTunes"...not a clue what THAT means. How would connecting to iTunes help anything? How do I even DO that on my iPhone?
    Also, I've always used my cell phone as an alarm clock in the morning. I wasn't sure it'd go off while locked so I tested it last night and it worked. This morning I woke up twenty minutes late because it didn't go off. And I didn't have the snooze option on so it's not that I slept through it and it stopped. What's the deal?

    Ahhhh, but what about computer authorisation and the credit card 3 digit security code.  Wouldn't that stop what you suggest ?  I mean people use keychain for thinks like banks, Ebay, Amazon, and dozens of other things but Apple doesn't trust it for it's own services.  Seems a bit weird to me.

  • Apple TV and Netgear Woes: Music streams, but movies & movie trailers don't

    Hi,
    I'm having problems getting the Apple TV to stream video properly. My wireless router is a Netgear WGR614 v6. I've searched ad nauseum here and at other forums and have tried multiple suggestions regarding changing settings in the router's config page, etc., etc. However, the Apple TV still won't stream any video. I also have this same problem with iChat AV, but that's for another time.
    If I select a movie trailer or a video (which has been encoded to meet the requirements for Apple TV), I get the little spinning circle in the bottom left of the screen with a time length bar. The circle, however, just spins and spins. Sometimes, the length bar shows blue as if it's slowly loading the video, but 99% of the time it doesn't. Additionally, in the videos/movies that I have encoded, I can actually skip from one chapter to the next, but the screen is just black. No video shows at all and the little circle just keeps on spinning and spinning.
    Again, I've tried everything anybody has suggested on other threads to try and make this work, but it just doesn't.
    Audio streams fine, though there are occasional hiccups.
    Maybe there is something obvious that I'm missing?

    It's rather interesting that you have similar issues with ichatAV, this would tend me to believe your problems lie within your router. I have heard that some routers are having problems with multicast DNS, don't know which they are though. Have you looked for any firmware updates for your router.

  • Mac and HDCP woes

    I have been trying to get HD movies I bought from apple to play on my projector via VGA. When I try to play all I get is a gray-box on my mac and the projector. When the projector is unplugged everything of course works fine. When I called apple support they said I needed to play the videos through VLC, that since the decryption key is already on my mac from Itunes VLC should be able to use it to display the content in HD over a non-hdcp connection. Have not been able to get VLC to do anything more then show a track seek bar when I try to play the files in VLC. Any suggestions on how to get this to work? I understand that this is an HDCP issue at heart but I am trying to get around it as suggested by apple support. Thanks, Daniel.

    This copy protection does make it impossible to watch content that has been legally purchased. No wonder people go out and steal content!
    I spent money downloading a movie that I am also unable to watch. Apple really expects us to go out and spend lots of extra money buying special monitors? Really? They have got to be kidding!
    There should be large and clear warnings on the iTunes store for all content that requires a special HDCP monitor to watch. No more scamming the public. Can you guess I'm angry?!

  • IMac and USB woes

    I have a 2GHz Intel Core Duo iMac 20-inch.
    I seem to have problems with USB connections, specifically...
    When I plug in my 80 Gig video iPod, the iPod says DO NOT DISCONNECT, but is not recognized on the iMac. I shut down, but the iPod still says DISCONNECT. I disconnect any way, reset the iPod, reboot, and then the iPod is recognized and everything works as usual.
    I have a Belkin USB hub, and when I plug it in I experience kernel panics. Also, not everything plugged into the hub is always recognized. I will be trying a different hub, although have used this one without any problems on my older G4 iMac. No kernel panics as long as I don't use the hub (which I really need).
    Any advice?

    Try booting from the #1 disk that came with your computer, by inserting the disk, restarting computer and holding down C key until you get the Apple and spinning gear, then release. Go through a few screens until you see Apple at top left, go to Utilities and run disk utility, to see if there are any errors on your computer. If so and it doesnt fix them, run this program again (maybe twice). It should fix it. If not, consider an erase and install.

  • 6140 and Linux woes

    Hi,
    I have a 6140 array attached to 2 McData 4400 (4 connections - each controller connects to each 4400).
    Attached to the the 4400s i have several boxes, namelly some x4100s. the 4100s have each a dual port QLogic QLA2462 (sun branded).
    Those boxes are intended to be xen Dom0s (64b) and connect to the 6140 thru the 4400s.
    If i let one of those servers just to see one of the paths to one of the 6140 controllers (there are four, two coming from each 4400), it will see all 6140 Luns but on those that belong to the other controller it will bomb errors - (of the kind "Buffer I/O error on device sdf, logical block 7")
    But it boots. Mess, is that i want to use multipath (SUN's provided rdac driver doesn 't seem to compile nicely with a pristine xen kernel) so i must use device-mapper-multipath, which kinda of works. It can see (with all paths exposed) all devices and so on... what it cannot see is that, for each path, only the volumes owned by the controller that terminates that path are actually useable, which makes fail-over actually a mess.
    Question is - anyone actually uses dm-multipath with the 6140 and linux ? Am i doing anything blatantly wrong ? if so, which is the politically correct setup ? if rdac is the only way to go, where can i find a package that actually cooks with pristine upstream linux kernels ?
    Thanxs in Advance
    Ant�nio

    hey,
    only mpp will provide any useful multipathing under linux with 6140 arrays; dm-multipath doesnt work
    (perhabs sometimes a special driver for dm-mp will exist?)
    -- randy

  • Download and delete woes !

    a)  I have purchased 10 books: 6 have downloaded to my Ipad, 4 have not.
         My device tells me that I am fully sync'd, yet, with 4 books not downloaded, it is incorrect.
         How do I get around this impasse
    b) there are a number of, presumably, free books in my library that I have no wish to read: how do I remove them ?
    c) I have tried the ipad app removal technique ( press the app until  it wiggles and shows an x but that doe'nt work.
    d) I have looked in the FAQ's for ' delete' and 'remove ' books but the comments are of no practical use.
    All suggestions are welcome as frustration is pileing up by the ton !!!!!
    Peter T

    Is this really Adobe Reader you're using? Doesn't sound a familiar problem or something I could do with Adobe Reader.

  • Slow computer and Prebinding Woes

    Greetings.
    I have been experiencing slow overall system performance as of late on my Dual 2.0GHZ G5. Normally, a repair permissions and prebind will solve this problem. I tried this last night, however when I ran prebinding from the terminal, it asked for my password, and after I entered it, the terminal hung for about 15 seconds and the next line I get reads c-67-161-216-202:~"my user name"$
    Then I get the little rectangle cursor as if the terminal is waiting for a new command.
    The lines of text I would expect to follow after I enter my password no longer apear.
    I don't know if it makes any diference, but I did experience a kernal panic a few weeks ago.
    Any suggestions would be greatly appreciated.
    Dave.

    First, there's no need to ever do prebinding unless you are using OS X 10.1.x or earlier. Repairing permissions also won't make a slowing computer run faster. Your computer may be running slower because you need more RAM or maybe just need to do an occasional restart. It could also slow down due to large cache and log files that need clearing (use TinkerTool System.) If the problem is due to hard drive corruption then use Disk Utility to repair the hard drive. Unless you are having permissions related problems there's no need to repair permissions.
    Visit The XLab FAQs and read the FAQ on maintenance and optimization. Following is my suggestions on maintenance:
    Kappy's Personal Suggestions for OS X Maintenance
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility called Macaroni that will automate the maintenance activity regardless of whether the computer is turned off or asleep.
    OS X automatically defrags files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems.
    I would also recommend downloading the shareware utility TinkerTool System that you can use for periodic maintenance such as removing old logfiles and archives, clearing caches, etc.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand. I also recommend booting into safe mode before doing system software updates.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is significant):
    1. Retrospect Desktop (Commercial - not yet universal binary)
    2. Synchronize! Pro X (Commercial)
    3. Deja Vu (Shareware)
    4. SuperDuper (Commercial)
    5. Carbon Copy Cloner (Freeware - not universal binary.)
    6. LaCie SilverKeeper (Freeware)
    7. MimMac (Shareware)
    8. RsynchX 2.1 and PsyncX 2.2.1 (Freeware)
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.

  • Rescue and recovery woes...

    Greetings,
    I tried to search for a solution but found none. I am running out of hard drive space on the pathetic 80 gig original drive.
    Rescue and recovery tries to run but cannot as it says there is not enough space left to do a back up. How do I change the saved location for R&R to an auxiliary drive?
    Also, how can I free up more space on the drive and move it off into the auxiliary drive(s)?
    txs

    Hi,
    I'm not sure, how exactly you want to perform this, but here are some scenarious, that might be of interrest for you:
    1) Copy the backup, that you have on your local HDD on a second HDD<External USB, or whatever else>
    For this purpose you can use the rrcmd utility of RnR:
    - simply start command line and navigate to the installation folder of RnR
    - start this command:
    rrcmd.exe copy location=x
    where "x" is the location where you want to copy your current backup to
    OR
    you can accomplish this by opening RnR GUI and press in the Options/Settings the btton "Copy Backup" and this will guide you through the process.
    2) Copy the backup, that you have on your local HDD on a second HDD<External USB, or whatever else> AND remove it from the local HDD to have some space:
    do the above steps + after you are sure, that the backup was moved completely to the second location, then run following command:
    rrcmd.exe delete location=x
    wehere "x" is the location where the origilan backup was stored in. For your situation, this is the local HDD
    NOTE: do this afte you detached the other HDD, where you stored the copy of your backup. Also if this is done, make sure, that the external device is configured as the only backup location. If it is not, then the next run of RnR Backup will create another backup on your local HDD.
    Although the above description is acomplishing, what you are about to do, if I were you I would do it following way:
    I would delete all the backups , that you have, so that I have a free space. Make sure, that you have aon your system, only what you neeed and want to have. Configure RnR to store a backup only on the external HDD, or network share, or whatever else and start a backup creation.
    This last description is because I always want to be 100% sure, that all is fine and will work also n the future on 100%. Becasue you know, copy does not equal to new backup creation. Don't take it that serious, it's just that I'm suspicious.
    Cheers

  • Dreamweaver Form and Form2Excel woes

    I'm a brand-new user on this forum. I'm trying to get a form
    together using Dreamweaver and I need help with two problems. The
    form is at www.faithfarmteams.com.
    1. When I test the form, and I purposefully ignore a required
    field, I get a popup asking me to fill in that field but then it
    automatically redirects to the "thanks" page, instead of taking me
    back to the form to fix the error. How do I fix this problem?
    2. I downloaded Form2Excel to collate form results into a csv
    file. I've installed it following their instructions carefully, but
    when I test the form and then go to where the csv file should be,
    the only csv files there contain only a couple of fields, neither
    of which is on my form and which only contain gibberish. How do I
    fix this problem? (I have e-mailed the Form2Excel tech support, but
    I'm trying to fix this more quickly if possible.)
    Any help would be appreciated - thanks.

    1. Most validation of this type is initially handling using
    javascript
    attached to the form . I can not see this on the page which I
    assume means
    that you are doing it server side. In which case you need to
    look at the
    code there.
    2. It sounds like your csv is not working at all and what you
    are seeing is
    data in the original file that comes with the tool. There
    could be a number
    of reasons why there is nothing there but the PHP experts
    would probably
    need to see some code to work it out.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "zapzorak" <[email protected]> wrote in
    message
    news:f0rgjb$gac$[email protected]..
    > I'm a brand-new user on this forum. I'm trying to get a
    form together
    > using
    > Dreamweaver and I need help with two problems. The form
    is at
    > www.faithfarmteams.com.
    >
    > 1. When I test the form, and I purposefully ignore a
    required field, I get
    > a
    > popup asking me to fill in that field but then it
    automatically redirects
    > to
    > the "thanks" page, instead of taking me back to the form
    to fix the error.
    > How
    > do I fix this problem?
    >
    > 2. I downloaded Form2Excel to collate form results into
    a csv file. I've
    > installed it following their instructions carefully, but
    when I test the
    > form
    > and then go to where the csv file should be, the only
    csv files there
    > contain
    > only a couple of fields, neither of which is on my form
    and which only
    > contain
    > gibberish. How do I fix this problem? (I have e-mailed
    the Form2Excel tech
    > support, but I'm trying to fix this more quickly if
    possible.)
    >
    > Any help would be appreciated - thanks.
    >

  • T60 battery AND HD woes? or

    A few days ago I received a used T60 in what looks like very good condition. Plugged it into the 120 and proceeded to make some changes, replace the HD with a 320G, remove what I’ll call junk and updated Windows that took a couple hours without SP3. I heard that if it works = fix it. all worked surprisingly well with the battery health indicating 100%. I unplugged it to move to another room to test the wireless for less than ½ hour, plugged it back in with a charge of around 90% indicated and proceeded to DL some more wanted apps with the indicator going back to 100%. Shortly afterwards the built in battery indicator started flashing yellow with a message saying the battery is defective?? At 100%?? Nothing I did changed the indicator so stopped using it to get away from it. This AM powered up and got an error message ”cannot boot from any device”  ?? WTF. Put the original HD back in and got the same message. I then put a 8” dowel on the drives and heard a short motor wind up< 2 seconds, and what sounded like a short chattering then no sound at all.   Any ideas of what to do besides hoping the warranty is still in effect. Please help as the wife was going to take it on a trip for a week come Sunday.    TIA   Vic.                         
    Solved!
    Go to Solution.

    well the question would be where did you get your laptop from???
    also what do you mean when you say put a 8" dowel on the drive???
    The battery warranty is 12 months, so most likely you battery are no longer protected by the warranty option. So you will have to purchase a new one from either Lenovo.com or some stores.
    Regarding your HDD, if it is still within warranty (check here) then it will be replaced by Lenovo provided that the damage wasn't caused by you. Usually Lenovo will ship out the hdd to you, and you can replace it yourself, and return the defective drive to Lenovo through the same courier, but may vary depending on the warranty services that came with your laptop.
    So basically, your wife's trip shouldn't be affected provided that you buy a new battery for her, you can get your hdd changed at any time within the warranty period.  
    Regards,
    Jin Li
    May this year, be the year of 'DO'!
    I am a volunteer, and not a paid staff of Lenovo or Microsoft

  • Drag and Drop woes driving me up a creek!

    Hello:
    I went the the following link and downloaded the many samples for DnD.
    http://www.rockhoppertech.com/dndsrc-beta-1.0.jar
    My problem is that I do not know how to run any of the samples.
    Can someone please, please, please tell me how to run even one
    of the examples with step-by-step instructions? I have already
    tried putting the jar and the entire directory path in my
    classpath statement, and I am bombarded with import errors.
    Thanks!

    Can someone please help? Attached is a piece of code I am trying to modify so that I can drag and drop objects. However, the compiler gives me an error for the container.add(obj) line. Any suggestions/solutions? Thanks so much!
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.datatransfer.*;
    import java.io.*;
    import javax.swing.*;
    public class ObjTransfer extends TransferHandler
    implements Transferable {
    private static final DataFlavor flavors[] = {null};
    static {       
    try { flavors[0] = new DataFlavor(DataFlavor.javaJVMLocalObjectMimeType); }
    catch (Exception ex) { ex.printStackTrace(); }
    private Object obj;
    public int getSourceActions(JComponent c) { return TransferHandler.COPY;  }
    public boolean canImport(JComponent comp, DataFlavor flavor[]) {
    if (!(comp instanceof Object)) {
    return false;
    for (int i=0, n=flavor.length; i<n; i++) {
    if (flavor.equals(flavors[0])) {
    return true;
    return false;
    public Transferable createTransferable(JComponent comp) {
    obj = null;
    obj = (Object)comp;
    return this;
    public boolean importData(JComponent comp, Transferable t) {
    try {
    if (t.isDataFlavorSupported(flavors[0])) {
    obj = (Object)t.getTransferData(flavors[0]);
    if (comp instanceof Object) {
    Container container = (Container)comp;
    container.add(obj);
    return true;
    } catch (UnsupportedFlavorException ignored) { }
    catch (IOException ignored) {}
    return false;
    //Transferable
    public Object getTransferData(DataFlavor flavor) {
    if (isDataFlavorSupported(flavor)) {  return obj;   }
    else return null;
    public DataFlavor[] getTransferDataFlavors() {  return flavors;  }
    public boolean isDataFlavorSupported(DataFlavor flavor) {
    return flavor.equals(flavors[0]);
    } // end of ObjTransfer class

Maybe you are looking for

  • 4g not recognized by updater or itunes

    So i basically did everything i possibly could to resolve the problem apart from restoring the ipod since updater cant recognize it.... i do have 1 usb2 plug somewhere on my computer but i cant know which one it is ... unless they all the same... so

  • OC4J 9.0.2 deployment on 9iAS 1.0.2.2.2

    Hi, I have installed the OC4J v9.0.2 on Windows by itself. I was trying to find out if there is a way in which I can deploy the 9.0.2 OC4J on a Oracle9iAS 1.0.2.2 installation on Windows (for Windows there has not been any release of the 9iAS Rel 2 y

  • Lumia 925 rebooted after cyan update (everything i...

    Hi all, I installed Cyan update less than a week ago (Finland). Everything worked fine, but today my Lumia 925 started to install by itself software updates after which it erased ALL information (pictures, personal software. addressbook  etc) from th

  • JMS Adapter Parameters

    Hi All: I am using XI 3.0 and When I am confuring JMS adapter i am seeing these parametes :- QueueConnectionFactory Java Class :progress.message.jclient.QueueConnectionFactory Queue Java Class : progress.message.jclient.Queue Server Port : 2506 JMS Q

  • IPlanet Web Server crashes when uploading a file of size 15 MB

    Hi Setup is iPlanet Web Server 6.0 with iPlanet App Server 6.5. A servlet is used to upload files using multipart form data. The web server restarts itself when tried to upload a huge file (approx 15 MB). The error log says Catastrophe (600) Web serv