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.

java.lang.reflect.InvocationTargetException

See original GitHub issue

I keep getting a java.lang.reflect.InvocationTargetException when I just try to launch an application using any of the Classes from RitchTextFX. Here is my stack if anyone wants it:

Executing C:\Users\Kyles PC\Documents\NetBeansProjects\JavaFXApplication1\dist\run1557054747\JavaFXApplication1.jar using platform C:\Program Files\Java\jdk1.8.0_101\jre/bin/java
Exception in Application start 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:498)
	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:498)
	at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
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.NoClassDefFoundError: org/reactfx/value/SuspendableVal
	at javafxapplication1.JavaFXApplication1.start(JavaFXApplication1.java:44)
	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.win.WinApplication._runLoop(Native Method)
	at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
	... 1 more
Caused by: java.lang.ClassNotFoundException: org.reactfx.value.SuspendableVal
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 10 more
Exception running application javafxapplication1.JavaFXApplication1
Java Result: 1

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
kingerkingcommented, Jan 20, 2017

Yup. Tried it with eclipse and nebeans Incase it was a bug

On Jan 19, 2017 11:21 PM, “Andreas” notifications@github.com wrote:

This is caused by

java.lang.ClassNotFoundException: org.reactfx.value.SuspendableVal

Do you have the ReactFX jar files included in your project?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/TomasMikula/RichTextFX/issues/432#issuecomment-273987142, or mute the thread https://github.com/notifications/unsubscribe-auth/AXXapefqVLxdvzRTDKkVVB_m17zmDF_Qks5rUFJagaJpZM4Lo7FM .

0reactions
JordanMartinezcommented, Feb 11, 2017

Closed by #436. (I linked to the wrong issue when I fixed it)

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Causes java.lang.reflect.InvocationTargetException?
It mainly occurs when we work with the reflection layer and try to invoke a method or constructor that throws an underlying exception...
Read more >
What could cause java.lang.reflect.InvocationTargetException?
InvocationTargetException is a checked exception that wraps an exception thrown by an invoked method or constructor. As of release 1.4, this ...
Read more >
InvocationTargetException (Java Platform SE 7 )
InvocationTargetException is a checked exception that wraps an exception thrown by an invoked method or constructor. As of release 1.4, this exception has ......
Read more >
What Causes java.lang.reflect.InvocationTargetException?
The java.lang.reflect.InvocationTargetException mainly occurs while working with the reflection layer. When you attempt to invoke a method or ...
Read more >
How to Resolve InvocationTargetException in Java - Rollbar
The Java reflection layer wraps any exception as an InvocationTargetException . This helps clarify whether the exception is caused by an issue ...
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