Quantcast

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

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

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

Eric Denman
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

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

Eric Denman
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 <[hidden email]> wrote:

> Hey all,
>
> I recently cloned the git repo athttps://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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

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

Anne Stellingwerf-2
Hi Eric,

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

Thanks,
Anne


On Thu, Jun 14, 2012 at 9:13 PM, Eric Denman <[hidden email]> wrote:
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 <[hidden email]> wrote:
> Hey all,
>
> I recently cloned the git repo athttps://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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

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

SalmanAwan
In reply to this post by Eric Denman
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



On Friday, June 15, 2012 5:13:46 AM UTC+10, Eric Denman wrote:
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 <[hidden email]> wrote:

> Hey all,
>
> I recently cloned the git repo athttps://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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

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

nicolas de loof-2
I will look at this this week

2012/6/17 Salman Awan <[hidden email]>
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




On Friday, June 15, 2012 5:13:46 AM UTC+10, Eric Denman wrote:
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 <[hidden email]> wrote:

> Hey all,
>
> I recently cloned the git repo athttps://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
Loading...