stant / mdcsvimporter

Automatically exported from code.google.com/p/mdcsvimporter
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Fatal bug #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. In Moneydance 2011r2 (803), click Extensions->Import File
2.
3.

What is the expected output? What do you see instead?
Expect import dialog. Instead get error: java.lang.IllegalArgumentException: 
setSelectedIndex: 15 out of bounds

What version of the product are you using? On what operating system?
v16. MacOSX 10.6.8

Please provide any additional information below.
I have two MD files, one personal and one for my business. This error DOES NOT 
happen on my personal account, only on my business account.

Original issue reported on code.google.com by goo...@prebson.com on 10 Jun 2014 at 2:32

GoogleCodeExporter commented 9 years ago
1.) Are you using the newest plugin 15.7.15 downloaded from here?
If not then please try that first.

2.) Please open the devug "console" from the top menus and see if you can 
figure out the problem or cleanse the output from the console and send it to me.

Original comment by stashu....@gmail.com on 10 Jun 2014 at 4:06

GoogleCodeExporter commented 9 years ago
I downloaded the newest plugin from here. I then renamed it to 
mdcsvimporter-beta-15.7.15.mxt.
I removed the existing extension from the Manage Extensions window.
I cleared the console.
I then clicked on "Add From File" and received an error message. Here's the 
console window output:

java.lang.NullPointerException
    at com.moneydance.apps.md.controller.ModuleLoader.loadFeatureModule(ModuleLoader.java:68)
    at com.moneydance.apps.md.controller.ModuleLoader.loadFeatureModule(ModuleLoader.java:41)
    at com.moneydance.apps.md.controller.Main.getExternalFeatureModule(Main.java:448)
    at com.moneydance.apps.md.view.gui.extensions.ExtensionListView.installFromFile(ExtensionListView.java:99)
    at com.moneydance.apps.md.view.gui.extensions.ExtensionListView.addFromFile(ExtensionListView.java:91)
    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:2028)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.Component.processMouseEvent(Component.java:6414)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
    at java.awt.Component.processEvent(Component.java:6179)
    at java.awt.Container.processEvent(Container.java:2084)
    at java.awt.Component.dispatchEventImpl(Component.java:4776)
    at java.awt.Container.dispatchEventImpl(Container.java:2142)
    at java.awt.Component.dispatchEvent(Component.java:4604)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4279)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4209)
    at java.awt.Container.dispatchEventImpl(Container.java:2128)
    at java.awt.Window.dispatchEventImpl(Window.java:2492)
    at java.awt.Component.dispatchEvent(Component.java:4604)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:717)
    at java.awt.EventQueue.access$400(EventQueue.java:82)
    at java.awt.EventQueue$2.run(EventQueue.java:676)
    at java.awt.EventQueue$2.run(EventQueue.java:674)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:690)
    at java.awt.EventQueue$3.run(EventQueue.java:688)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:687)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Original comment by PHSPostP...@gmail.com on 10 Jun 2014 at 4:25

GoogleCodeExporter commented 9 years ago
Hi. That looks like a plain money dance load problem. I would remove plugin, 
close MD, restart md, add from file again.

You might not be able to name the plugin whatever you want (xxx..beta...mxt) to 
load it. Give it the regular name. See home page instructions if the above does 
not work.

Original comment by stashu....@gmail.com on 10 Jun 2014 at 4:43

GoogleCodeExporter commented 9 years ago
OK, I got it working. Originally I was unzipping the file using the default 
unzip provided by the MAC OS. Instead I went to UNIX and used the unzip 
utility. That created a mxt file. When I imported that one it worked.

Also note that it created a new properties file since it couldn't find my 
original one. When I replaced the created one with my original, the fatal bug 
returned. So I blew away the property file and let the importer recreate it and 
it's working again. So I guess it was a bug with the property file.

Original comment by PHSPostP...@gmail.com on 10 Jun 2014 at 6:06

GoogleCodeExporter commented 9 years ago
Hi

If you want to send me the property files I can try to see what the problem
is.

And does a mac not unzip zip files?

Original comment by stashu....@gmail.com on 10 Jun 2014 at 6:21

GoogleCodeExporter commented 9 years ago
I've attached the suspect properties file.

The MAC uses Archive Utility.app which appears to treat it as a package so it 
extracts all of the files and puts them in a directory by the same name as the 
basename of the zip file. What the unzip UNIX utility did was to just 
uncompress the zip file, creating an mxt file.

Original comment by PHSPostP...@gmail.com on 10 Jun 2014 at 6:41

Attachments:

GoogleCodeExporter commented 9 years ago
Hi. I just gave your property file a look. The problem is this line:
selected.account=15

When you open the importer, it is trying to select the 0-15th (16th) item
in your "Import to Account" drop down list and you do not have that many.
I do not know why it is off but if you set it to say 0, which is your
first item, it should work and you can probably use that property file.

Could it be that you deleted some accounts so the max went below the
account 15 you used to point to and the importer does not look so it blew out?

Original comment by stashu....@gmail.com on 13 Jun 2014 at 3:45

GoogleCodeExporter commented 9 years ago
Well you are right about the selected.account being higher than any account in 
my file. But I actually use two different files - one for my personal finances 
and one for my business finances. It looks like the importer is using the same 
properties file for both of those files. What's happening is that I have a lot 
more accounts in my personal file so when I import into one of those accounts 
and it's one of the higher number accounts, that account ends up being saved in 
the properties file as the last selected account. Then when I go to my business 
account and try to initiate an import the importer tries to select that account 
but it is a higher number than any account in that file.

I'm not sure what you would want to do about that. I'm thinking you could 
either have a separate properties file for each file or allow the option of not 
saving the last selected account. I would prefer the latter because I usually 
import to a bunch of files one after the other so saving the last selected 
doesn't really do anything for me.

Original comment by PHSPostP...@gmail.com on 15 Jun 2014 at 4:39

GoogleCodeExporter commented 9 years ago
Ok. Yes, your two thoughts make sense.

I was thinking about an enhancement that might be helpful to you too.
Do you import from the same filenames each time or do they have different
names like with dates each import?

Original comment by stashu....@gmail.com on 15 Jun 2014 at 5:01

GoogleCodeExporter commented 9 years ago
I import from the same filename most of the time.

Original comment by goo...@prebson.com on 15 Jun 2014 at 5:09

GoogleCodeExporter commented 9 years ago
Hi. I fixed this bug. I now see this and give you an error message for it. This 
is part of my new version beta 16 available from the home page here now, not 
the downloads anymore.

Original comment by stashu....@gmail.com on 28 Aug 2014 at 11:42