Why do I receive a java.lang.​NullPointe​rException and ComponentSizeAggregator error in the log file when attempting to install?

28 views (last 30 days)
During the download section of the MATLAB Installer, I receive a message stating "Error: The application encountered an unexpected error and needs to close. You may want to try re-installing your product(s)." The error message suggested I check my log file for more information. The log file contains this error among others:
java.lang.NullPointerException
at com.mathworks.install.ComponentSizeAggregator.add(ComponentSizeAggregator.java:13)
at com.mathworks.install.ProductInstallerImpl.downloadProducts(ProductInstallerImpl.java:96)
at com.mathworks.install.ProductInstallerImpl.installProducts(ProductInstallerImpl.java:57)
Why is this happening and how do I resolve this issue?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 10 Apr 2019
Edited: MathWorks Support Team on 10 Apr 2019
To resolve this issue, re-download the installer/products as it may have been corrupted during the download process and go through the installation again.
  1 Comment
Samuel Herschbein
Samuel Herschbein on 13 Mar 2014
I think this needs clarification. The directory to delete isn't where the application ends up (Windows: \Programs, Mac: /Applications)
It's in the user's Downloads directory (Windows: C:\Users\USERNAME\Downloads\MathWorks\R2014a, Mac:/Users/USERNAME/Downloads).

Sign in to comment.

More Answers (3)

Sean de Wolski
Sean de Wolski on 12 Mar 2014
The directory that you have to remove will likely look something like:
C:\Users\[yourusername]\Downloads\MathWorks\R2014a
Delete the whole MathWorks directory.
  1 Comment
Andreas Larsen
Andreas Larsen on 13 Mar 2014
thanks, I think its working now. I already removed two folders in the same directory and I wasnt expecting a third one.

Sign in to comment.


Andreas Larsen
Andreas Larsen on 12 Mar 2014
I'm getting the same error during the installation. I had the r2014a prerelease and at the moment I have no matlab installed due to this error, this is very frustrating.
I have removed the matlab folder in programs and appdata but I'm still getting the error.
BR Andreas
  1 Comment
Thomas Dearing
Thomas Dearing on 12 Mar 2014
I am having the same problem with installation. I also had the 2014 prerelease. My log errors shows this...
(Mar 12, 2014 10:32:51) Task MATLAB R2014a Startup Accelerator for C:\Program Files\MATLAB\R2014a\bin\win64\MATLABStartupAccelerator.exe exists
(Mar 12, 2014 10:32:51) Stopping task MATLAB R2014a Startup Accelerator
(Mar 12, 2014 10:32:51) java.lang.NullPointerException
at com.mathworks.install.ComponentSizeAggregator.add(ComponentSizeAggregator.java:13)
at com.mathworks.install.ProductInstallerImpl.downloadProducts(ProductInstallerImpl.java:96)
at com.mathworks.install.ProductInstallerImpl.installProducts(ProductInstallerImpl.java:57)
at com.mathworks.install.InstallerImpl.install(InstallerImpl.java:96)
at com.mathworks.installwizard.model.InstallTask.execute(InstallTask.java:46)
at com.mathworks.installwizard.model.AbstractBackgroundTask.execute(AbstractBackgroundTask.java:38)
at com.mathworks.installwizard.model.AbstractTask.call(AbstractTask.java:73)
at com.mathworks.installwizard.model.AbstractTask.call(AbstractTask.java:23)
at com.mathworks.wizard.worker.WorkerImpl.doInBackground(WorkerImpl.java:24)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
(Mar 12, 2014 10:32:51) Error: The application encountered an unexpected error and needs to close. You may want to try re-installing your product(s). More information can be found at C:\Users\Tom\AppData\Local\Temp\mathworks_Tom.log
(Mar 12, 2014 10:32:52) Exiting with status -1
(Mar 12, 2014 10:32:52) End - Unsuccessful

Sign in to comment.


Nafees  Ahmad
Nafees Ahmad on 20 Dec 2015
Edited: Walter Roberson on 21 Dec 2015
D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_Embedded_Coder64_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_HDL_Verifier42_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_Aerospace_Toolbox211_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_MATLAB_Report_Generator314_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_SystemTest265_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_System_Identification_Toolbox82_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_Image_Processing_Toolbox82_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_MATLAB_Coder24_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_RF_Toolbox212_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_Datafeed_Toolbox45_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_DO_Qualification_Kit21_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_Parallel_Computing_Toolbox62_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_Control_System_Toolbox95_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_Computer_Vision_System_Toolbox52_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_IEC_Certification_Kit31_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_Vehicle_Network_Toolbox20_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_MATLAB_Distributed_Computing_Server62_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_MATLAB_Compiler4181_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_Curve_Fitting_Toolbox331_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_MATLAB81_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_Bioinformatics_Toolbox43_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_Image_Acquisition_Toolbox45_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_Database_Toolbox41_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_MATLAB_Production_Server101_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_Simulink81_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_Fixed_Point_Designer40_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_Aerospace_Blockset311_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_Symbolic_Math_Toolbox510_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_MATLAB_Builder_NE413_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_Signal_Processing_Toolbox619_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_Instrument_Control_Toolbox33_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_Data_Acquisition_Toolbox33_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_DSP_System_Toolbox84_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_HDL_Coder32_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_Communications_System_Toolbox54_common.xml D:\2\MATLAB\Matlab801[2013]\archives\common\mwcontents_SimBiology43_common.xml

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by