Hudson log - [Fatal Error] repository.xml:3:1: Premature end of file.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Hudson log - [Fatal Error] repository.xml:3:1: Premature end of file.

derhaa
I use Hudson with Maven. And I have found in Hudson`s console output:

[INFO] Parsing file:/root/.m2/repository/repository.xml
[Fatal Error] repository.xml:3:1: Premature end of file.
org.xml.sax.SAXParseException: Premature end of file.

I have found out that repository.xml is blank. I removed it a executed build over project again. And problem has not occured already. But there is question why the situation occured and how I can prevent this problem again.

There is another important problem. When this problem occured Hudson does not send email about job failed.

Even some test do not executed. There is console output of java bundle:

started
Build failed before it gets to this module
finished: NOT_BUILT


Note:
I tried to find meaning of repository.xml. Only I found out, that file is generated by Maven, when I read it
. If you have some links about more information. Please send me.

#enviroment
SUSE Sles 10
Hudson 1.229
Maven 2.0.9

hudson-repository-xml-problem.txt
Reply | Threaded
Open this post in threaded view
|

Re: Hudson log - [Fatal Error] repository.xml:3:1: Premature end of file.

Kohsuke Kawaguchi
Administrator

It's really hard to say where this file has come from. It could be from
your builds, someone doing maintenance work on Hudson's user account.
Maybe Maven have died unexpectedly while updating this file. It can be
anything.

Tomas Cejka wrote:

> I use Hudson with Maven. And I have found in Hudson`s console output:
>
> [INFO] Parsing file:/root/.m2/repository/repository.xml
> [Fatal Error] repository.xml:3:1: Premature end of file.
> org.xml.sax.SAXParseException: Premature end of file.
>
> I have found out that repository.xml is blank. I removed it a executed build
> over project again. And problem has not occured already. But there is
> question why the situation occured and how I can prevent this problem again.
> http://www.nabble.com/file/p18460386/hudson-repository-xml-problem.txt
> hudson-repository-xml-problem.txt
>
> #enviroment
> SUSE Sles 10
> Hudson 1.229
> Maven 2.0.9
>
> http://www.nabble.com/file/p18460386/hudson-repository-xml-problem.txt
> hudson-repository-xml-problem.txt

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Hudson log - [Fatal Error] repository.xml:3:1: Premature end of file.

derhaa

kohsuke wrote
Maybe Maven have died unexpectedly while updating this file.

--
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi@sun.com

 
It seems, Maven dies (cannot find bundles, plugin) and generate errors, and others bundles stay "didn't run" or they are stay to unproccessed by Hudson. But I try to find out, why it occurs exactly. This notice is supposition.

These problem occured in Hudson v1.222, and now I upgraded on 1.236 and problem above has not occured yet.