[
https://issues.apache.org/jira/browse/TEZ-4669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18051489#comment-18051489
]
László Bodor edited comment on TEZ-4669 at 1/13/26 12:42 PM:
-------------------------------------------------------------
I was able to reproduce this on an ubuntu server, but not on my mac, will
investigate
{code}
Distributor ID: Ubuntu
Description: Ubuntu 24.04.3 LTS
Release: 24.04
Codename: noble
{code}
maven 3.8.7
java 21
{code}
mvn -version
Apache Maven 3.8.7 (b89d5959fcde851dcb1c8946a785a163f14e1e29)
Maven home: /home/abstractdog/apps/maven
Java version: 21.0.9, vendor: Ubuntu, runtime:
/usr/lib/jvm/java-21-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "6.8.0-90-generic", arch: "amd64", family: "unix"
{code}
{code}
cd tez-dag
mvn clean test-compile spotbugs:spotbugs -DskipTests=true
{code}
after upgrading to spotbugs 4.9.8, the issue doesn't come, but keeps hidden, as
the below message suggests that spotbugs didn't even run:
{code}
[INFO] Fork Value is true
[java] The following classes needed for analysis were missing:
[java] com.sun.jersey.api.container.filter.GZIPContentEncodingFilter
[java] com.sun.jersey.api.core.ResourceConfig
[INFO] Done SpotBugs Analysis....
{code}
was (Author: abstractdog):
I was able to reproduce this on an ubuntu server, but not on my mac, will
investigate
maven 3.8.7
java 21
{code}
mvn -version
Apache Maven 3.8.7 (b89d5959fcde851dcb1c8946a785a163f14e1e29)
Maven home: /home/abstractdog/apps/maven
Java version: 21.0.9, vendor: Ubuntu, runtime:
/usr/lib/jvm/java-21-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "6.8.0-90-generic", arch: "amd64", family: "unix"
{code}
{code}
cd tez-dag
mvn clean test-compile spotbugs:spotbugs -DskipTests=true
{code}
after upgrading to spotbugs 4.9.8, the issue doesn't come, but keeps hidden, as
the below message suggests that spotbugs didn't even run:
{code}
[INFO] Fork Value is true
[java] The following classes needed for analysis were missing:
[java] com.sun.jersey.api.container.filter.GZIPContentEncodingFilter
[java] com.sun.jersey.api.core.ResourceConfig
[INFO] Done SpotBugs Analysis....
{code}
> Spotbugs fails in precommit
> ---------------------------
>
> Key: TEZ-4669
> URL: https://issues.apache.org/jira/browse/TEZ-4669
> Project: Apache Tez
> Issue Type: Bug
> Reporter: László Bodor
> Priority: Major
> Attachments: patch-spotbugs-root.txt
>
>
> in https://github.com/apache/tez/pull/427
> {code}
> com.google.inject.ProvisionException: Unable to provision, see the following
> errors:
> 1) null returned by binding at org.eclipse.sisu.wire.LocatorWiring
> but the 1st parameter of
> org.codehaus.plexus.velocity.internal.DefaultVelocityComponent.<init>(Unknown
> Source) is not @Nullable
> at org.eclipse.sisu.wire.LocatorWiring
> while locating org.codehaus.plexus.velocity.VelocityComponentConfigurator
> for the 1st parameter of
> org.codehaus.plexus.velocity.internal.DefaultVelocityComponent.<init>(Unknown
> Source)
> at ClassRealm[plugin>com.github.spotbugs:spotbugs-maven-plugin:4.9.3.0,
> parent: jdk.internal.loader.ClassLoaders$AppClassLoader@639fee48] (via
> modules: org.eclipse.sisu.wire.WireModule ->
> org.eclipse.sisu.plexus.PlexusBindingModule)
> while locating
> org.codehaus.plexus.velocity.internal.DefaultVelocityComponent
> while locating java.lang.Object annotated with *
> at org.eclipse.sisu.wire.LocatorWiring
> while locating org.codehaus.plexus.velocity.VelocityComponent
> for field at
> org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.velocity(Unknown
> Source)
> at ClassRealm[plugin>com.github.spotbugs:spotbugs-maven-plugin:4.9.3.0,
> parent: jdk.internal.loader.ClassLoaders$AppClassLoader@639fee48] (via
> modules: org.eclipse.sisu.wire.WireModule ->
> org.eclipse.sisu.plexus.PlexusBindingModule)
> while locating org.apache.maven.doxia.siterenderer.DefaultSiteRenderer
> while locating java.lang.Object annotated with *
> while locating org.codehaus.mojo.spotbugs.SpotBugsMojo
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)