This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 201022 - <junitreport> broken inside IDE on JDK 7
Summary: <junitreport> broken inside IDE on JDK 7
Status: RESOLVED INVALID
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 7.1
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Jesse Glick
URL: https://issues.apache.org/bugzilla/sh...
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-16 21:32 UTC by Jesse Glick
Modified: 2012-03-26 19:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2011-08-16 21:32:59 UTC
Any attempt to use <junitreport> (in the default "frames" mode) inside the IDE running JDK 7 fails:

Errors while applying transformations: 
javax.xml.transform.TransformerException: java.lang.RuntimeException: Use of the extension element 'redirect' is not allowed when the secure processing feature is set to true.
	at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:720)
	at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:317)
	at org.apache.tools.ant.taskdefs.optional.TraXLiaison.transform(TraXLiaison.java:194)
	at org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:852)
	at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:388)
	at org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(AggregateTransformer.java:264)
	at org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(XMLResultAggregator.java:158)

The same works outside the IDE using JDK 7, or inside the IDE using JDK 6.
Comment 1 Jesse Glick 2011-08-16 21:38:36 UTC
Has something to do with XALANJ-2136 (XMLConstants.FEATURE_SECURE_PROCESSING). A couple of unresolved reports in the field (neither mentioning NB):

http://groups.google.com/group/wave-protocol/browse_thread/thread/1628a64318118d66?pli=1
http://forums.adobe.com/thread/740146
Comment 2 Jesse Glick 2011-08-16 22:07:08 UTC
Filed upstream.
Comment 3 mcuevas 2012-03-16 02:34:33 UTC
This error still present and is a real issue, the problem occurs when use ANT 1.8.2(Netbeans's default lib) and JDK7 and you try to transform the XML file using Ant file.
Expected Result: The must recently ANT lib should be contained in Netbeans.
Work Around: use apache-ant-1.8.3 with JDK-7 or use apache-ant-1.8.2 with JDK-6
Comment 4 Jesse Glick 2012-03-26 19:47:13 UTC
(In reply to comment #3)
> This error still present

But in Ant, not in NetBeans.

Anyway NB is now (7.1.2/7.2) bundling 1.8.3.