db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Monroe <Greg.Mon...@dukece.com>
Subject RE: [Vote]release torque 4.0
Date Tue, 08 Jan 2013 21:43:43 GMT
An older version of JDK 6.0 was the problem.  

I've built from svn checkout and run the tests against MySQL 5.1 and SQL Server 2005.

Here are my notes for issues I've found doing this:

Torque 4.0 Testing Notes:
====================

minor - Site zip file is "stored" and not compressed so it is much larger 
        than tar.gz

docs - Need strong notice about problems building with older JDK.  Probably 
       in the SVN/Build page

docs - Test Project page refers to profiles.xml which does not exist but 
       is part of the Pom.xml 

docs - Test Project page should mention editing the Torque.properties in 
       the src/test/profile/${profile} directory

bug - Running Test project against MySQL 5.1 produces errors in the 
      sql:execute phase:  Problem sql files are:
      
      - bookstore-schema ( ALTER TABLE / FOREIGN KEY statements)
      - databaseMapInit-schema.sql (mostly creating date field defaults 
          and some alter table/foreign key statements )
      - pk-schema.sql (Table exists error)
      - test-schema.sql (ALTER TABLE / FOREIGN KEY statements)
      - pk-schema-idtable-init.sql (Insert failed because of duplicate key)
        
      Note: Some of errors get hidden during second run with tables created.
        
bug - Running Test project against MS SQL 2005 produces errors in the 
      sql:execute phase.  Problem sql files are:
      
      - bookstore-schema.sql ( ALTER TABLE / DROP CONSTRAINT statments and 
          DROP VIEW statement)
      - default-value-schema.sql ( mostly creating date field defaults 
          and some alter table drop constraint key statements ) 
      - pk-schema.sql (Table exists error)
      - qualified-table-name-schema.sql  (Schema exists on 2nd run)
      - save-method-in-peer-schema.sql (ALTER TABLE / DROP CONSTRAINT stmts)
      - test-schema.sql (ALTER TABLE/DROP CONSTRAINT and CREATE BASE table)
      - pk-schema-idtable-init.sql (Insert failed because of duplicate key)

Given that these two common Database don't generate clean test runs, I'm going to 
have to vote:

-1

On the release... unless there are reasons I don't understand for generating bad SQL.

-----Original Message-----
From: Thomas Fox [mailto:Thomas.Fox@seitenbau.net] 
Sent: Saturday, January 05, 2013 7:49 AM
To: Apache Torque Developers List
Subject: RE: [Vote]release torque 4.0

This is a known bug in the java 1.5 compiler, see

http://mail-archives.apache.org/mod_mbox/db-torque-dev/201207.mbox/%3COF2217CD22.8E4EF3F9-ONC1257A36.0027A401-C1257A36.002812D8%40seitenbau.net%3E

and the discussion in this thread.

I can reproduce your problem when switching to java 1.5 (jdk 1.5.0_22) but everything compiles
ok on java1.6 (1.6.0_33) where the compiler bug is supposed to be fixed.
I.e. we cannot build on java 1.5 but we are 1.5 compatible (checked by the derby test-project
run in jenkins)

Greg, can you please check which java your maven is using by running

mvn --version ?

   Thanks,

         Thomas

Greg Monroe <Greg.Monroe@dukece.com> wrote:
> Whoops, think I found a show stopper setting up a clean install for 
> testing with MS SQL.
>
> A clean Maven build of the SVN torque-4.0 tag fails with compiler 
> errors when it starts to compile the runtime.
>
> Compiler error messages:
>
> \Temp\Torque\torque-4.0\torque-runtime\src\main\java\org\apache
> \torque\Torque.java:[197,39]
> type parameters of <T>T cannot be determined; no unique maximal 
> instance exists for type variable T with upper bounds 
> T,org.apache.torque.manager.AbstractBaseManager<? extends 
> org.apache.torque.om.Persistent>
>
> \Temp\Torque\torque-4.0\torque-runtime\src\main\java\org\apache
> \torque\Torque.java:[213,39]
> type parameters of <T>T cannot be determined; no unique maximal 
> instance exists for type variable T with upper bounds 
> T,org.apache.torque.manager.AbstractBaseManager<? extends 
> org.apache.torque.om.Persistent>
>
> Environment:
>
>   Windows 7
>   Maven 2.2.1  (new install with empty repository)
>   Java 1.6.0_23
>
> Process:
>
>   SVN checkout of torque-4.0 tag to \temp\torque\torque-4.0
>   Run mvn install in torque-4.0 directory.
>
> Output ( Second run after Maven downloaded all the dependencies):
>
> C:\Temp\Torque\torque-4.0>mvn install
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Torque Maven Parent
> [INFO]   Torque Runtime
> [INFO]   Torque Generator
> [INFO]   Torque Templates
> [INFO]   Torque Generator Maven 2 Plugin
> [INFO]   Torque Generator Ant tasks
> [INFO]   Torque Site
> [INFO]
> ----------------------------------------------------------------------
> --
> [INFO] Building Torque Maven Parent
> [INFO]    task-segment: [install]
> [INFO]
> ----------------------------------------------------------------------
> -- [WARNING] The parameter expression: 'project.build.resources' used 
> in mojo: 'pro cess' has been deprecated. Use 'project.resources' 
> instead.
> [INFO] [remote-resources:process {execution: default}] [INFO] 
> [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] 
> [source:jar-no-fork {execution: attach-sources}] [INFO] 
> [apache-rat:check {execution: default}] [INFO] Exclude: velocity.log 
> [INFO] Exclude: .checkstyle [INFO] Exclude: checkstyle-cache.ccf 
> [INFO] Exclude: derby.log [INFO] Exclude: LICENSE-EDL.txt [INFO] 
> Exclude: DEPENDENCIES [INFO] Exclude: torque-test/target/**/* [INFO] 
> Exclude: torque-test/.classpath [INFO] Exclude: torque-test/.project 
> [INFO] Exclude: torque-test/.settings/** [INFO] Exclude: 
> torque-test/src/main/generated-java/**/*
> [INFO] [install:install {execution: default-install}] [INFO] 
> Installing C:\Temp\Torque\torque-4.0\pom.xml to C:\Users 
> \monroe.DUKECE\.m 
> 2\repository\org\apache\torque\torque\4.0\torque-4.0.pom
> [INFO]
> ----------------------------------------------------------------------
> --
> [INFO] Building Torque Runtime
> [INFO]    task-segment: [install]
> [INFO]
> ----------------------------------------------------------------------
> -- [WARNING] The parameter expression: 'project.build.resources' used 
> in mojo: 'pro cess' has been deprecated. Use 'project.resources' 
> instead.
> [INFO] [remote-resources:process {execution: default}] [debug] execute 
> contextualize [INFO] [resources:resources {execution: 
> default-resources}] [INFO] Using 'ISO-8859-1' encoding to copy 
> filtered resources.
> [INFO] skip non existing resourceDirectory C:\Temp\Torque\torque-4.0 
> \torque-runt ime\src\main\resources [INFO] Copying 3 resources [INFO] 
> [compiler:compile {execution: default-compile}] [INFO] Compiling 13 
> source files to C:\Temp\Torque\torque-4.0 \torque-runtime\tar 
> get\classes [INFO] 
> -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] \Temp\Torque\torque-4.0\torque-runtime\src\main\java\org
> \apache\torque\T
> orque.java:[197,39] type parameters of <T>T cannot be determined; no 
> unique maxi mal instance exists for type variable T with upper bounds 
> T,org.apache.torque.ma nager.AbstractBaseManager<? extends 
> org.apache.torque.om.Persistent>
>
> [ERROR] \Temp\Torque\torque-4.0\torque-runtime\src\main\java\org
> \apache\torque\T
> orque.java:[213,39] type parameters of <T>T cannot be determined; no 
> unique maxi mal instance exists for type variable T with upper bounds 
> T,org.apache.torque.ma nager.AbstractBaseManager<? extends 
> org.apache.torque.om.Persistent>
>
> [INFO] 2 errors
> [INFO] -------------------------------------------------------------
> [INFO]
> ----------------------------------------------------------------------
> --
> [ERROR] BUILD FAILURE
> [INFO]
> ----------------------------------------------------------------------
> --
> [INFO] Compilation failure
>
> \Temp\Torque\torque-4.0\torque-runtime\src\main\java\org\apache
> \torque\Torque.ja
> va:[197,39] type parameters of <T>T cannot be determined; no unique 
> maximal inst ance exists for type variable T with upper bounds 
> T,org.apache.torque.manager.Ab stractBaseManager<? extends 
> org.apache.torque.om.Persistent>
>
> \Temp\Torque\torque-4.0\torque-runtime\src\main\java\org\apache
> \torque\Torque.ja
> va:[213,39] type parameters of <T>T cannot be determined; no unique 
> maximal inst ance exists for type variable T with upper bounds 
> T,org.apache.torque.manager.Ab stractBaseManager<? extends 
> org.apache.torque.om.Persistent>
>
>
> [INFO]
> ----------------------------------------------------------------------
> -- [INFO] For more information, run Maven with the -e switch [INFO]
> ----------------------------------------------------------------------
> --
> [INFO] Total time: 7 seconds
> [INFO] Finished at: Fri Jan 04 16:32:50 EST 2013 [INFO] Final Memory: 
> 74M/740M [INFO]
> ----------------------------------------------------------------------
> --
>
>
>
> -----Original Message-----
> From: Greg Monroe [mailto:Greg.Monroe@dukece.com]
> Sent: Wednesday, January 02, 2013 10:40 AM
> To: 'Apache Torque Developers List'
> Subject: RE: [Vote]release torque 4.0
>
> Sorry, just getting back from 2+ weeks of time off (using up
> vacation time before losing it Jan 1).    Intentionally not
> monitoring work e-mail so I did not see the vote.
>
> I'll look at this in the next few days after I sort out a few work
things.
>
> Greg
>
> -----Original Message-----
> From: Thomas Vandahl [mailto:tv@apache.org]
> Sent: Sunday, December 23, 2012 6:52 AM
> To: Apache Torque Developers List
> Subject: Re: [Vote]release torque 4.0
>
> On 20.12.12 11:43, Thomas Fox wrote:
> > The vote closes Sun, 23 Dec, 18:00 GMT to allow for a christmas 
> > release
>
> Sorry, I won't be able to meet that deadline. Just keep the vote open 
> and I'll find some time to look at the release after christmas.
>
> Bye, Thomas.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-dev-help@db.apache.org
>
> DukeCE Privacy Statement:
> Please be advised that this e-mail and any files transmitted with it 
> are confidential communication or may otherwise be privileged or 
> confidential and are intended solely for the individual or entity to 
> whom they are addressed. If you are not the intended recipient you may 
> not rely on the contents of this email or any attachments, and we ask 
> that you please not read, copy or retransmit this communication, but 
> reply to the sender and destroy the email, its contents, and all 
> copies thereof immediately. Any unauthorized dissemination, 
> distribution or copying of this communication is strictly prohibited.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-dev-help@db.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-dev-help@db.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message