Deepstream 360: Error building data generator for playback

When I try to run the Playback code provided for generating data for the Deepsteam 360 Parking application, I get the error below. How can I resolve this?

This is step 5 of the Installation steps provided at:

$ sudo mvn clean install exec:java -Dexec.mainClass=com.nvidia.ds.util.Playback -Dexec.args=“ --input-file data/playbackData.json”

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte,int,int,
WARNING: Please consider reporting this to the maintainers of$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects…
[WARNING] Some problems were encountered while building the effective model for com.nvidia.ds:stream-360:jar:1.0
[WARNING] ‘build.plugins.plugin.version’ for org.scala-tools:maven-scala-plugin is missing. @ line 125, column 12
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[INFO] ----------------------< com.nvidia.ds:stream-360 >----------------------
[INFO] Building stream-360 1.0
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for harsha2010:magellan:jar:1.0.5-s_2.11 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO] — maven-clean-plugin:2.5:clean (default-clean) @ stream-360 —
[INFO] Deleting /home/tim/gitrepos/deepstream_360_d_smart_parking_application/stream/target
[INFO] — maven-resources-plugin:2.6:resources (default-resources) @ stream-360 —
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 6 resources
[INFO] — maven-compiler-plugin:3.1:compile (default-compile) @ stream-360 —
[INFO] Nothing to compile - all classes are up to date
[INFO] — maven-scala-plugin:2.15.2:compile (default) @ stream-360 —
[INFO] Checking for multiple versions of scala
[WARNING] Invalid POM for harsha2010:magellan:jar:1.0.5-s_2.11, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] Expected all dependencies to require Scala version: 2.11.8
[WARNING] com.twitter:chill_2.11:0.8.0 requires scala version: 2.11.7
[WARNING] Multiple versions of scala libraries detected!
[INFO] includes = [/*.java,/*.scala,]
[INFO] excludes =
[INFO] /home/tim/gitrepos/deepstream_360_d_smart_parking_application/stream/src/main/scala:-1: info: compiling
[INFO] Compiling 14 source files to /home/tim/gitrepos/deepstream_360_d_smart_parking_application/stream/target/classes at 1560216383360
[ERROR] error: scala.reflect.internal.MissingRequirementError: object java.lang.Object in compiler mirror not found.
[ERROR] at scala.reflect.internal.MissingRequirementError$.signal(MissingRequirementError.scala:17)
[ERROR] at scala.reflect.internal.MissingRequirementError$.notFound(MissingRequirementError.scala:18)
[INFO] at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:53)
[INFO] at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:45)
[INFO] at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:45)
[INFO] at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:66)
[INFO] at scala.reflect.internal.Mirrors$RootsBase.getClassByName(Mirrors.scala:102)
[INFO] at scala.reflect.internal.Mirrors$RootsBase.getRequiredClass(Mirrors.scala:105)
[INFO] at scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass$lzycompute(Definitions.scala:257)
[INFO] at scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass(Definitions.scala:257)
[INFO] at scala.reflect.internal.Definitions$DefinitionsClass.init(Definitions.scala:1394)
[INFO] at$Run.(Global.scala:1215)
[INFO] at
[INFO] at
[INFO] at
[INFO] at
[INFO] at
[INFO] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(
[INFO] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(
[INFO] at java.base/java.lang.reflect.Method.invoke(
[INFO] at org_scala_tools_maven_executions.MainHelper.runMain(
[INFO] at org_scala_tools_maven_executions.MainWithArgsInFile.main(
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.867 s
[INFO] Finished at: 2019-06-11T13:26:23+12:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.scala-tools:maven-scala-plugin:2.15.2:compile (default) on project stream-360: wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 1(Exit value: 1) -> [Help 1]
[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] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]

Hi timhartill,

We are not able to reproduce this error. We have tested this code successfully on Ubuntu 16.04 with Java 1.8.

May I know what’s your environment setup?

Thank you, I just resolved this by installing java 8.

I am on Ubuntu 18.04 LTS and had installed java per the instructions:
sudo apt install default-jdk

Unfortunately the version thus installed doesn’t work, but installing:
sudo apt install openjdk-8-jdk

Then using
sudo update-alternatives --config java

To make the earlier java version active solved the problem.

Hi timhartill,

Thank for the feedback. we also have README been updated accordingly.

This issue was specific to Ubuntu 18.04 and it can be resolved by installing Java 1.8.