Build failed

Description
guest

Build failed

Postby guest » Mon Aug 01, 2005 12:18 pm

Hi,

Polarion build fails with the following error:

Code: Select all

BUILD FAILED
File...... /usr/local/Polarion/data/workspace/.metadata/.plugins/org.apache.maven/cache/maven-vdoclet-plugin-1.2/plugin.jelly
Element... vdoclet:vdocletBean
Line...... 38
Column.... -1
java.lang.IncompatibleClassChangeError


Maven (v1.0.2) build is successful from the command line on the other hand. Seems that error happens during report generation, since code is compiled cleanly and unit test are passed.

Quick googling for such error led me to JIra forum/bugtracker. They had such kind of a problem a time ago.

Thanks in advance for your help.

dobisekm
Posts: 118
Joined: Wed Mar 23, 2005 3:29 pm
Location: Prague, Czech Republic

Postby dobisekm » Tue Aug 02, 2005 1:41 pm

Hi,

from the information you provided, it looks like a Maven error, which existed a time ago and was claimed as fixed in Maven 1.0. This could possibly be a regression. (link)

Does this happen during every build of given project or just sometimes?

Sould you please check the build.log, which is accessible by link from the botom of build result page to see if there is any more information? Eventually please send us the whole log file to support AT polarion.com for examination.

Best Regards,

Michal Dobisek, Polarion Team

guest

Postby guest » Tue Aug 02, 2005 5:37 pm

Yes, it looks like maven error. On the other hand running 'maven tasklist' or 'maven site' from the command line works fine. Such error appears constantly, every nightly build or when the build is created manually.

We suspect that it started after adding some dependencies to the project (Spring/Hibernate/XDoclet2). Before builds were successful.

See an excerpt from the build.log below. Hope this helps.

Code: Select all

02:30:00,158 INFO
###################################################################################################
#                                             LOADING                                             #
###################################################################################################
02:30:00,160 INFO Checking out
url http://polarion.example.com/repo/acme/testapp/trunk
as /usr/local/Polarion/data/temp/bws_20050802-0230
recursively
02:30:00,160 INFO Calling svn client:
command = svn
args =
   checkout
   --non-interactive
   --username
   polarion
   http://polarion.example.com/repo/acme/testapp/trunk
   .
envp =
dir = /usr/local/Polarion/data/temp/bws_20050802-0230
02:30:04,650 INFO Checked out revision 2318.
02:30:04,653 INFO
####################################################################################################
#                                             BUILDING                                             #
####################################################################################################
02:30:04,656 INFO Creating maven process:
command = /usr/local/jdk1.4.2/bin/java
args =
   -Xms64m
   -Xmx640m
   -Dmaven.plugin.dir=/usr/local/Polarion/polarion/maven-plugins
   -Dforehead.conf.file=/usr/local/Polarion/polarion/plugins/org.apache.maven_1.0.2.20050523-2126/forehead.conf
   -Dmaven.home=/usr/local/Polarion/polarion/plugins/org.apache.maven_1.0.2.20050523-2126
   -Dtools.jar=/usr/local/jdk1.4.2/lib/tools.jar
   -Dmaven.home.local=/usr/local/Polarion/data/workspace/.metadata/.plugins/org.apache.maven
   -Dmaven.repo.local=/usr/local/Polarion/data/bfr/maven-repository
   -classpath
   /usr/local/Polarion/polarion/plugins/org.apache.maven_1.0.2.20050523-2126/lib/forehead-1.0-beta-5.jar
   com.werken.forehead.Forehead
   -p/usr/local/Polarion/data/temp/bws_20050802-0230/project.xml
   dist
   jar:install
envp =
dir = /usr/local/Polarion/data/temp/bws_20050802-0230
02:30:06,688 INFO  __  __
02:30:06,690 INFO |  \/  |__ _Apache__ ___
02:30:06,690 INFO | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
02:30:06,690 INFO |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
02:30:06,690 INFO

...

02:32:48,110 INFO     [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 2.984 sec
02:32:48,153 INFO     [junit] Running com.acme.testapp.util.HelperTest
02:32:48,260 INFO     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.104 sec
02:32:49,375 INFO
02:32:49,375 INFO
02:32:49,376 INFO maven-junit-report-plugin:report:
02:32:49,376 INFO
02:32:49,376 INFO     [echo] Generating the Link Check Report...
02:32:49,378 INFO maven-linkcheck-plugin:report:
02:32:49,378 INFO     [copy] Copying 1 file to /usr/local/Polarion/data/temp/bws_20050802-0230/target/generated-xdocs
02:32:49,431 INFO
02:32:49,431 INFO     [echo] Generating the Task List...
02:32:49,447 INFO xdoc:init:
02:32:49,447 INFO
02:32:49,447 INFO maven-tasklist-plugin:report:
02:32:49,448 INFO     [echo] Generating tasklist ...
02:32:50,246 WARN BUILD FAILED
02:32:50,247 WARN File...... /usr/local/Polarion/data/workspace/.metadata/.plugins/org.apache.maven/cache/maven-vdoclet-plugin-1.2/plugin.jelly
02:32:50,247 WARN Element... vdoclet:vdocletBean
02:32:50,247 WARN Line...... 38
02:32:50,247 WARN Column.... -1
02:32:50,247 WARN java.lang.IncompatibleClassChangeError
02:32:51,236 INFO Total time: 2 minutes 45 seconds
02:32:51,238 INFO Finished at: Tue Aug 02 02:32:51 EEST 2005
02:32:51,238 INFO
02:32:51,356 ERROR BUILD FAILED
File...... /usr/local/Polarion/data/workspace/.metadata/.plugins/org.apache.maven/cache/maven-vdoclet-plugin-1.2/plugin.jelly
Element... vdoclet:vdocletBean
Line...... 38
Column.... -1
java.lang.IncompatibleClassChangeError
02:32:51,360 INFO Creating maven process:
command = /usr/local/jdk1.4.2/bin/java
args =
   -Xms64m
   -Xmx640m
   -Dmaven.plugin.dir=/usr/local/Polarion/polarion/maven-plugins
   -Dforehead.conf.file=/usr/local/Polarion/polarion/plugins/org.apache.maven_1.0.2.20050523-2126/forehead.conf
   -Dmaven.home=/usr/local/Polarion/polarion/plugins/org.apache.maven_1.0.2.20050523-2126
   -Dtools.jar=/usr/local/jdk1.4.2/lib/tools.jar
   -Dmaven.home.local=/usr/local/Polarion/data/workspace/.metadata/.plugins/org.apache.maven
   -Dmaven.repo.local=/usr/local/Polarion/data/bfr/maven-repository
   -classpath
   /usr/local/Polarion/polarion/plugins/org.apache.maven_1.0.2.20050523-2126/lib/forehead-1.0-beta-5.jar
   com.werken.forehead.Forehead
   -p/usr/local/Polarion/data/temp/bws_20050802-0230/project.xml
   site
envp =
dir = /usr/local/Polarion/data/temp/bws_20050802-0230
02:32:53,542 INFO  __  __
02:32:53,557 INFO |  \/  |__ _Apache__ ___
02:32:53,557 INFO | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
02:32:53,557 INFO |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
02:32:53,557 INFO
02:33:00,050 INFO build:start:
02:33:00,051 INFO
02:33:00,051 INFO site:
02:33:00,051 INFO xdoc:register-reports:
02:33:00,051 INFO maven-jdepend-plugin:register:
02:33:00,051 INFO
02:33:00,051 INFO maven-checkstyle-plugin:register:
02:33:00,051 INFO
02:33:00,051 INFO maven-changes-plugin:register:
02:33:00,051 INFO
02:33:00,051 INFO maven-changelog-plugin:register:
02:33:00,051 INFO
02:33:00,051 INFO maven-developer-activity-plugin:register:
02:33:00,051 INFO
02:33:00,051 INFO maven-file-activity-plugin:register:
02:33:00,051 INFO
02:33:00,051 INFO maven-license-plugin:register:
02:33:00,052 INFO
02:33:00,052 INFO xdoc:init:
02:33:00,052 INFO
02:33:00,052 INFO maven-javadoc-plugin:register:
02:33:00,052 INFO     [mkdir] Created dir: /usr/local/Polarion/data/temp/bws_20050802-0230/target/javadoc/src
02:33:01,251 INFO
02:33:01,252 INFO maven-jxr-plugin:register:
02:33:01,252 INFO
02:33:01,252 INFO maven-junit-report-plugin:register:
02:33:01,252 INFO
02:33:01,252 INFO maven-linkcheck-plugin:register:
02:33:01,252 INFO
02:33:01,252 INFO maven-tasklist-plugin:register:
02:33:01,252 INFO
02:33:01,252 INFO
02:33:01,252 INFO site:run-reports:
02:33:01,252 INFO     [echo] Generating the Metrics...
02:33:03,356 INFO Running org.xdoclet.plugin.hibernate.HibernateMappingPlugin
02:33:03,726 INFO maven-jdepend-plugin:report:
02:33:03,727 INFO java:prepare-filesystem:
02:33:03,727 INFO
02:33:03,727 INFO java:compile:
02:33:03,727 INFO xdoclet2:init:
02:33:03,727 INFO
02:33:03,727 INFO xdoclet2:run:
02:33:03,727 INFO
02:33:03,727 INFO xdoclet2:
02:33:03,727 INFO
02:33:03,727 INFO     [echo] Compiling to /usr/local/Polarion/data/temp/bws_20050802-0230/target/classes
02:33:03,754 INFO     [echo]
02:33:03,754 INFO ==========================================================
02:33:03,754 INFO
02:33:03,754 INFO   NOTE: Targetting JVM 1.4, classes
02:33:03,754 INFO   will not run on earlier JVMs
02:33:03,754 INFO
02:33:03,754 INFO ==========================================================
02:33:03,754 INFO           
02:33:07,897 INFO
02:33:07,898 INFO


dobisekm
Posts: 118
Joined: Wed Mar 23, 2005 3:29 pm
Location: Prague, Czech Republic

Postby dobisekm » Wed Aug 03, 2005 8:19 am

Hi,

I would assume that the problem is caused by some incompatibility between dependencies of maven-vdoclet-plugin and the dependencies you recently added.

Please check the
/usr/local/Polarion/data/workspace/.metadata/.plugins/org.apache.maven/cache/maven-vdoclet-plugin-1.2/project.xml

for dependencies of maven-vdoclet-plugin plugin and try to search for dependencies, which are same as the ones of Spring/Hibernate/XDoclet2.

I would expect, that the difference between your local builds and Polarion server builds is causes by different content of maven-repository (there might be some corrupted files).

Please share your experience at this forum.

Good luck,

Michal Dobisek, Polarion Team

guest

Solved at last

Postby guest » Mon Sep 26, 2005 8:38 am

The problem was with Xdoclet2 used within the project for Hibernate mappings generation.

Since latest Xdoclet (v1.2.3) also supports Hibernate we've downgraded to that version and problem dissapeared.

More likely it was qdox dependency used by both Xdoclet2 and vdoclet.


Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 6 guests