Quantcast
Channel: Akka Libraries - Discussion Forum for Akka technologies
Viewing all articles
Browse latest Browse all 1369

Akka.cluster.metrics.native-library-extract-folder refers to $user.dir

$
0
0

@surendarchandra wrote:

For some reason, I don’t have user.dir and so I get:

com.typesafe.config.ConfigException$UnresolvedSubstitution: reference.conf @ jar:file:/opt/rubrik/src/java/sd/target/sd-0.1.jar!/reference.conf: 3840: Could not resolve substitution to a value: ${user.dir}
at com.typesafe.config.impl.ConfigReference.resolveSubstitutions(ConfigReference.java:111) ~[sd-0.1.jar:?]
at com.typesafe.config.impl.ResolveContext.realResolve(ResolveContext.java:179) ~[sd-0.1.jar:?]
at com.typesafe.config.impl.ResolveContext.resolve(ResolveContext.java:142) ~[sd-0.1.jar:?]
at com.typesafe.config.impl.ConfigConcatenation.resolveSubstitutions(ConfigConcatenation.java:205) ~[sd-0.1.jar:?]
at com.typesafe.config.impl.ResolveContext.realResolve(ResolveContext.java:179) ~[sd-0.1.jar:?]
at com.typesafe.config.impl.ResolveContext.resolve(ResolveContext.java:142) ~[sd-0.1.jar:?]
at com.typesafe.config.impl.SimpleConfigObject$ResolveModifier.modifyChildMayThrow(SimpleConfigObject.java:379) ~[sd-0.1.jar:?]
at com.typesafe.config.impl.SimpleConfigObject.modifyMayThrow(SimpleConfigObject.java:312) ~[sd-0.1.jar:?]
at com.typesafe.config.impl.SimpleConfigObject.resolveSubstitutions(SimpleConfigObject.java:398) ~[sd-0.1.jar:?]
at com.typesafe.config.impl.ResolveContext.realResolve(ResolveContext.java:179) ~[sd-0.1.jar:?]
at com.typesafe.config.impl.ResolveContext.resolve(ResolveContext.java:142) ~[sd-0.1.jar:?]
at com.typesafe.config.impl.SimpleConfigObject$ResolveModifier.modifyChildMayThrow(SimpleConfigObject.java:379) ~[sd-0.1.jar:?]
at com.typesafe.config.impl.SimpleConfigObject.modifyMayThrow(SimpleConfigObject.java:312) ~[sd-0.1.jar:?]
at com.typesafe.config.impl.SimpleConfigObject.resolveSubstitutions(SimpleConfigObject.java:398) ~[sd-0.1.jar:?]
at com.typesafe.config.impl.ResolveContext.realResolve(ResolveContext.java:179) ~[sd-0.1.jar:?]
at com.typesafe.config.impl.ResolveContext.resolve(ResolveContext.java:142) ~[sd-0.1.jar:?]
at com.typesafe.config.impl.SimpleConfigObject$ResolveModifier.modifyChildMayThrow(SimpleConfigObject.java:379) ~[sd-0.1.jar:?]
at com.typesafe.config.impl.SimpleConfigObject.modifyMayThrow(SimpleConfigObject.java:312) ~[sd-0.1.jar:?]
at com.typesafe.config.impl.SimpleConfigObject.resolveSubstitutions(SimpleConfigObject.java:398) ~[sd-0.1.jar:?]
at com.typesafe.config.impl.ResolveContext.realResolve(ResolveContext.java:179) ~[sd-0.1.jar:?]

I tried everything to try to feed it this directory and all fails:
System.setProperty(“user.dir”, “/tmp”)

  • private val config =
  • customConf
  •  .withFallback(ConfigFactory.systemProperties())
    
  •  .withFallback(ConfigFactory.defaultOverrides())
    
  •  .withFallback(ConfigFactory.defaultReference())
    

Other than manually editing reference.conf from the jar, is there a way around this? I am still not sure why I don’t have user.dir. I can see it from Scala repl.sh

Thanks much

Posts: 7

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 1369

Latest Images

Trending Articles



Latest Images