SAX succeeds, but StAX fails

Hy!
I tried to parse PubMed (a biomedical article database) with SAX and
also StAX. The last one failed, but I am not sure why (see Exception
below).
Why does SAX succeed and StAX don't? The XML document seems to be fine (see
http://www.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&retmode=xml&id=11748933
Any suggestions?
Kai
StAX example:
String address = "http://www.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&retmode=xml&id=11748933";
URL url = new URL(address);
XMLInputFactory factory = XMLInputFactory.newInstance();
XMLStreamReader parser = factory.createXMLStreamReader(url.openConnection().getInputStream());
while(parser.hasNext()) {
       switch(parser.getEventType()) {
        parser.next();
}Error message:
javax.xml.stream.XMLStreamException: ParseError at [row,col]:[50,39]
Message: A '(' character or an element type is required in the
declaration of element type "PubMedPubDate".
SAX example:
SAXParserFactory parserFactory = SAXParserFactory.newInstance();
parserFactory.setValidating(true);
parserFactory.setNamespaceAware(true);
SAXParser parser = parserFactory.newSAXParser();
parser.parse(url.openConnection().getInputStream(), new
PubmedEFetchHandler());(PubmedEFetchHander is a simple DefaultHandler with some debugging
output).
Edited by: feldus on Mar 6, 2008 11:38 AM

Have you looked at the usual suspects, such as disk space, file permissions etc.?
Generally, if/when one of the tools fails, I run it from the command line. To figure out the command line, take a look in the log file and you'll see the command that it ran. By running it from the command line, you usually get a better idea of why it failed.
Bob

Similar Messages

  • Installation Succeeded but Patch Failed. Download Error Support (49)

    Installation Succeeded but Patch Failed. Download Error contact Support (49)

    i have the exact error. I have CC for Photographer for quite some times now and it updates on and off normally until perhaps a couple of month ago. Lr updated ok. ACR updated ok. But Ps ended up with such error. I uninstall it and tried again, same error. There was one hit that mention about disabling McAfee anti-virus. Since my machine is managed by my company, I can only disable it by booting Windows (Win 7 enterprise) in Safe Mode. I did but the same error. Any other suggestion?
    By the way, my other machine which I install exactly the same CC applications have no problems at all so I am quite sure it is my company machine that is causing the problem. I just need to figure out what is wrong.

  • Backup appears to succeed but actually fails

    We're trying to configure backups of our Hyper-V VMs that are hosted on an SMB 3.0 clustered scale out file server and we've run into a wall. DPM works for backing up SQL and Exchange with minimal problem, but it seems to silently fail when trying to back
    up Hyper-V VMs.
    When setting up a VM to back up, it appears as expected under the Hyper-V cluster's name and expands to show "HyperV" and then expands again to show "Offline\VMName" - the VM is turned off, so I believe this is as expected. We then continue
    the setup using all default settings for the backup.
    Once it is done setting up, DPM shows that the protection group is "OK" on the Protection tab and the server itself shows "OK" with the green checkmark.
    Trouble starts if you look at the details for the VM. It is showing only 99.8 MB used (the VHD alone is over 30 GB on that particular VM). Further, if you go to the Recovery tab, the VM doesn't show up there at all.
    If I then attempt to run a consistency check or create a recovery point, it fails saying it is in an inconsistent state. Running the consistency check again, so not fix the inconsistency.
    The only logging I can see is an Event 33223 on the DPM server saying the "Backup job for datasource: Offline\VMName on production server: SCVMM VMName Resources.cluster.domain.com failed." I can't
    find anything in the logs on the Hyper-V host that the VM is on nor can I find anything logged on the SOFS cluster that hosts the VM VHDX files.
    How can I track down the source of this problem? There is nothing in the logs or in the errors in DPM pointing to the root issue.

    Well, I'm apparently just blind.
    Was pretty sure this was DPM 2012 R2. It in fact was not.

  • I tried downloading Adoboe Photoshop CC and it says: Installation succeeded but a patch failed. How do I fix this?

    Let me explain. I have an HP 2000 series laptop running Windows 7 Home premium with a 500gb hard drive. I currently have Adobe Photoshop CS4 on my computer but I uninstalled it first before downloading the trial of CC. I figured when my 30 day Photoshop CC trial was over I could go back and download CS4 with the CD again. I just wanted to try CC to see how different it was from CS4 and for some reason when I install it gets to 99% and when it finally reaches that 100% the error message comes up "Installation succeeded but patch failed." I have tried to hit the retry button a number of times and each time it still gives me the same error message. I tried restarting my laptop to see if this would fix the issue and it did not. What does this "patch failed" error mean and how do I fix this so I can download my adobe photshop CC trial?

    Yeah for some odd reason out of no wear i am able to successfully download everything. Ill be honest i couldn't download everything properly while watching Netflix. ha Weird. But yea i just got Photoshop and flash to download fine! so thats awesome thank you for the tip i will be sure to add that next time i have a problem thank you!

  • Gc_w01_enu_nb.exe extracts to 100% but setup fails instantly in winxp pro

    gc_w01_enu_nb.exe extracts to 100% but setup fails instantly in winxp pro
    I'm trying to install the full featured driver for my psc-1315xi on two WinXP Pro PCs.
    The first one worked perfectly.
    On the second one, when I run the downloaded exe, I get the "Extracting" message, but when it goes up to 100%, the setuup window never opens.  And no error messages are displayed.  I poked around and found a log file that was produced.  It includes the following:
    GetValueByLang( f->c_str(), _T(Version), _T(LanguagesInthisCD) failed
    System LangID = 1033.  mapped to ENU
    ## The system language is ENU, but it isn't on our CD!
    ## We couldn't figure out a language to use, and are returning FALSE from CICECmdLine::GetLanguage()!
    ## GetValueByLang( f->c_str(), _T(Version), _T(LanguagesInthisCD) failed
    Setup returning 1603
    Any help would be appreciated.
    This question was solved.
    View Solution.

    I think I may have solved this problem.
    I have a Windows XP Pro (SP3) PC that was experiencing this issue.
    Immediately after the "extracting" window went to 100% and closed, nothing happened.  The software installer/setup windows never displayed.
    Each time I tried it created a log file that started with this:
    Parsed command line: ".\Setup.exe"
    Using datfile: C:\DOCUME~1\xxxxx\LOCALS~1\Temp\7zS1293\autorun.inf
    ## GetValueByLang( f->c_str(), _T(Version), _T(LanguagesInthisCD) failed
    System LangID = 1033.  mapped to ENU
    ## The system language is ENU, but it isn't on our CD!
    There were other error messages after that, but they all stem from lines 3 and 5.
    Something was preventing the setup program from recognizing that the ENU language files ARE present in this download.
    By comparing two PCs, one with the problem, and one that worked just fine, I saw that the one that was failing had AutoRun disabled via a registry setting.  I temporarily removed this from the registry on the PC that was failing and the setup launched and ran like it was supposed to.  Here are the first few of that log file from the same PC, a few minutes later, where the only difference was that I had removed the offending registry setting:
    Parsed command line: ".\Setup.exe"
    Using datfile: C:\DOCUME~1\xxxxx\LOCALS~1\Temp\7zS1293\autorun.inf
    System LangID = 1033.  mapped to ENU
    We are using the system language=ENU, which is on our CD!
    As you can see, the "(LanguagesInthisCD) failed" message (Line 3) has disappeared, and line 5 (now line 4) shows that it succeeded in recognizing that the ENU language setup files are present.
    So, if you are experiencing this problem and you are comfortable working with the system registry, here's how I got it to work on my PC:
    Start regedit
    Navigate down this tree
    -HKEY_LOCAL_MACHINE
    - - SOFTWARE
    - - - Microsoft
    - - - - Windows NT
    - - - - - CurrentVersion
    - - - - - - IniFileMapping
    Below that, look to see if there is a key named "Autorun.inf"
    On my PC (the one with this problem) the value for this key was "@SYS: DoesNotExist"
    If your registry has this also, it may be the cause of your problem.
    In the left pane of regedit, right click on Autorun.inf and select "Rename" from the popup menu.
    Change the name to something like "Autorun.inf.hold"
    Close regedit
    At this point I rebooted my PC, but I don't know if that it actually required.
    I ran the downloaded driver file.  It extracted, and the setup program started like it was supposed to.
    When that was done, I went back into regedit and renamed "Autorun.inf.hold" back to "Autorun.inf"
    This was enormously frustrating for me, and (if you need it), I hope this solution works for you.

  • WebEngine goes in State SUCCEEDED but DOM in null

    I'm trying to develop a JavaFX web page loader. I want to explore the DOM tree after page loading, so I load the DOM after I receive a Worker State SUCCEEDED, but the problem in that when I test my code on the url: www.repubblica.it, I got SUCCEEDED but the DOM is still null.
    It seems to be that the page is not completely loaded although I got the SUCCEEDED event.
    This is the peace of code that fails:
    webEngine.getLoadWorker().stateProperty().addListener(new ChangeListener<Worker.State>() {
         @Override
         public void changed(ObservableValue ov, Worker.State oldState, Worker.State newState) {
    if (newState == Worker.State.SUCCEEDED) {
    webEngine.getDocument(); // On www.repubblica.it dom is still null
    I also tried to reload the page when the DOM is null and it seems to work but completely random (sometimes I have to reload two times, sometimes three and so on).
    This problem is driving me crazy. Any help wiill be greatly appreciated!
    Thanks in advance.

    I see an exception occurring there which likely ruins the document. Filed as https://javafx-jira.kenai.com/browse/RT-30835

  • When trying to sign in to my itune account on my new iphone i couldn`t remember my id and password and tried to set up a new account but it failed and have since remebered my original id and password but my phone only comes up with the alternative email

    I tried to access my itunes account on my new iphone 5s i couldn`t remember my id and password and tried to set upa new account but this failed, but have since found all the id and password for my original account but my phone only comes up with the alternative email i tried to use and i can`t change this,can you help please?

    Hi ruffdog64,
    If you are having issues changing the signed in Apple ID on your iPhone, you may find the following article helpful:
    iOS: Sign in with a different Apple ID in the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/ht1311
    Regards,
    - Brenden

  • How do i wipe my old phone if it can no longer connect to the internet? I enter my passcode and apple id, but 'verification fails' as there is no internet connection???

    how do i wipe my old phone if it can no longer connect to the internet? I enter my passcode and apple id, but 'verification fails' as there is no internet connection???

    Hi, JTCW33. 
    Thank you for visiting Apple Support Communities. 
    If you still have possession of the iPhone you wish to wipe, here are a couple articles that will walk you through the process. 
    What to do before selling or giving away your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT5661
    iOS: Unable to update or restore
    http://support.apple.com/kb/HT1808
    If you no longer have access to your device, it will need to be connected to the Internet in order to remote wipe the device. 
    iCloud: Erase your device
    http://support.apple.com/kb/ph2701
    Cheers,
    Jason H. 

  • I tried updating iTunes to version 11.1.1, but installation fails each time even when I did it manually as was suggested.  The message I receive is: "The installer has encountered an unexpected error installing this package.  This may indicate a problem"

    I tried updating iTunes to version 11.1.1, but installation fails each time even when I did it manually as was suggested.  The message I receive is: "The installer has encountered an unexpected error installing this package.  This may indicate a problem with this package.  The error code is 2324."

    Hi hongkongpom,
    Just wanted to say that after posting the problem, I had a chat with an iTunes' Tech Support, her name is Rebekah.  My problem was resolved after that.  Will list the chat history below in hopes that it may help you as well.
    Good luck!
    Samia  
    Chat Transcript
    Friday, October 4, 2013 05:55 AM
    Duration: 81 minutes 28 seconds
    Rebekah:
    Welcome to AppleCare chat support. Please give me a moment to look over your information.
    Rebekah:
    Hi, Samia! My name is Rebekah. If we get disconnected, please chat us back. http://www.apple.com/support/ipod/contactEnter the case number from the initial email we sent you. This gives the next advisor you chat with immediate access to your case history.
    Rebekah:
    Could you please confirm your serial number? I want to be sure we provide the best service possible for you, Samia!
    SAMIA:
    Sure, it's 8L8395UY2C5
    SAMIA:
    My problem is with iTunes.
    Rebekah:
    Thanks for that confirmation. Just a heads up, this is iOS Tech Support. We do support iPod touches, iPads, and iPhones, but not the iPod classic. But no worries! I can get you in touch with a phone Advisor who can get you in touch with the department that specializes in iPod classics and would be able to better assist you. Would that be OK?
    SAMIA:
    I wasn't able to install the new version of iTunes (version 11.1.1). The installation keeps failing. The they suggested the I install it manually and that failed too. I will attach the message I received.
    SAMIA:
    I don't have a problem with iPod.
    SAMIA:
    Just iTunes
    Rebekah:
    No problem! We can certainly troubleshoot iTunes as much as possible. It may come to the point that you may have to transferred, but we can do as much as possible during this chat!
    Rebekah:
    Thanks for the screenshot. It is a bit small so I am unable to fully see the message that you are receiving. What is the error message you are receiving?
    SAMIA:
    This is the message I received in case you weren't able to open the attachment: "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2324."
    Rebekah:
    Thanks for that info!
    SAMIA:
    Pleasure!
    Rebekah:
    What version of Windows (XP, Vista, 7) do you have?
    SAMIA:
    Windows 7
    SAMIA:
    Windows 7 Home Premium
    Rebekah:
    Thanks for that confirmation. I do apologize for the delay, Samia. I am researching this error code now. You mentioned trying to install iTunes manually. To be sure I am on the same page, what steps did you take to do that?
    SAMIA:
    Well when the indsatalltion failed I was given instructions to select Download Only from Tools and then install manually. When I did it, I window popped up with the following items: - AppleApplicationSupport
    SAMIA:
    - AppleMobileDeviceSupport64
    SAMIA:
    - Bonjour64
    SAMIA:
    iTunes64
    SAMIA:
    SetupAdmin
    SAMIA:
    I selected Repair in all of them instead of Remove and all worked but iTunes64
    SAMIA:
    That's when I received the message that I sent you earlier.
    SAMIA:
    By the way, this is the fir st time something like this occured. I never had problems with installation before.
    Rebekah:
    I completely understand what you're saying. Since that Repair did not resolve the issue, our best option is to uninstall iTunes and its components and redownload it. To do this, we will follow the steps in this article: Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    Rebekah:
    First, we will want to quit iTunes and/or Apple Software Update if those are open at this time.
    SAMIA:
    Rebekah, the instructions you gave says, "For Windows XP, follow these steps to remove and reinstall iTunes and other software components for Windows XP."
    SAMIA:
    I closed all applications
    SAMIA:
    Also, my iTunes doesn't open anymore after the new failed installation.
    Rebekah:
    The section that says "For Windows XP…" is in case we opened up the wrong article, as we have the one for Windows Vista, 7, or 8. There is a link to click ("these steps") in those directions that would take us to the article for uninstalling on a Windows XP.
    Rebekah:
    So no worries! We have the right article!
    Rebekah:
    On the computer, we will want to click on Start > Control Panel. In Control Panel, we will click the "Uninstall a program" link.
    SAMIA:
    I thought so after doing a little exploration.
    SAMIA:
    done
    Rebekah:
    Alright, we'll want to select iTunes from the list of currently installed programs. Then we will click Uninstall. When asked if you would like to remove iTunes, let's click Yes.
    Rebekah:
    After the uninstallation is complete, we don't want to restart your computer if you're prompted.
    SAMIA:
    Done
    Rebekah:
    Then if you see other iTunes entries on the list, we'll want to remove them the same way.
    Rebekah:
    Then we will remove all instances of Apple Software Update the same way you removed iTunes.
    SAMIA:
    Okay, but do I have to remoce iCloud as well?
    SAMIA:
    Rebekah, I received the same error message again when uninstalling
    Rebekah:
    We actually do not need to remove iCloud. After the Apple Software Update, we will want to remove all instances of Apple Mobile Device Support
    Rebekah:
    How strange! Are you able to click past that and allow the process to continue or has it stopped it completely?
    SAMIA:
    I am unable to uninstall iTunes either
    SAMIA:
    Stopped completely
    SAMIA:
    I treied clicking Repair
    Rebekah:
    Alright, after trying the Repair option, let's see if it will allow us to continue uninstalling or not.
    SAMIA:
    I tried that but unfortunately, it isn't working. I still get that same message with error code 2324.
    Rebekah:
    This error code is not something that I am finding in my sources, Samia. So there is a chance that it is being caused with the Windows computer itself. However, I did find a link that may be able to help with uninstalling iTunes from Windows' support site: http://support.microsoft.com/mats/Program_Install_and_Uninstall
    SAMIA:
    Rebekah, you're a genius! It worked! iTunes is no longer there. What next?
    Rebekah:
    Awesome! I'm glad that worked!
    Rebekah:
    To be sure I am on the same page, what was the last component we uninstalled?
    SAMIA:
    iTunes
    SAMIA:
    Shall I remove the Apple Application Support, Apple Mobile Device Support, and Apple Software Update
    Rebekah:
    That is correct! However, we do want to uninstall it in the order I mentioned above. So Apple Software Update first, Apple Mobile Device Support next, and then Apple Mobile Device Support.
    SAMIA:
    Got it, but is the second one to uninstall Apple Mobile Device Support OR Apple pplication Support?
    Rebekah:
    The second one is Apple Mobile Device Support.
    Rebekah:
    The Application Support will be the last component we uninstall.
    SAMIA:
    Thanks! I'm on it.
    SAMIA:
    Done! ll 3 are gone, well 4 with iTunes. Now what?
    Rebekah:
    Awesome! Also, I just noticed that I accidentally typed Apple Mobile Device Support twice, I do apologize for any confusion! Now we will remove all instances of Bonjour and then remove all instances of Apple Application Support.
    SAMIA:
    There was only 1 instance with Bonjour. I don't know what the instances are for Apple Application Support
    Rebekah:
    Yes, Bonjour is often only listed once. Is the Apple Application Support listed at all?
    SAMIA:
    No
    SAMIA:
    Since I removed it
    Rebekah:
    Oh, perfect! If it was removed, we should be set!
    Rebekah:
    We have removed iTunes and its components now! From here, our next step is to restart the computer. Then once you reboot, you can redownload iTunes from apple.com/itunes
    Rebekah:
    That should allow you to download iTunes!
    SAMIA:
    Shall I downloaad the latest vesion?
    Rebekah:
    You will want to first restart the computer as shown in the article. That will ensure that this process goes smoothly and that everything was removed correctly! Then you can try downloading iTunes again.
    SAMIA:
    Okay, thanks Rebekah!
    Rebekah:
    You're very welcome! I'm glad I could help! And of course if you have any issue after the reboot and download, you can always chat us back, as chat is open 24 hours! You will just need to give your case number and the next Advisor would have all my notes!
    SAMIA:
    Thanks again for all your help, for I couldn't have managed with out it. Have a nice day!
    Rebekah:
    You're very welcome! I know how important iTunes is and I'm glad we could get you on a path to resolution!
    Rebekah:
    I hope you have a lovely day!
    Rebekah:
    It's been a pleasure speaking with you! Thanks for chatting with us Samia. If you don't have any more questions, select End Chat from the upper left corner of the chat window.
    SAMIA:
    Will do, thanks.

  • HT1998 Time machine no longer backs up.  It prepares for back up OK but then fails to complete.  The archive is still available.  Any ideas? Thanks

    Time machine no longer backs up.  It prepares for back up OK but then fails to complete.  The archive is still available.  Any ideas? Thanks

    Unfortunately, not much to go on here. There are any of  twenty different reasons why backups are not occurring, and no shortcuts that I know of to find out why.
    Work your way through Backup Failures in Pondini's excellent support document Time Machine --- Troubleshooting. 
    See C1 through C19.
    http://pondini.org/TM/Troubleshooting.html

  • HT201210 I tried to do an update to the Ios 5 but it failed tried to restore my iphone however all im left with is an image of itunes with a usb connector please help as my phone will no longer work!!

    Hi I tried to do an update on my Iphone 4 hardware but it failed (dont knoyw why) I followed instructions to restore my Iphone unfortunatel all im left with is an image of itunes with a usb and a dead phone can someone help???

    Hey, I aggree with Tempelton for the most part, but if you are an advanced user on the computer on the phone, there is one thing you can try. There is a program called RecBoot, which might help you, and here is a page that might help you. http://jaxov.com/2010/05/recboot-iphone-recovery-mode/ If you are not an advanced user, I would NOT recomend using RecBoot, and just proceeding with the restore. A little consolation could be that you probably had Photo Stream on, and you might have been backing up to iCloud, which should mean you'll have some stuff after the resote. Sorry this happened!

  • My final cut is running extremely slow after having for 6 months.  I use external hard drives and save nothing on my computer.  it takes a long time to render now. do you think something is wrong with computer. took it to mac store but they fail to help

    my final cut is running extremely slow after having for 6 months.  I use external hard drives and save nothing on my computer.  it takes a long time to render now. do you think something is wrong with computer. took it to mac store but they fail to help me.  I have a 13 inch mac book pro 10.6.8 8gb 2.3 gfz intel core i5

    What did Apple tell you about what they did (or did not) find here?
    See if working on the main disk is any faster.
    USB2 is glacial, as I/O interconnects go.  And USB2 disks have been known to fail, or sometimes to drop back to USB1 speeds, too.  FireWire 800 is substantially faster than USB2, but still not as fast as the internal drive connections can provide.
    Put another way, start varying your configuration, and see which configuration changes (still) have the problem, and which don't.

  • I am running Facetime version 1.0.3 (167) on MacBook Pro OSx 10.6.8 but Facetime fails to other Mac devices. What version of Facetime can I upgrade to in order to rectify this ?.

    I am running Facetime version 1.0.3 (167) on MacBook Pro OSx 10.6.8 but Facetime fails to other Mac devices. What version of Facetime can I upgrade to in order to rectify this ?.

    Unable to make or receive FaceTime calls after April 16, 2014

  • TS3694 itunes error (-42404) -- Okay, getting a little frustrated (but then again, who isn't a little frustrated?). I recently tried to upgrade iTunes software a few days ago but it failed. What is (-42404) error code mean?

    itunes error (-42404) -- Okay, getting a little frustrated (but then again, who isn't a little frustrated?). I recently tried to upgrade iTunes software a few days ago but it failed. What is (-42404) error code mean?
    I get the following:
      (1) iTunes - The software required for communicating with iPods and mobile phones was not installed correctly. Do you want iTunes to try to repair this for you? Yes/No
      (2) iTunes - The software required for communicating with iPods and mobile phones could not be repaired. Please reinstall iTunes if you wish to use these devices. OK
      (3) iTunes error message - A required iTunes component is not installed. Please repair or reinstall iTunes. (-42404) OK
      (4) iTunes error message - We could not complete your iTunes Store request. A required iTunes component is not installed. Please repair or reinstall iTunes. (-42404) There is an error in the iTunes Store. Please try again later. OK
    Okay, so I decided to uninstall and reinstall. Funny, iTunes can be found in a program folder, but it does not show up in the programs list. I tried to look for it using the command prompt ("wmic" --> "product get name") but iTunes is not there either. Doesn't even show up in the registry to try to uninstall.
    I just want to "properly" uninstall and reinstall iTunes (plus the other usual suspects, Apple Software Update, Apple Mobile Device Support, Bonjour, & Apple Application Support). If anyone out there has any suggestions, please help! (I'm running Windows Vista -- don't judge/laugh) :-)

    Okay, feeling like an idiot, but will share so others don't have to. I rebooted my computer and that enabled iTunes to reappear in the programs list. Don't appear to be having the same problems as before (no error messages now). Problem solved!

  • Just got a Nikon D610 and CS5 for Mac can't open the images -- message says installed version of camera raw doesn't support the camera.  Downloaded the Raw 6.2 update for Mac, but installation failed. Now what?

    just got a Nikon D610 and CS5 for Mac can't open the images -- message says installed version of camera raw doesn't support the camera.  Downloaded the Raw 6.2 update for Mac, but installation failed. Now what?

    The D610 didn't get out-of-the-box RAW support until Photoshop CC.
    You can either upgrade to CC or use the DNG Converter to convert and open your DNGs in CS5.

Maybe you are looking for