OpenBankProject / OpenBankProject/OBP-API
Build and start Api failing
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 1.7k
- Forks
- 482
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 15
Description
Hi guys,
I forked and downloaded the code yesterday, and tried 'clean install' and 'jetty:run' and getting the issue below. Can anybody please point me in the right direction and I will try to fix it. I am new to the project
21:31:03.208 [qtp40170008-14-selector-ServerConnectorManager@239105a8/3] DEBUG org.eclipse.jetty.io.SelectorManager - Selector loop waiting on select
21:31:03.209 [ScalaTest-main] DEBUG org.eclipse.jetty.util.component.ContainerLifeCycle - ServerConnector@72ef8d15{HTTP/1.1}{0.0.0.0:8000} added {acceptor-0@5c87bfe2,POJO}
21:31:03.209 [ScalaTest-main] INFO org.eclipse.jetty.server.ServerConnector - Started ServerConnector@72ef8d15{HTTP/1.1}{0.0.0.0:8000}
21:31:03.209 [ScalaTest-main] DEBUG org.eclipse.jetty.util.component.AbstractLifeCycle - STARTED @4319ms ServerConnector@72ef8d15{HTTP/1.1}{0.0.0.0:8000}
21:31:03.209 [ScalaTest-main] WARN org.eclipse.jetty.util.component.AbstractLifeCycle - FAILED org.eclipse.jetty.server.Server@163370c2: java.lang.ExceptionInInitializerError
java.lang.ExceptionInInitializerError: null
at bootstrap.liftweb.Boot.boot(Boot.scala:187)
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)
at net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply(ClassHelpers.scala:355)
at net.liftweb.http.DefaultBootstrap$$anonfun$boot$1.apply(LiftRules.scala:2151)
at net.liftweb.http.DefaultBootstrap$$anonfun$boot$1.apply(LiftRules.scala:2151)
at net.liftweb.common.Full.map(Box.scala:813)
at net.liftweb.http.DefaultBootstrap$.boot(LiftRules.scala:2151)
at net.liftweb.http.provider.HTTPProvider$class.bootLift(HTTPProvider.scala:88)
at net.liftweb.http.LiftFilter.bootLift(LiftServlet.scala:1071)
at net.liftweb.http.provider.servlet.ServletFilterProvider$class.init(ServletFilterProvider.scala:40)
at net.liftweb.http.LiftFilter.init(LiftServlet.scala:1071)
at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:138)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:852)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:387)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:354)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at code.TestServer$.(TestServer.scala:22)
at code.TestServer$.(TestServer.scala)
at code.setup.ServerSetup$class.$init$(ServerSetup.scala:57)
at code.model.AuthUserTest.(AuthUserTest.scala:13)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at org.scalatest.tools.DiscoverySuite$.getSuiteInstance(DiscoverySuite.scala:66)
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)
at scala.collection.AbstractTraversable.map(Traversable.scala:104)
at org.scalatest.tools.DiscoverySuite.(DiscoverySuite.scala:37)
at org.scalatest.tools.Runner$.genDiscoSuites$1(Runner.scala:1165)
at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:1250)
at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1011)
at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1010)
at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1500)
at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:1010)
at org.scalatest.tools.Runner$.main(Runner.scala:827)
at org.scalatest.tools.Runner.main(Runner.scala)
Caused by: java.lang.NullPointerException: An Empty Box was opened. The justification for allowing the openOrThrowException was OBP-10013: Attempted to open an empty Box.
at net.liftweb.common.EmptyBox.openOrThrowException(Box.scala:867)
at net.liftweb.common.EmptyBox.openOrThrowException(Box.scala:862)
at code.api.util.APIUtil$.(APIUtil.scala:2082)
at code.api.util.APIUtil$.(APIUtil.scala)
... 58 common frames omitted
[36mDiscovery completed in 3 seconds, 895 milliseconds.[0m
[36mRun starting. Expected test count is: 10[0m
[32mAuthUserTest:[0m
[31mcode.model.AuthUserTest *** ABORTED [0m
[31m java.lang.RuntimeException: Unable to load a Suite class that was discovered in the runpath: code.model.AuthUserTest[0m
[31m at org.scalatest.tools.DiscoverySuite$.getSuiteInstance(DiscoverySuite.scala:81)[0m
[31m at org.scalatest.tools.DiscoverySuite$$anonfun$1.apply(DiscoverySuite.scala:38)[0m
[31m at org.scalatest.tools.DiscoverySuite$$anonfun$1.apply(DiscoverySuite.scala:37)[0m
[31m at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)[0m
[31m at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)[0m
[31m at scala.collection.Iterator$class.foreach(Iterator.scala:893)[0m
[31m at scala.collection.AbstractIterator.foreach(Iterator.scala:1336)[0m
[31m at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)[0m
[31m at scala.collection.AbstractIterable.foreach(Iterable.scala:54)[0m
[31m at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)[0m
[31m ...[0m
[31m Cause: java.lang.ExceptionInInitializerError:[0m
[31m at bootstrap.liftweb.Boot.boot(Boot.scala:187)[0m
[31m at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[0m
[31m at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[0m
[31m at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[0m
[31m at java.lang.reflect.Method.invoke(Method.java:498)[0m
[31m at net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply(ClassHelpers.scala:357)[0m
[31m at net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply(ClassHelpers.scala:355)[0m
[31m at net.liftweb.http.DefaultBootstrap$$anonfun$boot$1.apply(LiftRules.scala:2151)[0m
[31m at net.liftweb.http.DefaultBootstrap$$anonfun$boot$1.apply(LiftRules.scala:2151)[0m
[31m at net.liftweb.common.Full.map(Box.scala:813)[0m
[31m ...[0m
[31m Cause: java.lang.NullPointerException: An Empty Box was opened. The justification for allowing the openOrThrowException was OBP-10013: Attempted to open an empty Box.[0m
[31m at net.liftweb.common.EmptyBox.openOrThrowException(Box.scala:867)[0m
[31m at net.liftweb.common.EmptyBox.openOrThrowException(Box.scala:862)[0m
[31m at code.api.util.APIUtil$.(APIUtil.scala:2082)[0m
[31m at code.api.util.APIUtil$.(APIUtil.scala)[0m
[31m at bootstrap.liftweb.Boot.boot(Boot.scala:187)[0m
[31m at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[0m
[31m at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[0m
[31m at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[0m
[31m at java.lang.reflect.Method.invoke(Method.java:498)[0m
[31m at net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply(ClassHelpers.scala:357)[0m
[31m ...[0m
[31m RUN ABORTED ***[0m
[31m java.lang.ExceptionInInitializerError:[0m
[31m at bootstrap.liftweb.Boot.boot(Boot.scala:187)[0m
[31m at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[0m
[31m at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[0m
[31m at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[0m
[31m at java.lang.reflect.Method.invoke(Method.java:498)[0m
[31m at net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply(ClassHelpers.scala:357)[0m
[31m at net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply(ClassHelpers.scala:355)[0m
[31m at net.liftweb.http.DefaultBootstrap$$anonfun$boot$1.apply(LiftRules.scala:2151)[0m
[31m at net.liftweb.http.DefaultBootstrap$$anonfun$boot$1.apply(LiftRules.scala:2151)[0m
[31m at net.liftweb.common.Full.map(Box.scala:813)[0m
[31m ...[0m
[31m Cause: java.lang.NullPointerException: An Empty Box was opened. The justification for allowing the openOrThrowException was OBP-10013: Attempted to open an empty Box.[0m
[31m at net.liftweb.common.EmptyBox.openOrThrowException(Box.scala:867)[0m
[31m at net.liftweb.common.EmptyBox.openOrThrowException(Box.scala:862)[0m
[31m at code.api.util.APIUtil$.(APIUtil.scala:2082)[0m
[31m at code.api.util.APIUtil$.(APIUtil.scala)[0m
[31m at bootstrap.liftweb.Boot.boot(Boot.scala:187)[0m
[31m at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[0m
[31m at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[0m
[31m at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[0m
[31m at java.lang.reflect.Method.invoke(Method.java:498)[0m
[31m at net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply(ClassHelpers.scala:357)[0m
[31m ...[0m
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
Reproduce the failure with clean install and jetty:run, then start at code.api.util.APIUtil.scala:2082, where the empty Box is opened. Trace the initialization through bootstrap.liftweb.Boot.scala:187 and the test setup in code.TestServer.scala:22 and code.model.AuthUserTest.scala:13; done means startup and the affected tests no longer abort with this initializer error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100