jenkins.util.MarkFindingOutputStream class is missing : Maven build not working in slave mode

Bug #1045795 reported by Yoann Dubreuil on 2012-09-04
This bug affects 1 person
Affects Status Importance Assigned to Milestone
jenkins (Ubuntu)
James Page

Bug Description

Maven build doesn't work in slave mode : the Maven build plugin requires the class jenkins.util.MarkFindingOutputStream to work but this class is not in the jenkins WAR built by Ubuntu. This class is present in the official build of Jenkins LTS 1.466.1

When i try to build a Maven project in a slave, i see this stacktrace :

Modules changed, recalculating dependency graph
FATAL: jenkins/util/MarkFindingOutputStream
java.lang.NoClassDefFoundError: jenkins/util/MarkFindingOutputStream
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(
 at Method)
 at java.lang.ClassLoader.loadClass(
 at java.lang.ClassLoader.loadClass(
 at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(
 at hudson.model.AbstractBuild$
 at hudson.model.ResourceController.execute(
Caused by: java.lang.ClassNotFoundException: jenkins.util.MarkFindingOutputStream
 at Method)
 at java.lang.ClassLoader.loadClass(
 at java.lang.ClassLoader.loadClass(
 ... 16 more

I dont understand why the MarkFindingOutputStream class in not present because the source file is in the source package in this folder : core/src/main/groovy/jenkins/util/ The other source file present in this folder is ServerTcpPort and is correctly compiled and included in the WAR file of Jenkins.

Anyway, theses two files are in the wrong folder (groovy sources). Upstream fixed this :

I think that the best thing to do is to move theses files in the right source folder.

Hope this helps,


Related branches

James Page (james-page) wrote :

Thanks for the bug report Yoann

I'd noticed this issue and had picked up on the file but had missed the other one.

Changed in jenkins (Ubuntu):
status: New → Triaged
importance: Undecided → High
assignee: nobody → James Page (james-page)
status: Triaged → In Progress
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package jenkins - 1.466.1+dfsg-0ubuntu2

jenkins (1.466.1+dfsg-0ubuntu2) quantal; urgency=low

  * Fix maven based builds in slave mode (LP: #1045795):
    - d/rules: Copy all java files incorrectly located in groovy src
      folder to the correct location to fixup problem with missing
      class MarkFindingOutputStream.
 -- James Page <email address hidden> Wed, 05 Sep 2012 09:41:33 +0100

Changed in jenkins (Ubuntu):
status: In Progress → Fix Released
security vulnerability: no → yes
James Page (james-page) on 2012-09-06
security vulnerability: yes → no
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers