You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "warrenc5 (via GitHub)" <gi...@apache.org> on 2025/12/29 10:15:37 UTC

[I] Unable to provision. Caused by: java.lang.NumberFormatException: For input string: "port" [maven-mvnd]

warrenc5 opened a new issue, #1508:
URL: https://github.com/apache/maven-mvnd/issues/1508

   ### Affected version
   
   1.0.3
   
   ### Bug description
   
   Can anyone please point me where to start - I have a large code base and one of the modules just started reporting this on build. Other poms seem fine. I don't even know where to start 
   
   **Update while writing this report** Changing `.mvn/maven-build-cache-config.xml` `$/configuration/remote@enabled=false` seemed to make the error stop and still use the mvnd.  Keeping for comment.
   
   ```
    mvnd --status
         ID      PID                   Address   Status    RSS            Last activity  Java home
   c30ebea1  3333362     inet:/127.0.0.1:40311     Idle   163m  2025-12-29T21:05:02.872  /home/wozza/.sdkman/candidates/java/24.0.2-graal
   ```
   
   ```
   ➜  mvnd --version
   Apache Maven Daemon (mvnd) 1.0.3 linux-amd64 native client (824a1fd42088e27dec6cc7cc392b9122379e7bf0)
   Terminal: org.jline.terminal.impl.PosixSysTerminal with pty org.jline.terminal.impl.jni.linux.LinuxNativePty
   Apache Maven 3.9.11 (3e54c93a704957b63ee3494413a2b544fd3d825b)
   Maven home: /home/wozza/.sdkman/candidates/mvnd/1.0.3/mvn
   Java version: 24.0.2, vendor: Oracle Corporation, runtime: /home/wozza/.sdkman/candidates/java/24.0.2-graal
   Default locale: en_AU, platform encoding: UTF-8
   OS name: "linux", version: "6.12.43+deb13-amd64", arch: "amd64", family: "unix"
   ```
   
   ```
   ➜  mvn --version
   WARNING: A restricted method in java.lang.System has been called
   WARNING: java.lang.System::load has been called by org.fusesource.hawtjni.runtime.Library in an unnamed module (file:/home/wozza/.sdkman/candidates/maven/3.6.3/lib/jansi-1.17.1.jar)
   WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
   WARNING: Restricted methods will be blocked in a future release unless native access is enabled
   
   Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
   Maven home: /home/wozza/.sdkman/candidates/maven/3.6.3
   Java version: 24.0.2, vendor: Oracle Corporation, runtime: /home/wozza/.sdkman/candidates/java/24.0.2-graal
   Default locale: en_AU, platform encoding: UTF-8
   OS name: "linux", version: "6.12.43+deb13-amd64", arch: "amd64", family: "unix"
   ```
   
   ```
   ➜  java --version
   java 24.0.2 2025-07-15
   Java(TM) SE Runtime Environment Oracle GraalVM 24.0.2+11.1 (build 24.0.2+11-jvmci-b01)
   Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 24.0.2+11.1 (build 24.0.2+11-jvmci-b01, mixed mode, sharing)
   
   telscale-jain-slee-upgrade on  HEAD (921b4a9) [$!?] is 📦 v9.0.0 via ☕ v24.0.2
   ```
   
   This is the error displayed on the console and in the ~/.m2/mvnd/registry/1.0.3/ log.
   
   
   ```
   Processing build on daemon c30ebea1
   [INFO] [stdout] [INFO] Loading cache configuration from /media/wozza/WORK/work/telestax/telscale-jain-slee-upgrade/.mvn/maven-build-cache-config.xml
   [INFO] [stdout] [INFO] Using SHA-256 hash algorithm for cache
   [INFO] [stdout] [ERROR] Internal error: com.google.inject.ProvisionException: Unable to provision, see the following errors:
   [INFO] [stdout] [ERROR]
   [INFO] [stdout] [ERROR] 1) [Guice/ErrorInjectingConstructor]: ComponentLookupException: ProvisionException: Unable to provision, see the following errors:
   [INFO] [stdout] [ERROR]
   [INFO] [stdout] [ERROR] 1) [Guice/ErrorInjectingConstructor]: NumberFormatException: For input string: "port"
   [INFO] [stdout] [ERROR]   at RemoteCacheRepositoryImpl.<init>(RemoteCacheRepositoryImpl.java:80)
   [INFO] [stdout] [ERROR]   at ClassRealm[coreExtension>org.apache.maven.extensions:maven-build-cache-extension:1.2.1, parent: ClassRealm[plexus.core, parent: null]]
   [INFO] [stdout] [ERROR]       \_ installed by: WireModule -> PlexusBindingModule
   [INFO] [stdout] [ERROR]   while locating RemoteCacheRepositoryImpl
   [INFO] [stdout] [ERROR]   while locating Object annotated with *
   [INFO] [stdout] [ERROR]
   [INFO] [stdout] [ERROR] Learn more:
   [INFO] [stdout] [ERROR]   https://github.com/google/guice/wiki/ERROR_INJECTING_CONSTRUCTOR
   [INFO] [stdout] [ERROR]
   [INFO] [stdout] [ERROR] 1 error
   [INFO] [stdout] [ERROR]
   [INFO] [stdout] [ERROR] ======================
   [INFO] [stdout] [ERROR] Full classname legend:
   [INFO] [stdout] [ERROR] ======================
   [INFO] [stdout] [ERROR] PlexusBindingModule:       "org.eclipse.sisu.plexus.PlexusBindingModule"
   [INFO] [stdout] [ERROR] RemoteCacheRepositoryImpl: "org.apache.maven.buildcache.RemoteCacheRepositoryImpl"
   [INFO] [stdout] [ERROR] WireModule:                "org.eclipse.sisu.wire.WireModule"
   [INFO] [stdout] [ERROR] ========================
   [INFO] [stdout] [ERROR] End of classname legend:
   [INFO] [stdout] [ERROR] ========================
   [INFO] [stdout] [ERROR]
   [INFO] [stdout] [ERROR]       role: RemoteCacheRepository
   [INFO] [stdout] [ERROR]   roleHint: resolver
   [INFO] [stdout] [ERROR]   at RemoteCacheRepositoryProvider.<init>(RemoteCacheRepositoryProvider.java:44)
   [INFO] [stdout] [ERROR]   at ClassRealm[coreExtension>org.apache.maven.extensions:maven-build-cache-extension:1.2.1, parent: ClassRealm[plexus.core, parent: null]]
   [INFO] [stdout] [ERROR]       \_ installed by: WireModule -> PlexusBindingModule
   [INFO] [stdout] [ERROR]   while locating RemoteCacheRepositoryProvider
   [INFO] [stdout] [ERROR]   at ClassRealm[coreExtension>org.apache.maven.extensions:maven-build-cache-extension:1.2.1, parent: ClassRealm[plexus.core, parent: null]]
   [INFO] [stdout] [ERROR]       \_ installed by: WireModule -> PlexusBindingModule
   [INFO] [stdout] [ERROR]   while locating RemoteCacheRepository annotated with @Named("#factory#")
   [INFO] [stdout] [ERROR]   at LocatorWiring
   [INFO] [stdout] [ERROR]   at LocalCacheRepositoryImpl.<init>(LocalCacheRepositoryImpl.java:97)
   [INFO] [stdout] [ERROR]       \_ for 1st parameter
   [INFO] [stdout] [ERROR]   at ClassRealm[coreExtension>org.apache.maven.extensions:maven-build-cache-extension:1.2.1, parent: ClassRealm[plexus.core, parent: null]]
   [INFO] [stdout] [ERROR]       \_ installed by: WireModule -> PlexusBindingModule
   [INFO] [stdout] [ERROR]   while locating LocalCacheRepositoryImpl
   [INFO] [stdout] [ERROR]   while locating Object annotated with *
   [INFO] [stdout] [ERROR]   at LocatorWiring
   [INFO] [stdout] [ERROR]   at CacheControllerImpl.<init>(CacheControllerImpl.java:157)
   [INFO] [stdout] [ERROR]       \_ for 5th parameter
   [INFO] [stdout] [ERROR]   at ClassRealm[coreExtension>org.apache.maven.extensions:maven-build-cache-extension:1.2.1, parent: ClassRealm[plexus.core, parent: null]]
   [INFO] [stdout] [ERROR]       \_ installed by: WireModule -> PlexusBindingModule
   [INFO] [stdout] [ERROR]   while locating CacheControllerImpl
   [INFO] [stdout] [ERROR]   while locating Object annotated with *
   [INFO] [stdout] [ERROR]   at LocatorWiring
   [INFO] [stdout] [ERROR]   at CacheLifecycleParticipant.<init>(CacheLifecycleParticipant.java:39)
   [INFO] [stdout] [ERROR]       \_ for 2nd parameter
   [INFO] [stdout] [ERROR]   at ClassRealm[coreExtension>org.apache.maven.extensions:maven-build-cache-extension:1.2.1, parent: ClassRealm[plexus.core, parent: null]]
   [INFO] [stdout] [ERROR]       \_ installed by: WireModule -> PlexusBindingModule
   [INFO] [stdout] [ERROR]   while locating CacheLifecycleParticipant
   [INFO] [stdout] [ERROR]   while locating Object annotated with *
   [INFO] [stdout] [ERROR]
   [INFO] [stdout] [ERROR] Learn more:
   [INFO] [stdout] [ERROR]   https://github.com/google/guice/wiki/ERROR_INJECTING_CONSTRUCTOR
   [INFO] [stdout] [ERROR]
   [INFO] [stdout] [ERROR] 1 error
   [INFO] [stdout] [ERROR]
   [INFO] [stdout] [ERROR] ======================
   [INFO] [stdout] [ERROR] Full classname legend:
   [INFO] [stdout] [ERROR] ======================
   [INFO] [stdout] [ERROR] CacheControllerImpl:           "org.apache.maven.buildcache.CacheControllerImpl"
   [INFO] [stdout] [ERROR] CacheLifecycleParticipant:     "org.apache.maven.buildcache.CacheLifecycleParticipant"
   [INFO] [stdout] [ERROR] ComponentLookupException:      "org.codehaus.plexus.component.repository.exception.ComponentLookupException"
   [INFO] [stdout] [ERROR] LocalCacheRepositoryImpl:      "org.apache.maven.buildcache.LocalCacheRepositoryImpl"
   [INFO] [stdout] [ERROR] LocatorWiring:                 "org.eclipse.sisu.wire.LocatorWiring"
   [INFO] [stdout] [ERROR] Named:                         "com.google.inject.name.Named"
   [INFO] [stdout] [ERROR] PlexusBindingModule:           "org.eclipse.sisu.plexus.PlexusBindingModule"
   [INFO] [stdout] [ERROR] ProvisionException:            "com.google.inject.ProvisionException"
   [INFO] [stdout] [ERROR] RemoteCacheRepository:         "org.apache.maven.buildcache.RemoteCacheRepository"
   [INFO] [stdout] [ERROR] RemoteCacheRepositoryProvider: "org.apache.maven.buildcache.RemoteCacheRepositoryProvider"
   [INFO] [stdout] [ERROR] WireModule:                    "org.eclipse.sisu.wire.WireModule"
   [INFO] [stdout] [ERROR] ========================
   [INFO] [stdout] [ERROR] End of classname legend:
   [INFO] [stdout] [ERROR] ========================: com.google.inject.ProvisionException: Unable to provision, see the following errors:
   [INFO] [stdout] [ERROR]
   [INFO] [stdout] [ERROR] 1) [Guice/ErrorInjectingConstructor]: NumberFormatException: For input string: "port"
   [INFO] [stdout] [ERROR]   at RemoteCacheRepositoryImpl.<init>(RemoteCacheRepositoryImpl.java:80)
   [INFO] [stdout] [ERROR]   at ClassRealm[coreExtension>org.apache.maven.extensions:maven-build-cache-extension:1.2.1, parent: ClassRealm[plexus.core, parent: null]]
   [INFO] [stdout] [ERROR]       \_ installed by: WireModule -> PlexusBindingModule
   [INFO] [stdout] [ERROR]   while locating RemoteCacheRepositoryImpl
   [INFO] [stdout] [ERROR]   while locating Object annotated with *
   [INFO] [stdout] [ERROR]
   [INFO] [stdout] [ERROR] Learn more:
   [INFO] [stdout] [ERROR]   https://github.com/google/guice/wiki/ERROR_INJECTING_CONSTRUCTOR
   [INFO] [stdout] [ERROR]
   [INFO] [stdout] [ERROR] 1 error
   [INFO] [stdout] [ERROR]
   [INFO] [stdout] [ERROR] ======================
   [INFO] [stdout] [ERROR] Full classname legend:
   [INFO] [stdout] [ERROR] ======================
   [INFO] [stdout] [ERROR] PlexusBindingModule:       "org.eclipse.sisu.plexus.PlexusBindingModule"
   [INFO] [stdout] [ERROR] RemoteCacheRepositoryImpl: "org.apache.maven.buildcache.RemoteCacheRepositoryImpl"
   [INFO] [stdout] [ERROR] WireModule:                "org.eclipse.sisu.wire.WireModule"
   [INFO] [stdout] [ERROR] ========================
   [INFO] [stdout] [ERROR] End of classname legend:
   [INFO] [stdout] [ERROR] ========================
   [INFO] [stdout] [ERROR]
   [INFO] [stdout] [ERROR]       role: org.apache.maven.buildcache.RemoteCacheRepository
   [INFO] [stdout] [ERROR]   roleHint: resolver
   [INFO] [stdout] [ERROR] -> [Help 1]
   [INFO] [stdout] org.apache.maven.InternalErrorException: Internal error: com.google.inject.ProvisionException: Unable to provision, see the following errors:
   [INFO] [stdout]
   [INFO] [stdout] 1) [Guice/ErrorInjectingConstructor]: ComponentLookupException: ProvisionException: Unable to provision, see the following errors:
   [INFO] [stdout]
   [INFO] [stdout] 1) [Guice/ErrorInjectingConstructor]: NumberFormatException: For input string: "port"
   [INFO] [stdout]   at RemoteCacheRepositoryImpl.<init>(RemoteCacheRepositoryImpl.java:80)
   [INFO] [stdout]   at ClassRealm[coreExtension>org.apache.maven.extensions:maven-build-cache-extension:1.2.1, parent: ClassRealm[plexus.core, parent: null]]
   [INFO] [stdout]       \_ installed by: WireModule -> PlexusBindingModule
   [INFO] [stdout]   while locating RemoteCacheRepositoryImpl
   [INFO] [stdout]   while locating Object annotated with *
   [INFO] [stdout]
   ```


-- 
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: issues-unsubscribe@maven.apache.org.apache.org

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


Re: [I] Unable to provision. Caused by: java.lang.NumberFormatException: For input string: "port" [maven-mvnd]

Posted by "long76 (via GitHub)" <gi...@apache.org>.
long76 commented on issue #1508:
URL: https://github.com/apache/maven-mvnd/issues/1508#issuecomment-3884447617

   try use last https://maven.apache.org/extensions/maven-build-cache-extension/ and jdk lts 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: issues-unsubscribe@maven.apache.org

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


Re: [I] Unable to provision. Caused by: java.lang.NumberFormatException: For input string: "port" [maven-mvnd]

Posted by "kovakax (via GitHub)" <gi...@apache.org>.
kovakax commented on issue #1508:
URL: https://github.com/apache/maven-mvnd/issues/1508#issuecomment-3791804484

   Cavorya


-- 
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: issues-unsubscribe@maven.apache.org

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


Re: [I] Unable to provision. Caused by: java.lang.NumberFormatException: For input string: "port" [maven-mvnd]

Posted by "slachiewicz (via GitHub)" <gi...@apache.org>.
slachiewicz closed issue #1508: Unable to provision. Caused by: java.lang.NumberFormatException: For input string: "port"
URL: https://github.com/apache/maven-mvnd/issues/1508


-- 
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: issues-unsubscribe@maven.apache.org

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