Manage Extensions - Add From File Problem
Just wondering if anyone else has seen a problem trying to use the extension manager to add an extension from a file. If I build the example extension code (after updating the javac target to > 1.3 so it will build on Fedora 15), it won't install.
In particular, the extension manager throws a null pointer exception while the dialog is open to select the file, and once I close the dialog, nothing happens. I've cut and pasted the top bit from the console, please let me know if you need more info...
Starting Moneydance 2011 (791)
Settings Folder: /home//moneydance
OS: Linux 2.6.40.4-5.fc15.x86_64 amd64
Java: 1.6.0_22 (Sun Microsystems Inc.)
ConnectionTask for Update_If_Needed done, result true
Exception occurred during event dispatching:
java.lang.NullPointerException
at sun.awt.X11.XWindowPeer.restoreTransientFor(XWindowPeer.java:1681)
at sun.awt.X11.XWindowPeer.removeFromTransientFors(XWindowPeer.java:1747)
at sun.awt.X11.XWindowPeer.setModalBlocked(XWindowPeer.java:1469)
at sun.awt.X11.XWindowPeer.setModalBlocked(XWindowPeer.java:1440)
at java.awt.Window.setModalBlocked(Window.java:1359)
at java.awt.Dialog.unblockWindow(Dialog.java:1597)
at java.awt.Dialog.modalHide(Dialog.java:1483)
at java.awt.Dialog.hideAndDisposePreHandler(Dialog.java:1215)
at java.awt.Dialog.hide(Dialog.java:1255)
... (lots more below this)
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Jessica Little on 02 Oct, 2011 07:10 PM
Hi Mike,
What's the name of the file you are trying to install?
Jessica Little
Moneydance Support
2 Posted by Mike on 02 Oct, 2011 10:09 PM
Any extension I build shows the same behaviour - this one is from simply trying to install the "myextension" sample, once I've signed and built it, with no code changes.
I actually get the exception when I hit the "OK" button on the file chooser from the extension manager, before the dialog closes.
Edit : Sorry, I realized I didn't answer the question - myextension.mxt in this case.
Support Staff 3 Posted by Sean Reilly on 03 Oct, 2011 01:46 PM
Can you provide the full stack trace? We'll need that in order to see where our code is in the trace of the NPE.
It might be helpful to verify that your code is on the main swing event dispatch thread when it performs any GUI actions. Apart from that, I'd need more info before I could tell what was happening.
Thanks,
Sean
4 Posted by Mike on 03 Oct, 2011 03:36 PM
Here's the full stack trace. I have verified that the .mxt file appears to be valid (can be opened via Ark and appears to have the correct structure).
Starting Moneydance 2011 (791)
Settings Folder: /home//.moneydance
OS: Linux 2.6.40.4-5.fc15.x86_64 amd64
Java: 1.6.0_22 (Sun Microsystems Inc.)
ConnectionTask for Update_If_Needed done, result true
Exception occurred during event dispatching:
java.lang.NullPointerException
5 Posted by Jessica Little on 04 Oct, 2011 04:40 AM
Hi Mike,
It looks like you're running the OpenJDK version of Java 6, which has a few bugs that affect Moneydance. Could you please try installing Sun Java 6 (or using the version of Moneydance that comes with Java built in) to see if that resolves the issue?
Jessica Little
Moneydance Support
6 Posted by Mike on 04 Oct, 2011 04:30 PM
Switching to Sun's JDK does indeed allow me to get past this issue.
Thanks.
Mike closed this discussion on 04 Oct, 2011 04:31 PM.