NullPointerException when trying to uninstall NetBeans 12.0 - netbeans

I'm trying to uninstall NetBeans 12.0, but the wizard throws the following exception at startup:
Exception: java.lang.NullPointerException: null
The log says this:
[2020-08-11 14:03:20.249]: initializing product registry properties
[2020-08-11 14:03:20.249]: exiting -- org.netbeans.installer.product.Registry.initializeRegistry():170
[2020-08-11 14:03:20.253]: ... loading registry from file:/C:/Users/Kai/.nbi/registry.xml
[2020-08-11 14:03:20.311]: entering -- org.netbeans.installer.product.Registry.loadProductRegistry():981
[2020-08-11 14:03:20.312]: validating previous installations
[2020-08-11 14:03:20.378]: NameResolver - to parse C:\Program Files\NetBeans 8.2
[2020-08-11 14:03:20.392]: NameResolver - to parse C:\Program Files\NetBeans-12.0
[2020-08-11 14:03:20.396]: NameResolver - to parse C:\Program Files\NetBeans-12.0
[2020-08-11 14:03:20.404]: NameResolver - to parse C:\Program Files\NetBeans 8.2\bin\jre
[2020-08-11 14:03:20.407]: NameResolver - to parse C:\Program Files\NetBeans-12.0
[2020-08-11 14:03:20.410]: NameResolver - to parse C:\Program Files\NetBeans-12.0
[2020-08-11 14:03:20.414]: NameResolver - to parse C:\Program Files\NetBeans-12.0
[2020-08-11 14:03:20.417]: NameResolver - to parse C:\Program Files\NetBeans-12.0
[2020-08-11 14:03:20.424]: NameResolver - to parse C:\Program Files\NetBeans 8.2
[2020-08-11 14:03:20.425]: ... validating installations finished
[2020-08-11 14:03:20.425]: exiting -- org.netbeans.installer.product.Registry.loadProductRegistry():981
[2020-08-11 14:03:20.425]: ... loading registry from resource:data/registry.xml
[2020-08-11 14:03:20.434]: entering -- org.netbeans.installer.product.Registry.loadProductRegistry():981
[2020-08-11 14:03:20.434]: validating previous installations
[2020-08-11 14:03:20.434]: NameResolver - to parse C:\Program Files\NetBeans 8.2
[2020-08-11 14:03:20.435]: NameResolver - to parse C:\Program Files\NetBeans-12.0
[2020-08-11 14:03:20.437]: NameResolver - to parse C:\Program Files\NetBeans-12.0
[2020-08-11 14:03:20.437]: NameResolver - to parse C:\Program Files\NetBeans 8.2\bin\jre
[2020-08-11 14:03:20.438]: NameResolver - to parse C:\Program Files\NetBeans-12.0
[2020-08-11 14:03:20.439]: NameResolver - to parse C:\Program Files\NetBeans-12.0
[2020-08-11 14:03:20.440]: NameResolver - to parse C:\Program Files\NetBeans-12.0
[2020-08-11 14:03:20.441]: NameResolver - to parse C:\Program Files\NetBeans-12.0
[2020-08-11 14:03:20.442]: NameResolver - to parse C:\Program Files\NetBeans 8.2
[2020-08-11 14:03:20.443]: ... validating installations finished
[2020-08-11 14:03:20.443]: exiting -- org.netbeans.installer.product.Registry.loadProductRegistry():981
[2020-08-11 14:03:20.447]: An unexpected exception happened in thread Thread-2
[2020-08-11 14:03:20.448]: java.lang.NullPointerException
[2020-08-11 14:03:20.448]: at org.netbeans.installer.utils.helper.Version.equals(Version.java:69)
[2020-08-11 14:03:20.448]: at org.netbeans.installer.product.Registry.changeStatuses(Registry.java:600)
[2020-08-11 14:03:20.448]: at org.netbeans.installer.product.Registry.initializeRegistry(Registry.java:184)
[2020-08-11 14:03:20.448]: at org.netbeans.installer.wizard.components.actions.InitializeRegistryAction.execute(InitializeRegistryAction.java:53)
[2020-08-11 14:03:20.448]: at org.netbeans.installer.wizard.components.actions.netbeans.NbInitializationAction.execute(NbInitializationAction.java:69)
[2020-08-11 14:03:20.448]: at org.netbeans.installer.wizard.components.WizardAction$1.run(WizardAction.java:103)
[2020-08-11 14:03:20.448]: ... show message dialog
[2020-08-11 14:03:20.448]: title: Critical Error
[2020-08-11 14:03:20.448]: message: An unexpected exception happened in thread Thread-2
[2020-08-11 14:03:20.449]:
[2020-08-11 14:03:20.449]: Exception:
[2020-08-11 14:03:20.449]: java.lang.NullPointerException:
[2020-08-11 14:03:20.449]: null
[2020-08-11 14:03:20.449]:
[2020-08-11 14:03:20.449]: You can get more details about the issue in the installer log file:
[2020-08-11 14:03:20.449]: C:\Users\Kai\.nbi\log\20200811140318.log
[2020-08-11 14:03:27.074]: ... dialog closed
Does anyone have an idea how to fix this error or uninstall NetBeans 12.0 using another method?

After some trial and error, the following method worked for me:
Go into your user directory (C:\Users\YourUsername\) and locate the .nbi directory inside of it
Delete the .nbi directory (or move it to another location)
Run the NetBeans 12.0 uninstaller
After that, the uninstall wizard couldn't find the registry keys for NetBeans 12.0 and stopped the uninstalling process. To fix this, I did the following:
Delete your Netbeans 12.0 directory (C:\Programs\NetBeans 12.0\)
Install NetBeans 12.0 again with the install wizard
Uninstall NetBeans 12.0 via Windows 10 settings
Finally, I was able to uninstall NetBeans 12.0 with no Nullpointer Exception.

Related

cmake in vsc doesn't find generator

I need help. I tried everything. I want build a project with cmake in C++ in visual studio code.
I always get this error message.
[variant] Loaded new set of variants
[kit] Successfully loaded 9 kits from C:\Users\beatb\AppData\Local\CMakeTools\cmake-tools-kits.json
[kit] Failed to parse cmake.exe:
SyntaxError: JSON5: invalid character 'M' at 1:1
at syntaxError (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:35543:17)
at invalidChar (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:35488:12)
at Object.value (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:34747:15)
at lex (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:34538:42)
at Object.parse (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:34485:17)
at readKitsFile (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:57032:26)
at async Object.getAdditionalKits (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:57088:48)
at async KitsController.readKits (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:57264:35)
at async Function.init (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:57208:9)
at async Function.init (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:55478:32)
at async CMakeToolsFolderController._addFolder (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:55727:22)
at async CMakeToolsFolderController.loadAllCurrent (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:55679:17)
at async ExtensionManager._init (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:54050:13)
at async Function.create (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:54102:9)
at async setup (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:55194:32)
at async Promise.all (index 0)
at async Promise.all (index 100)
at async Promise.all (index 1)
[proc] Executing command: C:\msys64\mingw64\bin\x86_64-w64-mingw32-gcc.exe -v
[main] Configuring folder: HelloWorld
[proc] Executing command: "C:\Program Files\Cmake\bin\cmake.exe" --no-warn-unused-cli -
DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -
DCMAKE_C_COMPILER:FILEPATH=C:\msys64\mingw64\bin\x86_64-w64-mingw32-gcc.exe -
DCMAKE_CXX_COMPILER:FILEPATH=C:\msys64\mingw64\bin\x86_64-w64-mingw32-g++.exe -
Hc:/Users/beatb/OneDrive/Documents/Programmieren/C++/HelloWorld -
Bc:/Users/beatb/OneDrive/Documents/Programmieren/C++/HelloWorld/build -G "MSYS Makefiles"
[cmake] Not searching for unused variables given on the command line.
[cmake] CMake Error: CMake was unable to find a build program corresponding to "MSYS
Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
[cmake] CMake Error: CMake was unable to find a build program corresponding to "MSYS Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
[cmake] CMake Error: CMAKE_AR was not found, please set to archive program.
[cmake] -- Configuring incomplete, errors occurred!
[main] Configuring folder: HelloWorld
[proc] Executing command: "C:\Program Files\Cmake\bin\cmake.exe" --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=C:\msys64\mingw64\bin\x86_64-w64-mingw32-gcc.exe -DCMAKE_CXX_COMPILER:FILEPATH=C:\msys64\mingw64\bin\x86_64-w64-mingw32-g++.exe -Hc:/Users/beatb/OneDrive/Documents/Programmieren/C++/HelloWorld -Bc:/Users/beatb/OneDrive/Documents/Programmieren/C++/HelloWorld/build -G "MSYS Makefiles"
[cmake] Not searching for unused variables given on the command line.
[cmake] CMake Error: CMake was unable to find a build program corresponding to "MSYS Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
[cmake] CMake Error: CMake was unable to find a build program corresponding to "MSYS Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
[cmake] -- Configuring incomplete, errors occurred!
[cmake] CMake Error: CMAKE_AR was not found, please set to archive program.
[main] Restarting the CMake driver after a generator change.
[proc] Executing command: C:\msys64\mingw64\bin\x86_64-w64-mingw32-gcc.exe -v
[cmakefileapi-driver] Removing c:/Users/beatb/OneDrive/Documents/Programmieren/C++/HelloWorld/build/CMakeCache.txt
[rollbar] Unhandled exception: Unhandled Promise rejection: quickStart Error: No usable generator found. {}
[main] Restarting the CMake driver after a generator change.
[rollbar] Unhandled exception: Unhandled Promise rejection: quickStart Error: No usable generator found. {}
[rollbar] Unhandled exception: Unhandled Promise rejection: quickStart Error: No usable generator found. {}
[main] Restarting the CMake driver after a generator change.
[rollbar] Unhandled exception: Unhandled Promise rejection: quickStart Error: No usable generator found. {}
[main] Restarting the CMake driver after a generator change.
[rollbar] Unhandled exception: Unhandled Promise rejection: quickStart Error: No usable generator found. {}
[rollbar] Unhandled exception: Unhandled Promise rejection: quickStart Error: No usable generator found. {}
[main] Restarting the CMake driver after a generator change.
[rollbar] Unhandled exception: Unhandled Promise rejection: quickStart Error: No usable generator found. {}
[rollbar] Unhandled exception: Unhandled Promise rejection: quickStart Error: No usable generator found. {}
[main] Restarting the CMake driver after a generator change.
[rollbar] Unhandled exception: Unhandled Promise rejection: quickStart Error: No usable generator found. {}
This is the the code in my settings.json
{
"files.autoSave": "afterDelay",
"kite.showWelcomeNotificationOnStartup": false,
"code-runner.executorMap": {
"c": "cd $dir && gcc *.c -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"cpp": "cd $dir && g++ *.cpp -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
},
"code-runner.runInTerminal": true,
"code-runner.ignoreSelection": true,
"cmake.configureOnOpen": true,
"cmake.cmakePath": "C:\\Program Files\\Cmake\\bin\\cmake.exe",
"cmake.additionalKits": [
"C:\\Program Files\\Cmake\\bin\\cmake.exe"
],
"cmake.generator": "mingw32-make"
}
The compiler I use is mingw. If I use the Visual Studio Build Tool as my kit everything works fine. I just have problems when I use GCC 10.3.0 x86_w64-mingw32.
I hope somebody can help me.
Found the error myself. I had to change the filename "mingw32-make.exe" (in the bin Folder of MinGW) into "make.exe". Now it works perfectly.

VS Code error: Unable to write to folder settings because no resource is provided

When I start VS Code, I get the error 'Unable to write to Folder Settings because no resource is provided.' How can I identify what's causing this and resolve it?
VS Code: 1.57.1
code-server: 3.11.0
OS: Ubuntu 18.04
Extensions:
Python: v2021.6.944021595
Jupyter: v2021.6.99

Visual Studio 2019 connection problem to NuGet

I reinstalled (clean) Visual Studio 2019 (Microsoft Visual Studio Community 2019 Version 16.8.5) and I get error when I try to clean solution, it complains about connection to https://api.nuget.org/v3/index.json.
When I copy paste the link to web browser I see all the packages but VS cannot reach any package.
When I rebuild I get all this error: 'obj\project.assets.json' not found. Run a NuGet package restore to generate this file.
Then I do from NuGet Console > dotnet restore and I get error:
PM> dotnet restore
Determining projects to restore...
C:\Program Files\dotnet\sdk\5.0.103\NuGet.targets(131,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [C:\Program Files (x86)\Microsoft V
isual Studio\2019\Community\MyProjects2019\source\repos\Bank\Bank.sln]
C:\Program Files\dotnet\sdk\5.0.103\NuGet.targets(131,5): error : The SSL connection could not be established, see inner exception. [C:\Program Files (x86)\Microsoft Visual Studio\
2019\Community\MyProjects2019\source\repos\Bank\Bank.sln]
C:\Program Files\dotnet\sdk\5.0.103\NuGet.targets(131,5): error : The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot [C:\Program Files (x86
)\Microsoft Visual Studio\2019\Community\MyProjects2019\source\repos\Bank\Bank.sln]
PM>
I have been trying for 4 days to resolve this problem without success, any help, any tips.
Thanks

Delphi compiling to Linux ld-linux.exe: error: cannot find bplrtl270.so

After upgrading to Delphi 10.4.1 , I installed PAServer on Linux Ubunto 18.04.5 and updated SDK Local File Cache , there were no errors in these processes.
However when I converted my existing applications or tried to create a new one for Linux-64 I got the following error :
> [DCC Error] E2597 C:\Program Files
> (x86)\Embarcadero\Studio\21.0\bin\ld-linux.exe: error: cannot find
> bplrtl270.so
following this error there may others :
C:\Program Files (x86)\Embarcadero\Studio\21.0\bin\ld-linux.exe: error: cannot find bplemsserverapi270.so
C:\Program Files (x86)\Embarcadero\Studio\21.0\bin\ld-linux.exe: error: cannot find bpldbrtl270.so
C:\Program Files (x86)\Embarcadero\Studio\21.0\bin\ld-linux.exe: error: cannot find bplbindengine270.so
C:\Program Files (x86)\Embarcadero\Studio\21.0\bin\ld-linux.exe: error: cannot find bplbindcomp270.so
C:\Program Files (x86)\Embarcadero\Studio\21.0\bin\ld-linux.exe: error: cannot find bplRESTComponents270.so
C:\Program Files (x86)\Embarcadero\Studio\21.0\bin\ld-linux.exe: error: cannot find bplFireDAC270.so
C:\Program Files (x86)\Embarcadero\Studio\21.0\bin\ld-linux.exe: error: cannot find bplFireDACCommon270.so
C:\Program Files (x86)\Embarcadero\Studio\21.0\bin\ld-linux.exe: error: cannot find bplFireDACCommonDriver270.so
C:\Program Files (x86)\Embarcadero\Studio\21.0\bin\ld-linux.exe: error: cannot find bplxmlrtl270.so
C:\Program Files (x86)\Embarcadero\Studio\21.0\bin\ld-linux.exe: error: cannot find bplFireDACOracleDriver270.so
I've already checked a similar question here , followed their suggestions , but I have no success , maybe due to different Delphi version!
Thks in advance for you help !
Had this problem today. First thing is to check do you have these files. If no - you can try to reinstall Linux64 platform (recommendation found on other forum).
If you have these files but Delphi can't find them (my case) - you can try to add path to the library. I found my "so" files in "...Studio\21.0\binlinux64". So way to add is:
Options- Language - Delphi - Library - select "Linux Platform" - Library path - add "$(BDS)\binlinux64"

Trouble with installing PyDev with Eclipse on Ubuntu

I am trying to install the PyDev 3.2 plugin for Ecplise, but everytime I run the install, I get the following error:
"Installing Software" has encountered a problem. An error occurred
while collecting items to be installed
Details: An error occurred while collecting items to be installed
session context was:(profile=PlatformProfile,
phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
action=). Problems downloading artifact:
osgi.bundle,com.python.pydev,3.2.0.201312292215. Error reading signed
content:/tmp/signatureFile6646901265687886222.jar An error occurred
while processing the signatures for the file:
/tmp/signatureFile6646901265687886222.jar Problems downloading
artifact: osgi.bundle,com.python.pydev.analysis,3.2.0.201312292215.
Error reading signed content:/tmp/signatureFile8322218222344706204.jar
An error occurred while processing the signatures for the file:
/tmp/signatureFile8322218222344706204.jar Problems downloading
artifact:
osgi.bundle,com.python.pydev.codecompletion,3.2.0.201312292215. Error
reading signed content:/tmp/signatureFile4187876602334151122.jar An
error occurred while processing the signatures for the file:
/tmp/signatureFile4187876602334151122.jar Problems downloading
artifact: osgi.bundle,com.python.pydev.debug,3.2.0.201312292215. Error
reading signed content:/tmp/signatureFile840461721745061470.jar An
error occurred while processing the signatures for the file:
/tmp/signatureFile840461721745061470.jar Problems downloading
artifact: osgi.bundle,com.python.pydev.fastparser,3.2.0.201312292215.
Error reading signed content:/tmp/signatureFile5939716086787202212.jar
An error occurred while processing the signatures for the file:
/tmp/signatureFile5939716086787202212.jar Problems downloading
artifact: osgi.bundle,com.python.pydev.refactoring,3.2.0.201312292215.
Error reading signed content:/tmp/signatureFile5983502155453326050.jar
An error occurred while processing the signatures for the file:
/tmp/signatureFile5983502155453326050.jar Problems downloading
artifact: osgi.bundle,org.python.pydev,3.2.0.201312292215. Error
reading signed content:/tmp/signatureFile600668738412712747.jar An
error occurred while processing the signatures for the file:
/tmp/signatureFile600668738412712747.jar Problems downloading
artifact: osgi.bundle,org.python.pydev.ast,3.2.0.201312292215. Error
reading signed content:/tmp/signatureFile6189606464558584760.jar An
error occurred while processing the signatures for the file:
/tmp/signatureFile6189606464558584760.jar Problems downloading
artifact: osgi.bundle,org.python.pydev.core,3.2.0.201312292215. Error
reading signed content:/tmp/signatureFile6135779137355138711.jar An
error occurred while processing the signatures for the file:
/tmp/signatureFile6135779137355138711.jar Problems downloading
artifact:
osgi.bundle,org.python.pydev.customizations,3.2.0.201312292215. Error
reading signed content:/tmp/signatureFile2057323306953091956.jar An
error occurred while processing the signatures for the file:
/tmp/signatureFile2057323306953091956.jar Problems downloading
artifact: osgi.bundle,org.python.pydev.debug,3.2.0.201312292215. Error
reading signed content:/tmp/signatureFile3794762954725200474.jar An
error occurred while processing the signatures for the file:
/tmp/signatureFile3794762954725200474.jar Problems downloading
artifact: osgi.bundle,org.python.pydev.django,3.2.0.201312292215.
Error reading signed content:/tmp/signatureFile4700622517373608280.jar
An error occurred while processing the signatures for the file:
/tmp/signatureFile4700622517373608280.jar Problems downloading
artifact:
org.eclipse.update.feature,org.python.pydev.feature,3.2.0.201312292215.
Error reading signed content:/tmp/signatureFile4649080137514243742.jar
An error occurred while processing the signatures for the file:
/tmp/signatureFile4649080137514243742.jar Problems downloading
artifact: osgi.bundle,org.python.pydev.help,3.2.0.201312292215. Error
reading signed content:/tmp/signatureFile7141789939237504108.jar An
error occurred while processing the signatures for the file:
/tmp/signatureFile7141789939237504108.jar Problems downloading
artifact: osgi.bundle,org.python.pydev.jython,3.2.0.201312292215.
Error reading signed content:/tmp/signatureFile999992598312145305.jar
An error occurred while processing the signatures for the file:
/tmp/signatureFile999992598312145305.jar Problems downloading
artifact: osgi.bundle,org.python.pydev.parser,3.2.0.201312292215.
Error reading signed content:/tmp/signatureFile2339395630123873267.jar
An error occurred while processing the signatures for the file:
/tmp/signatureFile2339395630123873267.jar Problems downloading
artifact: osgi.bundle,org.python.pydev.refactoring,3.2.0.201312292215.
Error reading signed content:/tmp/signatureFile5389215905872460392.jar
An error occurred while processing the signatures for the file:
/tmp/signatureFile5389215905872460392.jar Problems downloading
artifact: osgi.bundle,org.python.pydev.shared_core,3.2.0.201312292215.
Error reading signed content:/tmp/signatureFile2299502152167212708.jar
An error occurred while processing the signatures for the file:
/tmp/signatureFile2299502152167212708.jar Problems downloading
artifact:
osgi.bundle,org.python.pydev.shared_interactive_console,3.2.0.201312292215.
Error reading signed content:/tmp/signatureFile5902210021605760235.jar
An error occurred while processing the signatures for the file:
/tmp/signatureFile5902210021605760235.jar Problems downloading
artifact: osgi.bundle,org.python.pydev.shared_ui,3.2.0.201312292215.
Error reading signed content:/tmp/signatureFile1585283163601835907.jar
An error occurred while processing the signatures for the file:
/tmp/signatureFile1585283163601835907.jar
Ubuntu Version: 12.04.4 LTS
Eclipse Platform: 3.7.2 (downloaded through software center)
PyDev Version: 3.2
I have tried various solutions, including unzipping and installation through the command prompt. Thanks.
In case you don't specifically need PyDev 3.2 : On the installation dialog, uncheck the box "Show only the latest versions of available software" and select the PyDev 2.8.2 version, which properly installed. I previously tried 3.0, 3.1 and 3.2, all failed.
I have the same config (Ubuntu 12.04 and Eclipse 3.7).
Because I also had problems installing PyDev under eclipse, I tried the solution given by jmclem, but it didn't work. Although I unckecked the box "Show only the latest version of available software", only the last version was shown.
But then I tried this new URL and finally it worked:
http://update-production-pydev.s3.amazonaws.com/pydev/updates/site.xml