java issues

Rod's Avatar

Rod

Aug 16, 2016 @ 02:12 AM

When I try to open Moneydance I get an error message: javax.crypto.BadPaddingException. If I try to open a backup file I get: java.lang.NullPointerException.

I've read the discussion about others with similar problems but it's unclear to me how to fix this. I started using MD in January of 2016. First time this has happened. Is there an update with a patch? Need to get into my files soon.

  1. Support Staff 1 Posted by Ethan on Aug 16, 2016 @ 02:48 AM

    Ethan's Avatar

    Can you send me your errlog.txt file? If you're using Mac OS X, it should be located at one of these locations within your Home folder:

    Library/Containers/com.infinitekind.MoneydanceOSX/Data/Library/Application Support/Moneydance/errlog.txt

    or:

    Library/Application Support/Moneydance/errlog.txt

    If you have any trouble finding your Home Library folder, open Finder and select Go -> Go to Folder and type in:

    ~/Library

    This should pull up your local Library folder.

    If you're using Windows, it should be located at:

    C:/Users/(yourusername)/.moneydance/errlog.txt

    Ethan
    Moneydance Support

  2. 2 Posted by Rod Tinnemore on Aug 17, 2016 @ 05:32 PM

    Rod Tinnemore's Avatar

    Ethan,
    Here is a copy of the log your requested:
    Starting Moneydance 2015.6 (1299) at Mon Aug 15 18:52:46 PDT 2016
    Settings Folder: C:\Users\Rod\.moneydance
    OS: Windows 8 6.2 amd64
    Java: 1.8.0_51 (Oracle Corporation)
    Is in sandbox: false; restricted file access: false
    Initializing Moneydance SSL
    Created new custom trust manager
    TRUSTMGR: initialized custom stream handler factory...
    initialised mono font: java.awt.Font[family=Dialog,name=Gill
    Sans,style=plain,size=12]
    initialised fonts:
    base=java.awt.Font[family=Segoe UI,name=Segoe UI,style=plain,size=12];
    numeric=java.awt.Font[family=Dialog,name=Gill Sans,style=plain,size=12];
    register=java.awt.Font[family=Segoe UI,name=Segoe UI,style=plain,size=11];
    header=java.awt.Font[family=Segoe UI,name=Segoe UI,style=plain,size=14]
    multires images available: true
    initialised mono font: java.awt.Font[family=Dialog,name=Gill
    Sans,style=plain,size=14]
    opening last file: G:\FileHistory\tinnemore\RTDTPRIMARYPC\Data\C\Users\
    tinnemore\.moneydance\Documents\backups\Personal Finances.moneydance
    loading dataset: G:\FileHistory\tinnemore\RTDTPRIMARYPC\Data\C\Users\
    tinnemore\.moneydance\Documents\backups\Personal Finances.moneydance
    loading with 128 bit encryption key
    java.io.IOException: javax.crypto.BadPaddingException: Given final block
    not properly padded
    at javax.crypto.CipherInputStream.getMoreData(CipherInputStream.java:121)
    at javax.crypto.CipherInputStream.read(CipherInputStream.java:192)
    at com.infinitekind.tiksync.SyncRecord.readSet(SyncRecord.java:196)
    at com.moneydance.apps.md.controller.AccountBookWrapper$
    LocalStorageWrapper.reload(AccountBookWrapper.java:498)
    at com.moneydance.apps.md.controller.AccountBookWrapper$
    LocalStorageWrapper.<init>(AccountBookWrapper.java:481)
    at com.moneydance.apps.md.controller.AccountBookWrapper.doInitialLoad(
    AccountBookWrapper.java:130)
    at com.moneydance.apps.md.controller.Main.setCurrentBook(Main.java:1210)
    at com.moneydance.apps.md.controller.Main.startApplication(Main.java:842)
    at com.moneydance.apps.md.controller.Main.main(Main.java:225)
    at Moneydance.main(Moneydance.java:7)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.exe4j.runtime.WinLauncher.main(Unknown Source)
    at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source)
    Caused by: javax.crypto.BadPaddingException: Given final block not properly
    padded
    at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:966)
    at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:824)
    at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:436)
    at javax.crypto.Cipher.doFinal(Cipher.java:2048)
    at javax.crypto.CipherInputStream.getMoreData(CipherInputStream.java:118)
    ... 16 more
    java.io.IOException: javax.crypto.BadPaddingException: Given final block
    not properly padded
    at javax.crypto.CipherInputStream.getMoreData(CipherInputStream.java:121)
    at javax.crypto.CipherInputStream.read(CipherInputStream.java:192)
    at com.infinitekind.tiksync.SyncRecord.readSet(SyncRecord.java:196)
    at com.moneydance.apps.md.controller.AccountBookWrapper$
    LocalStorageWrapper.reload(AccountBookWrapper.java:498)
    at com.moneydance.apps.md.controller.AccountBookWrapper$
    LocalStorageWrapper.<init>(AccountBookWrapper.java:481)
    at com.moneydance.apps.md.controller.AccountBookWrapper.doInitialLoad(
    AccountBookWrapper.java:130)
    at com.moneydance.apps.md.controller.Main.setCurrentBook(Main.java:1210)
    at com.moneydance.apps.md.controller.Main.startApplication(Main.java:842)
    at com.moneydance.apps.md.controller.Main.main(Main.java:225)
    at Moneydance.main(Moneydance.java:7)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)

  3. 3 Posted by Ian O on Aug 17, 2016 @ 06:03 PM

    Ian O's Avatar

    Hi Rod,

    I can see from your logs that you are running a slightly outdated version of Moneydance. Can you try upgrading to the preview version of Moneydance and see if this allows you to open your data? The preview version is Moneydance 2015.8 build 1369 and be downloaded from here.

    In regards to your backup file, the error you are seeing can sometimes be caused by the presence of a data set, of the same name, already existing in the folder Moneydance is attempting to restore to. Can you try placing your backup file in an a folder by itself, and then attempt to restore with Moneydance?

    If you are still unable to open your data after trying the above, please let me know and we can investigate further.

    Ian O
    Infinite Kind Support

  4. 4 Posted by Rod Tinnemore on Aug 24, 2016 @ 05:01 PM

    Rod Tinnemore's Avatar

    Ian,
    We were able to use the updated version of Moneydance and to back to an
    uncorrupted file, then add data and save. Seems to be working. Thanks for
    your help. Sorry for the delay in getting back to you.

    Rod Tinnemore

  5. 5 Posted by Ian O on Aug 25, 2016 @ 06:25 AM

    Ian O's Avatar

    Great! Glad to hear you're back up and running. I'll close this discussion now but please get in contact if you have any questions or need any assistance.

    Ian O
    Infinite Kind Support

  6. Ian O closed this discussion on Aug 25, 2016 @ 06:25 AM.

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