question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

name.abuchen.portfolio.ui.tests .................... FAILURE

See original GitHub issue

Describe the bug While building PortfolioPerformance I get the following errors: Errors: SimpleMovingAverageTest.testCorrectSMAEntries:77 ? NoClassDefFound Could not i… SimpleMovingAverageTest.testSufficientPriceDataPass:97 ? NoClassDefFound Could… SimpleMovingAverageTest.testSufficientPriceDataStartDate:115 ? UnsatisfiedLink

To Reproduce Steps to reproduce the behavior:

  1. Go to ‘…’
  2. Click on ‘…’
  3. Scroll down to ‘…’
  4. See error

Expected behavior Worked up to v0.47 w/o issues.

Screenshots

testSufficientPriceDataStartDate(name.abuchen.portfolio.ui.views.SimpleMovingAverageTest)  Time elapsed: 0.116 s  <<< ERROR!
java.lang.UnsatisfiedLinkError: 
Could not load SWT library. Reasons: 
	no swt-pi4-gtk-4934r6 in java.library.path
	no swt-pi4-gtk in java.library.path
	Can't load library: /home/user/.swt/lib/linux/x86_64/libswt-pi4-gtk-4934r6.so
	Can't load library: /home/user/.swt/lib/linux/x86_64/libswt-pi4-gtk.so

	at org.eclipse.swt.internal.Library.loadLibrary(Library.java:342)
	at org.eclipse.swt.internal.Library.loadLibrary(Library.java:256)
	at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:90)
	at org.eclipse.swt.widgets.Scrollable.<clinit>(Scrollable.java:44)
	at name.abuchen.portfolio.ui.views.SimpleMovingAverage.calculateSMA(SimpleMovingAverage.java:90)
	at name.abuchen.portfolio.ui.views.SimpleMovingAverage.<init>(SimpleMovingAverage.java:34)
	at name.abuchen.portfolio.ui.views.SimpleMovingAverageTest.testSufficientPriceDataStartDate(SimpleMovingAverageTest.java:115)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[...]
testCorrectSMAEntries(name.abuchen.portfolio.ui.views.SimpleMovingAverageTest)  Time elapsed: 0.001 s  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class name.abuchen.portfolio.ui.util.chart.TimelineChart
	at name.abuchen.portfolio.ui.views.SimpleMovingAverage.calculateSMA(SimpleMovingAverage.java:90)
	at name.abuchen.portfolio.ui.views.SimpleMovingAverage.<init>(SimpleMovingAverage.java:34)
	at name.abuchen.portfolio.ui.views.SimpleMovingAverageTest.testCorrectSMAEntries(SimpleMovingAverageTest.java:77)
	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 org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
[...]
testSufficientPriceDataPass(name.abuchen.portfolio.ui.views.SimpleMovingAverageTest)  Time elapsed: 0.003 s  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class name.abuchen.portfolio.ui.util.chart.TimelineChart
	at name.abuchen.portfolio.ui.views.SimpleMovingAverage.calculateSMA(SimpleMovingAverage.java:90)
	at name.abuchen.portfolio.ui.views.SimpleMovingAverage.<init>(SimpleMovingAverage.java:34)
	at name.abuchen.portfolio.ui.views.SimpleMovingAverageTest.testSufficientPriceDataPass(SimpleMovingAverageTest.java:97)
	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 org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	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.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runn

Desktop (please complete the following information):

  • OS: Linux
  • Version 0.48.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
cmaolingcommented, Sep 3, 2020

I was able to successfully build and run PP after installing the libgtk-3-0 package. Thanks for your help debugging this @buchen and @Ragas13 .

1reaction
ghostcommented, Sep 2, 2020

@cmaoling With release 0.48 the Eclipse SWT framework were updated to release 2020-06. And as far Google knows, SWT / GTK is not yet compliant w/ Raspberry Pi4 even if it’s Linux. Do you use Raspberry Pi as platform?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Portfolio - build error - Applications - EndeavourOS Forum
Hi, As I have written here: https://aur.archlinux.org/packages/portfolio/#news I get error message below when trying to build this package.
Read more >
Running tests via maven - Portfolio Performance Forum
Hi, can I build and run the unit tests via maven? Not the maven expert, ... FAILURE [ 56.131 s] [INFO] name.abuchen.portfolio.ui ....
Read more >
AUR (en) - portfolio - Arch Linux
Description: Track your portfolio performance (finance). Upstream URL: http://buchen.github.io/portfolio/. Licenses: EPL. Submitter: Cobra.
Read more >
portfolio-app/eclipse/name.abuchen.portfolio.ui.tests.launch ... - GitLab
<listEntry value="/name.abuchen.portfolio.ui.tests"/>. 22. </listAttribute>. 23. <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">.
Read more >
Java ICommandService Examples, org.eclipse.ui.commands ...
PLUGIN_ID, "Error while executing command to update translation", ex); throw new CoreException(status); ... getCommand( "name.abuchen.portfolio.ui.commands.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found