Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 92890 invoked from network); 13 Apr 2006 07:59:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Apr 2006 07:59:32 -0000 Received: (qmail 50950 invoked by uid 500); 13 Apr 2006 07:59:27 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 50790 invoked by uid 500); 13 Apr 2006 07:59:26 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 50779 invoked by uid 99); 13 Apr 2006 07:59:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Apr 2006 00:59:26 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=HTML_MESSAGE,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [203.91.193.23] (HELO wip-ectls-mx3.wipro.com) (203.91.193.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Apr 2006 00:59:25 -0700 Received: from wip-ectls-mx3.wipro.com (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id ADBD022401F; Thu, 13 Apr 2006 13:29:02 +0530 (IST) Received: from blr-ec-bh02.wipro.com (blr-ec-bh02.wipro.com [10.201.50.92]) by wip-ectls-mx3.wipro.com (Postfix) with ESMTP id A19EE224002; Thu, 13 Apr 2006 13:29:02 +0530 (IST) Received: from BLR-EC-MBX01.wipro.com ([10.201.50.164]) by blr-ec-bh02.wipro.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 13 Apr 2006 13:29:02 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C65ED0.20C936EA" Subject: Problem with cocoon.getCompoent() in cocoon.2.1.7 Date: Thu, 13 Apr 2006 13:30:50 +0530 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problem with cocoon.getCompoent() in cocoon.2.1.7 Thread-Index: AcZe0GEDzHehTIwXSx6W29TOJo+19A== From: To: , X-OriginalArrivalTime: 13 Apr 2006 07:59:02.0466 (UTC) FILETIME=[20E40220:01C65ED0] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C65ED0.20C936EA Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi all, =0D I'm getting Timeout exception while parsing document using cocoon.getComponent() in cocoon.2.1.7 Same code working fine with cocoon.2.1.5, Any help would be appreciated. =0D flowscript code =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D function parseByteArray(ary, uri) { var source =3D new Packages.org.xml.sax.InputSource(new java.io.ByteArrayInputStream(ary)); if (uri !=3D undefined) { source.setSystemId(uri); } var parser =3D cocoon.getComponent(Packages.org.apache.excalibur.xml.dom.DOMParser.ROLE ); try { return parser.parseDocument(source); //time out error } =0D finally { cocoon.releaseComponent(parser); //time out error } } =0D Thanks, Vijay The information contained in this electronic message and any attachments to= this message are intended for the exclusive use of the addressee(s) and= may contain proprietary, confidential or privileged information. If you= are not the intended recipient, you should not disseminate, distribute or= copy this e-mail. Please notify the sender immediately and destroy all= copies of this message and any attachments.=0D WARNING: Computer viruses can be transmitted via email. The recipient= should check this email and any attachments for the presence of viruses.= The company accepts no liability for any damage caused by any virus= transmitted by this email. =0D www.wipro.com ------_=_NextPart_001_01C65ED0.20C936EA Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message
Hi all,
 
I'm getting Timeout exception= while parsing=0D document using cocoon.getComponent() in cocoon.2.1.7
Same code working fine with= cocoon.2.1.5,=0D Any help would be appreciated.
 
flowscript=0D code
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D
function parseByteArray(ary,= uri)=0D {
  var source =3D new Packages.org.xml.sax.InputSource(new=0D java.io.ByteArrayInputStream(ary));
  if (uri !=3D undefined)=0D {
    source.setSystemId(uri);
  }
  var= =0D parser =3D=0D cocoon.getComponent(Packages.org.apache.excalibur.xml.dom.DOMParser.ROLE);<= BR> =0D try {
    return=0D parser.parseDocument(source);  
//time= out=0D error
  }
 
  finally=0D {
    cocoon.releaseComponent(parser);   =0D
//time out= error
 =0D }
}
 
Thanks,= Vijay

The information contained in this electronic message and any attachments to= this message are intended for the exclusive use of the addressee(s) and= may contain proprietary, confidential or privileged information. If you= are not the intended recipient, you should not disseminate, distribute or= copy this e-mail. Please notify the sender immediately and destroy all= copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient= should check this email and any attachments for the presence of viruses.= The company accepts no liability for any damage caused by any virus= transmitted by this email.

www.wipro.com
------_=_NextPart_001_01C65ED0.20C936EA--