Error when I replaced  the DOM parcer with JAXP

I replaced the DOM parcer with JAXP ....
We moved from DOM parcer �import org.apache.xerces.parsers.DOMParser;� to JAXP.
Here is my code:
// Step 1: create a DocumentBuilderFactory and setNamespaceAware
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
// Step 2: create a DocumentBuilder
  DocumentBuilder db = dbf.newDocumentBuilder();
// Step 3: parse the input file to get a Document object
Document doc = db.parse(location);
  root = doc.getDocumentElement();
  root.normalize();
AND when we run stress test after a while we start getting error
java.lang.NullPointerException
at org.apache.xerces.dom.DeepNodeListImpl.nextMatchingElementAfter(Unknown Source)
at org.apache.xerces.dom.DeepNodeListImpl.item(Unknown Source)
at org.apache.xerces.dom.DeepNodeListImpl.getLength(Unknown Source)
at com.xxx.yyy.WfStartTasksXmlDAO.getActionPerformed(Unknown Source)
at com.xxx.yyy.WfStartTasksXmlDAO.getAction(Unknown Source)
- Any idea why we are getting this error. Is this server (Linux) problem? or JAXP?
Message was edited by:
TamerBasha

This is happening because JAXP is not thread safe. need to synchronize bracket or use thread safe parser.

Similar Messages

  • Error when installing SM7 "The step runMigrationMonitor with step key "

    Hi all
    Please help for the following error when installing
    ERROR 2009-06-13 00:27:13.515
    FCO-00011  The step runMigrationMonitor with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_ABAP_Import_Dialog|ind|ind|ind|ind|5|0|NW_ABAP_Import|ind|ind|ind|ind|0|0|runMigrationMonitor was executed with status ERROR .
    Regards
    Kevin

    Hi Uday
    import.monitor.java.log
    Loading of 'SASACONT1' import package: OK
    Import Monitor jobs: running 2, waiting 23, completed 4, failed 0, total 29.
    Import Monitor jobs: running 3, waiting 22, completed 4, failed 0, total 29.
    Loading of 'SAPSSEXC' import package: ERROR
    Import Monitor jobs: running 2, waiting 22, completed 4, failed 1, total 29.
    Loading of 'REPOSRC' import package: ERROR
    Import Monitor jobs: running 1, waiting 22, completed 4, failed 2, total 29.
    Loading of 'SAPAPPL0' import package: ERROR
    Import Monitor jobs: running 0, waiting 22, completed 4, failed 3, total 29.
    Import Monitor jobs: running 1, waiting 21, completed 4, failed 3, total 29.
    Import Monitor jobs: running 2, waiting 20, completed 4, failed 3, total 29.
    Import Monitor jobs: running 3, waiting 19, completed 4, failed 3, total 29.
    Loading of 'DOKCLU' import package: ERROR
    Import Monitor jobs: running 2, waiting 19, completed 4, failed 4, total 29.
    Loading of 'SAPAPPL1' import package: ERROR
    Import Monitor jobs: running 1, waiting 19, completed 4, failed 5, total 29.
    Loading of 'SAPAPPL2' import package: ERROR
    Import Monitor jobs: running 0, waiting 19, completed 4, failed 6, total 29.
    Import Monitor jobs: running 1, waiting 18, completed 4, failed 6, total 29.
    Import Monitor jobs: running 2, waiting 17, completed 4, failed 6, total 29.
    Import Monitor jobs: running 3, waiting 16, completed 4, failed 6, total 29.
    Loading of 'DD03L' import package: ERROR
    Import Monitor jobs: running 2, waiting 16, completed 4, failed 7, total 29.
    Loading of 'SAPSSRC' import package: ERROR
    Import Monitor jobs: running 1, waiting 16, completed 4, failed 8, total 29.
    Loading of 'STERM_TEXT' import package: ERROR
    Import Monitor jobs: running 0, waiting 16, completed 4, failed 9, total 29.
    Import Monitor jobs: running 1, waiting 15, completed 4, failed 9, total 29.
    Import Monitor jobs: running 2, waiting 14, completed 4, failed 9, total 29.
    Import Monitor jobs: running 3, waiting 13, completed 4, failed 9, total 29.
    Loading of 'SEOSUBCODF' import package: ERROR
    Import Monitor jobs: running 2, waiting 13, completed 4, failed 10, total 29.
    Loading of 'E071K' import package: ERROR
    Import Monitor jobs: running 1, waiting 13, completed 4, failed 11, total 29.
    Loading of 'SAPSDIC' import package: ERROR
    Import Monitor jobs: running 0, waiting 13, completed 4, failed 12, total 29.
    Import Monitor jobs: running 1, waiting 12, completed 4, failed 12, total 29.
    Import Monitor jobs: running 2, waiting 11, completed 4, failed 12, total 29.
    Import Monitor jobs: running 3, waiting 10, completed 4, failed 12, total 29.
    Loading of 'ATAB' import package: ERROR
    Import Monitor jobs: running 2, waiting 10, completed 4, failed 13, total 29.
    Loading of 'SAPSPROT' import package: ERROR
    Import Monitor jobs: running 1, waiting 10, completed 4, failed 14, total 29.
    Loading of 'SAPSDOCU' import package: ERROR
    Import Monitor jobs: running 0, waiting 10, completed 4, failed 15, total 29.
    Import Monitor jobs: running 1, waiting 9, completed 4, failed 15, total 29.
    Import Monitor jobs: running 2, waiting 8, completed 4, failed 15, total 29.
    Import Monitor jobs: running 3, waiting 7, completed 4, failed 15, total 29.
    Loading of 'SAPPOOL' import package: ERROR
    Import Monitor jobs: running 2, waiting 7, completed 4, failed 16, total 29.
    Loading of 'SAPSLOAD' import package: ERROR
    Import Monitor jobs: running 1, waiting 7, completed 4, failed 17, total 29.
    Loading of 'SAPSLEXC' import package: ERROR
    Import Monitor jobs: running 0, waiting 7, completed 4, failed 18, total 29.
    Import Monitor jobs: running 1, waiting 6, completed 4, failed 18, total 29.
    Import Monitor jobs: running 2, waiting 5, completed 4, failed 18, total 29.
    Import Monitor jobs: running 3, waiting 4, completed 4, failed 18, total 29.
    Loading of 'SAPDDIM' import package: ERROR
    Import Monitor jobs: running 2, waiting 4, completed 4, failed 19, total 29.
    Loading of 'SAPDFACT' import package: ERROR
    Import Monitor jobs: running 1, waiting 4, completed 4, failed 20, total 29.
    Loading of 'SAPCLUST' import package: ERROR
    Import Monitor jobs: running 0, waiting 4, completed 4, failed 21, total 29.
    Import Monitor jobs: running 1, waiting 3, completed 4, failed 21, total 29.
    Import Monitor jobs: running 2, waiting 2, completed 4, failed 21, total 29.
    Import Monitor jobs: running 3, waiting 1, completed 4, failed 21, total 29.
    Loading of 'SAPDODS' import package: ERROR
    Import Monitor jobs: running 2, waiting 1, completed 4, failed 22, total 29.
    Loading of 'SAP0000' import package: ERROR
    Import Monitor jobs: running 1, waiting 1, completed 4, fail
    ed 23, total 29.
    Loading of 'SAPUSER' import package: ERROR
    Import Monitor jobs: running 0, waiting 1, completed 4, failed 24, total 29.
    Edited by: Kevin Wong on Jun 18, 2009 11:23 AM
    Edited by: Kevin Wong on Jun 18, 2009 11:24 AM

  • I had a problem with the hard disk on a 2010 macbook pro. Replaced the hard disk with an Hitachi 1TB and when I tried to erase and format It fails with input/output error. Any help much appreciated!

    I had a problem with the hard disk on a 13" 2010 macbook pro. Replaced the hard disk with an Hitachi 1TB disk but when I tried to erase and format, it fails with input/output error and at other times saying unable to allocate memory. Any help much appreciated!

    Zap the PRAM and Reset the SMC, then try again.

  • When I replaced my PC desktop with a Mac Mini and hooked up my HP printer to it, I discovered my other computers on the Wi-Fi network could no longer access the printer.  The manual says Maverick OS will not allow PC's to access the printer. Any thoughts?

    When I replaced my PC desktop with a Mac Mini and hooked up my HP printer to it, I discovered that my other computers on the Wi-Fi network could no longer access the printer.  The manual says Maverick OS will not allow PC's to share the printer. Does anyone else have this problem?  My printer does not have on-board Wi-Fi but, otherwise, works fine.  I shouldn't have to buy a new one.  Is there a OS patch out there that would open the printer port for my PC computers?

    I'm assuming that on the Mac, the System Preferences -> Sharing -> Printer Sharing -> [X] HP printer -> Everyone can print is selected?  That is to say, the Mac will allow anyone to print using the printer, and that you did not try to restrict who can print.
    How is your network configured?  Bonjour as a protocol will NOT cross a router boundary.  If you have 2 or more subnets active with the PCs on one subnet and the Mac on another, that would block the PCs from seeing the Mac.
    You could have multiple subnets if you have more than one router, such as an ISP provided broadband modem/router and another WiFi Router.  If the PCs are talking to one router and the Mac is talking to another, that could be a 2 subnet situation.  The additional routers must be put into bridge mode, which is done differently depending on the router.  But the basics are to diable DHCP and NAT services on the secondary router(s) having just one active router on the network.
    Also, using Bonjour Browser on my Mac, it is showing me that the printer is being advertised as using Internet Printing Protocol, so if that is something selectable on Windows, maybe you can bypass Bonjour on Windows.

  • ?I am getting an error when installing on my dell inspiron with latest updates for drivers.  Error 1406.  I have the problem with Scan Snap software and a full version of reader.

    ?I am getting an error when installing on my dell inspiron with latest updates for drivers.  Error 1406.  I have the problem with Scan Snap software and a full version of reader.

    Error 1402 | Error 1406 | Acrobat, Reader

  • I keep getting this error when trying to backup time capsule with time machine. The backup disk image "/Volumes/Data-1/Dan's iMac.sparsebundle" is already in use.

    I keep getting this error when trying to backup time capsule with time machine. The backup disk image “/Volumes/Data-1/Dan’s iMac.sparsebundle” is already in use.

    Make sure that no other Macs are backing up at the time.
    Pull the power cable from the back of the Time Capsule
    Count to ten
    Plug the power cable back into the back of the Tme Capsule
    Wait a few minutes, then try a backup again.

  • Audio sync problems with greenscreen  I have replaced the camera audio with my zoom recorder audio and it is in sync. When I apply greenscreen the audio goes out of sync. What am i doing wrong?? So frustrating..Thanks, Peter

    I have replaced the DSLR audio with audio from my Marantz recorder and it is in sync with the dialogue. I apply green screen and the audio goes out of sync. Cannot seem to make it work. what am I doing wrong? Thanks, Peter

    Thanks for the reply. I don't have time for this. is it time to switch to a different editor?

  • Error when attempting to merge into table with RLS - ORA - 28132

    hey,
    i've encountered an "ORA-28132 - Merge into syntax does not support security policies" when attempting to merge into a table with RLS defined on it.
    i looked around and found this [discussion |http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:259415261270] on ask tom.
    according to the thread - this was a bug in 9i. in 10g merge is possible only if the policy returns "null" and in 11g it was finally fixed.
    *i have been able to merge into tables with rls in 10gR2 in some cases.*
    i would like to know if anyone has some more information about this error. when can i merge into tables with RLS ?
    thanks, Haki.

    Never.
    The bug was that it did work sometimes in 10g i.e. it should always raise an error.
    It's something that I've always found a bit odd and frustrating - that MERGE and RLS policy should not be compatible.
    But bottom line is that you shouldn't be using MERGE on table with RLS policy.
    Edited by: Dom Brooks on Feb 14, 2011 10:51 AM

  • I no longer have access to system folders that allow me to remove old or incorrect PAGES templates. Need to find out how to do that. The only way I can do it now is to blank the template and replace the bad template with a blank.

    I no longer have access to system folders that allow me to remove old or incorrect PAGES templates. Need to find out how to do that. The only way I can do it now is to blank the template and replace the unwanted template with a blank. It was previously possible to go to MY TEMPLATES and remove the unwanted templates. I don't if this issue is before or since installation of 10.8 (a nightmare in my case, which led to significant failure issues).  And because I haven't tried to remove templates since finally managing to install 10.8 (now at 10.8.4), I don't know if this is typical of the newer OS or a problem. I've been a Mac user for more than 25 years, but I think I'm nearing the end of the road. By the way, I've never needed to do this before because the manuals always offered an answer... they don't seem to do that anymore. In any case, I don't know how this works... I'd prefer an email reply if that's possible. But that would probably be too easy, and I don't know how to get a reply.

    Thanks, I appreciate the help.  I think this is one of the problems Apple is creating by changing the OS so often. I had fomer colleagues at [a major aerospace contractor] who told me that so many original files were ultimately lost because of the deadly change in the "Save As" operation that they are now afraid of every OS update. Apple has badly damaged their support base with that very prominent company (they won't update now until they've fully examined and understand changes in the pre-conditioned nature of OS computer functions), and they are a whole lot less enthaled with Mac-related equipment/software. Can't blame them, I too used orginal files that way (as easy-to-use templates), and lost some important files before I realized what was happening (to late to revert). Companies should not have to retrain employees each time an OS gets an update, it's can be very expensive several different ways. They learned a painful lesson with that one. And because I'm now retired and don't use multiple devices, I need iCloud like I need a hole in the head... but I'm told there's no way to keep Apple out of my computer. Fortunately, because of major problems when initially installing Mountain Lion, one hold-over of the hardware/software damage I experienced was that iCloud can no longer access my computer even though everything else is working fine again. That was the only "good luck" I had as a result of that expensive nightmare.

  • How to replace the Losing fonts with scrip in photoshop,by script

    Frequently,I Receive some PSD files, It is did by Other people.
    When I open it with my computer,I find it missed a lot of fonts.
    Some times,I have this fonts, but the name is not  like with the fonts of the PSD file.
    So,I need to replae the Losing fonts, but it  always have a lot, It wast my much times.
    In Indesign, it is Very easy~~
    Could you help me Achieve it by scrip in Photoshop?
    Thank you very much

    Hi Sridhar,
    I would like to Replace the Charecter values with numeric value in my string.
    Exp : first in my string I am having the value like this : 'ABCD1234' ( may be any char and num values ), and I want too get it by '99991234'.
    So, if i understand you correctly, you want to replace all characters in a string with 9 as in the above example, irrespective of position of the character, if so try with the below code.
    DATA: l_str TYPE string.
    l_str = 'ASKHSIUDNSBDKJSDH124312431243124saasdfsf'.
    REPLACE ALL OCCURRENCES OF REGEX '\D' IN l_str WITH '9'.
    IF sy-subrc EQ 0.
      WRITE: l_str. "Result will be 9999999999999999912431243124312499999999
    ENDIF.
    Regards,
    Chen
    Edited by: Chen K V on Jun 13, 2011 12:36 PM

  • Get 'Generic Error' when attempting to import .mov files with transparency?

    I get the 'Generic Error' when attempting to import .mov files with transparency? I'm trying to use mattes with an alpha channel but I cannot import them. I have had this same issue since cs6, now I have it with cc 2014? Any clues would be most appreciated.
    I have uninstalled the DVCPro Codec, but it didn't help.
    I have tried converting the .mov file (which is now automatic in Yosemite) and this creates a ProRes4444 Codec, Again no luck with import.
    I've seen this issue on the web, but never a solution? Anyone?

    Hi Terence,
    I tried iPhoto Library Manager but it could not solve my problem. Opening the iPhoto library I can see that the reference to the pictures are pointing to my old location not to the new one. I considered running a script that would change all pointers since this is basically what is needed (in my case from /Volumes/RAID1/Fotos/XXX to /Volumes/Fotos/XXX). Instead I inserted a soft unix link to make to connection but that did not work. It is referring to the airport disk by the airport name rather than the mounted disk name. Very strange indeed. The problem is maybe not in iPhoto but in OSX? Anyway, maybe the only way out is to take some hours and manually run through all linked photos... cumbersome and annoying!
    Regards,
    Søren

  • When the system status says icloud is OK but it reports "encountered an error when connecting to the server", where do you report the problem, or how do you connect?

    When the system status says icloud is OK but logon reports "encountered an error when connecting to the server", where do you report the problem, or how do you connect?

    Yes i am hoping staff here will look into things, even if i can not get the speeds back what i previously had for near 6 months it would be nice to know why i can not and why the download has dropped by around 10Mb and why my upload is now inconsistant.
    Ironically the post concerned got edited because i actually posted the full rather silly reply the Indian call centre made babbling on about down rates rather than the uprate i queried with them.
    Bit of a shambles really no real way on BTs web site to contact anyone with regards to broadband issues.
    The form which you kindly suggested and i appreciated your help ended up in the hands of someone who either did not bother to read the query or just had such a poor grasp of English they did not understand the query.
    Pretty pathetic really when BT are the largest telco in the UK. I think ill be taking my broadband business elsewhere regardless at the end of my 18 month contract, while im sure staff here are wonderful and may even yet help me, i do not particularly want to go through the almost like pulling teeth pain of getting any future issue looked at.
    They are great at quickly fixing voice line problems and have a great test on their site. Broadband side of things and support for that though seems a shambles.

  • Error when writing to the Internal Buffer-runtime error during querydisplay

    Hi
              I am working in BW 3.5. I am trying to run a query in BEx Analyzer but I am getting the following Error
    Error when writing in the Internal Buffer see OSS note 156957
    I tried for the note but I am not getting relevant information.
    Please let me know what to do.
    Thanks,
    Padma

    Hi,
    please apply the note 1614788. After note implementation, you need to set parameter RSR_HIER_THRESHOLD_EXPORTDB in table RSADMIN via report SAP_RSADMIN_MAINTAIN in transaction SE38.
    If you set this parameter to value 50.000 for example, all hierarchies with more than 50.000 nodes will be buffered in the database instead of using the export/import buffer.
    To find out the current size of a hierarchy, goto the hierarchy maintenance in transaction RSH1 and copy the hierarchie ID from the header data. With this key you can goto transaction SE16 and select table RSRHIEDIR_OLAP (Field HIEID is the hierarchy ID).
    It should resolved your issue.
    Thanks,
    Venkat

  • Error when i release the biling dcoument to accounting in VF02.

    Dear All,
    I am getting the following error when i release the biling dcoument to accounting in VF02.
    Kindly help me in getting the solution
    Document date / / is incorrect in item 0000000001
    Message no. F5 833
    Diagnosis
    Service financial accounting: document date " / /" is technically incorrect in item "0000000001" of the accounting document.
    System Response
    System erro in the calling application.
    Procedure
    Contact your consultant or SAP directly.
    With Regards
    Azeez Mohd

    Refer SAP Note 1635985 - FBCJ: Document date not a required input field.
    Also, refer following SDN thread - Error F5 833 Document date 00/00/0000 is incorrect in item 000000000
    Regards
    JP

  • Error when I create the New material Master (MM01) for New Plant.

    Dear experts,
    I got the error when I create the New material Master (MM01) for New Plant.
    Error:  Valuation Area 2800 Not yet productive with Material Ledger.
    So Pl send me the solution asap.
    Venkata Raju Khottari

    Hi,
    Have u assinged Plant to Company code?
    If u say no, use T.code OX18.
    Regards,
    Murali
    Assign points if it is useful.

Maybe you are looking for

  • Is there any way to get in direct contact with apple about a problem I am having?

    When I create text boxes in Preview and then save and close the file, they will be rotated 90 degrees when I reopen the file. This makes them virtually unreadable. It happens with some pdfs but not others. I am sure it must be a bug with preview and

  • File content conversion for Pipe delimited file

    Hi i have a scenario ( file-xi-proxy) in whch file is coming in a pipe delimited. my data type is like DT_ XXXXX AwardInfo Header contains some fileds DetailRecord contains some fileds trailer contains some fields what are content conversion paramete

  • Finder crashes when right clicking on a file

    I'm new to Tiger/Apple and don't know how to make heads nor tails of this Finder.Crash.Log. Finder crashes more often than not when I right click on a file. Please help. Here is the log file: Host Name: xxxxxx-computer Date/Time: 2007-01-24 06:05:36.

  • Mapping Ontime delivery requirement in sap vendor evaluation

    Hi, Have below requirement for calculating score for ontime delivery performance. 1. Evaluation will be executed weekly once 2. For the given weekf if18 are on time out of 20 total, then the vendor gets a 90% on time score Tried mapping this 1. By ma

  • Close a Tab

    Is there a way to close a tab with a link or a button similar to the ColdFusion.createTab? I have looked through for the last couple of hours but don't seem to find a way ISM