surefire fails but tests work
i get ERROR] BUILD ERROR [INFO] [INFO] There are some test failure. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 13 seconds [INFO] Finished at: Thu Jul 27 13:12:46 CEST 2006 [INFO] Final Memory: 5M/14M but my only test in target/surefire-reports says --- Battery: at.systemone.configuration.ConfigurationControllerTest --- Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 4.437 sec where can i have a look to understand on this issue
Re: [Continumm 1.0.3] Alot of errors in the continumm log file..
Hi Emmanuel, Took a quick look at the package.jdo and it only contains the length property for the column not the actual datatyp. Isn't the SCMResult.class (found in continuum-model.jar) generated from http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-model/src/main/mdo/continuum.mdo This file contains the datatypes and length for the columns. And in that case the continuum.mdo needs to be modified and the class re-generated, or? /Mattias ok, I'll try changing that when I find some spare time. And the create table stmt should look like this and nothing else. CREATE TABLE SCMRESULT2 ( SCMRESULT_ID BIGINT PRIMARY KEY not null, COMMAND_LINE VARCHAR(255), COMMAND_OUTPUT CLOB(16M), EXCEPTION VARCHAR(8192), PROVIDER_MESSAGE VARCHAR(1024), SUCCESS CHAR(1) not null, MODEL_ENCODING VARCHAR(255) ); /Mattias oh yes, you need to change package.jdo in continuum-model.jar I don't think you need to change something else. Emmanuel Mattias Andersson a écrit : Hi Emmanuel, Is blob really appropriate for varchar type of information? You can't copy varchar into a blob! Shouldn't it be a clob? Below are the SQL statments that I executed. (unfortunatly you can't alter the data type of the column directly). But when I started continumm it complained that the column COMMAND_OUTPUT should be a VARCHAR and not a CLOB. org.jpox.store.exceptions.IncompatibleDataTypeException: Incompatible data type for column SCMRESULT.COMMAND_OUTPUT : was Types.CLOB, but type expected was Types.VARCHAR. Please check that the type in the datastore and the type specified in the MetaData are consistent. So I guess you can't change this without changing to code. Or is the meta data available some where? Regards, Mattias CREATE TABLE SCMRESULT2 ( SCMRESULT_ID BIGINT PRIMARY KEY not null, COMMAND_LINE VARCHAR(255), COMMAND_OUTPUT VARCHAR(16384), EXCEPTION VARCHAR(8192), PROVIDER_MESSAGE VARCHAR(1024), SUCCESS CHAR(1) not null, MODEL_ENCODING VARCHAR(255) ); INSERT INTO SCMRESULT2 SELECT * FROM SCMRESULT; ALTER TABLE CHANGESET DROP CONSTRAINT CHANGESET_FK1; ALTER TABLE BUILDRESULT DROP CONSTRAINT BUILDRESULT_FK1; ALTER TABLE BUILDRESULT DROP CONSTRAINT BUILDRESULT_FK3; ALTER TABLE PROJECT DROP CONSTRAINT PROJECT_FK1; ALTER TABLE PROJECT DROP CONSTRAINT PROJECT_FK4; DROP TABLE SCMRESULT; RENAME TABLE SCMRESULT2 TO SCMRESULT; ALTER TABLE CHANGESET ADD CONSTRAINT CHANGESET_FK1 FOREIGN KEY (CHANGES_SCMRESULT_ID_OID) REFERENCES SCMRESULT(SCMRESULT_ID); ALTER TABLE BUILDRESULT ADD CONSTRAINT BUILDRESULT_FK1 FOREIGN KEY (SCM_RESULT_SCMRESULT_ID_VM) REFERENCES SCMRESULT(SCMRESULT_ID); ALTER TABLE BUILDRESULT ADD CONSTRAINT BUILDRESULT_FK3 FOREIGN KEY (SCM_RESULT_SCMRESULT_ID_OID) REFERENCES SCMRESULT(SCMRESULT_ID); ALTER TABLE PROJECT ADD CONSTRAINT PROJECT_FK1 FOREIGN KEY (CHECKOUT_RESULT_SCMRESUL2U) REFERENCES SCMRESULT(SCMRESULT_ID); ALTER TABLE PROJECT ADD CONSTRAINT PROJECT_FK4 FOREIGN KEY (CHECKOUT_RESULT_SCMRESULT_ID_OID) REFERENCES SCMRESULT(SCMRESULT_ID); If you change it, can you send us the procedure? we'll add an entry in faqs. Emmanuel Mattias Andersson a écrit : Hi Emmanuel, ok, I'll try to change the column. Thanks for the quick response! Regards, Mattias It's a known problem thazt we'll fix in 1.1. The length of a field (COMMAND_OUTPUT) isn't enought in database, you can change it to a blob with a sql client like squirrel. Emmanuel Mattias Andersson a écrit : Hi, I got some errors today in the continuum log fil that I do know how to solve? The appeared when I pressed the build button for a project. It's a shell project, SCM is CVS and I use continumm 1.0.3. Are these errors known or should I add new isues? And are there any workarounds? (the complete stack trace is not included below to keep the mail smaller. They are available if needed) Regards, Mattias ERROR 1: === cvs update: move away scripts/Database/mssql/Views/dbo.DB_SubRatParamHistory_1.VIW; it is in the way 31802313 [Thread-2] WARN org.apache.maven.continuum.scm.ContinuumScm - Provider message: The cvs command failed. 31802391 [Thread-2] ERROR org.apache.maven.continuum.buildcontroller.BuildController - Error while building project. javax.jdo.JDODataStoreException: Insert request failed: INSERT INTO SCMRESULT (SCMRESULT_ID,SUCCESS,COMMAND_OUTPUT,EXCEPTION,COMMAND_LINE,PROVIDER_MESSAGE,MODEL_ENCODING) VALUES (?,?,?,?,?,?,?) at org.jpox.store.rdbms.request.InsertRequest.execute(InsertRequest.java:387) at org.jpox.store.rdbms.table.ClassTable.insert(ClassTable.java:2146) at org.jpox.store.StoreManager.insert(StoreManager.java:739) at org.jpox.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3415) at
RE: issue with setting up M1 POM URL
-Original Message- From: Yuan, Bill Sent: Thursday, July 27, 2006 9:15 AM To: continuum-users@maven.apache.org Subject: RE: issue with setting up M1 POM URL Arnaud and any other experts, I still have problem with adding our Maven 1.x project to Continuum. Let me restate our problem again: [deleted] Seems like we have to use the M1 POM URL option instead. However, I tried various URL format (I could only use FILE protocol), like, file:///C:\p4\WS_u208479_AIS\EAI_weblogic\uia2_5.0\project.xml fill:///C:/p4/WS_u208479_AIS/EAI_weblogic/uia2_5.0/project.xml ftp:///c: /p4/WS_u208479_AIS/EAI_weblogic/uia2_5.0/project.xml but always got the error message saying [ You must provide a valid url (http, https, ftp and file protocols are allowed) ] Bill, I'm not strictly familiar with the maven POM URL format, but the file: protocol with a DOS path should look like this: file://C:/p4/WS_u208479_AIS/EAI_weblogic/uia2_5.0/project.xml It should have 2 slashes before the disk letter, and use all forward slashes. -Original Message- From: Arnaud HERITIER [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 25, 2006 4:18 PM To: continuum-users@maven.apache.org Subject: Re: issue with setting up M1 POM URL There's no jar to update. You just have to reboot your continuum server Arnaud On 7/25/06, Yuan, Bill [EMAIL PROTECTED] wrote: Arnaud, I tried but seems like it doesn't work. I also found from the FAQ on http://maven.apache.org/continuum/faqs.html . It says that if we need to use File protocol in Add project view, we have to uncomment the line allowedSchemefile/allowedScheme in application.xml. I did the change, but how could I compile the new jars which will reference this application.xml? Thanks for your followup! - Bill -Original Message- From: Arnaud HERITIER [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 25, 2006 3:58 PM To: continuum-users@maven.apache.org Subject: Re: issue with setting up M1 POM URL If your POM isn't on a web server but on your local disk, you have to define something like : fille://C:/p4/WS_u208479_AIS/EAI_weblogic/uia2_5.0/project.xml ftp://c/p 4/WS_u208479_AIS/EAI_weblogic/uia2_5.0/project.xml cheers arnaud On 7/25/06, Yuan, Bill [EMAIL PROTECTED] wrote: Hi there, Please help me on the following issue: I installed Continuum 1-0-3 on my local machine, and our project is managed by Perforce on another server. My problem is: On the web interface of Continuum (http://localhost:8080/continuum/servlet/continuum), I clicked Add Maven 1.x project, however, whatever M1 POM URL I gave, I got the error saying [ You must provide a valid url (http, https, ftp and file protocols are allowed) ]. For example, I gave one URL string as ftp:///C:/p4/WS_u208479_AIS/EAI_weblogic/uia2_5.0/project.xml and got the error mentioned earlier. Could anybody help me on what the M1 POM URL would be? One note is that our project includes a bunch of subprojects, meaning I can't use the Upload POM function Thanks, Bill (Xinxue) Yuan Retail Bank Services and Systems Application Architectur/Integration Washington Mutual 847.393.5382 Office 847.903.4548 Mobile 340 N. Milwaukee Ave., VHF4A01, Vernon Hills, IL 60061
Re: sub project notifications
I don't think it will use that childs notification element, I don't think continuum actually knows anything about that subproject when it comes to it failing and sending out notifications. on the bright side project groups are getting a rework in the next version of continuum :) jesse On 7/27/06, Brian E. Fox [EMAIL PROTECTED] wrote: Hi All, We're currently running 1.0.3 on several large multiprojects. I needed to add just the parents and clear the non-recursive flag because having each module as a standalone entity in continuum was unmanageable (we have ~50 modules in several branches for around 100+ total). If I set a notification element in one of the child poms, will continuum use that to notify? Example: A-- B-- C D E If I set a notification email in B, when the build fails in C or D, will that be sent, or will it only send notifications configured in A since that's the only project configured directly in continuum? -- jesse mcconnell [EMAIL PROTECTED]