Closed seanmcl closed 9 years ago
at $c8fde81c4310dc4ead2d$.$sbtdef(/private/tmp/securesocial/samples/java/demo/project/plugins.sbt:8)
From https://github.com/jaliss/securesocial/blob/master/samples/java/demo/project/plugins.sbt#L8 , it seems that play.version
system property must be set.
yes, as @tkawachi says you need to set that. Try passing a -Dplay.version=2.2.x flag and run sbt (I think activator should work the same way) from the project root (where the securesocial.sbt file is located).
Then from the console switch the to what you need to run by executing either project scalaDemo or project javaDemo.
To reproduce:
$ cd samples/{java,scala}/demo $ activator run
$ activator run activator run [info] Loading global plugins from /Users/seanmcl/.sbt/0.13/plugins java.lang.NullPointerException at sbt.StringUtilities$.nonEmpty(StringUtilities.scala:14) at sbt.impl.GroupArtifactID.$percent(DependencyBuilders.scala:50) at $c8fde81c4310dc4ead2d$.$sbtdef(/private/tmp/securesocial/samples/java/demo/project/plugins.sbt:8) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at sbt.compiler.Eval$.getValue(Eval.scala:420) at sbt.compiler.Eval$$anonfun$4.apply(Eval.scala:87) at sbt.compiler.Eval$$anonfun$4.apply(Eval.scala:87) at sbt.EvaluateConfigurations$$anonfun$evaluateSetting$1.apply(EvaluateConfigurations.scala:150) at sbt.EvaluateConfigurations$$anonfun$evaluateSetting$1.apply(EvaluateConfigurations.scala:148) at sbt.EvaluateConfigurations$$anonfun$flatten$1$$anonfun$apply$5.apply(EvaluateConfigurations.scala:115) at sbt.EvaluateConfigurations$$anonfun$flatten$1$$anonfun$apply$5.apply(EvaluateConfigurations.scala:115) at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251) at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251) at scala.collection.immutable.List.foreach(List.scala:318) at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:251) at scala.collection.AbstractTraversable.flatMap(Traversable.scala:105) at sbt.EvaluateConfigurations$$anonfun$flatten$1.apply(EvaluateConfigurations.scala:115) at sbt.EvaluateConfigurations$$anonfun$flatten$1.apply(EvaluateConfigurations.scala:115) at sbt.EvaluateConfigurations$$anonfun$evaluateSbtFile$1.apply(EvaluateConfigurations.scala:110) at sbt.EvaluateConfigurations$$anonfun$evaluateSbtFile$1.apply(EvaluateConfigurations.scala:110) at sbt.Load$.sbt$Load$$loadSettingsFile$1(Load.scala:507) at sbt.Load$$anonfun$sbt$Load$$memoLoadSettingsFile$1$1.apply(Load.scala:502) at sbt.Load$$anonfun$sbt$Load$$memoLoadSettingsFile$1$1.apply(Load.scala:501) at scala.Option.getOrElse(Option.scala:120) at sbt.Load$.sbt$Load$$memoLoadSettingsFile$1(Load.scala:501) at sbt.Load$$anonfun$loadSettings$1$2.apply(Load.scala:500) at sbt.Load$$anonfun$loadSettings$1$2.apply(Load.scala:500) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59) at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47) at scala.collection.TraversableLike$class.map(TraversableLike.scala:244) at scala.collection.AbstractTraversable.map(Traversable.scala:105) at sbt.Load$.loadSettings$1(Load.scala:500) at sbt.Load$.sbt$Load$$expand$1(Load.scala:523) at sbt.Load$.loadSettings(Load.scala:528) at sbt.Load$.sbt$Load$$loadSbtFiles$1(Load.scala:464) at sbt.Load$.defaultLoad$1(Load.scala:475) at sbt.Load$.loadTransitive(Load.scala:478) at sbt.Load$.loadProjects$1(Load.scala:418) at sbt.Load$.loadUnit(Load.scala:419) at sbt.Load$$anonfun$15$$anonfun$apply$11.apply(Load.scala:256) at sbt.Load$$anonfun$15$$anonfun$apply$11.apply(Load.scala:256) at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$6.apply(BuildLoader.scala:93) at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$6.apply(BuildLoader.scala:92) at sbt.BuildLoader.apply(BuildLoader.scala:143) at sbt.Load$.loadAll(Load.scala:312) at sbt.Load$.loadURI(Load.scala:264) at sbt.Load$.load(Load.scala:260) at sbt.Load$.load(Load.scala:251) at sbt.Load$.apply(Load.scala:134) at sbt.Load$.buildPluginDefinition(Load.scala:613) at sbt.Load$.buildPlugins(Load.scala:579) at sbt.Load$.plugins(Load.scala:567) at sbt.Load$.loadUnit(Load.scala:411) at sbt.Load$$anonfun$15$$anonfun$apply$11.apply(Load.scala:256) at sbt.Load$$anonfun$15$$anonfun$apply$11.apply(Load.scala:256) at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$6.apply(BuildLoader.scala:93) at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$6.apply(BuildLoader.scala:92) at sbt.BuildLoader.apply(BuildLoader.scala:143) at sbt.Load$.loadAll(Load.scala:312) at sbt.Load$.loadURI(Load.scala:264) at sbt.Load$.load(Load.scala:260) at sbt.Load$.load(Load.scala:251) ...