SV: SV: [jdom-interest] Error in build : trinity

Michael_Harley at bankofscotland.co.uk Michael_Harley at bankofscotland.co.uk
Thu Nov 13 09:14:07 PST 2003


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.
==============================================================================




More information about the jdom-interest mailing list