SV: SV: SV: [jdom-interest] Error in build : trinity
Per Norrman
pernorrman at telia.com
Thu Nov 13 10:20:13 PST 2003
Hi again,
In your original post, there error message was 'trin ity'.
My gut reaction was that this was somehow a thread concurrency
problem; 'ity' is the ending of 'entity' which is a fairly common
word in XML error messages. I suspected a mixup, due to a race
condition or whatever.
Anyway, is this a consistent error message, i.e. does it always say
'trin ity' when it fails?
Does each request use its own XMLParser instance?
When the error occurs, have you tried logging the request content?
/pmn
> -----Ursprungligt meddelande-----
> Från: jdom-interest-admin at jdom.org
> [mailto:jdom-interest-admin at jdom.org] För
> Michael_Harley at bankofscotland.co.uk
> Skickat: den 13 november 2003 18:14
> Till: Per Norrman
> Kopia: Soo_Vinnicombe at bankofscotland.co.uk; jdom-interest at jdom.org
> Ämne: Re: SV: SV: [jdom-interest] Error in build : trinity
>
>
>
> hello Per,
>
> We have a class XMLParser, which contains the class variable;
>
> Document doc;
>
> When you mention concurrency are you considering the
> getRootElement() method be 'synchronised'?
>
> I have checked the dtd file used by the XML and the word
> 'trinity' does not appear there either.
>
> Thanks
>
> Mike H
>
>
>
>
>
> "Per Norrman" <pernorrman at telia.com> on 13/11/2003 15:58:09
>
> To: Michael Harley/MSD/Chester/CAPITAL BANK plc at BKSCOT
> cc: Soo Vinnicombe/MSD/Chester/CAPITAL BANK plc at BKSCOT
> Subject: SV: SV: [jdom-interest] Error in build : trinity
>
>
> Hi,
>
> The doc variable seems to be a field, not a method local
> variable. If this method is declared in the servlet, I would
> expect very strange behaviour if you have two concurrent
> requests, each acting on the same Document instance.
>
> /pmn
>
> > -----Ursprungligt meddelande-----
> > Från: Michael_Harley at bankofscotland.co.uk
> > [mailto:Michael_Harley at bankofscotland.co.uk]
> > Skickat: den 13 november 2003 15:52
> > Till: Per Norrman
> > Kopia: Soo_Vinnicombe at bankofscotland.co.uk
> > Ämne: Re: SV: [jdom-interest] Error in build : trinity
> >
> >
> >
> > hello Per,
> >
> > Our code is as follows. Each time an XML file is received
> the servlet
> > uses this method to parse the data...
> >
> > private void getRootElement( InputStream input ) throws
> > org.jdom.JDOMException {
> >
> > SAXBuilder builder = new SAXBuilder(true);
> >
> > doc = builder.build( input );
> >
> > root = doc.getRootElement();
> > }
> >
> > ...catch (org.jdom.JDOMException e ) {
> > log.error ("Document Failed XML parsing " + e.getMessage());
> >
> > Is there any reason you can see for this 'trinity' which is
> mentioned?
> >
> > Thanks,
> >
> > Mike H
> >
> >
> >
> >
> >
> > "Per Norrman" <pernorrman at telia.com> on 13/11/2003 12:58:15
> >
> > To: Michael Harley/MSD/Chester/CAPITAL BANK plc at BKSCOT,
> > jdom-interest at jdom.org
> > cc: Soo Vinnicombe/MSD/Chester/CAPITAL BANK plc at BKSCOT
> > Subject: SV: [jdom-interest] Error in build : trinity
> >
> >
> > Hi,
> >
> > it smells like a concurrency problem. Have you made sure
> > that each request uses a unique builder instance?
> >
> > /pmn
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> >
> > --------------------------------------------------------------
> > ----------------
> > The information contained in this message is confidential and is
> > intended for the addressee only. If you have received this
> message in
> > error or there are any problems please notify the originator
> > immediately. The unauthorised use, disclosure, copying or
> alteration
> > of this message is strictly forbidden. This mail and any
> attachments
> > have been scanned for viruses prior to leaving the HBOS
> network. HBOS
> > will not be liable for direct, special, indirect or consequential
> > damages arising from alteration of the contents of this
> > message by a third party or as a result of any virus being
> passed on.
> >
> > HBOS reserves the right to monitor and record e-mail
> messages sent to
> > and from this address for the purposes of investigating or
> detecting
> > any unauthorised use of its system and ensuring its effective
> > operation.
> >
> > HBOS plc, Registered in Scotland No. SC218813. Registered
> > Office: The Mound, Edinburgh EH1 1YZ. HBOS plc is a holding
> company,
> > subsidiaries of which are regulated by the Financial Services
> > Authority.
> > ==============================================================
> > ================
> >
>
>
>
>
>
>
>
>
> --
>
> --------------------------------------------------------------
> ----------------
> The information contained in this message is confidential and
> is intended for the addressee only. If you have received
> this message in error or there are any problems please notify
> the originator immediately. The unauthorised use,
> disclosure, copying or alteration of this message is strictly
> forbidden. This mail and any attachments have been scanned
> for viruses prior to leaving the HBOS network. HBOS will not
> be liable for direct, special, indirect or consequential
> damages arising from alteration of the contents of this
> message by a third party or as a result of any virus being passed on.
>
> HBOS reserves the right to monitor and record e-mail messages
> sent to and from this address for the purposes of
> investigating or detecting any unauthorised use of its system
> and ensuring its effective operation.
>
> HBOS plc, Registered in Scotland No. SC218813. Registered
> Office: The Mound, Edinburgh EH1 1YZ. HBOS plc is a holding
> company, subsidiaries of which are regulated by the Financial
> Services Authority.
> ==============================================================
> ================
>
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/yo
uraddr at yourhost.com
More information about the jdom-interest
mailing list