Unknown version for SonarQube server (http://localhost:9000). Please check server is reachable - eclipse

I Have installed Sonar in my system, and eclipse plugin of the same.
I am following below mentioned steps
Running StartSonar.bat
Going to my project directory where POM.XML is located of my project and run the command
mvn sonar:sonar
Eclipse SonarQuber : Analysis project .
I keep on getting error:
Unknown version for SonarQube server . Please check server is reachable.
And also , sonar analysis is not working from eclipse, I mean if I correct the error indicated by sonar and do sonar analysis again, it shows error at the same.
However if I do it from command prompt it is working fine. Please help me on this issue.

Though it is not a direct ans but still here is what I tried and worked for me.
Check if SONAR server is reachable. Read the question at https://stackoverflow.com/questions/20211215 to configure/correct the server connectivity issue. Point to note is providing username and password and testing the connection.
Navigate to your project root pom.xml in command prompt.
firemvn sonar:sonar
Results gets published in http://localhost:9000

The miraculously simple answer for me was:
Go to the sonar server preferences under Window->Preferences->SonarQube->Server
Choose the server and click edit
assuming you have entered the correct username and password (or nothing if the settings on your sonar server are allow anonymous analyzing)
Press test connection
On the top of the window it should state "Successfully connected!" and when you try to analyze the project again the error is gone.
May be a bug in the eclipse plugin.

After starting the sonar server which is installed in ur drive,,,
try to fetch with http://localhost:9000 and
give the test properties "admin" and "admin" as username and password.
It will work

Related

Debug Eclipse Wildfly from IntelliJ

I have a local application running in local Wildfly that is configured using eclipse. I also have IntelliJ running in local. Now I want to run the application in Eclipse and connect remote debugger to it from my IntelliJ which is also running in the same machine. How do I do that?
In eclipse, I can see that the checkbox of Attach remote debugger is ticked and the port is 8787.
I try remote configuration in IntelliJ with Host as localhost and Port as 8787, I get error Error running 'Eclipse': Unable to open debugger port (localhost:8787): java.net.ConnectException "Connection refused: connect"
Can some one help me with this?
Why I need this setup:
I have this application that is been setup on Eclipse since ages. As I am used to IntelliJ, I don't want to use eclipse. It will take some time for me to identify how to migrate it to intellij, so for now going with this work around.
Ah, never mind. I added -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787 to launch configuration and it worked. I thought it appends these arguments automatically. But that is only when we use the bat file to start. Doesn't seem to be the way with eclipse.
PN: I am not deleting this post as there may be others who would have similar requirement.

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.

maven was6:installApp TransferFailed

I'm trying to deploy my ear to a remote Websphere 8.5 with maven plugin was6 via SOAP.
I set up the correct ear with correct host, node,cell,server, port etc.
But when I try to install app I got WASX7017E: ConnectException - Connection refused with a TransferFailedException
In logs, there is nothing in local and remote neither. As I see with netstat when I run the mvn installApp there are many connection trying on serverside whiches have status TIME_WAIT.
The plugin seems to be working with v8.5 cause other functions for example wsListApp work.
I tried to google it but with no results.
Does anyone get this error before me? Or has anyone idea what should I do?
Thank you.
was6-maven-plugin generates a temporal ant file under "target\was6-maven-plugin\" folder and then calls $WAS_HOME\bin\ws_ant.sh/bat utility using -f option with the previously generated ant file.
If you don't use the clean target, the files should continue there so you can use ws_ant to find the real error and find if there is an error on your configuration or in the plugin.
If you find an error in the plugin, please open an issue here: http://jira.codehaus.org/browse/MWAS
In this link you'll find all the options available in the wsInstallApp target:
http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/index.jsp?topic=%2Fcom.ibm.websphere.javadoc.doc%2Fweb%2Fapidocs%2Fcom%2Fibm%2Fwebsphere%2Fant%2Ftasks%2FInstallApplication.html
Regards,
Javier Murciego

Subclipse and Eclipse - RA layer request failed

I'm following the instructions for installing Ardor3D as an Eclipse Project Set via Subclipse; instructions at:
http://www.ardor3d.com/wiki/svneclipsetutorial
I installed Subclipse from
http://subclipse.tigris.org/
and installed fine. If I go to Eclipse's Preferences and Team|SVN I can see that the SVN Interface Client is JavaHL, and hence installed fine.
However, when I come to checkout the code at:
http://ardorlabs.svn.cvsdude.com/Ardor3Dv1
by selecting New|Other|SVN|Check Projects from SVN I get the following error message:
RA layer request failed
svn: Unable to connect to a repository at URL 'http://ardorlabs.svn.cvsdude.com/Ardor3Dv1'
svn: OPTIONS of 'http://ardorlabs.svn.cvsdude.com/Ardor3Dv1': could not connect to server (http://ardorlabs.svn.cvsdude.com)
I know the URL is valid as I can install the above fine on my work m/c of WinXP. However, the same installation on my personal laptop of Win7 fails to connect.
I tried temporarily disabling the firewall and it still fails.
I've tried playing around with the config and server files in:
C:\Documents and Settings\Administrator\Application Data\Subversion
but to be honest not 100% sure as what to change, if anything as I'm not using proxy settings.
If there's an expert out there who's knows the solution to this problem I would greatly appreciate hearing from you.
Thanks
Graham
PS. I find the error message "RA layer request failed" confusing as the URL is valid.
I had exactly the same problem, which turned out to be caused by a proxy server. The solution to my problem was to configure subversion to work with the proxy server, however it was not obvious how to do this.
You should have a directory similar to : C:\Documents and Settings\UserName\Application Data\Subversion
In that directory there will be a file called servers.
I un-commented and edited the following entries and my subversion is now working fine with Eclipse:
http-proxy-host
http-proxy-port
http-proxy-username
http-proxy-password
Why exactly you can't configure this through Eclipse is abit of a mystery, but there you go.
Another user account could login, I got the error as described above. The difference was the Proxy setting which was missing in my account. It is stored per user in the Registry and I could easily change this in the Tortoise SVN config.
We encountered this error with our server. While we were able to successfully access the CollabNet 5 SVN admin console, navigating to the repository to browse it from the admin console would fail. We also were not able to connect from Subclipse clients.
The problem turned out we were not hitting the correct port on the server. We had reconfigured the default port from 80 to 4343 and the admin console reported the changed setting but the server was still running on 80.
For what it's worth, in order for the configuration change to stick, we had to bring the repo server down and make the change in the admin console and then restart the machine. We were then able to browse the repo from the link in the admin console.

GlassFish v3 in Eclipse shows "Wrong username or password" after starting

During the GlassFish installation I have chosen user name and password. These parameters are properly set on the Eclipse Server Adapter setting page. But when I start GlassFish in debug mode from Eclipse, I get "Wrong username and password".
There is nothing in the server log - in fact the server is started and works properly. The message only appears something like 95% of the time, and it is making debugging of the application problematic with the constant restarts and redeploys.
Anybody found how to overcome this problem?
I am using Oracle GlassFish Server 3.0.1 and Eclipse Helios Eclipse Java EE IDE for Web Developers (Helios Service Release 1 Build id: 20100917-0705).
For me the fix was to leave the "Password" field empty. I am however using different versions (but I stumbled upon this thread and maybe someone else will see this as well) of Eclipse and GlassFish(Eclipse Kepler & GlassFish 4.0).
I hope this helps anybody.
EDIT putting together compatibility of this fix from the comments:
Kepler & 4.0
Luna & 4.1
Mars & 4.1
I had this problem too. For me the solution was to disable the "Use Anonymous Connection for Admin Commands" option. To do so, follow these steps:
Right click on the Glassfish entry in the Server tab and click "Open" from the context menu. (Or press F3 while the Glassfish entry is selected.)
Make sure the box "Use Anonymous Connection for Admin Commands" is unselected, see the screenshot.
Don't forget to save before you retry...
If the log refers to full host names, like:
JMXService URL = service:jmx:rmi://my-work-pc.lan:8686/jndi/rmi://my-work-pc.lan:8686/jmxrmi
rather than, for example:
JMXService URL = service:jmx:rmi://localhost:8686/jndi/rmi://localhost:8686/jmxrmi
...then disabling the proxy settings in Eclipse (Preferences, General, Network Connections, Active Provider: Direct) might solve it.
For what I've read the default "Native" proxy setting yields problems as GlassFish by default binds to 0.0.0.0, which causes host name resolution rather than simply "localhost" in the RMI calls above. Given the host name it then finds, Eclipse might then feel it needs to use your proxy (if set) even for what is actually localhost.
My solution was just disable Anonymous Connection for Admin Commands. Auto deploy is another silly enabled default option because on every save freezes eclipse for a while, of course this does not count on small projects so you are good if you are writing only Hello world projects :)
I had the same issue while setting up glassfish4 with eclipse. Below setting resolved the issue:
Keep username as "admin" with a blank password (Unless you changed
anything while installation).
Select - 'Use Anonymous Connection for Admin Commands' checkbox.
Hope this helps.
it seems that the problem is removed when auto-deploy after changes option is removed.
For the first time from your eclipse do not set any username and password as #mgttlinger said. i hope now you can start the server without any issue.
Open admin console by localhost:4848(not it wont ask any credential)
To set admin password, go to Domain -> Administrator Password
Enter New Password and Confirm New Password.
Click on Save button
Restart the server
Try access localhost:4848(now you have to enter username and password to login admin console)
In Eclipse also set username as admin and given password to access glassfish server from your eclipse
If your OS is Windows, and your Glassfish installation location is in root directory (e.g. C:\dev\tool\Glassfish ), then try run Eclipse "as administrator", believe it or not, I know its a bit weird, that does solve the problem.
Had the same problem , did restore default to remove the password set at the time of server installation in eclipse. The server started after that.