Manage Extensions - Add From File Problem

Mike's Avatar

Mike

02 Oct, 2011 04:36 PM

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)

  1. 1 Posted by Jessica Little on 02 Oct, 2011 07:10 PM

    Jessica Little's Avatar

    Hi Mike,

    What's the name of the file you are trying to install?

    Jessica Little
    Moneydance Support

  2. 2 Posted by Mike on 02 Oct, 2011 10:09 PM

    Mike's Avatar

    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.

  3. Support Staff 3 Posted by Sean Reilly on 03 Oct, 2011 01:46 PM

    Sean Reilly's Avatar

    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. 4 Posted by Mike on 03 Oct, 2011 03:36 PM

    Mike's Avatar

    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

    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)
    at sun.awt.X11.XFileDialogPeer.handleQuitButton(XFileDialogPeer.java:418)
    at sun.awt.X11.XFileDialogPeer.actionPerformed(XFileDialogPeer.java:588)
    at java.awt.Button.processActionEvent(Button.java:409)
    at java.awt.Button.processEvent(Button.java:377)
    at java.awt.Component.dispatchEventImpl(Component.java:4629)
    at java.awt.Component.dispatchEvent(Component.java:4455)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649)
    at java.awt.EventQueue.access$000(EventQueue.java:96)
    at java.awt.EventQueue$1.run(EventQueue.java:608)
    at java.awt.EventQueue$1.run(EventQueue.java:606)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
    at java.awt.EventQueue$2.run(EventQueue.java:622)
    at java.awt.EventQueue$2.run(EventQueue.java:620)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:194)
    at java.awt.Dialog$1.run(Dialog.java:1072)
    at java.awt.Dialog$3.run(Dialog.java:1126)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Dialog.show(Dialog.java:1124)
    at java.awt.Component.show(Component.java:1551)
    at java.awt.Component.setVisible(Component.java:1503)
    at java.awt.Window.setVisible(Window.java:881)
    at java.awt.Dialog.setVisible(Dialog.java:1011)
    at com.moneydance.apps.md.view.gui.extensions.ExtensionListView.addFromFile(ExtensionListView.java:71)
    at com.moneydance.apps.md.view.gui.extensions.ExtensionListView$1.actionPerformed(ExtensionListView.java:49)
    at com.moneydance.apps.md.view.gui.MDAction.actionPerformed(MDAction.java:166)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:253)
    at java.awt.Component.processMouseEvent(Component.java:6268)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6033)
    at java.awt.Container.processEvent(Container.java:2045)
    at java.awt.Component.dispatchEventImpl(Component.java:4629)
    at java.awt.Container.dispatchEventImpl(Container.java:2103)
    at java.awt.Component.dispatchEvent(Component.java:4455)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4633)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4297)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4227)
    at java.awt.Container.dispatchEventImpl(Container.java:2089)
    at java.awt.Window.dispatchEventImpl(Window.java:2517)
    at java.awt.Component.dispatchEvent(Component.java:4455)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649)
    at java.awt.EventQueue.access$000(EventQueue.java:96)
    at java.awt.EventQueue$1.run(EventQueue.java:608)
    at java.awt.EventQueue$1.run(EventQueue.java:606)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
    at java.awt.EventQueue$2.run(EventQueue.java:622)
    at java.awt.EventQueue$2.run(EventQueue.java:620)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
    
  5. 5 Posted by Jessica Little on 04 Oct, 2011 04:40 AM

    Jessica Little's Avatar

    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. 6 Posted by Mike on 04 Oct, 2011 04:30 PM

    Mike's Avatar

    Switching to Sun's JDK does indeed allow me to get past this issue.

    Thanks.

  7. Mike closed this discussion on 04 Oct, 2011 04:31 PM.

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