You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by "leeyazhou (via GitHub)" <gi...@apache.org> on 2025/08/14 03:15:24 UTC

[PR] fix: build failure for lombok [skywalking-java]

leeyazhou opened a new pull request, #767:
URL: https://github.com/apache/skywalking-java/pull/767

   fix build failure:
   
   ```
   [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project apm-agent-core: Compilation failure: Compilation failure: 
   [ERROR] /opt/code/git/skywalking-java/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/trace/TraceSegmentRef.java:[51,31] cannot find symbol
   [ERROR]   symbol:   method getTraceId()
   [ERROR]   location: variable carrier of type org.apache.skywalking.apm.agent.core.context.ContextCarrier
   [ERROR] /opt/code/git/skywalking-java/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/trace/TraceSegmentRef.java:[52,38] cannot find symbol
   [ERROR]   symbol:   method getTraceSegmentId()
   [ERROR]   location: variable carrier of type org.apache.skywalking.apm.agent.core.context.ContextCarrier
   [ERROR] /opt/code/git/skywalking-java/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/trace/TraceSegmentRef.java:[53,30] cannot find symbol
   [ERROR]   symbol:   method getSpanId()
   [ERROR]   location: variable carrier of type org.apache.skywalking.apm.agent.core.context.ContextCarrier
   [ERROR] /opt/code/git/skywalking-java/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/trace/TraceSegmentRef.java:[54,37] cannot find symbol
   [ERROR]   symbol:   method getParentService()
   [ERROR]   location: variable carrier of type org.apache.skywalking.apm.agent.core.context.ContextCarrier
   [ERROR] /opt/code/git/skywalking-java/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/trace/TraceSegmentRef.java:[55,45] cannot find symbol
   [ERROR]   symbol:   method getParentServiceInstance()
   [ERROR]   location: variable carrier of type org.apache.skywalking.apm.agent.core.context.ContextCarrier
   [ERROR] /opt/code/git/skywalking-java/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/trace/TraceSegmentRef.java:[56,38] cannot find symbol
   [ERROR]   symbol:   method getParentEndpoint()
   [ERROR]   location: variable carrier of type org.apache.skywalking.apm.agent.core.context.ContextCarrier
   [ERROR] /opt/code/git/skywalking-java/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/trace/TraceSegmentRef.java:[57,43] cannot find symbol
   [ERROR]   symbol:   method getAddressUsedAtClient()
   [ERROR]   location: variable carrier of type org.apache.skywalking.apm.agent.core.context.ContextCarrier
   [ERROR] /opt/code/git/skywalking-java/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/trace/TraceSegmentRef.java:[62,32] cannot find symbol
   [ERROR]   symbol:   method getTraceId()
   [ERROR]   location: variable snapshot of type org.apache.skywalking.apm.agent.core.context.ContextSnapshot
   [ERROR] /opt/code/git/skywalking-java/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/trace/TraceSegmentRef.java:[63,39] cannot find symbol
   [ERROR]   symbol:   method getTraceSegmentId()
   [ERROR]   location: variable snapshot of type org.apache.skywalking.apm.agent.core.context.ContextSnapshot
   [ERROR] /opt/code/git/skywalking-java/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/trace/TraceSegmentRef.java:[64,31] cannot find symbol
   [ERROR]   symbol:   method getSpanId()
   [ERROR]   location: variable snapshot of type org.apache.skywalking.apm.agent.core.context.ContextSnapshot
   [ERROR] /opt/code/git/skywalking-java/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/trace/TraceSegmentRef.java:[67,39] cannot find symbol
   [ERROR]   symbol:   method getParentEndpoint()
   [ERROR]   location: variable snapshot of type org.apache.skywalking.apm.agent.core.context.ContextSnapshot
   [ERROR] /opt/code/git/skywalking-java/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/ContextCarrier.java:[95,23] cannot find symbol
   [ERROR]   symbol:   method getExtensionContext()
   [ERROR]   location: variable tracingContext of type org.apache.skywalking.apm.agent.core.context.TracingContext
   [ERROR] /opt/code/git/skywalking-java/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/ContextCarrier.java:[121,21] cannot find symbol
   [ERROR]   symbol: method getSpanId()
   [ERROR] /opt/code/git/skywalking-java/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/ContextCarrier.java:[119,35] cannot find symbol
   [ERROR]   symbol: method getTraceId()
   [ERROR] /opt/code/git/skywalking-java/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/ContextCarrier.java:[120,35] cannot find symbol
   [ERROR]   symbol: method getTraceSegmentId()
   [ERROR] /opt/code/git/skywalking-java/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/ContextCarrier.java:[122,35] cannot find symbol
   [ERROR]   symbol: method getParentService()
   [ERROR] /opt/code/git/skywalking-java/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/ContextCarrier.java:[123,35] cannot find symbol
   [ERROR]   symbol: method getParentServiceInstance()
   [ERROR] /opt/code/git/skywalking-java/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/ContextCarrier.java:[124,35] cannot find symbol
   [ERROR]   symbol: method getParentEndpoint()
   [ERROR] /opt/code/git/skywalking-java/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/ContextCarrier.java:[125,35] cannot find symbol
   [ERROR]   symbol: method getAddressUsedAtClient()
   [ERROR] /opt/code/git/skywalking-java/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/ContextCarrier.java:[173,20] cannot find symbol
   [ERROR]   symbol:   method getSpanId()
   [ERROR]   location: class org.apache.skywalking.apm.agent.core.context.ContextCarrier
   [ERROR] /opt/code/git/skywalking-java/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/ContextSnapshot.java:[57,88] cannot find symbol
   [ERROR]   symbol:   method getTraceSegmentId()
   [ERROR]   location: class org.apache.skywalking.apm.agent.core.context.ContextSnapshot
   [ERROR] /opt/code/git/skywalking-java/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/CorrelationContext.java:[149,16] cannot find symbol
   [ERROR]   symbol:   method getCorrelationContext()
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: build failure for lombok [skywalking-java]

Posted by "leeyazhou (via GitHub)" <gi...@apache.org>.
leeyazhou commented on code in PR #767:
URL: https://github.com/apache/skywalking-java/pull/767#discussion_r2278091838


##########
pom.xml:
##########
@@ -360,6 +360,13 @@
                     <source>${compiler.version}</source>
                     <target>${compiler.version}</target>
                     <encoding>${project.build.sourceEncoding}</encoding>
+                    <annotationProcessorPaths>
+                        <path>
+                            <groupId>org.projectlombok</groupId>
+                            <artifactId>lombok</artifactId>
+                            <version>${lombok.version}</version>

Review Comment:
   Yes. The property `${lombok.version}` is defined in line 86 in the ROOT pom.xml
   
   ```
   <lombok.version>1.18.30</lombok.version>
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: build failure for lombok [skywalking-java]

Posted by "leeyazhou (via GitHub)" <gi...@apache.org>.
leeyazhou commented on PR #767:
URL: https://github.com/apache/skywalking-java/pull/767#issuecomment-3190360211

   > Which env does you face this? The project is built successfully in local and CI env(s).
   
   It happens in two situations: 
   
   1. compile failure when I import the project into eclipse
   2. build failure when I run `mvn clean package -Pall` in terminal.
   
   ## JDK version 
   ```
   > java -version
   openjdk version "23.0.2" 2025-01-21
   OpenJDK Runtime Environment Temurin-23.0.2+7 (build 23.0.2+7)
   OpenJDK 64-Bit Server VM Temurin-23.0.2+7 (build 23.0.2+7, mixed mode, sharing)
   ```
   
   ## Maven version
   ```
   > mvn -v
   Apache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9)
   Maven home: /opt/soft/apache-maven-3.9.4
   Java version: 23.0.2, vendor: Eclipse Adoptium, runtime: /Users/leeyazhou/Library/Java/JavaVirtualMachines/temurin-23.0.2-2/Contents/Home
   Default locale: en_CN, platform encoding: UTF-8
   OS name: "mac os x", version: "15.6", arch: "aarch64", family: "mac"
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: build failure for lombok [skywalking-java]

Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng commented on code in PR #767:
URL: https://github.com/apache/skywalking-java/pull/767#discussion_r2278083085


##########
pom.xml:
##########
@@ -360,6 +360,13 @@
                     <source>${compiler.version}</source>
                     <target>${compiler.version}</target>
                     <encoding>${project.build.sourceEncoding}</encoding>
+                    <annotationProcessorPaths>
+                        <path>
+                            <groupId>org.projectlombok</groupId>
+                            <artifactId>lombok</artifactId>
+                            <version>${lombok.version}</version>

Review Comment:
   @leeyazhou I think this is a false alarm?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: build failure for lombok [skywalking-java]

Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng commented on PR #767:
URL: https://github.com/apache/skywalking-java/pull/767#issuecomment-3190382140

   Ref to https://skywalking.apache.org/docs/main/next/en/setup/backend/backend-setup/#requirements-and-default-settings
   
   We only support Java 11/17/21, and consider that you just bumped up lombok, could you recheck whether this is a JDK23-specific issue? And notice, JDK23 is not a TLS version. Do you have some specific reasons to use that?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: build failure for lombok [skywalking-java]

Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng merged PR #767:
URL: https://github.com/apache/skywalking-java/pull/767


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: build failure for lombok [skywalking-java]

Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng commented on PR #767:
URL: https://github.com/apache/skywalking-java/pull/767#issuecomment-3190237299

   Which env does you face this? The project is built successfully in local and CI env(s).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: build failure for lombok [skywalking-java]

Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #767:
URL: https://github.com/apache/skywalking-java/pull/767#discussion_r2278074174


##########
pom.xml:
##########
@@ -360,6 +360,13 @@
                     <source>${compiler.version}</source>
                     <target>${compiler.version}</target>
                     <encoding>${project.build.sourceEncoding}</encoding>
+                    <annotationProcessorPaths>
+                        <path>
+                            <groupId>org.projectlombok</groupId>
+                            <artifactId>lombok</artifactId>
+                            <version>${lombok.version}</version>

Review Comment:
   The Lombok version is referenced using a property `${lombok.version}` but this property may not be defined in the POM. Consider verifying that this property is declared in the properties section or use an explicit version number.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org