GitHub user ottlukas edited a comment on the discussion: Building with Linux failing
Building with `./mvnw -P with-c,with-dotnet,with-go,with-java,with-python,enable-all-checks install ` ``` [INFO] --- groovy:2.1.1:execute (prerequisite-check) @ plc4x-parent --- Os name: Linux Os arch: amd64 Os version: 6.14.0-27-generic Detected OS: linux Detected Arch: amd64 Detecting Java version: 21.0.8 OK Detecting Dotnet version: 9.0.108 OK Detecting Git version: 2.43.0 OK Detecting Gcc version: 13.3.0 OK Using python executable: python3 OK Detecting Python version: 3.12.3 OK Detecting venv: OK Detecting Maven version: 3.9.11 OK All known conditions met successfully. ``` --- Log ``` [INFO] Recompiling the module because of changed source code. [INFO] Compiling with eclipse [debug release 11] to target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] Unknown source: java.lang.NullPointerException: Cannot invoke "java.nio.file.FileSystem.getPath(String, String[])" because "this.fs" is null [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for PLC4X 0.13.0: [INFO] [INFO] PLC4X .............................................. SUCCESS [ 36.910 s] [INFO] Code-Generation .................................... SUCCESS [ 1.149 s] [INFO] Code-Generation: Protocol Base: MSpec .............. FAILURE [ 14.916 s] [INFO] Code-Generation: Language Base: Freemarker ......... SKIPPED [INFO] Code-Generation: Protocol Test: Test Mspec ......... SKIPPED [INFO] Protocols .......................................... SKIPPED [INFO] Protocols: AB-ETH .................................. SKIPPED [INFO] Protocols: ADS ..................................... SKIPPED [INFO] Protocols: C-Bus ................................... SKIPPED [INFO] Protocols: BACNet/IP ............................... SKIPPED [INFO] Protocols: CANopen ................................. SKIPPED [INFO] Protocols: Df1 ..................................... SKIPPED [INFO] Protocols: EtherNet/IP ............................. SKIPPED [INFO] Protocols: Firmata ................................. SKIPPED [INFO] Protocols: Generic CAN ............................. SKIPPED [INFO] Protocols: IEC-60870 ............................... SKIPPED [INFO] Protocols: KNXNet/IP ............................... SKIPPED [INFO] Protocols: Modbus .................................. SKIPPED [INFO] Protocols: MQTT .................................... SKIPPED [INFO] Protocols: OPC UA .................................. SKIPPED [INFO] Protocols: Open-Protocol ........................... SKIPPED [INFO] Protocols: PLC4X (Proxy) ........................... SKIPPED [INFO] Protocols: PLC4X (API) ............................. SKIPPED [INFO] Protocols: Profinet ................................ SKIPPED [INFO] Protocols: S7 ...................................... SKIPPED [INFO] Protocols: Simulated ............................... SKIPPED [INFO] Protocols: SocketCAN ............................... SKIPPED [INFO] Protocols: Umas .................................... SKIPPED [INFO] PLC4X Website ...................................... SKIPPED [INFO] PLC4C .............................................. SKIPPED [INFO] PLC4Go ............................................. SKIPPED [INFO] PLC4J .............................................. SKIPPED [INFO] PLC4J: API ......................................... SKIPPED [INFO] PLC4J: SPI ......................................... SKIPPED [INFO] PLC4J: Transports .................................. SKIPPED [INFO] PLC4J: Transports: TCP ............................. SKIPPED [INFO] PLC4J: Transports: Test ............................ SKIPPED [INFO] PLC4J: Utils ....................................... SKIPPED [INFO] PLC4J: Utils: Test Utils ........................... SKIPPED [INFO] PLC4J: Drivers ..................................... SKIPPED [INFO] PLC4J: Driver: AB-ETH .............................. SKIPPED [INFO] PLC4J: Driver: ADS ................................. SKIPPED [INFO] PLC4J: Transports: UDP ............................. SKIPPED [INFO] PLC4J: Utils: Pcap (Shared) ........................ SKIPPED [INFO] PLC4J: Transports: PCAP (shared) ................... SKIPPED [INFO] PLC4J: Utils: Raw-Sockets .......................... SKIPPED [INFO] PLC4J: Transports: Raw Socket ...................... SKIPPED [INFO] PLC4J: Utils: Pcap-Replay .......................... SKIPPED [INFO] PLC4J: Transports: PCAP Replay ..................... SKIPPED [INFO] PLC4J: Driver: S7 .................................. SKIPPED [INFO] PLC4J: Driver: EtherNet/IP ......................... SKIPPED [INFO] PLC4J: Driver: IEC-60870 ........................... SKIPPED [INFO] PLC4J: Utils: Test-Generator ....................... SKIPPED [INFO] PLC4J: Driver: BACNet/IP ........................... SKIPPED [INFO] PLC4J: Driver: C-Bus ............................... SKIPPED [INFO] PLC4J: Transports: CAN ............................. SKIPPED [INFO] PLC4J: Transports: VirtualCAN ...................... SKIPPED [INFO] PLC4J: Driver: CAN ................................. SKIPPED [INFO] PLC4J: Driver: CANopen ............................. SKIPPED [INFO] PLC4J: Driver: CtrlX ............................... SKIPPED [INFO] PLC4J: Transports: Serial .......................... SKIPPED [INFO] PLC4J: Driver: Firmata ............................. SKIPPED [INFO] PLC4J: Driver: KNXNet/IP ........................... SKIPPED [INFO] PLC4J: Driver: Mock ................................ SKIPPED [INFO] PLC4J: Driver: Open-Protocol ....................... SKIPPED [INFO] PLC4J: Driver: Modbus .............................. SKIPPED [INFO] PLC4J: Driver: OPC UA .............................. SKIPPED [INFO] PLC4J: Driver: PLC4X (Proxy) ....................... SKIPPED [INFO] PLC4J: Driver: Profinet ............................ SKIPPED [INFO] PLC4J: Driver: Profinet (NG) ....................... SKIPPED [INFO] PLC4J: Driver: Simulated ........................... SKIPPED [INFO] PLC4J: All Drivers ................................. SKIPPED [INFO] PLC4J: Tools ....................................... SKIPPED [INFO] PLC4J: Tools: Capture Replay ....................... SKIPPED [INFO] PLC4J: Tools: Connection Cache ..................... SKIPPED [INFO] PLC4J: Tools: Object PLC Mapping ................... SKIPPED [INFO] PLC4J: Tools: Scraper .............................. SKIPPED [INFO] PLC4J: Tools: Scraper (NG) ......................... SKIPPED [INFO] PLC4J: Transports: SocketCAN ....................... SKIPPED [INFO] PLC4J: Utils: PLC-Simulator ........................ SKIPPED [INFO] PLC4J: OSGi ........................................ SKIPPED [INFO] PLC4Net ............................................ SKIPPED [INFO] PLC4Py ............................................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:09 min [INFO] Finished at: 2025-08-03T11:51:30+02:00 [INFO] ------------------------------------------------------------------------ [INFO] 36 goals, 36 executed [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.14.0:compile (default-compile) on project plc4x-code-generation-protocol-base-mspec: Compilation failure [ERROR] Unknown source: java.lang.NullPointerException: Cannot invoke "java.nio.file.FileSystem.getPath(String, String[])" because "this.fs" is null [ERROR] [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <args> -rf :plc4x-code-generation-protocol-base-mspec [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.14.0:compile (default-compile) on project plc4x-code-generation-protocol-base-mspec: Compilation failure [ERROR] Unknown source: java.lang.NullPointerException: Cannot invoke "java.nio.file.FileSystem.getPath(String, String[])" because "this.fs" is null [ERROR] [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.14.0:compile (default-compile) on project plc4x-code-generation-protocol-base-mspec: Compilation failure Unknown source: java.lang.NullPointerException: Cannot invoke "java.nio.file.FileSystem.getPath(String, String[])" because "this.fs" is null at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:333) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174) at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75) at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162) at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283) at org.apache.maven.cli.MavenCli.main (MavenCli.java:206) at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103) at java.lang.reflect.Method.invoke (Method.java:580) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:255) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:201) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:361) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:314) Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure Unknown source: java.lang.NullPointerException: Cannot invoke "java.nio.file.FileSystem.getPath(String, String[])" because "this.fs" is null at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1309) at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:225) at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103) at java.lang.reflect.Method.invoke (Method.java:580) at com.gradle.maven.cache.extension.c.n.a (SourceFile:53) at com.gradle.maven.cache.extension.c.d.a (SourceFile:27) at com.gradle.maven.cache.extension.c.q.a (SourceFile:23) at com.gradle.maven.cache.extension.c.j.a (SourceFile:28) at com.gradle.maven.cache.extension.c.p.a (SourceFile:27) at com.gradle.maven.cache.extension.c.b.c (SourceFile:118) at com.gradle.maven.cache.extension.c.b.a (SourceFile:62) at com.gradle.maven.cache.extension.c.g.a (SourceFile:27) at com.gradle.maven.cache.extension.c.a.a (SourceFile:46) at com.gradle.maven.cache.extension.c.o.a (SourceFile:18) at com.gradle.maven.cache.extension.c.a.a (SourceFile:46) at com.gradle.maven.cache.extension.c.c.a (SourceFile:26) at com.gradle.maven.cache.extension.c.h$1.run (SourceFile:35) at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute (SourceFile:30) at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute (SourceFile:27) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute (SourceFile:67) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute (SourceFile:60) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute (SourceFile:167) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute (SourceFile:60) at org.gradle.internal.operations.DefaultBuildOperationRunner.run (SourceFile:48) at com.gradle.maven.cache.extension.c.h.a (SourceFile:31) at com.gradle.maven.cache.extension.c.m.a (SourceFile:80) at com.gradle.maven.cache.extension.g.b.lambda$createProxy$0 (SourceFile:76) at jdk.proxy15.$Proxy104.execute (Unknown Source) at com.gradle.maven.scan.extension.internal.d.b.executeMojo (SourceFile:116) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174) at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75) at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162) at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283) at org.apache.maven.cli.MavenCli.main (MavenCli.java:206) at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103) at java.lang.reflect.Method.invoke (Method.java:580) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:255) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:201) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:361) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:314) [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <args> -rf :plc4x-code-generation-protocol-base-mspec ``` GitHub link: https://github.com/apache/plc4x/discussions/2200#discussioncomment-13974966 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
