Tag: java

IllegalStateException with naming parameters in tomcat

I’ve been using tomcat and spring for a long time (more than a year). Everything worked out great. Today, all of a sudden I get a weird error when starting tomcat: Caused by: java.lang.IllegalStateException: Using named parameters for method public abstract java.util.List com.securegion.monitorcenter.dao.IncidentsViewRepository.getFixedIncidents(java.lang.String,java.util.List,java.lang.String,java.lang.String,int,int) but parameter ‘text’ not found in annotated query ‘select * from siemincidents […]

Java separate System.out for separate Classpath

I am developing an application which needs to call some Jenkins instances, to do this I am using the jenkins-cli .jar I could be calling the jar using the commandline to easily extract its output. Then however I need to parse exceptions myself. To properly handle exceptions I am now invoking the main method of […]

Maven Surefire can't instantiate my IReporter class on Jenkins

I have a Jenkins project that cannot run due to being unable to instantiate my TestNG IReporter class, CustomReportListener.java (CRL). If I remove all references to it, the project runs just fine, but I am required to return the results via CRL. Lastly, CRL is part of a framework that we include as a JAR, […]

Launch TestNG suite from bash script

I’m having trouble using my testNG suite in the Jenkins of my company. Here is the set up : -Jenkins is installed on a Linux machine so I have to create a .sh which launch my tests. -I code my tests under Windows, on Eclipse in Java. -I have to use relative path in my […]

Jenkins : actual and formal argument lists differ in length

i have created mavenized TestNG project. it is working fine in eclipse. but when i run TestSuite in Jenkins, i am seeing compiler error. i had to remove some overloaded methods. but now i am facing this error for non-overloaded method. [ERROR] COMPILATION ERROR : [INFO] ————————————————————- [ERROR] /apps/jenkins/workspace/qa-tax-svc-automation/src/test/java/addressVerificationService/OverriddenAddressVerificationServiceTest.java:[62,33] error: method ExecuteGetCall in class OMSD_Util […]

SSL error between jenkins(java) and Bitbucket Plugin

I`m using CentOS 6.5 in AWS. java version “1.7.0_101” OpenJDK Runtime Environment (rhel- u101-b00) OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode) Using Jenkins 2.15(new installation) and last version of Bitbucket Branch Source Plugin I start Branch Indexing with my login data for Bitbucket but get these errors: Connecting to https://bitbucket.org using ****/****** Looking up […]

setUp method: Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows:

When I am running Selenium-Webdriver scripts in Eclipse, it works fine. But the same scripts are running in jenkins in server machine, it is giving the following error: 18:00:34 ——————————————————- 18:00:34 T E S T S 18:00:34 ——————————————————- 18:00:35 Running TestSuite 18:12:46 Tests run: 568, Failures: 16, Errors: 0, Skipped: 552, Time elapsed: 731.137 sec […]

Why does Jenkins/Maven give this error

It’s kinda weird. I’m getting a huge error, and have got no clue where it comes from / how to fix. The error: mavenExecutionResult exceptions not empty message : Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project Sortal: Compilation failure cause : Compilation failure Stack trace : org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on […]

Findbugs Bug SE_BAD_FIELD on boolean field

We have Findbugs configured to run on our Jenkins via Maven. Among other things it complains about SE_BAD_FIELD on the following code line: private boolean logged = false; The description of this bug says Se: Non-transient non-serializable instance field in serializable class (SE_BAD_FIELD) This Serializable class defines a non-primitive instance field which is neither transient, […]

Jenkins: best way to build a project with sub projects

We have a project with two subprojects in the same SVN repository. For example: svn://ip/svn/ trunk/subproject1 svn://ip/svn/ trunk/subproject2 The build for project should include results of builds of both subprojects. To make our build faster, I want to run build of subproject1 only if SVN was changed respectively (in the svn://ip/svn/ trunk/subproject1). Similarly for subproject2 […]

Git Baby is a git and github fan, let's start git clone.