choco icon indicating copy to clipboard operation
choco copied to clipboard

0.9.9.6 - "Object reference not set to an instance of an object" immediately during install/upgrade

Open ferventcoder opened this issue 10 years ago • 4 comments

Trying to find the cause of this, but first noted by this discussion: https://groups.google.com/d/msgid/chocolatey/7d4081de-ce17-4d8f-b059-fdafbd298409%40googlegroups.com

Upgrading the following packages:
jre8
By upgrading you accept licenses for the packages.
[ERROR] - Object reference not set to an instance of an object.
[DEBUG] - Exiting with 1

ferventcoder avatar May 26 '15 20:05 ferventcoder

I have had issues similar to this when running dependency packages... There were two cases that happened often (0.9.9.8);

  1. I had referenced an xml file that had bad elements and was corrupt
  2. A dependency package was reading values from a zip that window dropped from memory or something, essentially the reference became null (it could have been permissions or scope or something). We had a cmdlet that was called during a chocinstall script... that cmdlet then referenced and opened a zip in the choco pack that contains the chocoinstall script. It took advantage of the lib folder. So, there was loading of a temp object into memory... if that makes any sense. :P Anyway, there needed to be a safe load added to the reading of the packed item.

It could have something with reading jars.

Good luck!

Sorry for the poor examples. The link to the group isn't working for me.

Stevenpc3 avatar Jul 12 '16 17:07 Stevenpc3

Due to google groups not protecting email addresses, we had to close the group to members only. You would need to join the group first, then visit the link.

ferventcoder avatar Jul 12 '16 18:07 ferventcoder

Hi @ferventcoder !

It looks like I'm experiencing a similar error and I think I can help narrow it down.

Here's my log for record. All personal data has been [[ REDACTED ]]: choco.error.log

I believe that the issue lies within the NuGet.Protocol (Lines 167 & 169).

If "Object reference not set to an instance of an object." means anything to me, it's that an object that was created (probably from the resource created from NuGet.Protocol.Core) was being called, but got a NULL instead.

I'll see what I can find and continue posting here. What are your thoughts?

Thanks!

Corbin Meier.

CorbinIvon avatar Jun 30 '23 17:06 CorbinIvon

@CorbinIvon I would suggest opening a new issue, as NuGet.Protocol is referenced by Chocolatey CLI starting in v2.0.0, so you are seeing some new problem.

TheCakeIsNaOH avatar Jul 01 '23 02:07 TheCakeIsNaOH

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue will be closed in 14 days if it continues to be inactive.

github-actions[bot] avatar Feb 23 '24 04:02 github-actions[bot]

Dear contributor,

As this issue seems to have been inactive for quite some time now, it has been automatically closed. If you feel this is a valid issue, please feel free to re-open the issue if / when a pull request has been added. Thank you for your contribution.

github-actions[bot] avatar Mar 08 '24 04:03 github-actions[bot]