OpenBankProject / OpenBankProject/OBP-API
Running the API in Production Mode (Ubuntu 16)
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 1.7k
- Forks
- 482
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 15
Description
clone from master and after command mvn package i had errors.
Plz help me :)
`
Discovery completed in 10 seconds, 822 milliseconds.
Run starting. Expected test count is: 9
AuthUserTest:
code.model.AuthUserTest *** ABORTED ***
java.lang.RuntimeException: Unable to load a Suite class that was discovered in the runpath: code.model.AuthUserTest
at org.scalatest.tools.DiscoverySuite$.getSuiteInstance(DiscoverySuite.scala:81)
at org.scalatest.tools.DiscoverySuite$$anonfun$1.apply(DiscoverySuite.scala:38)
at org.scalatest.tools.DiscoverySuite$$anonfun$1.apply(DiscoverySuite.scala:37)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.Iterator$class.foreach(Iterator.scala:893)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)
Cause: java.lang.ExceptionInInitializerError:
at bootstrap.liftweb.Boot$$anonfun$boot$12.apply(Boot.scala:214)
at bootstrap.liftweb.Boot$$anonfun$boot$12.apply(Boot.scala:214)
at net.liftweb.common.Logger$class.info(Logging.scala:231)
at net.liftweb.common.WrappedLogger.info(Logging.scala:285)
at bootstrap.liftweb.Boot.boot(Boot.scala:214)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply(ClassHelpers.scala:357)
Cause: java.lang.NullPointerException: An Empty Box was opened. The justification for allowing the openOrThrowException was OBP-00001: Hostname not specified. Could not get hostname from Props. Please edit your props file. Here are some example settings: hostname=http://127.0.0.1:8080 or hostname=https://www.example.com
at net.liftweb.common.EmptyBox.openOrThrowException(Box.scala:867)
at net.liftweb.common.EmptyBox.openOrThrowException(Box.scala:862)
at code.api.Constant$.(constant.scala:12)
at code.api.Constant$.(constant.scala)
at bootstrap.liftweb.Boot$$anonfun$boot$12.apply(Boot.scala:214)
at bootstrap.liftweb.Boot$$anonfun$boot$12.apply(Boot.scala:214)
at net.liftweb.common.Logger$class.info(Logging.scala:231)
at net.liftweb.common.WrappedLogger.info(Logging.scala:285)
at bootstrap.liftweb.Boot.boot(Boot.scala:214)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
*** RUN ABORTED ***
java.lang.ExceptionInInitializerError:
at bootstrap.liftweb.Boot$$anonfun$boot$12.apply(Boot.scala:214)
at bootstrap.liftweb.Boot$$anonfun$boot$12.apply(Boot.scala:214)
at net.liftweb.common.Logger$class.info(Logging.scala:231)
at net.liftweb.common.WrappedLogger.info(Logging.scala:285)
at bootstrap.liftweb.Boot.boot(Boot.scala:214)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply(ClassHelpers.scala:357)
Cause: java.lang.NullPointerException: An Empty Box was opened. The justification for allowing the openOrThrowException was OBP-00001: Hostname not specified. Could not get hostname from Props. Please edit your props file. Here are some example settings: hostname=http://127.0.0.1:8080 or hostname=https://www.example.com
at net.liftweb.common.EmptyBox.openOrThrowException(Box.scala:867)
at net.liftweb.common.EmptyBox.openOrThrowException(Box.scala:862)
at code.api.Constant$.(constant.scala:12)
at code.api.Constant$.(constant.scala)
at bootstrap.liftweb.Boot$$anonfun$boot$12.apply(Boot.scala:214)
at bootstrap.liftweb.Boot$$anonfun$boot$12.apply(Boot.scala:214)
at net.liftweb.common.Logger$class.info(Logging.scala:231)
at net.liftweb.common.WrappedLogger.info(Logging.scala:285)
at bootstrap.liftweb.Boot.boot(Boot.scala:214)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:55 min
[INFO] Finished at: 2018-03-07T18:51:02+01:00
[INFO] Final Memory: 81M/739M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.scalatest:scalatest-maven-plugin:1.0:test (test) on project OBP-API: There are test failures -> [Help 1]
[ERROR]
[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]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
`
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the missing hostname reported from code/api/constant.scala:12 and inspect the props configuration used during Boot.boot at Boot.scala:214. Set the required hostname for the Ubuntu production-mode setup, rerun mvn package, and consider the issue resolved when the discovered tests complete without the initialization error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala, ubuntu
- Domain
- backend, build-system, testing
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100