Unable to provision. Caused by: java.lang.NumberFormatException: For input string: "port"
- Dominant language
- Java
- Stars
- 3.5k
- Forks
- 250
- Avg merge
- 16h 22m
- Merged PRs (30d)
- 36
Description
### 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.(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.(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.(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.(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.(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.(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.(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]
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with .mvn/maven-build-cache-config.xml and the RemoteCacheRepositoryImpl constructor at line 80, using the reported mvnd build and log to reproduce the failure. Compare behavior with remote caching enabled and disabled, then trace why the value "port" is parsed as a number. Done means the reported configuration no longer causes the NumberFormatException during provisioning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100