Build Failure: Invalid byte 1 of 1-byte UTF-8 sequence

873 views
Skip to first unread message

Eric Denman

unread,
Jun 13, 2012, 11:25:07 PM6/13/12
to Jenkins Developers
Hey all,

I recently cloned the git repo at https://github.com/jenkinsci/jenkins.
I found the class I wanted to change (ParametersDefinitionProperty),
and made the one-line change. I then went to BUILDING.txt and,
following the instructions there, tried to build using:

mvn clean install -pl war -am -DskipTests

Here's the error I'm getting:
[INFO] --- maven-license-plugin:1.3:process (default) @ jenkins-war
---
[INFO] Generated /Users/edenman/source/jenkins/war/target/classes/META-
INF/licenses.xml
ERROR: 'Invalid byte 1 of 1-byte UTF-8 sequence.'
ERROR:
'com.sun.org.apache.xml.internal.utils.WrappedRuntimeException:
Invalid byte 1 of 1-byte UTF-8 sequence.'
...
[ERROR] Failed to execute goal com.cloudbees:maven-license-plugin:
1.3:process (default) on project jenkins-war: Execution default of
goal com.cloudbees:maven-license-plugin:1.3:process failed:
javax.xml.transform.TransformerException:
javax.xml.transform.TransformerException:
com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Invalid
byte 1 of 1-byte UTF-8 sequence. -> [Help 1]

I tried switching to "mvn clean install", but I still get the same
result. I'm running on a macbook pro running OS 10.7.4. I've got 5gb
+ of free disk space, the JDK is 1.6.0_31, and here's the output of
the "locale" command on my machine:
https://gist.github.com/9cd0c5d36f432c13bea4

Any tips? I checked out the licenses.xml file and it doesn't have an
encoding specified at the top, which is (I assume) why the parser is
blowing up.

Thanks,
Eric

Eric Denman

unread,
Jun 14, 2012, 3:13:46 PM6/14/12
to Jenkins Developers
Figured it out: the xslt transform was failing. Updating all the xml
operations to use UTF8 fixed the build for me. Changes:

https://github.com/cloudbees/maven-license-plugin/pull/2
https://github.com/jenkinsci/jenkins/pull/497

On Jun 13, 8:25 pm, Eric Denman <eden...@squareup.com> wrote:
> Hey all,
>
> I recently cloned the git repo athttps://github.com/jenkinsci/jenkins.

Anne Stellingwerf

unread,
Jun 16, 2012, 10:08:04 AM6/16/12
to jenkin...@googlegroups.com
Hi Eric,

Do you know a workaround while your pull request is still in progress?

Thanks,
Anne

Salman Awan

unread,
Jun 17, 2012, 6:39:28 AM6/17/12
to jenkin...@googlegroups.com
Eric,

Thanks for the fix, i am waiting on this pull request to be accepted as well, before i can build it successfully on my machine.

Regards,
Salman Awan

nicolas de loof

unread,
Jun 17, 2012, 3:13:40 PM6/17/12
to jenkin...@googlegroups.com
I will look at this this week

2012/6/17 Salman Awan <salm...@gmail.com>
Reply all
Reply to author
Forward
0 new messages