maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joël Royer (JIRA) <j...@codehaus.org>
Subject [jira] Commented: (MCHANGELOG-86) Error with outputEncoding parameter set to UTF-8
Date Wed, 29 Apr 2009 13:26:45 GMT

    [ http://jira.codehaus.org/browse/MCHANGELOG-86?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=174603#action_174603
] 

Joël Royer commented on MCHANGELOG-86:
--------------------------------------

The problem is still here with version 2.2-SNAPSHOT.
Here is the stacktrace generated with command "mvn -e ":
{noformat}
[INFO] Generating "Change Log" report.
[INFO] Using existing changelog.xml...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error during page generation

Embedded error: Error rendering Maven report: An error occurred while parsing C:
\devs\projects\Test\workspace\TestWebapp\changelog.xml
Invalid byte 2 of 3-byte UTF-8 sequence.
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error during page genera
tion
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:703)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:540)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:519)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:371)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:332)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:181)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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: org.apache.maven.plugin.MojoExecutionException: Error during page gen
eration
        at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:105)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:483)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:678)
        ... 16 more
Caused by: org.apache.maven.doxia.siterenderer.RendererException: Error renderin
g Maven report: An error occurred while parsing F:\Devs\temp\diarytools-api-1.0\
target\changelog.xml
        at org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(R
eportDocumentRenderer.java:149)
        at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(
DefaultSiteRenderer.java:269)
        at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(Defaul
tSiteRenderer.java:101)
        at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:133
)
        at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:100)
        ... 18 more
Caused by: org.apache.maven.reporting.MavenReportException: An error occurred wh
ile parsing C:\devs\projects\Test\workspace\TestWebapp\changelog.xml
        at org.apache.maven.plugin.changelog.ChangeLogReport.getChangedSets(Chan
geLogReport.java:374)
        at org.apache.maven.plugin.changelog.ChangeLogReport.executeReport(Chang
eLogReport.java:336)
        at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMaven
Report.java:98)
        at org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(R
eportDocumentRenderer.java:139)
        ... 22 more
Caused by: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceExcep
tion: Invalid byte 2 of 3-byte UTF-8 sequence.
        at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF
8Reader.java:674)
        at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader
.java:398)
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEnti
tyScanner.java:1742)
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanData(XML
EntityScanner.java:1242)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanCDATASection(XMLDocumentFragmentScannerImpl.java:1646)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2977)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(X
MLDocumentScannerImpl.java:648)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:807)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:737)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
java:107)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab
stractSAXParser.java:1205)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
arse(SAXParserImpl.java:522)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:198)
        at org.apache.maven.plugin.changelog.ChangeLog.loadChangedSets(ChangeLog
.java:65)
        at org.apache.maven.plugin.changelog.ChangeLogReport.getChangedSets(Chan
geLogReport.java:366)
        ... 25 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 47 seconds
[INFO] Finished at: Wed Apr 29 15:22:04 CEST 2009
[INFO] Final Memory: 53M/63M
[INFO] ------------------------------------------------------------------------
{noformat}

> Error with outputEncoding parameter set to UTF-8
> ------------------------------------------------
>
>                 Key: MCHANGELOG-86
>                 URL: http://jira.codehaus.org/browse/MCHANGELOG-86
>             Project: Maven 2.x Changelog Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: Windows XP Pro SP2, Maven 2.0.9, Java SE 1.5.0 Update 15, Subversion
1.4.6
>            Reporter: Joël Royer
>            Assignee: Olivier Lamy
>             Fix For: 2.2
>
>         Attachments: ScreenShot_2008-06-04_140551.png
>
>
> When using UTF-8 as setting for the parameter outputEncoding, we've got this error:
> [INFO] Generating "Change Log" report.
> [INFO] Generating changed sets xml to: D:\devs\projects\Test\workspace\TestWebapp\target\changelog.xml
> [INFO] Executing: svn --non-interactive log -v -r "{2008-05-05 11:45:19 +0000}:{
> 2008-06-05 11:45:19 +0000}" https://mysubversionsrv/svndev/test/trunk/TestWebapp
> [INFO] Working directory: D:\devs\projects\Test\workspace\TestWebapp
> [INFO] Generating "Developer Activity" report.
> [INFO] Using existing changelog.xml...
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error during page generation
> Embedded error: Error rendering Maven report: An error occurred while parsing D:
> \devs\projects\Test\workspace\TestWebapp\target\changelog.xml
> Invalid byte 1 of 1-byte UTF-8 sequence.
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 39 seconds
> [INFO] Finished at: Wed Jun 04 13:45:23 CEST 2008
> [INFO] Final Memory: 41M/63M
> [INFO] ------------------------------------------------------------------------
> The file changelog.xml contains the good header line (<?xml version="1.0" encoding="UTF-8"?>),
but the file is encoded with ANSI UNIX charset

-- 
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

       

Mime
View raw message