tag:infinitekind.tenderapp.com,2009-01-14:/discussions/moneydance-development/57-manage-extensions-add-from-file-problemInfinite Kind: Discussion 2018-10-18T13:58:21Ztag:infinitekind.tenderapp.com,2009-01-14:Comment/103583612011-10-02T19:10:58Z2011-10-02T19:10:58ZManage Extensions - Add From File Problem<div><p>Hi Mike,</p>
<p>What's the name of the file you are trying to install?</p>
<p>Jessica Little<br>
Moneydance Support</p></div>Jessica Littletag:infinitekind.tenderapp.com,2009-01-14:Comment/103583612011-10-02T22:09:30Z2011-10-02T22:31:55ZManage Extensions - Add From File Problem<div><p>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.</p>
<p>I actually get the exception when I hit the "OK" button on the
file chooser from the extension manager, before the dialog
closes.</p>
<p>Edit : Sorry, I realized I didn't answer the question -
myextension.mxt in this case.</p></div>Miketag:infinitekind.tenderapp.com,2009-01-14:Comment/103583612011-10-03T13:46:31Z2011-10-03T13:46:31ZManage Extensions - Add From File Problem<div><p>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.</p>
<p>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.</p>
<p>Thanks,<br>
Sean</p></div>Sean Reillytag:infinitekind.tenderapp.com,2009-01-14:Comment/103583612011-10-03T15:36:22Z2011-10-03T15:36:22ZManage Extensions - Add From File Problem<div><p>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).</p>
<p>Starting Moneydance 2011 (791)<br>
Settings Folder: /home//.moneydance<br>
OS: Linux 2.6.40.4-5.fc15.x86_64 amd64<br>
Java: 1.6.0_22 (Sun Microsystems Inc.)<br>
ConnectionTask for Update_If_Needed done, result true<br>
Exception occurred during event dispatching:<br>
java.lang.NullPointerException</p>
<pre>
<code>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)</code>
</pre></div>Miketag:infinitekind.tenderapp.com,2009-01-14:Comment/103583612011-10-04T04:40:34Z2011-10-04T04:40:34ZManage Extensions - Add From File Problem<div><p>Hi Mike,</p>
<p>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?</p>
<p>Jessica Little<br>
Moneydance Support</p></div>Jessica Littletag:infinitekind.tenderapp.com,2009-01-14:Comment/103583612011-10-04T16:30:51Z2011-10-04T16:30:51ZManage Extensions - Add From File Problem<div><p>Switching to Sun's JDK does indeed allow me to get past this
issue.</p>
<p>Thanks.</p></div>Mike