NetBeans - Unable to connect to the Update Center - netbeans

I can't update NetBeans, I always get "Unable to connect to the Update Center".
I already checked the windows firewall settings:
I also checked the proxy, I get a green checkmark:
What else can I try?
I am using NetBeans 8.2 (Build 201609300101)

Proxy settings were NOT the problem for me.
I'm running NetBeans 11.0, and see that there are 4 default "Update Centers" configured. Having nothing to do with Proxy settings, I discovered that the "NetBeans Plugin Portal" URL was failing https://netbeans.apache.org/nb/plugins/11.1/catalog.xml.gz, and the last time this site was successfully checked was on 4/20/21.
My solution was to deselect that Update Center, and added the 11.0 archive site instead:
http://plugins.archive.librebeans.org/catalogue/11.0/catalog.xml
Now I can update/install plugins as expected. Maybe this is the solution for you too.

there is a number of similar questions from long ago (e.g. this one), and the suggestions are mainly about misconfigured proxy.
in my case, looking at the IDE log file revealed the following stack trace:
INFO [org.netbeans.modules.autoupdate.services.InstallSupportImpl]: Timeout while opening connection to http://bits.netbeans.org/dev/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/enterprise/org-netbeans-modules-websvc-metro-lib.nbm
java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask.get(FutureTask.java:205)
at org.netbeans.modules.autoupdate.updateprovider.NetworkAccess$Task$1.run(NetworkAccess.java:111)
Caused: java.io.IOException: Timeout while opening connection to http://bits.netbeans.org/dev/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/enterprise/org-netbeans-modules-websvc-metro-lib.nbm
at org.netbeans.modules.autoupdate.updateprovider.NetworkAccess$Task$1.run(NetworkAccess.java:131)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
INFO [org.netbeans.modules.autoupdate.services.InstallSupportImpl]: Cannot access http://bits.netbeans.org/dev/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/enterprise/org-netbeans-modules-websvc-metro-lib.nbm
java.io.IOException: Cannot access http://bits.netbeans.org/dev/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/enterprise/org-netbeans-modules-websvc-metro-lib.nbm
at org.netbeans.modules.autoupdate.services.InstallSupportImpl.copy(InstallSupportImpl.java:981)
[catch] at org.netbeans.modules.autoupdate.services.InstallSupportImpl.doDownload(InstallSupportImpl.java:733)
at org.netbeans.modules.autoupdate.services.InstallSupportImpl.doDownload(InstallSupportImpl.java:661)
at org.netbeans.modules.autoupdate.services.InstallSupportImpl.access$600(InstallSupportImpl.java:92)
at org.netbeans.modules.autoupdate.services.InstallSupportImpl$1.call(InstallSupportImpl.java:172)
at org.netbeans.modules.autoupdate.services.InstallSupportImpl$1.call(InstallSupportImpl.java:144)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Because I thought that was nothing wrong with my proxy settings (no proxy is selected, and connection is tested OK), i searched and search, getting even into the NetBeans code, trying in vain to find some hidden Timeout property. Indeed there is a place in the code (AutoupdateSettings.getOpenConnectionTimeout which seems to correspond to plugin.manager.connection.timeout property) which sets a timeout - yet i couldn't make it work (mucking with .properties files in ~/AppData/Roaming/NetBeans/8.2/config/Preferences/org/netbeans/modules/autoupdate)
In the end the only workaround I found was to download the NBM file mentioned in the stack trace manually. It seems that it was either indeed my firewall (an antivirus check?), or the file was just too large in itself and would cause the timeout because of this. Or the overloaded server. Anyway.
Fortunately, it is possible to install the downloaded file through Tools -> Plugins -> Downloaded -> Add Plugins, even though that plugin already is installed. Doing this the update process continued normally (although there was another timeout later - so I repeated the above procedure) and eventually completed.
The above plugins, for which I had to do manual install, were METRO 2.0 and JAXB 2.2

Related

cannot start weblogic from netbeans after windows 7 BSOD

after a BSOD in Windows 7 something gets corrupted and NetBeans cannot start a local WebLogic 10 server it didn't have any problems with before.
there is also a peculiar message appearing in NetBeans notification, with message and stacktrace almost identical to those reported in a filed NetBeans bug report:
java.lang.IllegalArgumentException: hostname can't be null
at java.net.InetSocketAddress.<init>(InetSocketAddress.java:139)
at org.netbeans.modules.weblogic.common.api.WebLogicRuntime.ping(WebLogicRuntime.java:623)
at org.netbeans.modules.weblogic.common.api.WebLogicRuntime.ping(WebLogicRuntime.java:612)
at org.netbeans.modules.weblogic.common.api.WebLogicRuntime.isRunning(WebLogicRuntime.java:500)
at org.netbeans.modules.j2ee.weblogic9.optional.WLStartServer.isRunning(WLStartServer.java:124)
at org.netbeans.modules.j2ee.deployment.impl.ServerInstance$3.run(ServerInstance.java:902)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
I tried multiple restarts since then, multiple netbeans restarts, tried even both NetBeans 8.1 and 9 - when starting WebLogic, NetBeans just is stuck with "Starting ..." message and never stops. You actually have to forcefully close NetBeans to stop this.
at some point i tried to start weblogic outside NetBeans, and saw that it was failing to start, with a message approximately like this from this Oracle forum thread:
<Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason: [Management:141268]Parsing Failure in config.xml on line 1, column 1: Content is not allowed in prolog.>
Well, indeed there is a directory inside WebLogic domain I was trying to start called "config", with a file "config.xml" there (and a config.loc - deleting it didn't make any difference) - so I tried to look into config.xml and WOW it was totally corrupted. So that was the reason nothing started. I tried to just delete this file (config.xml) (in the above Oracle forum thread they also suggest to delete the domain - but this was not an option for me as it wasn't an integrated server) - after trying to start the server manually again, WebLogic starter script politely asked me if I want it to create a new default config.xml, since the old one was not found - answering yes worked and I am back in business (i hope :P)
of course, i lost some (EDIT: not all) of the custom settings i did in WebLogic configuration since installing it - I lost the custm data sources, but users and user groups were retained. if only i had backed up this config.xml :( anyway.
(EDIT: probably backing up config.xml wouldn't make sense - anyway - i think it keeps the reference to data source for all the deployed applications - so - you don't have to recreate a data source - you just have to redeploy your application(s))

Eclipse save error when trying to open the design view of a synapse config file in WS02 Developer Studio

I'm following the tutorials and samples of the official WSO2 ESB documentation. When I create (or load) a synapse configuration in the WSO2 Developer Studio I'm getting the error as shown below:
Save problems
Save could not be completed.
Reason:
resources\sunErrorHandler.esb_diagram (The system cannot find the path specified)
This error shows up when I want to open anything in the Design view. Even when I'm not trying to save anything.
So far I have tried to add the path specified in the error, but without success. I already found a workaround to be able to save and deploy my ESB configurations. By using "Save as" I'm able to keep the changes I made in the XML files. However the error stills shows up when I open the new version of the file.
Does anyone know a better solution to permanently resolve this error message?
I had this problem as well, running eclipse.exe as administrator fixed it.
Issue remains unresolved for my Eclipse + DevStudio 3.8.0 install on a Windows 10 environment. However since I was experiencing some other issues with the WSO2 ESB I decided to migrate to a Linux (Ubuntu) environment. This seems to work much better, the eclipse does not seem to have this issue on Linux.
Eclipse want to write in C:\Program Files\eclipse\resources. I solve problem by adding full permissions to group users on folder C:\Program Files\eclipse
If this happens in Mac you can provide the required permission to the "/Applications/IntegrationStudio.app/Contents/MacOS/resources" folder.

Connection timeout when getting plugin list or updating Eclipse PDT

I'm working on win 7 and trying to get Zend Eclipse to run properly for a CakePHP project. But when try to access the plugin list via the welcome page I get this error:
A problem occurred while accessing the update site.
RemoteBundleDiscoveryStrategy failed with an error
Unable to read repository at http://downloads.zend.com/studio-eclipse/updates-extra/10_0/pdt_directory.xml.
Connect timed out
I've tried severalt solutions I found on the net but nothing worked. My proxy settings are fine since I can access all sites via the internal browser of eclipse. My guess is, that there is some restriction in the Windows administration that is keeping me from getting the plugin list.
When I try to update Eclipse the update window tries half an hour to contact the software site and after that I get this error message:
Some sites could not be found. See the error log for more detail.
Communication with repository at http://downloads.zend.com/studio-eclipse/updates/10_0 failed.
Connect timed out
Finally!!
The problem was that is were actually two problems. First one was that Eclipse wasn't saving the username and password for the proxy settings. After finally finding the eclipse error log in
"{eclipse-workspace}/.metadata/.log"
(there seems to be no way to view the file in zend-eclipse itself) I found out that Eclipse was trying to save the password-file into the Administrator's user directory but had no access. (Oh what a surprise)
Putting this into the "zend-eclipse-php.ini" worked for me:
-eclipse.keyring C:\eclipse\keyring.txt
After this was done I could finally save username and password for the proxy but still no connection. When I took another look into the error log I found this error:
"!MESSAGE System property http.proxyHost is not set but should be {proxyname}
!MESSAGE System property http.proxyPort is not set but should be {proxyport}"
and 4 more for https and socks. After googling this error I came upon a fixed bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=281472
where it states that maybe the proxy refuses SOCKS. So I cleared the settings for SOCKS and tried again and IT WORKED! Finally!
Hope this description can anyone else with these problems.

Eclipse - Install new software not showing p2 repository

I'm experiencing serious issue with the Eclipse 'Install new software' and 'Update' Dialogs.
In fact they seem to do nothing.
With a brand new Eclipse Java EE Juno 4.2 I can't install new software. I try to retrieve the contents of 'Juno - http://download.eclipse.org/releases/juno' but it's stuck all the time. Often is stops doing anything around 31% but sometimes it reaches 38% after 20 minutes but there must be something wrong.
I unticked all the options and also deactivated firewall and antivir and tried to alter the network configurations in eclipse with no effect.
I'm not behind a proxy.
Somebody got a solution on this?
Regards
The Error Log has plenty entries mainly like this:
Unable to read repository at http://download.eclipse.org/releases/juno/201206270900/artifacts.jar.
Unknown Host: http://download.eclipse.org/webtools/patches/drops/R3.4.1/P-3.4.1-20121112163420/repository/content.xml
Connection to http://download.eclipse.org/technology/epp/packages/juno/p2.index failed on Connection reset. Retry attempt 0 started
Connection to http://download.eclipse.org/webtools/patches/drops/R3.4.1/P-3.4.1-20121112163420/repository/p2.index failed on Connection reset. Retry attempt 0 started
Unable to read repository at http://download.eclipse.org/releases/juno/201206270900/content.jar.
Connection to http://download.eclipse.org/releases/juno/201209280900/p2.index failed on Connection reset. Retry attempt 0 started
You could also try with the following option in your STS.ini file, it worked for me:
-Djava.net.preferIPv4Stack=true
Make sure you don't have antivirus (particularly Kaspersky) running. May have to pause your AV program as it could block the process.

Eclipse Indigo is unable to read repository (update sites)

First of all this question has been asked at least twice.
I tried several approaches with no effect.
Here's the problem:
When I try to download/update plugins like EclEmma, Eclipse starts to communicate with the repository and that takes about 5 minutes. After that I get an error:
"An error occured while collecting items to be installed
session context was:(...)
Unable to read repository at http: (...)
Read time out
(... for every *.jar)"
What I was trying to fix the problem was running eclipse as an admin (got vista x86 running) and changing the connection properties from native to direct and back. I also tried deleting saved repositories and adding again. No effect at all.
I have no proxy configured and don't need one.
This is getting kind of personal between me and my IDE :D
So I hope you guys can help me out.
Thanks Zoltán (köszi :D), but i found the error last night.
Resolution
After hours of debugging I figured out that AVG Anti-Virus Software blocks the request. After deactivating it for temporarily, Eclipse installed the new software.
In my case timeout was caused by definition of SOCKS proxy... we have proxy.company.com:80 and I incorrectly provided that proxy to all three (HTTP, HTTPS and SOCKS) connection schemas. Removal of proxy from SOCKS resolved the problem
Try to open the internal web browser of Eclipse (Window menu/Show view/Other...), and navigate to the 1) update site url, and 2) to any webpage.
If the latter one is not working, then Eclipse does not have connection to the internet, and you should try to open a new workspace, and try installing from there (possibly something wrong in the workspace settings).
If the second one works, but the first one does not, that suggests that the update site is not working. In this case report to the developers.
I also had this problem (my system: Win7, jdk7, Eclipse Indigo).
I installed jre6, changed my JAVA_HOME, ran eclipse with the following:
eclipse -debug -consolelog -vm 'c:\Program Files\Java\jre6\bin\java.exe'
Install the plugins/updates, then switch back to using jdk7.
Worked for me!
Temporarily disabling AVG firewall fixed the issue for me.
Eclipse then installed the Android plugin.
In my case, adding these lines to eclipse.ini solved the problem
-vmargs (this one was alreayd there)
-Djava.net.preferIPv4Stack=true