strange error when running rat:check on a project...
----------------------------------------------------
Key: MOJO-822
URL: http://jira.codehaus.org/browse/MOJO-822
Project: Mojo
Issue Type: Bug
Components: rat
Environment: OS X, Maven 2.0.5
Reporter: james strachan
Assignee: Jochen Wiedmann
Am totally stumped. Note that the plugin works great in sub-modules; its just
the root directory it barfs on (stack trace below). If you grab the code here...
svn co https://svn.apache.org/repos/asf/activemq/camel/trunk/ camel
cd camel
mvn rat:check -P rat -X
It barfs as shown below. However if you do
cd camel-core
mvn rat:check -P rat
Its fine! I can't work out why the root project seems to have an issue. The
Apache FtpProject works fine in the root directory. Maybe more debugging might
help us diagnose the issue or something?
DEBUG] Configuring mojo
'org.codehaus.mojo:rat-maven-plugin:1.0-alpha-1-SNAPSHOT:check' -->
[DEBUG] (f) addDefaultLicenseMatchers = true
[DEBUG] (f) basedir = /home/jstrachan/camel
[DEBUG] (f) reportFile =
/home/jstrachan/camel/target/camel-parent-1.0-SNAPSHOT.rat
[DEBUG] (f) useDefaultExcludes = true
[DEBUG] (f) useEclipseDefaultExcludes = true
[DEBUG] (f) useMavenDefaultExcludes = true
[DEBUG] -- end configuration --
[INFO] [rat:check]
ERROR: 'An invalid XML character (Unicode: 0x0) was found in the element
content of the document.'
ERROR: 'com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: An
invalid XML character (Unicode: 0x0) was found in the element content of the
document.'
Exception in thread "Thread-0" rat.report.ReportFailedRuntimeException:
javax.xml.transform.TransformerException:
com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: An invalid XML
character (Unicode: 0x0) was found in the element content of the document.
at rat.ReportTransformer.run(ReportTransformer.java:57)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.xml.transform.TransformerException:
javax.xml.transform.TransformerException:
com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: An invalid XML
character (Unicode: 0x0) was found in the element content of the document.
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:654)
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:281)
at rat.ReportTransformer.transform(ReportTransformer.java:62)
at rat.ReportTransformer.run(ReportTransformer.java:55)
... 1 more
Caused by: javax.xml.transform.TransformerException:
com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: An invalid XML
character (Unicode: 0x0) was found in the element content of the document.
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:496)
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:644)
... 4 more
Caused by: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: An
invalid XML character (Unicode: 0x0) was found in the element content of the
document.
at
com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:393)
at
com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:228)
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:474)
... 5 more
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] rat.report.ReportFailedException: XML writing failure: Pipe closed
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
rat.report.ReportFailedRuntimeException: rat.report.ReportFailedException: XML
writing failure: Pipe closed
at
rat.report.xml.visitor.ElementTypeVisitor.claim(ElementTypeVisitor.java:62)
at
rat.report.xml.visitor.ElementTypeVisitor.visit(ElementTypeVisitor.java:50)
at
rat.element.visitor.ElementVisitorMultiplexer.visit(ElementVisitorMultiplexer.java:49)
at
rat.element.visitor.ElementVisitorProxy.visit(ElementVisitorProxy.java:41)
at rat.element.BinaryElement.accept(BinaryElement.java:132)
at rat.report.xml.XmlReport.consume(XmlReport.java:53)
at
org.codehaus.mojo.rat.AbstractRatMojo$1.consumeContents(AbstractRatMojo.java:308)
at rat.Report.report(Report.java:123)
at rat.Report.report(Report.java:112)
at
org.codehaus.mojo.rat.AbstractRatMojo.createReport(AbstractRatMojo.java:332)
at org.codehaus.mojo.rat.RatCheckMojo.execute(RatCheckMojo.java:57)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:420)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: rat.report.ReportFailedException: XML writing failure: Pipe closed
at
rat.report.claim.impl.xml.SimpleXmlClaimReporter.claim(SimpleXmlClaimReporter.java:50)
at
rat.report.xml.visitor.ElementTypeVisitor.claim(ElementTypeVisitor.java:60)
... 28 more
Caused by: java.io.IOException: Pipe closed
at java.io.PipedReader.receive(PipedReader.java:116)
at java.io.PipedWriter.write(PipedWriter.java:104)
at
rat.report.xml.writer.impl.base.XmlWriter.closeElement(XmlWriter.java:567)
at
rat.report.claim.impl.xml.SimpleXmlClaimReporter.claim(SimpleXmlClaimReporter.java:39)
... 29 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18 seconds
[INFO] Finished at: Wed Jun 13 08:09:44 UTC 2007
[INFO] Final Memory: 8M/16M
[INFO] ------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email