Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-2458

Incomplete message (Unknown warning SE_BAD_FIELD...)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: findbugs-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      Message of type SE_BAD_FIELD appear as:

      TEST: Unknown warning SE_BAD_FIELD in
      it.tidalwave.metadata.exif.viewer.EXIFPaneSupport.focalConverter; core bug
      patterns not found

      An example is here:

      http://www.tidalwave.it/hudson/job/blueMarine%20Metadata/463/findbugsResult/type.SE_BAD_FIELD/package.it.tidalwave.metadata.exif.viewer/source.9/#-1

      This is the ant fragment used to generate the report:

      <path id="findbugs.classpath">
      <fileset dir="${findbugs.dir}">
      <include name="lib/*.jar" />
      <!-- include name="lib/findbugs-ant.jar" /-->
      </fileset>
      </path>

      <taskdef name="findbugs"
      classname="edu.umd.cs.findbugs.anttask.FindBugsTask"
      classpathref="findbugs.classpath"/>

      <target name="findbugs" depends="build">
      <mkdir dir="build/test/findbugs"/>
      <findbugs home="${findbugs.dir}"
      output="xml"
      outputFile="build/test/findbugs/findbugs.xml"
      jvmargs="-Xmx512m"
      effort="max"
      reportLevel="low" >
      <sourcePath path="${basedir}/src" />
      <class location="${build.classes.dir}" />
      </findbugs>
      </target>

        Attachments

          Activity

          Hide
          drulli Ulli Hafner added a comment -

          I see, no message is correctly shown.

          Could you please attach a findbugs.xml results file from your ant build?

          Show
          drulli Ulli Hafner added a comment - I see, no message is correctly shown. Could you please attach a findbugs.xml results file from your ant build?
          Hide
          fabriziogiudici fabriziogiudici added a comment -

          It's available here:

          http://www.tidalwave.it/hudson/job/blueMarine%20Metadata/ws/src/EXIF/EXIFViewer/build/test/findbugs/findbugs.xml/*view*/

          BTW, I'm teaching Hudson in a class and I've just seen the same problem with
          other warnings. Of course the configuration in the class is different from my
          own Hudson - I can't investigate right now, but I can do tomorrow.

          Show
          fabriziogiudici fabriziogiudici added a comment - It's available here: http://www.tidalwave.it/hudson/job/blueMarine%20Metadata/ws/src/EXIF/EXIFViewer/build/test/findbugs/findbugs.xml/*view*/ BTW, I'm teaching Hudson in a class and I've just seen the same problem with other warnings. Of course the configuration in the class is different from my own Hudson - I can't investigate right now, but I can do tomorrow.
          Hide
          drulli Ulli Hafner added a comment -

          Setting the ant task to
          <findbugs home="${findbugs.home}" output="xml:withMessages">
          should do the trick.

          I will update the documentation of the plug-in configuration.

          Additionally it makes sense to reuse at least the short messages from the
          findbugs library if the ant tasks is wrongly initialized.

          Show
          drulli Ulli Hafner added a comment - Setting the ant task to <findbugs home="${findbugs.home}" output="xml:withMessages"> should do the trick. I will update the documentation of the plug-in configuration. Additionally it makes sense to reuse at least the short messages from the findbugs library if the ant tasks is wrongly initialized.
          Hide
          r2b2_nz Richard Bywater added a comment -

          Setting the output to "xml:withMessages" in the Ant task seems to do the trick
          for me.

          Show
          r2b2_nz Richard Bywater added a comment - Setting the output to "xml:withMessages" in the Ant task seems to do the trick for me.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : drulli
          Path:
          trunk/hudson/plugins/findbugs/src/main/java/hudson/plugins/findbugs/FindBugsMessages.java
          trunk/hudson/plugins/findbugs/src/main/java/hudson/plugins/findbugs/Pattern.java
          trunk/hudson/plugins/findbugs/src/main/java/hudson/plugins/findbugs/parser/NativeFindBugsParser.java
          trunk/hudson/plugins/findbugs/src/test/java/hudson/plugins/findbugs/FindBugsMessagesTest.java
          trunk/hudson/plugins/findbugs/src/test/java/hudson/plugins/findbugs/parser/NativeFindBugsParserTest.java
          trunk/hudson/plugins/findbugs/src/test/resources/hudson/plugins/findbugs/parser/findbugs-nomessage.xml
          http://fisheye4.cenqua.com/changelog/hudson/?cs=12594
          Log:
          [FIXED JENKINS-2458] Show default short message of FindBugs team if the build has been configured with the no-message option.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : drulli Path: trunk/hudson/plugins/findbugs/src/main/java/hudson/plugins/findbugs/FindBugsMessages.java trunk/hudson/plugins/findbugs/src/main/java/hudson/plugins/findbugs/Pattern.java trunk/hudson/plugins/findbugs/src/main/java/hudson/plugins/findbugs/parser/NativeFindBugsParser.java trunk/hudson/plugins/findbugs/src/test/java/hudson/plugins/findbugs/FindBugsMessagesTest.java trunk/hudson/plugins/findbugs/src/test/java/hudson/plugins/findbugs/parser/NativeFindBugsParserTest.java trunk/hudson/plugins/findbugs/src/test/resources/hudson/plugins/findbugs/parser/findbugs-nomessage.xml http://fisheye4.cenqua.com/changelog/hudson/?cs=12594 Log: [FIXED JENKINS-2458] Show default short message of FindBugs team if the build has been configured with the no-message option.

            People

            Assignee:
            drulli Ulli Hafner
            Reporter:
            fabriziogiudici fabriziogiudici
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: