[
https://issues.apache.org/jira/browse/RAT-499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Philipp Ottlinger updated RAT-499:
----------------------------------
Summary: build issues on macos - integration tests of apache-rat-plugin
fail with ERROR: transport error 202: bind failed: Address already in use
(was: build issues on macos - integration tests of apache-rat-plugin fail with )
> build issues on macos - integration tests of apache-rat-plugin fail with
> ERROR: transport error 202: bind failed: Address already in use
> ----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: RAT-499
> URL: https://issues.apache.org/jira/browse/RAT-499
> Project: Apache Rat
> Issue Type: Bug
> Components: build
> Affects Versions: 0.17, 0.16.1
> Environment: Apple M4 Pro
> macos 15.6.1
>
> {noformat}
> mvn -version
> OpenJDK 64-Bit Server VM warning: Option -Xdebug was deprecated in JDK 22 and
> will likely be removed in a future release.
> Listening for transport dt_socket at address: 8787
> Apache Maven 3.9.11 (3e54c93a704957b63ee3494413a2b544fd3d825b)
> Maven home: /opt/homebrew/Cellar/maven/3.9.11/libexec
> Java version: 24.0.2, vendor: Homebrew, runtime:
> /opt/homebrew/Cellar/openjdk/24.0.2/libexec/openjdk.jdk/Contents/Home
> Default locale: en_GB, platform encoding: UTF-8
> OS name: "mac os x", version: "15.6.1", arch: "aarch64", family: "mac"
> {noformat}
>
> {noformat}
> netstat -anvp tcp | awk 'NR<3 || /LISTEN/'
> Active Internet connections (including servers)
> Proto Recv-Q Send-Q Local Address Foreign Address (state)
> rxbytes txbytes rhiwat shiwat pid epid state options
> gencnt flags flags1 usecnt rtncnt fltrs
> tcp4 0 0 127.0.0.1.8787 *.* LISTEN
> 0 0 131072 131072 6840 0 00000 00000006
> 0000000000001b97 00000000 00000900 2 0 000000
> tcp4 0 0 127.0.0.1.3306 *.* LISTEN
> 0 0 131072 131072 6764 0 00100 00000006
> 0000000000001b2f 00000000 00000900 1 0 000000
> tcp4 0 0 127.0.0.1.33060 *.* LISTEN
> 0 0 131072 131072 6764 0 00000 00000006
> 0000000000001b2d 00000000 00000900 1 0 000000
> tcp4 0 0 127.0.0.1.9277 *.* LISTEN
> 0 0 131072 131072 753 0 00100 00000006
> 0000000000001861 00000001 00000900 1 0 000000
> tcp4 0 0 *.22 *.* LISTEN
> 0 0 131072 131072 1 0 00180 00000006
> 00000000000000b4 00000000 00000900 1 0 000000
> tcp6 0 0 *.22 *.* LISTEN
> 0 0 131072 131072 1 0 00180 00000006
> 00000000000000b3 00000000 00000800 1 0 000000{noformat}
> Reporter: Daan
> Priority: Major
>
> builds on macos fail
> both running `mvn clean install` and `./mvnw`. this was a run with javac 24
> but 17, 11 and 8 also fail.
> {noformat}
> [INFO] --- invoker:3.9.1:run (integration-test) @ apache-rat-plugin ---
> [INFO] Building: RAT-469/pom.xml
> [INFO] run post-build script verify.groovy
> [INFO] Assertion failed: assert content.contains('BUILD SUCCESS')
> | |
> | false
> 'OpenJDK 64-Bit Server VM warning: Option -Xdebug was deprecated in
> JDK 22 and will likely be removed in a future release.\nERROR: transport
> error 202: bind failed: Address already in use\nERROR: JDWP Transport
> dt_socket failed to initialize, TRANSPORT_INIT(510)\nJDWP exit error
> AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized
> [src/jdk.jdwp.agent/share/native/libjdwp/debugInit.c:697]\nRunning post-build
> script:
> /Users/daan/apache/creadur-rat/apache-rat-plugin/invoker_target/RAT-469/verify.groovy\n'[INFO]
> RAT-469/pom.xml .................................. FAILED (0.352 s)
> [INFO] Building: CustomLicense/pom.xml
> [INFO] The build exited with code 2. See
> /Users/daan/apache/creadur-rat/apache-rat-plugin/invoker_target/CustomLicense/build.log
> for details.
> [INFO] CustomLicense/pom.xml ............................ FAILED
> (0.069 s)
> [INFO] Building: RAT-107/pom.xml
> [INFO] The build exited with code 2. See
> /Users/daan/apache/creadur-rat/apache-rat-plugin/invoker_target/RAT-107/build.log
> for details.
> [INFO] RAT-107/pom.xml .................................. FAILED
> (0.064 s)
> [INFO] Building: it1/pom.xml
> [INFO] run post-build script verify.groovy
> [INFO] Assertion failed: assert f.exists()
> | |
> | false
>
> /Users/daan/apache/creadur-rat/apache-rat-plugin/invoker_target/it1/out.xml[INFO]
> it1/pom.xml ...................................... FAILED (0.104 s)
> [INFO] Building: RAT-268/pom.xml
> [INFO] The build exited with code 2. See
> /Users/daan/apache/creadur-rat/apache-rat-plugin/invoker_target/RAT-268/build.log
> for details.
> [INFO] RAT-268/pom.xml .................................. FAILED
> (0.148 s)
> [INFO] Building: RAT-314/pom.xml
> [INFO] run post-build script verify.groovy
> [INFO] Assertion failed: assert content.contains('BUILD SUCCESS')
> | |
> | false
> 'OpenJDK 64-Bit Server VM warning: Option -Xdebug was deprecated in
> JDK 22 and will likely be removed in a future release.\nERROR: transport
> error 202: bind failed: Address already in use\nERROR: JDWP Transport
> dt_socket failed to initialize, TRANSPORT_INIT(510)\nJDWP exit error
> AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized
> [src/jdk.jdwp.agent/share/native/libjdwp/debugInit.c:697]\nRunning post-build
> script:
> /Users/daan/apache/creadur-rat/apache-rat-plugin/invoker_target/RAT-314/verify.groovy\n'[INFO]
> RAT-314/pom.xml .................................. FAILED (0.194 s)
> [INFO] Building: RAT-168/pom.xml
> [INFO] run post-build script verify.groovy
> [INFO] Assertion failed: assert content.contains('BUILD SUCCESS')
> | |
> | false
> 'OpenJDK 64-Bit Server VM warning: Option -Xdebug was deprecated in
> JDK 22 and will likely be removed in a future release.\nERROR: transport
> error 202: bind failed: Address already in use\nERROR: JDWP Transport
> dt_socket failed to initialize, TRANSPORT_INIT(510)\nJDWP exit error
> AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized
> [src/jdk.jdwp.agent/share/native/libjdwp/debugInit.c:697]\nRunning post-build
> script:
> /Users/daan/apache/creadur-rat/apache-rat-plugin/invoker_target/RAT-168/verify.groovy\n'[INFO]
> RAT-168/pom.xml .................................. FAILED (0.076 s)
> [INFO] Building: RAT-469-default/pom.xml
> [INFO] run post-build script verify.groovy
> [INFO] Assertion failed: assert content.contains('BUILD SUCCESS')
> | |
> | false
> 'OpenJDK 64-Bit Server VM warning: Option -Xdebug was deprecated in
> JDK 22 and will likely be removed in a future release.\nERROR: transport
> error 202: bind failed: Address already in use\nERROR: JDWP Transport
> dt_socket failed to initialize, TRANSPORT_INIT(510)\nJDWP exit error
> AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized
> [src/jdk.jdwp.agent/share/native/libjdwp/debugInit.c:697]\nRunning post-build
> script:
> /Users/daan/apache/creadur-rat/apache-rat-plugin/invoker_target/RAT-469-default/verify.groovy\n'[INFO]
> RAT-469-default/pom.xml .......................... FAILED (0.075 s)
> [INFO] -------------------------------------------------
> [INFO] Build Summary:
> [INFO] Passed: 0, Failed: 8, Errors: 0, Skipped: 0
> [INFO] -------------------------------------------------
> [ERROR] The following builds failed:
> [ERROR] * RAT-469/pom.xml
> [ERROR] * CustomLicense/pom.xml
> [ERROR] * RAT-107/pom.xml
> [ERROR] * it1/pom.xml
> [ERROR] * RAT-268/pom.xml
> [ERROR] * RAT-314/pom.xml
> [ERROR] * RAT-168/pom.xml
> [ERROR] * RAT-469-default/pom.xml
> [INFO] -------------------------------------------------
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary for Apache Creadur RAT 1.0.0-SNAPSHOT:
> [INFO]
> [INFO] Apache Creadur RAT ................................. SUCCESS [ 3.925
> s]
> [INFO] Apache Creadur RAT::Testdata ....................... SUCCESS [ 0.864
> s]
> [INFO] Apache Creadur RAT::Core ........................... SUCCESS [ 20.185
> s]
> [INFO] Apache Creadur RAT::Tools .......................... SUCCESS [ 4.074
> s]
> [INFO] Apache Creadur RAT::Plugin4Maven ................... FAILURE [ 12.862
> s]
> [INFO] Apache Creadur RAT::Tasks4Ant ...................... SKIPPED
> [INFO] Apache Creadur RAT::Packaging ...................... SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 42.294 s
> [INFO] Finished at: 2025-10-14T14:14:23+02:00
> [INFO]
> ------------------------------------------------------------------------
> [INFO] 91 goals, 91 executed
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-invoker-plugin:3.9.1:run (integration-test) on
> project apache-rat-plugin: 8 builds failed. See console output above for
> details. -> [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 :apache-rat-plugin{noformat}
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)