Spring Tool Suite4 Update Failed, Error Showing - spring

When i am going to update my STS it's showing the following error:
An error occurred while collecting items to be installed
session context was:(profile=DefaultProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.eclipse.epp.mpc.core,1.8.1.v20191107-0507
No repository found containing: osgi.bundle,org.eclipse.epp.mpc.ui,1.8.1.v20191119-1757
No repository found containing: org.eclipse.update.feature,org.eclipse.epp.mpc,1.8.1.v20191119-1757
What Should i do to update ? Does updating STS really necessary?

This problem is usually caused by wrong or stale cache data for the update mechanism. There is a two step process that you can try to solve this:
go to the Preferences -> Install/Update -> Available Update Sites, select the update sites, and hit Reload. Sometimes this helps, but not always.
if the first step doesn't solve the issue, I would suggest to go to the same preference page, select all update sites, and export them into a file (using the Export button). Then delete all of them and restart your IDE. Then import them back from the XML file using the Import button on that preference page.
That usually solves the issue. Whether you should update your IDE install? I would recommend to always update to the latest STS and Eclipse version, but in the end it is your choice.

Martin's second solution worked for me.
Probably it was some caching problem.

I had the same issue while updating from version 4.13.1 to 4.15.2 and the second workaround worked for me as well.

Related

VSCode Spring Initializr Error : Failed to fetch metadata

When I try to create a new project on Spring Initializr on VSCode, it produces the error on right bottom screen
Fail to create a project. Error: Failed to fetch metadata
Fail screenshot
I have checked Developer : Toggle Developer Tools and checked the error, it's not common JSON tag (html error return) problem.
I have checked the access to https://start.spring.io/ on my browser : no problem.
I have checked the internet access via proxy : There's no proxy.
I have completely removed VSCode (including extensions) and re-installed, still the same problem.
Windows 10, using gradle 6.9, java 11.0.12, vscode 1.59.0
Ok I've resolved the problem.
In case anyone comes up with the same issue, here it is :
open Spring Initializr Java Support extension from VSCode extensions.
click settings icon, then choose Extension Settings.
scroll down, and click "Edit in settings.json"
In my case spring.initializr.serviceUrl was empty. It should be :
"spring.initializr.serviceUrl": "https://start.spring.io/"
Sometimes the issue can be resolved by simply restarting the vs code editor.
Because extensions will get reflected only after restarting the editor
I received the same error message after having installed the extension pack and starting up a new maven project. Yet, for me the solution of #sayginify did not work.
In my case lowering the version to 0.4.8 did help. I was on 0.8.0. Also the versions in between did not work either. Obviously there are some known bugs in some versions. The solution came in here on the VS Code Spring Boot initializr Github page: https://github.com/microsoft/vscode-spring-initializr/issues/162#issuecomment-726832226 .
I had same issue, when I was at work. Removed work network connected to personal network and able to proceed. I got the feeling work network preventing downloading. Or may be have to edit your proxy settings

Inconsistent internal package errors with go get

I'm trying to go get go.etcd.io/etcd/tools/benchmark.
Previously this has worked, flawlessly. However when I try to do it currently I have alternatively got no errors and I've had it fail on me with:
go/src/go.etcd.io/etcd/vendor/google.golang.org/grpc/balancer_conn_wrappers.go:28:2: use of internal package google.golang.org/grpc/internal/buffer not allowed
go/src/go.etcd.io/etcd/vendor/google.golang.org/grpc/clientconn.go:49:2: use of internal package google.golang.org/grpc/internal/resolver/dns not allowed
go/src/go.etcd.io/etcd/vendor/google.golang.org/grpc/clientconn.go:50:2: use of internal package google.golang.org/grpc/internal/resolver/passthrough not allowed
The first time I ran it on a new go-1.13 installation it worked, but the following times it has failed as above.
The repo has not changed as far as I can tell in the past 8 months and I've tried on various golang versions but all so far have failed (bar the go-1.13 on that first try...).
Any assistance debugging this would be greatly appreciated!
I have both a workaround and an official fix.
The workaround:
Here I defined a go.mod which then used a previous version of the library.
The official fix:
This was fixed upstream and thus no one else should experience this.
I guess you can try by removing vendor folder from the go.etcd.io/etcd repo. Also disable the vendoring mode. It should work.

getting "ERROR: AJAX Loading Error: Forbidden" error when trying to upgrade Joomla version 3.5.1 to 3.6.4

I have tried to upgrade Joomla version from 3.5.1 to 3.6.4 from Joomla control panel by click on "Update Now" button. And got "ERROR: AJAX Loading Error: Forbidden"
Please see the screenshot http://easycaptures.com/fs/uploaded/1107/5217107686.jpg
How can i fix the issue? Thanks advance for helping !
Here is what I would do, make a site backup.
Then manually updated by extracting the update patch package in the root directory. Go to the link below and find the package that is specifically intended for updating from versions prior to 3.6.X
https://downloads.joomla.org/cms/joomla3/3-6-4
Joomla! 3.6.4 Upgrade Package (.zip)
This package is for performing updates from Joomla! 2.5 and previous 3.x releases to 3.6.4
Please let me know if you have any issues with updating in this manner.
Mike Hamanaka
mike#vertualize.com
707-267-1768
SOLVED THE PROBLEM !!!
Here is the total solution of my mentioned issue !! I tried hard to solve the issue in various way but failed.
I fixed my issue once followed this tutorials.
https://docs.joomla.org/J3.x:Upgrading_from_Joomla_3.4.x_to_3.5
Stay fine with Joomla !!!
"Forbidden" seems to indicate that there is a restriction accessing a file.
Some things to try:
temporarily revert to the default .htaccess file by backing up the current .htaccess file and copying htaccess.txt to .htaccess
reset file permissions by installing the free or paid version of Akeeba Admin Tools (if it's not already installed) and run the "Fix Permissions" tool
temporarily disable security extensions or tools that may be restricting access to the update files
In my particular case, it was the last suggestion which was relevant. I worked out how to bypass Sucuri as an administrator by adding an entry in my local hosts file to access
the website via its direct IP address. The update then worked flawlessly.

Netbeans update fail

I have no problem in my internet connection. But getting every time this screen when I try to update netbeans plugins or IDE itself.
Even OS reintallation doesn't fix this issue. Getting same error again and again. How can I fix it?
In Netbeans
Go to
Tools->Plugins->Settings
and
Add a new one or change the URL of "JAX-RPC" to the one referred below
URL: http://bits.netbeans.org/dev/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/updates.xml.gz
Netbeans 8.0.2/Tools/Plugins/Settings.... found a bad url ie URL: http://netbeans.i2m.dk/updates.xml
Unchecked the Active column for "I2M Update Center" and the "Check for Updates" now works.
I've tried every solution and no ones worked for me, but...something did it.
I changed every url in Tool > Plugins > Settings from http to https.
Example:
Name: Certified Plugins
URL: http://updates.netbeans.org/netbeans/updates/8.0.2/uc/final/certified/catalog.xml.gz
To:
Name: Certified Plugins
URL: https://updates.netbeans.org/netbeans/updates/8.0.2/uc/final/certified/catalog.xml.gz
And finally I can update my plugins and obtain the list of newest plugins.
Are you behind a proxy? If yes, you can change your settings at Tools -> Options -> General (Proxy Settings)
Check your Netbeans log - messages.log file - for details of the error!
Example locations of the file:
Linux: ~/.netbeans/7.3/var/log/messages.log
Windows: c:\Users\USERNAME\AppData\Roaming\NetBeans\7.3\var\log\
Are you using Firewalls? May be its blocked by your firewall,
try to check the blocked applications.
Update
probably yes, because Kaspersky most of time will
block without notice or accidentally might be
blocked. so better try to check blocked application lists in kasperksy.
Check this links might help you to solve:
http://support.kaspersky.com/faq/?qid=208285204
http://support.kaspersky.com/kis2012/settings/firewall?print=true&qid=208284433
This might have been a late reply, however, i just experienced the same issue today. I went to Tools > Options > General, and chose "No Proxy". Hit "Apply and Ok". Instead of trying to update again, i just closed netbeans completely, relaunched it and it went to detect updates automatically. All went back to normal.
I know it's too late but I have one more solution to it.
If you locate Tools -> Plugins -> settings on your NetBeans IDE And then uncheck the Plugin portal and add https instead of http on certified plugin and NetBeans distribution.
Then try to update.
Hope it'll work for you.

MvcScaffolding doesn't work with EF4.1-Update

I recently installed the EF4.1-Update. When I made a new MVC3 Project and tried to add the MvcScaffolding using the PackageManagerConsole in VS2010 it wouldn't install it. Has anyone else
seen this? I removed the EF4.1-Update from my machine and MvcScaffolding installs correctly.
thanks,
Bill44077
You might have to clean out the packages folder in your solution and reinstall the MvcScaffolding. Once you do this everything should sync back up.
Good luck and hope this helps some.
It does work. And it works beautifully
But I had some issues getting it all setup.
What error(s) did you get exactly I had a number of issues, but solved them one by one.
Did you get this sort of thing in PMC when VS started up?
The following error occurred while loading the extended type data file: Microsoft.PowerShell.Core, C:\Windows\SysWOW64\WindowsPowerShell\v1.0\types.ps1xml(2943) : Error in type "System.Security.AccessControl.ObjectSecurity": Exception: Cannot convert the "Microsoft.PowerShell.Commands.SecurityDescriptorCommandsBase" value of type "System.String" to type "System.Type".
If so either update .net Refelector (now costs), or go Tools > Add-In Manager and disable the .NEt Reflector add in ! THEN RESTART VS
Or if you try to scaffold something, do you get e.g.
Invoke-Scaffolder : A parameter cannot be found that matches parameter name -ModelType"
?
Do you get errors when you try to add a controller to your MVC 3 project?
Are you running on Windows (pre 7) + without powershell 2.0 installed?
Basically don't worry it does work, I think the order or installations matters, just work through it bit by bit, its worth it.
Did you try reinstalling the update after the scaffolding is installed? I already had the scaffolding installed when I installed Update 1, so i did not see a problem.
I've had this problem before when the scaffolding.config file was either not present, or not filled with the Default Scaffolders -- make sure its populated with the default entries for views, controllers, etc. I think there is 9 by default in version 1.0.9.
Old post I know but this is still relevant in project templates and autogenerated projects -- the scaffolding.config needs to have its defaults.

Resources