Return-Path: X-Original-To: apmail-ant-notifications-archive@minotaur.apache.org Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5025E7E0D for ; Thu, 29 Dec 2011 07:30:59 +0000 (UTC) Received: (qmail 79335 invoked by uid 500); 29 Dec 2011 07:30:58 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 79285 invoked by uid 500); 29 Dec 2011 07:30:57 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 79278 invoked by uid 99); 29 Dec 2011 07:30:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Dec 2011 07:30:55 +0000 X-ASF-Spam-Status: No, hits=-2001.3 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Dec 2011 07:30:52 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A31F312EC98 for ; Thu, 29 Dec 2011 07:30:30 +0000 (UTC) Date: Thu, 29 Dec 2011 07:30:30 +0000 (UTC) From: "Maarten Coene (Resolved) (JIRA)" To: notifications@ant.apache.org Message-ID: <1147847516.50823.1325143830669.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <349170584.32021.1324407752096.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (IVY-1325) ivy:report ant task intermittently "cannot compile stylesheet" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IVY-1325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Maarten Coene resolved IVY-1325. -------------------------------- Resolution: Fixed Fix Version/s: trunk Assignee: Maarten Coene > ivy:report ant task intermittently "cannot compile stylesheet" > -------------------------------------------------------------- > > Key: IVY-1325 > URL: https://issues.apache.org/jira/browse/IVY-1325 > Project: Ivy > Issue Type: Bug > Affects Versions: 2.2.0 > Environment: ivy-2.2.jar, Sun jdk 1.5 and 1.6 for compiling, Jenkins 1.436 as CI server, ant 1.8.2, Linux, Jenkins ivy plugin 1.20 > Reporter: David Goblirsch > Assignee: Maarten Coene > Fix For: trunk > > > Setup: > o Using ivy-2.2.jar. > o Compiling with Sun jdk versions 1.5 or 1.6 (project dependent) on a Linux box. > o Running ant 1.8.2 via a wrapper script inside Jenkins 1.436 with 5 or so > executors. That is, each build invokes a simple custom wrapper-script around > Ant that puts some custom tasks and ivy-2.2 on the build classpath. > o Jenkins Ivy plugin version is version 1.20 which uses ivy 2.2.0 internally. > Problem: > We hit this error perhaps 8 % of the builds when there are several > parallel builds happening: > javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet > at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:828) > at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:617) > at org.apache.ivy.ant.IvyReport.genStyled(IvyReport.java:322) > at org.apache.ivy.ant.IvyReport.genreport(IvyReport.java:248) > at org.apache.ivy.ant.IvyReport.doExecute(IvyReport.java:211) > at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277) > : > : > The build always runs fine for a single job when invoked from the > command line, and 99.9% of the time runs fine when the Jenkins job is > requeued. But when it happens during parallel builds, the error > message is always the same and always in exactly the same spot in > IvyReport.java. > The relevant ant task is this (we are behind a firewall so retrieves > never go out to the internet, all resolvers are FileSystem resolvers, > which explains some of the attribute values): > > > > conf="@{ivyconfig}" > log="${option.ivy.log}" > resolveMode="dynamic" > showprogress="false" > checkIfChanged="false" > /> > conf="@{ivyconfig}" > log="${option.ivy.log}" > pattern="${ivy.lib.dir}/@{ivyconfig}/[artifact](-[revision]).[ext]" > symlink="true" > sync="true" > /> > conf="@{ivyconfig}" > dot="${option.ivyreport.dot}" <--- false on Jenkins, settable for indiv developer > graph="${option.ivyreport.graphml}" <--- false on Jenkins, settable for indiv developer > outputpattern="dependencies-[conf].[ext]" > todir="${dir.build}/report" > /> > > > As you can see from the code, we are not using our own stylesheet, but > the one in the ivy distribution. > The code in IvyReport.java looks ok to me but I am not a TRaX user and > certainly no expert on it so it is not clear to me why occasionally we > get this "cannot compile stylesheet" error. And we only get it when > many builds are happening in parallel, never for one-build-at-a-time, > which makes me wonder if there is some issue with grabbing resources > from inside a jar, something I do not do myself. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira