A weird SAXParseException problem! HELP!

I have a page which refreshes every x seconds. Everytime it refreshes, it reads data from an xml file which has the ff specs:
<?xml version="1.0" encoding="iso-8859-1"?>
I use these methods for reading and writing to xml files. I have this in my xml reader helper class.
public void writeDocument(Document doc, File f) throws TransformerException, IOException {
StreamResult stream = null;
try{
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer trans = tFactory.newTransformer();
trans.setOutputProperty(OutputKeys.ENCODING, "iso-8859-1");
DOMSource source = new DOMSource(doc);
stream = new StreamResult(f);
trans.transform(source,stream);
} finally {
if (stream!=null){
if (stream.getOutputStream()!=null){
stream.getOutputStream().close();
public Document getDocument(File f) throws ParserConfigurationException, SAXException, IOException {
InputStream is = null;
Document doc = null;
try{
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
is = new FileInputStream(f);
doc = builder.parse(is);
} finally {
if (is!=null){
is.close();
return doc;
When I execute and test my application in WSAD. It works just fine but I deploy it it the Websphere Application server in a Unix Box...I always get this exception on reading and writing to the xml files.....and I don't have a clue why. Can anyone help me on this? I really need help.
org.xml.sax.SAXParseException : Content is not allowed in trailing section.

Try the following code to find the exact spot in your document that is causing the error:
try {
} catch(SAXParseException saxParseException) {
     System.out.println("Line Number:  " + saxParseException.getLineNumber());
     System.out.println("Column Number:  " + saxParseException.getColumnNumber()); 
}-Blaise

Similar Messages

  • Really weird exporting problem, HELP!!!!

    I can't figure this out at all...
    I am exporting a high res SD file (uncompressed) after having added a 1.66 matte, and it seems to be causing me to degrade the image. Could be interlacing, or could be resolution. But it definitely looks worse.
    In FCP it looks great. I did a test export WITHOUT the matte, and it looks great. Then, when I add the matte (or try to crop it, as an alternative), the export suddenly looks degraded. Literally the only thing I've changed is the matte/crop (both yield the same result). How could it be possible that the image would so drastically change?
    Again, both of these were exported straight out of the same sequence in Final Cut Pro, using the same exact export settings. I have a side by side picture, but don't know how to post it...
    Thanks in advance!!!
    Nick

    Thanks for the responses-- here is a link (from another forum) for the picture.
    http://forums.creativecow.net/readpost/8/1039888
    If you zoom in, you can see the pixelation is pretty different on the matted version.
    My export setting is Uncompressed 10-bit 4:2:2. These are the settings native to the original footage (off of digibeta). My intention is to NOT compress anything (at this stage).
    The weird thing is that it can't be an export setting, right? Because the non-matted version looks fine, and is using the same exact settings.
    It's just when the matte is added to the equation that things get wonky...

  • Weird Battery Problems - Help me =)

    I have an..
    HP Pavilion dv6
    8gb ram
    750 hdd
    i5
    Windows 7
    My problem is that when I plug the charger to my laptop, the battery light/indicator becomes red, usually meaning that there a problem, which there is. My laptop does charge, I dont know if its charging faster or slower. Another thing is that the charger is very very hot!
    So I dont really know what to do, any sugestions?

    Can you let me know the specific model DV6 this is? An AC adapter being somewhat hot is normal, but being very very hot is not. Is the adapter hot enough to burn you? If so I would definitely disconnect it from the wall until we can verify that it is functioning properly. 
    Thanks
    Sean
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • Weird graphics problem: HELP

    i recently upgraded to 10.5.5. Everything seemed fine. However, i came home today and found that my displays (i have three, listed below in my profile) were not displaying color correctly. All of them appear to be very dark, and certainly not in millions of colors, actually, it looks like everything has reverted to 16 bit color or something. i have restarted the machine, etc., but when i restart, as soon as the finder loads, the color disappears. i have 10.4 also installed on a second hard drive (which i am working in at the moment) and everything is fine, so it is not the graphics card or a hardware issue, but specific to 10.5.5. i also reinstalled the 10.5.5 updater, and everything remained the same. The Dock also seems to have gotten corrupted somehow. Does anyone know what might be going on or a possible fix? Thanks.

    try to update graphic card drivers, check for bios update if there's available.
    try to sway or replace your sticks.
    if these don't work, contact lenovo support line cause you may have issue with graphic card adapter.

  • Weird charging problem help please

    every morning when i wake up, its always at 92%. then if i just unplug it and plug it back in, it will start going to 100%
    why does it always do this?

    nachdenki wrote:
    well ... from what i've read: if the battery falls below 40%, some irreversible chemical reactions lower the overall capacity of the battery.
    This is likely not true for the battery technology in the 3GS.
    if you keep it at very high voltage all the time (so at 100% or so) it shortens the battery life, so it will die earlier.
    This is definitely not true.
    Phil

  • WEIRD MacPro softRAID problem HELP

    MacPro RAID 0 problem I NEED HELP
    I am having a weird RAID problem with our new MacPro 2.66, MacOS 10.4.8, 5GB RAM, 4 x 500GB RAID 0, 1.8 TB in internal bays configuration, drives have been formatted individually, and the RAID 0 have been created with Apple Disk Utility - original 250GB drive moved to the optical bay. In service for a week or so.
    The RAID mount at start-up, can be open, and show the content. After 30 sec. I got a “bad device removal message“ and the RAID is gone.
    We have more then 500GB of photos on it and NO BACK UP.
    The problem first show up when I was writing DVD backup set with Toast 8 (yes, I was doing it) and I plugged a LaCie FireWire 800 drive in the front port. That drive is good and mounting on other Mac. Seem unrelated to me, I mention it just in case.
    I checked the controler of the 4 x 500GB drive with TechTool Pro, test passed.
    Disk utility, first aid, failed with the following report:
    Verify and repair disk RAID Mattera
    Can't open /dev/rdisk3: ressource busy
    1 non HFS volume checked
    1 volume could not be repaired because of error.
    Disk utility RAID tab is showing that the RAID is offline and that the 465.4 GB - RAID Slice (disk0s2) failed. The 3 others one are offline. As I cannot find a way to insert my snapshot I am reproducing what I can see on the left window.
    465.8 GB Maxtor 7H500f0
    465.4 GB disk0s2
    465.8 GB Maxtor 7H500f0
    465.4 GB disk1s2
    465.8 GB Maxtor 7H500f0
    465.4 GB disk2s2
    1.8 TB RAID Mattera
    disk3
    465.8 GB Maxtor 7H500f0
    465.4 GB disk4s2
    What is not normal, in the left window, is the disk3 right under 1.8 TB RAID Mattera. Was not there before if I recall correctly.
    More, as far as I can recall, my RAID set was made of 465.4 GB - RAID Slice (disk1s2) (disk2s2) (disk3s2) (disk4s2).
    The RAID had consecutive number when created, disk1s2 to disk4s2.
    There was no Slice by the name of (disk0s2) in it.
    The problem seem to be there as Disk utility, first aid report state:
    Can't open /dev/rdisk3: ressource busy
    Does the RAID setup is in PRAM? Is there a corrupted preference file, visible or invisible that can be removed.
    I am lost with that problem. I need an expert advise.
    I would appreciate greatly any help on this one. I cannot loose the content of the RAID.
    Jacques (I am French speaking, sorry for my English).
    MacPro 2.66   Mac OS X (10.4.8)  

    I have seen the exact same problem happen twice now on my Mac Pro. Here is the configuration:
    Mac Pro 3 GHz, 8 GB Apple RAM, nVidia FX 4500
    5 internal SATA drives (all WD1500ADFD) one drive (optical bay) is used for system, 4 others are used in Apple RAID 0 (stripe) for data.
    Two of the RAID failures happened while my backup software was running a backup script (Personal Backup X4) that clones the RAID to external fw800 drive. These failures reported the following in the system log:
    kernel[0]: AppleRAID::completeRAIDRequest - error 0xe0030005 detected for set "Stripe" (0D6F397D-04AB-4D12-A634-73E668D9B6F4), member 8EE005C9-1F88-424E-896D-7600B54A3B05, set byte offset = 120291328.
    Jan 29 09:33:59 MacPro kernel[0]: disk3: 0xe0030005 (UNDEFINED).
    These failures were unrecoverable (tried using both DU and DW4) and required the RAID volume to be destroyed. Once taking the disks out of the RAID, all drives passed both the Apple Hardware tests, DW tests, and TechTool Pro tests. I then re-created the RAID stripe with the same 4 drives, and restored data to the volume. The RAID volume then performed without error for 34 days, after which time the exact same problem occured.
    I've also had two other RAID failures that didn't require the RAID volume to be destroyed; upon re-boot, the journal was able to repair the data. These two failured happend when logging into an Parallels XP VM that was running from the RAID.
    The two hard-crash failures that happened during the backup routine (where the RAID had to be destroyed) failed during the backup of the Parallels hdd file (corrupting it). I have posted in the Parallels forums without any helpful responses (and emailed their support team, but we all know how useless that is!). My backup software vendor (Intego) has responded quicky to my support requests, but tell me that it's a hardware problem, and not their software.
    Apple doens't provide any technical support for RAID unless you purchase an Advanced Enterprise support plan (or something similarly named).
    The S.M.A.R.T. status of these drives are checked daily (DW4), and have never reported an error.
    After both hard-failures, all disks have passed all the diagnostics that I have run. What are the chances that this is indeed a hardware failure??? I have been able to recreate the RAID after both failures, and continue to use it without problems for many weeks (actually, exactly 34 days each time) - writing significant amounts of data to the RAID volume (~60% full) without having any kinds of problems.
    There seems to something here that is affecting all of us, and it seems that all that we're going to get for support is 'finger-pointing' and "don't use raid" responses.
    During one of the DW repair attempts, I saw an error that read something like "invalid sibling link" on the RAID...
    Here's hoping that someone can get to the bottom of this - I'm tired of re-creating the RAID and restoring my data.
      Mac OS X (10.4.8)  

  • Weird internet problem / ssl connection error, site loads in safari not in firefox or other way around

    I really can't figure out this problem. Search the internet tried all kinds of things, nothing help so far.
    I have a Macbook Pro (Lion originally installed) running on Mavericks (all latest updates). SSD installed and the DVD tray is replaced by the original HDD.
    The laptop wasn't running very smooth anymore so decided to give it a fresh Mavericks install (even though I know it's not really necessary for mac, it helped, everything is much faster except a weird internet problem came up).
    After freshly installing Mavericks I couldn't get into my google account anymore, just wouldn't load. Tried Safari (use this normally) and Firefox and Chrome, this last was gave a SSL connection error, both Safari and FF said the website couldn't be loaded because the server didn't respond. For Gmail I use Mailplane which is just stuck on a white page. I tried repairing the keychain, repaired disk and disk permissions, cleaned browsers, turned off firewall and antivirus (Shopos) started in safe mode, checked time settings which were all good. Nothing of this helped. I even ended up creating a usb bootdisk for Mavericks, formatted the disk and reinstalled from the start just Mavericks and nothing else, started Safari, still the same problem. As even this didn't help I figured it's not worth reinstalling all software so put back my backup.
    Now I ended up somehow only being able to use Gmail normally in Firefox, Chrome still gives SSL error and Safari can load the inbox, but I can't open any messages. I get the error there is a problem with the connection. If I try in Basic HTML mode it surprisingly does work.
    You would say, just use Firefox, finished...but the thing is that sometimes random websites won't load in Firefox, when I load the same site in Safari it works perfectly.
    O yes, I also tried the connect to my iPhone and use the Cellular data network, then it's no problem using Gmail in Safari normally. You would say it's a router problem, but I have another Macbook Pro (just one model later running Mountain Lion) this one works perfectly with every browser. Also my iPhone does everyting logged into the WiFi network.
    You can understand I really have no clue what's going on here, I don't see any logic. I can only think of a hardware problem in my Macbook, but don't see how that could cause these problems.
    I hope someone is ably to help me ?

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Please take this step regardless of the results of Step 1.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • Weird audio problem during calls

    I have a weird audio problem and was wondering if anyone else has had a similar problem or could help...
    My wife and I both have iPhone 5's and sometimes (not all the time) when she calls me (or I call her), it connects, but no matter which audio input I choose (phone, bluetooth, speaker, headphones), I cannot hear her, but she can hear me... I hang up, call back (and when I call, there is no dialing sound, nor any other phone sounds) and it's the same thing. Sometimes restarting the phone works, other times I have to restart it 3-4 times before it'll work again.  I try different things during these calls, like turning on/off bluetooth and/or wifi (pretty much anything I can think of that would make a difference), but nothing seems to help.
    The (other) weird part is that after the last time of this happening, I tried calling my iPhone with my office phone and it worked fine, so then I immediately call my wife back with my iPhone and it was doing the same thing again. I called her back using my office phone and could talk to her fine...
    This problem has been going on for a few months now and I have tried restoring the phone a couple times (and I am on the latest iOS) and sadly, that hasn't done anything to help... Does anyone have any ideas what is going on? I'd make an appointment for the problem, but since it doesn't do it all the time, I don't know what good it would do... But it is getting very frustrating!
    Thanks for any help!
    -Jason

    Thanks for the response!  It happened again yesterday...  It seems to be happening more frequently in the past few weeks now.
    I checked the link and have tried all of the things listed at one point or another over the past few months.  I did just check my Carrier settings and it said it had updated (it's on 14.1), but I am not sure when that happened (could have been today, could have been after my last restore last week, not sure).  I'll keep my fingers crossed that maybe that fixed it...
    If it continues to act up, would you recommend that I bring the phone in to an Apple store or an AT&T store?  I bought the phone through Apple, but my carrier is AT&T (and if you suspect that the problem may be with the cellular conection), maybe the AT&T store would be the better choice?
    I really wish the problem would be more consistant or go away, cause trying to get the problem solved is driving me crazy!

  • KT6V Weird boot problems

    Hi..
    I'm having this weird boot problem (and no it doesn't seem to be the standard one)
    OK..
    I have the following :
    AMD Athlon 2000+
    KT6V LSR mainboard
    2x 256 Crucial PC2700 memory
    IDE Hard Disk (120gb segate)
    Creative 5700ultra Graphics card (AGP)
    Cd Rom
    Chieftec 400w PSU
    WinXP Pro
    If I set my CPU FSB to 100mhz (everything else on auto).. win Xp pro boots fine and all is pretty good except that my chip is now seen as a lowly 1.25ghz..
    If I then set my CPU FSB to 133 or 166 then the machine boots (ie it beeps etc..).. starts to load windows xp (I get the logo and that's when the problem happens)  and either black screens (ie.. nothing and the monitor turns off) or blue screens with the windows message saying that windows has detected a hardware fault and has halted the system..
    I know my memory, chip, heatsink etc all work because just over an hour ago they all worked fine in my KT3 ultra.
    What is going on as I've tried almost everything to try and solve this, with the only option to set the FSb to 100mhz which is incorrect for my CPU.
    How do I fix this.
    I've looked through the forum but this is not the same problem as simple reboots.. this is weird.
    If I can't fix this then I guess it'll be send it back.. which is a shame because I like MSi motherboards.
    Thanks
    Slippery

    Hi..
    I've checked the CPU heatsink.. and nothings wrong !
    (Can't check the voltage but I know the PSU is Ok as I did run it in a custom case with 4 Cd writters, 4 HDs, loads of lights etc.. before I moved to this new plain case tonight)
    What's weird is that set at 100FSb it's fine but at 133 or 166 it just crashes after the loading XP logo is displayed. Up until that point it's all fine.
    But why does it run Ok at 100mhz and not 133mhz ?
    Please help..  before I end up fixing this with a hammer !
    Thanks
    Slippery

  • My daughter has just bought me an iPad 2 from Dubai and set it all up for me but unfortunately the iMessage function doesn't seem to work. We keep getting messages,when trying to activate it, that there is a network connection problem - help!

    My daughter has just bought me an iPad 2 from Dubai and set it all up for me but unfortunately the iMessage function doesn't seem to work. We keep getting messages,when trying to activate it, that there is a network connection problem - help!

    Thank you both for your responses but my daughter was reassured by the salesman in the iStyle store (official Apple store in the UAE) that iMessages would work but conceded that FaceTime wouldn't. My iTunes account is registered in the uk and my daughter's iPhone has iMessages even though she bought it (and uses it) in Dubai. Can anyone else throw any light on this?

  • I couldn't log into my apple account on my iPad, then i couldn't unlock it resulting in it being disabled, however it's the same as my iPhones password, I then called apple, i was hung up on twice and they said it will cost £70 to fix THEIR problem, help?

    I couldn't log into my apple account on my iPad, then i couldn't unlock it resulting in it being disabled, however it's the same as my iPhones password, I then called apple, i was hung up on twice and they said it will cost £70 to fix THEIR problem, help?

    If you cannot remember the passcode, you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and resync the data from the device (or restore from a backup).
    If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present.
    You may have to force iPad/iPod into Recovery Mode
    http://support.apple.com/kb/ht4097

  • IPad syncing problem - HELP!

    iPad sync problem - HELP!  I keep getting this message "...cannot be synced because there is not enough free space to hold all of the items in the iTunes library (additional ...space needed)"  and yet I seem to have plenty of space on the iPad.  This just started today.  I even tried deleting some things to make even more room, but it didn't help.  Any ideas??? 
    I was thinking of restoring, but I've never done it...  should I? 
    thank you!

    Hello florafromnv,
    Welcome to Apple Support Communities.
    The following article addresses how to resolve the issues related to this message:
    iOS: "Not enough free space" alert when trying to sync
    http://support.apple.com/kb/TS1503
    Regards,
    Jeff D.

  • MOVED: KT333 Ultra; fuzzy logic, 1.6xp overclocking problem help !!!!!

    This topic has been moved to Overclockers & Modding Corner.
    KT333 Ultra; fuzzy logic, 1.6xp overclocking problem help !!!!!

    Not that I am an expert o/c but here are some thoughts on the matter.
    My comments are based on my experiences of the KT3 Ultra2 which is basically the same as the Ultra version.
    This mobo does not have the ability to lock the PCI/AGP bus freely from the FSB. However, it does have dividers. At 133 a 1/4 divider kicks in. Above 152FSB the 1/5 divider works, so that at 166 the PCI & AGP buses will be back in sync. If you are o/c your cpu, don't go from 133 to 145, etc since you will be running the PCI/AGP buses further out of whack. Just go to either the mid 150's or to 166 in one jump. The other problem / issue relates to your cpu. From what you say you have one of the old Palominos which are not great o/c's. I would personally o/c your cpu from the BIOS rather than 'Fluffy Logic' which I would tend to stay away from. 
    With a 166FSB cpu a very stable o/c would be 175-177 beyond 180 gets decidedly tricky.
    Hope this helps

  • Itunes keeps closing as soon as i open it and states 'windows has detected a problem' HELP!!!!

    Help!! Itunes keeps closing straight away and message states 'windows has detected a problem' HELP ASAP PLEASE!!!!

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    If you've already tried a complete uninstall and reinstall try opening iTunes in safe mode (hold down CTRL+SHIFT as you start iTunes) then going to Edit > Preferences > Store and turning off Show iTunes in the Cloud purchases. You may find iTunes will now start normally.
    tt2

  • I have installed photoshop elements 12. when I try use the editing features it said that i must login to Adobe to register the product. but each time i try to it said there is a problem. help the problem stated that the internet is not connected, but that

    i have installed photoshop elements 12.
    when I try use the editing features it said that i must login to Adobe to register the product.
    but each time i try to it said there is a problem.
    help
    the problem stated that the internet is not connected, but that is not the case.

    I had the same issue and I'm running Windows 7.  Tried working with technical support for several hours but they were no help.  They just had me doing the same things over and over, offering no real answers.  I finally got fed up and have decided to return my product for a full refund.

Maybe you are looking for

  • My IPod Touch won't show up at all on the computer

    Hello, I have had an Ipod Touch for 10 months now, bt suddenly for no reason my Ipod doesn't show up on the computer at all. It doesn't say it's charging, it doesn't make a noise and it doesn't show up in the computer or itunes. I have tried using di

  • The problem about GPIB Wait

    Dear all, First, Thank you for your attention!!! I have to use a network analyzer to perform a test for the return loss of antenna. For convenience, I have to use both port 1 and port 2 in order to test two samples together. Because I plan to use mec

  • Photoshop dejo de funcionar correctamente al utilizar pinceles y máscaras de capa.

    Saludos, tengo un problema que lo llevo arrastrando desde hace mucho tiempo y esta empezando a agotar mi paciencia. Hace cosa de unos 4 meses me hice un ordenador nuevo que a continuación os desglosaré sus componentes por si puede servir de ayuda: In

  • Power Retouche in Photoshop CS4

    I'm unable to get the Power Retouche plugin to show in the filter menu. The plugin is located in the proper plugin folder and I edited the preference file for plugins to point to the Power Retouche folder. Anyone else have this problem or a solution.

  • Global load balancing/active active vip and virtual interface redundancy

    Is there a way to configure both of these technologies without exposing the external addressing to the internal network? I have active active within the data center and would like to have active/active across two data centers but I don't see any way