Can't get lighthouse built/running on Fedora

50 views
Skip to first unread message

Jeff Weiss

unread,
Oct 13, 2015, 2:14:53 PM10/13/15
to lighthouse-dev
I'm having some trouble trying to get lighthouse to run. Any suggestions how to fix the errors below? Is there some setup that isn't explained on the github home page?

Trying to compile bitcoinj does not work with openjdk8 on Fedora:

[ERROR] /home/jweiss/workspace/bitcoinj/wallettemplate/src/main/java/wallettemplate/utils/KeyDerivationTasks.java:[5,29] package javafx.beans.property does not exist

OK, turns out fedora doesn't package JavaFX for some reason. I install oracle's JDK and I'm able to build bitcoinj. However lighthouse still fails tests:


Tests run: 12, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.078 sec <<< FAILURE!
projectCreated(lighthouse.model.LighthouseBackendTest)  Time elapsed: 0.036 sec  <<< FAILURE!
java.lang.AssertionError
    at org.junit.Assert.fail(Assert.java:86)
    at org.junit.Assert.assertTrue(Assert.java:41)
    at org.junit.Assert.assertTrue(Assert.java:52)
    at lighthouse.model.LighthouseBackendTest.projectCreated(LighthouseBackendTest.java:263)
    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:497)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
    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:497)
    at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
    at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
    at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)

It also fails to start if I skip the tests and start it anyway:

[jweiss@localhost lighthouse]$ $JAVA_HOME/jre/bin/java -jar client/target/shaded.jar
Exception in Application start method
Exception in Application stop method
java.lang.reflect.InvocationTargetException
    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:497)
    at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)
    at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
    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:497)
    at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at com.vinumeris.updatefx.UpdateFX.bootstrap(UpdateFX.java:39)
    at lighthouse.Main.main(Main.java:104)
    ... 11 more
Caused by: java.lang.reflect.InvocationTargetException
    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:497)
    at com.vinumeris.updatefx.UpdateFX.runRealMain(UpdateFX.java:135)
    at com.vinumeris.updatefx.UpdateFX.invoke(UpdateFX.java:122)
    at com.vinumeris.updatefx.UpdateFX.bootstrap(UpdateFX.java:36)
    ... 12 more
Caused by: java.lang.RuntimeException: Exception in Application start method
    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$155(LauncherImpl.java:182)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: java.lang.NoSuchFieldException: scale
    at com.google.common.base.Throwables.propagate(Throwables.java:160)
    at lighthouse.protocol.LHUtils.unchecked(LHUtils.java:80)
    at lighthouse.utils.GuiUtils.getPixelScale(GuiUtils.java:407)
    at lighthouse.Main.initGUI(Main.java:346)
    at lighthouse.Main.start(Main.java:163)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)
    at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)
    at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
    at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
    at com.sun.glass.ui.gtk.GtkApplication.lambda$null$49(GtkApplication.java:139)
    ... 1 more
Caused by: java.lang.NoSuchFieldException: scale
    at java.lang.Class.getDeclaredField(Class.java:2070)
    at lighthouse.utils.GuiUtils.lambda$getPixelScale$18(GuiUtils.java:409)
    at lighthouse.protocol.LHUtils.unchecked(LHUtils.java:78)
    ... 12 more
Exception running application lighthouse.Main

Mike Hearn

unread,
Oct 14, 2015, 2:08:11 PM10/14/15
to Jeff Weiss, lighthouse-dev
What version of the Oracle JDK are you using?

--
You received this message because you are subscribed to the Google Groups "lighthouse-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lighthouse-de...@googlegroups.com.
To post to this group, send email to lightho...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lighthouse-dev/6d035b9b-106d-4fec-bdcc-299f53497b92%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jeff Weiss

unread,
Oct 14, 2015, 2:38:06 PM10/14/15
to lighthouse-dev, jeffrey...@gmail.com

[jweiss@localhost jdk1.8.0_66]$ $JAVA_HOME/jre/bin/java -version
java version "1.8.0_66-ea"
Java(TM) SE Runtime Environment (build 1.8.0_66-ea-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b02, mixed mode)

Mike Hearn

unread,
Oct 15, 2015, 9:27:21 AM10/15/15
to Jeff Weiss, lighthouse-dev
Can you update to latest git master and try again?

Jeff Weiss

unread,
Oct 15, 2015, 10:38:45 AM10/15/15
to lighthouse-dev, jeffrey...@gmail.com


On Thursday, October 15, 2015 at 9:27:21 AM UTC-4, Mike Hearn wrote:
Can you update to latest git master and try again?

Ok great - the same test still fails, but if I skip the tests to get it to build then it starts up.
Reply all
Reply to author
Forward
0 new messages