-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
Platform: All, OS: All
I have an issue with findbugs not copying the source file in an m2 build
(single module jar project) the exception is below.
I thought this was recently fixed (I can't find any trace of this). I am
running Hudson 1.297 on WinXP with jdk 1.6.0 update 07 with the following
plugins
Hudson is a master only (no slaves)
Hudson Active Directory plugin 1.11
Hudson Checkstyle Plug-in 2.8
Hudson FindBugs Plug-in 3.7
Hudson Maven Release Plug-in Plug-in 0.2.0
Maven Integration plugin 1.297
Hudson MSBuild Plugin 1.1
Hudson PMD Plug-in 2.7
Hudson Task Scanner Plug-in 3.5
Unnamed - org.jvnet.hudson.plugins:viewVC:hpi:1.2 1.2
Hudson Violations plugin 0.7.3
Hudson Warnings Plug-in 2.6
[CHECKSTYLE] Successfully parsed file c:\hudson\jobs\cabbuild test
project\workspace\testproject\target\checkstyle-result.xml of module NDS CAB
Build Environment test project with 8 warnings.
[FINDBUGS] Successfully parsed file c:\hudson\jobs\cabbuild test
project\workspace\testproject\target\findbugs.xml of module NDS CAB Build
Environment test project with 1 warnings.
[FINDBUGS] Can't copy source file:
source=workspace/testproject/src/main/java/bob/bob.java,
destination=f39f19d9.tmp
java.io.FileNotFoundException: workspace\testproject\src\main\java\bob\bob.java
(The system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at hudson.FilePath$25.invoke(FilePath.java:991)
at hudson.FilePath$25.invoke(FilePath.java:987)
at hudson.FilePath.act(FilePath.java:552)
at hudson.FilePath.copyTo(FilePath.java:987)
at hudson.FilePath.copyTo(FilePath.java:975)
at
hudson.plugins.findbugs.util.HealthAwareMavenReporter.copyFilesToMaster
(HealthAwareMavenReporter.java:206)
at hudson.plugins.findbugs.util.HealthAwareMavenReporter.postExecute
(HealthAwareMavenReporter.java:164)
at hudson.maven.MavenModuleSetBuild$Builder.postExecute
(MavenModuleSetBuild.java:639)
at hudson.maven.MavenBuilder$Adapter.postExecute(MavenBuilder.java:290)
at
hudson.maven.agent.PluginManagerInterceptor$1MojoIntercepterImpl.callPost
(PluginManagerInterceptor.java:170)
at hudson.maven.agent.PluginManagerInterceptor.executeMojo
(PluginManagerInterceptor.java:183)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(DefaultLifecycleExecutor.java:558)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:499)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
(DefaultLifecycleExecutor.java:478)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
(DefaultLifecycleExecutor.java:291)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
(DefaultLifecycleExecutor.java:142)
at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute
(LifecycleExecutorInterceptor.java:65)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.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 hudson.maven.agent.Main.launch(Main.java:158)
at hudson.maven.MavenBuilder.call(MavenBuilder.java:162)
at hudson.maven.MavenModuleSetBuild$Builder.call
(MavenModuleSetBuild.java:578)
at hudson.maven.MavenModuleSetBuild$Builder.call
(MavenModuleSetBuild.java:524)
at hudson.remoting.UserRequest.perform(UserRequest.java:92)
at hudson.remoting.UserRequest.perform(UserRequest.java:46)
at hudson.remoting.Request$2.run(Request.java:236)
at java.util.concurrent.Executors$RunnableAdapter.call
(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask
(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run
(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
[PMD] Successfully parsed file c:\hudson\jobs\cabbuild test
project\workspace\testproject\target\pmd.xml of module NDS CAB Build
Environment test project with 0 warnings.
I have two XML files findbugs.xml: <BugCollection version="1.2.1"
threshold="Low" effort="Max">
<file classname="bob.bob">
<BugInstance type="NM_CLASS_NAMING_CONVENTION" priority="Normal"
category="BAD_PRACTICE" message="Nm: The class name bob.bob doesn't start with
an upper case letter" lineNumber="5-13"/>
</file>
<Errors>
</Errors>
<Project>
<SrcDir>c:\hudson\jobs\cabbuild test
project\workspace\testproject\src\main\java</SrcDir>
</Project>
</BugCollection> and findbugsXml.xml: <?xml version="1.0" encoding="UTF-8"?>
<BugCollection version="1.2.1" sequence="0" timestamp="1239277615599"
analysisTimestamp="1239277615599" release="">
<Project filename="<<unnamed project>>" projectName="NDS CAB
Build Environment test project">
<Jar>c:\hudson\jobs\cabbuild test
project\workspace\testproject\target\classes\bob\bob.class</Jar>
<AuxClasspathEntry>c:\hudson\jobs\cabbuild test
project\workspace\testproject\target\classes</AuxClasspathEntry>
<AuxClasspathEntry>c:\hudson\jobs\cabbuild test
project\workspace\.repository\org\apache\activemq\activemq-all\5.1.0\activemq-
all-5.1.0.jar</AuxClasspathEntry>
<AuxClasspathEntry>c:\hudson\jobs\cabbuild test
project\workspace\.repository\com\nds\common\cablogging\1.1.0.0\cablogging-
1.1.0.0.jar</AuxClasspathEntry>
<AuxClasspathEntry>c:\hudson\jobs\cabbuild test
project\workspace\.repository\log4j\log4j\1.2.15\log4j-
1.2.15.jar</AuxClasspathEntry>
</Project>
<BugInstance type="NM_CLASS_NAMING_CONVENTION" priority="2" abbrev="Nm"
category="BAD_PRACTICE" instanceHash="c0461b0e988cabbc5ed5510d41e400a1"
instanceOccurrenceNum="0" instanceOccurrenceMax="0">
<ShortMessage>Class names should start with an upper case
letter</ShortMessage>
<LongMessage>The class name bob.bob doesn't start with an upper case
letter</LongMessage>
<Class classname="bob.bob">
<SourceLine classname="bob.bob" start="5" end="13" sourcefile="bob.java"
sourcepath="bob/bob.java">
<Message>At bob.java:[lines 5-13]</Message>
</SourceLine>
<Message>In class bob.bob</Message>
</Class>
<SourceLine classname="bob.bob" start="5" end="13" sourcefile="bob.java"
sourcepath="bob/bob.java" synthetic="true">
<Message>At bob.java:[lines 5-13]</Message>
</SourceLine>
</BugInstance>
<BugCategory category="BAD_PRACTICE">
<Description>Bad practice</Description>
</BugCategory>
<BugPattern type="NM_CLASS_NAMING_CONVENTION" abbrev="Nm"
category="BAD_PRACTICE">
<ShortDescription>Class names should start with an upper case
letter</ShortDescription>
<Details><![CDATA[
<p> Class names should be nouns, in mixed case with the first letter of each
internal word capitalized. Try to keep your class names simple and descriptive.
Use whole words-avoid acronyms and abbreviations (unless the abbreviation is
much more widely used than the long form, such as URL or HTML).
</p>
]]></Details>
</BugPattern>
<BugCode abbrev="Nm">
<Description>Confusing method name</Description>
</BugCode>
<Errors></Errors>
<FindBugsSummary timestamp="Thu, 9 Apr 2009 12:46:55 +0100" total_classes="0"
total_bugs="0" total_size="0" num_packages="0" cpu_seconds="3.52"
clock_seconds="3.39" peak_mbytes="159.24" gc_seconds="0.42"></FindBugsSummary>
<ClassFeatures></ClassFeatures>
<History></History>
</BugCollection>
- duplicates
-
JENKINS-3511 Findbugs throws FNFE for source files
-
- Closed
-