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

Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version

Operating System

TeXiFy IDEA version

Description

Stacktrace

java.lang.reflect.InvocationTargetException
	at jdk.internal.reflect.GeneratedMethodAccessor147.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at com.intellij.execution.process.ProcessHandler$2.invoke(ProcessHandler.java:246)
	at com.sun.proxy.$Proxy13.processTerminated(Unknown Source)
	at com.intellij.execution.process.ProcessHandler.lambda$notifyTerminated$2(ProcessHandler.java:204)
	at com.intellij.execution.process.ProcessHandler$TasksRunner.execute(ProcessHandler.java:279)
	at com.intellij.execution.process.ProcessHandler.notifyTerminated(ProcessHandler.java:187)
	at com.intellij.execution.process.ProcessHandler.notifyProcessTerminated(ProcessHandler.java:183)
	at com.intellij.execution.process.KillableProcessHandler.notifyProcessTerminated(KillableProcessHandler.java:136)
	at com.intellij.execution.process.BaseProcessHandler.onOSProcessTerminated(BaseProcessHandler.java:59)
	at com.intellij.execution.process.OSProcessHandler.onOSProcessTerminated(OSProcessHandler.java:204)
	at com.intellij.execution.process.BaseOSProcessHandler$1.lambda$startNotified$0(BaseOSProcessHandler.java:96)
	at com.intellij.execution.process.ProcessWaitFor.lambda$new$0(ProcessWaitFor.java:51)
	at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:207)
	at com.intellij.execution.process.ProcessWaitFor.lambda$new$1(ProcessWaitFor.java:33)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: nl.hannahsten.texifyidea.TeXception: An error occured when trying to open the pdf using [Ljava.lang.String;@5c13f76e with message Cannot run program "-a": error=2, No such file or directory
	at nl.hannahsten.texifyidea.run.OpenCustomPdfViewerListener.processTerminated(OpenCustomPdfViewerListener.kt:21)
	... 25 more

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
okhmatcommented, Aug 24, 2020

Adding some more clarity to the error messages would help! Good luck improving your product!

1reaction
PHPiratescommented, Aug 24, 2020

-output-directory=/

check your run configuration and change your output directory to a path within the project: pdflatex does not like writing to / (that’s where you get permission problems, writing outside the directory where pdflatex is run, and even outside your home directory)

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?
The reflection layer wraps any exception in an InvocationTargetException , which lets you tell the difference between an exception actually caused by a...
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