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.
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.
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
Filed upstream.
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
(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.