1

I'm getting a com.sun.jdi.InvocationException when I return an empty List<String> from one method and set that empty List in another POJO. This causes my SwingWorker.doInBackground() to not execute.

There's no stack trace and the JavaDocs don't even list a com.sun.jdi.InvocationException. This seems completely anomalous. Does anyone know what can cause this Exception?

trashgod
  • 203,806
  • 29
  • 246
  • 1,045
Dean Schulze
  • 9,633
  • 24
  • 100
  • 165
  • What debugger are you using? Package com.sun.jdi is the core package of the Java Debugging Interface (JDI), it defines mirrors for values, types, and the target VirtualMachine itself - as well bootstrapping facilities. Excerpted from http://docs.oracle.com/javase/1.3/docs/guide/jpda/jdi/com/sun/jdi/package-summary.html – Java42 Mar 30 '12 at 01:08
  • I'm using the Eclipse debugger. That doesn't explain why my doInBackground() doesn't get executed even when I don't run the debugger, though. – Dean Schulze Mar 30 '12 at 01:17
  • Agree, it does not explain why doInBackground() does not work but it does explain the source of the exception. It is from the Java debugging interface. Add the code for what you are trying to do in the background. – Java42 Mar 30 '12 at 01:28
  • @Dean Schulze [you have to check](http://stackoverflow.com/questions/7053865/cant-get-arrayindexoutofboundsexception-from-future-and-swingworker-if-threa) – mKorbel Mar 30 '12 at 06:25

0 Answers0