java.lang.NullPointerException error with Quoteloader

Shane Greenan's Avatar

Shane Greenan

24 Dec, 2020 03:53 AM

Hi
I just downloaded the latest version of Moneydance version 2021 (3032) onto a new computer
I get the following error when I try to install the quote loader extension. Note there are no other extensions loaded.

"java.lang.NullPointerException: Cannot invoke "com.moneydance.modules.features.mrbutil.MRBPreferences2.getMapData()" because "temp" is null"

Any help you can provide to resolve would be much appreciated
Thanks
Shane

  1. 1 Posted by dtd on 24 Dec, 2020 04:30 AM

    dtd's Avatar

    just a user

    I use quoteloader with 3032, but you may have a point about installation.

    I'm sure someone will get to you very soon.

  2. 2 Posted by derekkent23 on 24 Dec, 2020 08:56 AM

    derekkent23's Avatar

    I am not support staff, just a user.
    Hi Shane

    What is your operating system?

    As you talk about a new computer is 2021(3032) the first installation of Moneydance on this computer. If not what did you upgrade from?

    Again, is this your first install of Quote Loader on this computer? Are you installing via EXTENSIONS – MANAGE EXTENSIONS. If you are updating Quote Loader what build were you running?

    Close Moneydance. Open Moneydance and try to install Quote Loader from EXTENSIONS – MANAGE EXTENSIONS and if it fails close Moneydance and post your Moneydance errlog.txt file.

    If you're using Mac OS, 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 you can open Finder and hold down the option key while selecting the Go menu and the Library folder option should occur or you can open Finder and select Go -> Go to Folder and copy and paste in the following:
    ~/Library This should pull up your local Library folder.
    If you're using Windows, it should be located under your login directory at:
    C:\Users(yourusername).moneydance\errlog.txt
    or
    C:\Documents and Settings(yourusername).moneydance\errlog.txt
    Depending on your version of Windows
    If you're using Linux it should be located in your home folder at:
    ~/.moneydance/errlog.txt

    Hope this helps.

  3. 3 Posted by Shane Greenan on 22 Jan, 2021 04:13 AM

    Shane Greenan's Avatar

    Thanks for your help.
    Followed the instructions and have checked the containers folder and the applications support folder in the home library.  Neither contain the errorlog.txt file mentioned

    This is the error message I get after installing Quote Loader then then selecting it under Extensions 

    java.lang.NullPointerException: Cannot invoke "com.moneydance.modules.features.mrbutil.MRBPreferences2.getMapData()" because "temp" is null

    Computer and OS details are
    2020 MacbookPro 13 inch M1 chip
    OS 11.0.1 (Big Sur)
    This is the first time I’ve installed Moneydance on this computer.  The Moneydance version is 2021 (3032).

    Any more help you can provide would be much appreciated.

    Shane




    On 24 December 2020 at 19:56:34, derekkent23 ([email blocked]) wrote:

    // Please reply above this line
    ==================================================

    From: derekkent23

    I am not support staff, just a user.
    Hi Shane

    What is your operating system?

    As you talk about a new computer is 2021(3032) the first installation of Moneydance on this computer. If not what did you upgrade from?

    Again, is this your first install of Quote Loader on this computer? Are you installing via EXTENSIONS – MANAGE EXTENSIONS. If you are updating Quote Loader what build were you running?

    Close Moneydance. Open Moneydance and try to install Quote Loader from EXTENSIONS – MANAGE EXTENSIONS and if it fails close Moneydance and post your Moneydance errlog.txt file.

    If you're using Mac OS, 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 you can open Finder and hold down the option key while selecting the Go menu and the Library folder option should occur or you can open Finder and select Go -> Go to Folder and copy and paste in the following:
    ~/Library This should pull up your local Library folder.
    If you're using Windows, it should be located under your login directory at:
    C:\Users(yourusername).moneydance\errlog.txt
    or
    C:\Documents and Settings(yourusername).moneydance\errlog.txt
    Depending on your version of Windows
    If you're using Linux it should be located in your home folder at:
    ~/.moneydance/errlog.txt

    Hope this helps.

    On Wed, Dec 23 at 08:30 PM PST, dtd wrote:

    just a user

    I use quoteloader with 3032, but you may have a point about installation.

    I'm sure someone will get to you very soon.

    Having trouble reading this? View this discussion online: java.lang.NullPointerException error with Quoteloader.

    Reply with #ignore to stop receiving notifications for this discussion.

  4. 4 Posted by Mike Bray on 22 Jan, 2021 09:23 AM

    Mike Bray 's Avatar

    Hi Shane, where is your data file located? The error message you are getting tells me that QL is having problems creating its preferences file. There should be a file called MRBPreferences.dict2 in the same directory as your data. Another thing to look at, did you copy your data from an older computer that was using an older version of QL?
    Regards
    Mike

  5. 5 Posted by shane on 23 Jan, 2021 06:14 AM

    shane's Avatar

    Hi Mike
    Thanks for your response.

    I’m using data from an older computer that was using an older version of QuoteLoader.  I followed the instructions to switch the data to the new computer
     (1. Open up Moneydance on your current computer, and open the data file you wish to move. Go to File -> Syncing from the menubar, and disable syncing. Quit Moneydance. 
    2. Next, find your data file on your old computer, copy it over to your new computer, and place it where you want to store it.)

    The data is located in a folder in my iCloud Drive. I did move the data location when I moved to the new computer
    There is not a  MRBPreferences.dict2 file in the same location as the data.  

    Does this help identify a solution?

    Thanks

    Shane

    On 22 January 2021 at 20:23:51, Mike Bray ([email blocked]) wrote:

    // Please reply above this line
    ==================================================

    From: Mike Bray

    Hi Shane, where is your data file located? The error message you are getting tells me that QL is having problems creating its preferences file. There should be a file called MRBPreferences.dict2 in the same directory as your data. Another thing to look at, did you copy your data from an older computer that was using an older version of QL?
    Regards
    Mike

    On Thu, Jan 21 at 08:13 PM PST, Shane Greenan wrote:

    Thanks for your help.
    Followed the instructions and have checked the containers folder and the applications support folder in the home library.  Neither contain the errorlog.txt file mentioned

    This is the error message I get after installing Quote Loader then then selecting it under Extensions 

    java.lang.NullPointerException: Cannot invoke "com.moneydance.modules.features.mrbutil.MRBPreferences2.getMapData()" because "temp" is null

    Computer and OS details are
    2020 MacbookPro 13 inch M1 chip
    OS 11.0.1 (Big Sur)
    This is the first time I’ve installed Moneydance on this computer.  The Moneydance version is 2021 (3032).

    Any more help you can provide would be much appreciated.

    Shane

  6. 6 Posted by Mike Bray on 23 Jan, 2021 09:17 AM

    Mike Bray 's Avatar

    Hi Shane, the issue might be the iCloud drive, my extension can not create a file on it. Can I ask that you copy the data to your hard drive and try it again. If this is successful, try copying the data file back to your hard drive and trying QL again. The error tells me it can't create file MRBPreferences.dict2. iCloud could be stopping this but it might allow me to open it once it has been created.

  7. 7 Posted by Shane Greenan on 23 Jan, 2021 10:24 AM

    Shane Greenan's Avatar
    Hi Mike 

    Thanks
    No luck I’m afraid
    Have moved the data file to my hard drive.
    Have installed and uninstalled Quote Loader a few times
    Still get the error message
    "java.lang.NullPointerException: Cannot invoke "com.moneydance.modules.features.mrbutil.MRBPreferences2.getMapData()" because "temp" is null”

    Thanks for your persistence on this one.

    Shane

    On 23 January 2021 at 20:18:02, Mike Bray ([email blocked]) wrote:

    // Please reply above this line
    ==================================================

    From: Mike Bray

    Hi Shane, the issue might be the iCloud drive, my extension can not create a file on it. Can I ask that you copy the data to your hard drive and try it again. If this is successful, try copying the data file back to your hard drive and trying QL again. The error tells me it can't create file MRBPreferences.dict2. iCloud could be stopping this but it might allow me to open it once it has been created.

    On Fri, Jan 22 at 10:14 PM PST, shane wrote:

    Hi Mike
    Thanks for your response.

    I’m using data from an older computer that was using an older version of QuoteLoader.  I followed the instructions to switch the data to the new computer
     (1. Open up Moneydance on your current computer, and open the data file you wish to move. Go to File -> Syncing from the menubar, and disable syncing. Quit Moneydance. 
    2. Next, find your data file on your old computer, copy it over to your new computer, and place it where you want to store it.)

    The data is located in a folder in my iCloud Drive. I did move the data location when I moved to the new computer
    There is not a  MRBPreferences.dict2 file in the same location as the data.  

    Does this help identify a solution?

    Thanks

    Shane

    On 22 January 2021 at 20:23:51, Mike Bray ([email blocked]) wrote:

    // Please reply above this line
    ==================================================

    From: Mike Bray

    Hi Shane, where is your data file located? The error message you are getting tells me that QL is having problems creating its preferences file. There should be a file called MRBPreferences.dict2 in the same directory as your data. Another thing to look at, did you copy your data from an older computer that was using an older version of QL?
    Regards
    Mike

    On Thu, Jan 21 at 08:13 PM PST, Shane Greenan wrote:

    Thanks for your help.
    Followed the instructions and have checked the containers folder and the applications support folder in the home library.  Neither contain the errorlog.txt file mentioned

    This is the error message I get after installing Quote Loader then then selecting it under Extensions 

    java.lang.NullPointerException: Cannot invoke "com.moneydance.modules.features.mrbutil.MRBPreferences2.getMapData()" because "temp" is null

    Computer and OS details are
    2020 MacbookPro 13 inch M1 chip
    OS 11.0.1 (Big Sur)
    This is the first time I’ve installed Moneydance on this computer.  The Moneydance version is 2021 (3032).

    Any more help you can provide would be much appreciated.

    Shane

    Having trouble reading this? View this discussion online: java.lang.NullPointerException error with Quoteloader.

    Reply with #ignore to stop receiving notifications for this discussion.

  8. 8 Posted by Mike Bray on 25 Jan, 2021 08:47 AM

    Mike Bray 's Avatar

    Hi Shane, try downloading this file and place it in the folder for your data. This folder should have the following:

    folder safe
    folder tmp
    file key

    Rename the file to MRBPreferences.dict2, and try opening MD and running QL

  9. 9 Posted by Mike Bray on 25 Jan, 2021 08:55 AM

    Mike Bray 's Avatar

    If this does not work please can you post the errlog.txt file. The easiest way to get a copy of the error log is to click on Help/Console Window. This displays the error log. Click on save at the bottom and a file explorer will be opened. Locate the folder where you want the file located, click on Save. A copy of the file is written to the selected folder. You can then attach it to a post.

  10. Support Staff 10 Posted by Sean Reilly on 25 Jan, 2021 10:03 AM

    Sean Reilly's Avatar

    Hi Shane,

    Please don't keep your moneydance data file in an iCloud Drive folder. The Moneydance data file is actually a folder (called a "bundle") which contains multiple subfolders and many internal files. iCloud Drive will remove those internal files in order to download them "on demand" but to moneydance the files are not actually there which can result in very bad things.

    Can you move your data file in the Finder to a folder that is not stored in iCloud, preferably Moneydance's internal folder?

    Thanks,
    Sean

    --
    Moneydance Developer

  11. 11 Posted by shane on 31 Jan, 2021 07:50 AM

    shane's Avatar

    Hi Mike 

    This is the log in the console window of my Moneydance.
    Does this help?
    Thanks
    Shane

    Starting Moneydance 2021 (3032) at Sun Jan 31 17:44:17 AEDT 2021
    Settings Folder: /Users/sgreenan/Library/Containers/com.infinitekind.MoneydanceOSX/Data/Library/Application Support/Moneydance
    OS: Mac OS X 10.16 x86_64
    Java: 15.0.1 (AdoptOpenJDK)
    Is in sandbox: true; restricted file access: false
    initialized extension securityquoteload in 0.065 seconds
    Quote Load>INFO:17:44:18-main(Quote Load,Init) Started Build 3027
    Quote Load>INFO:17:44:18-main(Quote Load,Init) Locale en_AU
    Initializing fonts:
      default: [[null, SF Pro Display, SF Display, Helvetica Neue, Helvetica, Lucida Grande, Dialog]]
      monospaced: [[null, Gill Sans, Menlo, Monaco, Monospaced]]
      coding: [[Hack, Monospaced]]
    fonts resolved:
     default: null:13.0:style0
     mono: null:13.0:style0
     coding: Hack:13.0:style0
     print: Helvetica:12.0:style0
     header: null:15.0:style0
     register: null:12.0:style0
     reportTitle: null:32.0:style0
     calendarTitle: null:12.0:style0
     reportHeader: null:11.0:style0
     detailTitle: null:15.0:style0
    No custom theme file was found
    Setting look and feel class to com.apple.laf.AquaLookAndFeel
    opening last file: /Users/sgreenan/Moneydance on hard drive/Money Dance 6 July v2.moneydance
    loading dataset: /Users/sgreenan/Moneydance on hard drive/Money Dance 6 July v2.moneydance
    creatingURLStreamHandler for protocol 'http'
    loading with 128 bit encryption key
    reading trunk data tiksync/trunk
    trunk data loaded (0.894 seconds), checking for incremental updates
    loading un-synced txn files...
    loading synced txn files...
    replacing root: null () with new root: Root Account (caff4808-0713-42d4-b610-a8710fa0c979
    Exception dispatching event md:file:opened to extension
    java.lang.NullPointerException: Cannot invoke "com.moneydance.modules.features.mrbutil.MRBPreferences2.getMapData()" because "temp" is null
    at com.moneydance.modules.features.mrbutil.MRBPreferences2.<init>(MRBPreferences2.java:47)
    at com.moneydance.modules.features.mrbutil.MRBPreferences2.loadPreferences(MRBPreferences2.java:86)
    at com.moneydance.modules.features.securityquoteload.Main.handleEventFileOpened(Main.java:206)
    at com.moneydance.modules.features.securityquoteload.Main.handleEvent(Main.java:193)
    at com.moneydance.apps.md.controller.Main.sendEventToExtensions(Main.java:1691)
    at com.moneydance.apps.md.controller.AppEventManager.fireEvent(AppEventManager.java:59)
    at com.moneydance.apps.md.controller.Main.setCurrentBook(Main.java:1454)
    at com.moneydance.apps.md.controller.Main.startApplication(Main.java:893)
    at com.moneydance.apps.md.controller.Main.main(Main.java:233)
    at Moneydance.main(Moneydance.java:7)
    calculated portfolio cost basis in 0.049 seconds
    calculated portfolio cost basis in 0.274 seconds
    calculated portfolio cost basis in 0.104 seconds
    calculated portfolio cost basis in 0.088 seconds
    calculated portfolio cost basis in 0.106 seconds
    calculated portfolio cost basis in 0.098 seconds
    calculated portfolio cost basis in 0.095 seconds
    calculated portfolio cost basis in 0.104 seconds
    calculated portfolio cost basis in 0.103 seconds
    calculated portfolio cost basis in 0.09 seconds
    calculated portfolio cost basis in 0.182 seconds
    calculated portfolio cost basis in 0.012 seconds
    calculated portfolio cost basis in 0.011 seconds
    calculated portfolio cost basis in 0.26 seconds
    calculated portfolio cost basis in 0.085 seconds
    calculated portfolio cost basis in 0.089 seconds
    calculated portfolio cost basis in 0.087 seconds
    calculated portfolio cost basis in 0.179 seconds
    calculated portfolio cost basis in 0.013 seconds

    Shane Greenan
    Mobile
    +61 405 442 829
    Email       [email blocked]

  12. 12 Posted by shane on 31 Jan, 2021 07:51 AM

    shane's Avatar

    Thanks Sean
    Have moved the file to my hard drive

    Cheers

    Shane
    Shane Greenan
    Mobile
    +61 405 442 829
    Email       [email blocked]

  13. 13 Posted by Mike Bray on 31 Jan, 2021 08:14 AM

    Mike Bray 's Avatar

    Hi Shane, I have uploaded a new version of QL to https://bitbucket.org/mikerb/moneydance-2019/downloads/. It is called securityquoteload3028.mxt.

    Please download it and rename to securityquoteload.mxt.
    Start MD
    Remove Quote Loader
    Add the new file ('Add from File'). Note this will have an error message about not being signed. Just click on OK
    Restart MD
    Select Quote Loader from the extensions menu.
    If this works then you can remove the new version and go back to the distributed version
    If not please post the error log.

    Thanks
    Mike

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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