xl-deploy: Getting HTTP error code : 500 error - xl-deploy

I am getting this error while running "mvn clean xldeploy:import"
Failed to execute goal com.xebialabs.xldeploy:xldeploy-maven-plugin:5.1.0:import (default-cli) on project gsp.tms.app: Execution default-cli of goal com.xebialabs.xldeploy:xldeploy-maven-plugin:5.1.0:import failed: Failed : HTTP error code : 500 -> [Help 1]
How to fix it?

May be checking log file located at XLDeploy server under "XLD_INSTALL_HOME/log/deployit.log" at time of executing this gives more details,
This error can happen for multiple reasons for example due to unknown type definition needed by package being imported which could happen because of missing plugin in XLDeploy it self.
Another thing you can do is to try to import this package from XLDeploy UI and see if there are any errors during import.

Related

An unexpected error occurred while launching the test runtime (return code 1)

I have a Java project and there exists a Testing job in Jenkins, and it worked fine with all the required testcases. From recent times it shows a sporadic failure as mentioned below:
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:1.6.0:test (default-test) on project MyProjectName: An unexpected error occurred while launching the test runtime (return code 1).
We could see there is no recent changes done related to the plugin, and not pretty sure like why this issue happens. can someone provide inputs to resolve the same ? Thank you !

sonar-maven-plugin getting "out of range of int" error

We're getting an odd error on one of our new github projects when we attempt to run a sonar analysis. We get the following error message and it appears to be because org.kohsuke.github.GHCommitStatus["id"] gets a "Numeric value (4275691320) out of range of int" error.
[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.5:sonar (default-cli) on project audit-config: Unable to load component class org.sonar.batch.scan.ImmutableProjectReactor
Interestingly enough, this is the only one of our projects having this issue. Any thoughts would be greatly appreciated!
This is a known issue: https://jira.sonarsource.com/browse/SONARGITUB-35 with unfortunately no workaround.

HTTP 500 / NullPointerException at the end of the SonarQube build downloading retrieving issues

In the Jenkins build, here's the stack we have:
[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar (default-cli) on project gwt-parent: Fail to execute request [code=500, url=http://forge.mipih.net/sonar/batch/issues?key=fr.pgih.socle%3Agwt-parent]: Fail to download [http://forge.mipih.net/sonar/batch/issues?key=fr.pgih.socle%3Agwt-parent]. Response code: 500 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar (default-cli) on project gwt-parent: Fail to execute request [code=500, url=http://forge.mipih.net/sonar/batch/issues?key=fr.pgih.socle%3Agwt-parent]
[snip]
... 19 more
Caused by: java.lang.IllegalStateException: Fail to execute request [code=500, url=http://forge.mipih.net/sonar/batch/issues?key=fr.pgih.socle%3Agwt-parent]
at org.sonar.batch.bootstrap.ServerClient.handleHttpException(ServerClient.java:139)
at org.sonar.batch.repository.DefaultServerIssuesLoader.load(DefaultServerIssuesLoader.java:49)
[snip]
... 22 more
Caused by: org.sonar.api.utils.HttpDownloader$HttpException: Fail to download [http://forge.mipih.net/sonar/batch/issues?key=fr.pgih.socle%3Agwt-parent]. Response code: 500
at org.sonar.api.utils.HttpDownloader$BaseHttpDownloader$HttpInputSupplier.getInput(HttpDownloader.java:305)
[snip]
And on the Server
2015.08.31 12:56:55 ERROR web[o.s.s.w.WebServiceEngine] Fail to process request http://forge.mipih.net/sonar/batch/issues?key=fr.pgih.socle%3Agwt-parent
java.lang.NullPointerException: null
at org.sonar.batch.protocol.input.BatchInput$ServerIssue$Builder.setModuleKey(BatchInput.java:1451) ~[sonar-batch-protocol-5.1.1.jar:na]
at org.sonar.server.batch.IssuesAction.handleIssue(IssuesAction.java:96) ~[sonar-server-5.1.1.jar:na]
at org.sonar.server.batch.IssuesAction.handle(IssuesAction.java:87) ~[sonar-server-5.1.1.jar:na]
at org.sonar.server.ws.WebServiceEngine.execute(WebServiceEngine.java:84) ~[sonar-server-5.1.1.jar:na]
at sun.reflect.GeneratedMethodAccessor170.invoke(Unknown Source) ~[na:na]
[snip]
But indeed, this URL is accessible from my browser. Here's what it serves:
{"errors":[{"msg":""}]}
Do you have any idea where it might come from?
Just in case, FYI, SonarQube 5.1.1 is running through the official sonarqube & mysql images.
I've crawled the changelog from 5.1.2, and I didn't find an obviously related issue. Is this a known issue?
Thanks a lot for your help.
It looks like you are facing the same issue reported here, at least it's the exact same stacktrace, which is fixed since 5.1.
Only case left where this error could occur is if the Jenkins job you are running is trying to analyse a deleted module.
Since analyzing a module is a bit odd, you might be analyzing a module which used to be a project.
Fix would then be to update your Jenkins job to analyse the new project.

sonarqube 4.1.2: unable to evict preview database

After performing a successful analysis, we are seeing a failure "Unable to evict preview database: /batch_bootstrap/evict?project=10020". This is followed by the summary:
[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.5:sonar (default-cli) on project XXX: Can not execute SonarQube analysis: Unable to evict preview database: /batch_bootstrap/evict?project=10020: Fail to execute request [code=400, url=https://XXX/batch_bootstrap/evict?project=10020]: Fail to download [https://XXX/batch_bootstrap/evict?project=10020]. Response code: 400 -> [Help 1]
This is running on SLES11SP1, Java 1.7, maven 3.3. I've tried increasing memory (MAVEN_OPTS="-Xms4096m -Xmx8092m -XX:MaxPermSize=4096m") and changing ulimit for files (8192) but have not seen any change in failure.
Any hints? What is the code 400?
You should publish the properties files with the analysis configuration, and the log file complete.
Regards.

Unable to build wso2 kernel 4.0.6

When i am trying to build the wso2 kernel4.0.6, Build failed due to the f0llowing error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-
5:attached (2-dist) on project wso2carbon-core: Failed to create assembly: Error adding file to archive:
\distribution\kernel\4.0.0\..\..\..\core\org.wso2.carbon.core\4.0.0\target\Version.aar isn't a file. ->
As the file \core\org.wso2.carbon.core\4.0.0\target\Version.aar that maven is looking for isn't present, your build is failing.
You need to check out the code in https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.0.0/patch-releases/4.0.6/ location and build. Use that URL location if you haven't done so.

Resources