db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Russell <Craig.Russ...@Sun.COM>
Subject Re: Trying to run one tck test
Date Sun, 03 Jul 2005 20:16:20 GMT
Hi Michael,

On Jul 3, 2005, at 12:39 PM, Michael Bouschen wrote:

> Hi Craig,
>
>
>> Hi,
>>
>> I'm trying to run the equivalent of maven -Dtest=x  
>> runtck.jdorisingle.
>>
>> I get a bunch of errors before the test I am trying to run  
>> actually runs.
>>
>> Any ideas?
>>
>
> here is my idea: the value of the property jdo.tck.cfglist is  
> intended to be a list of test configuration files, not the name of  
> a file that including that list. I think you do not need the file  
> clr.list. You can directly pass the name of your test configuration  
> when defining the property jdo.tck.cfglist using the -D option:
>  maven -Djdo.tck.cfglist=clr.conf runtck.jdori

This is what the problem was. I ran it just like you said, and it  
worked.

I think it's mostly a matter of documentation.

>
> It might be confusing that the default list of test configurations  
> is taken from a file configuration.list. Maybe it is better to skip  
> the file and specify the default test configurations as property in  
> project.properties:
> jdo.tck.cfglist = alltests.conf cfg2.conf
>
> I looked at the FileNotFoundException JDOTCKTestCases.list. The  
> call 'maven -Djdo.tck.cfglist=clr.list runtck.jdori' used the file  
> clr.list as test configuration. A Test configuration must define  
> the property jdo.tck.classes to list the test classes to run. for  
> the above call the property was not set, so no test classes were to  
> the TestRunner main method. The TestRunner still has some code to  
> default to the list JDOTCKTestCases.list if there are no test  
> classes defined. I propose to change the TestRunner and throw an  
> exception instead. I can take a look at this next week.

This was caused by the problem above.

Thanks,

Craig

> Regards Michael
>
>
>>
>> [Bruiser:jdo/trunk/tck20] clr% cat test/conf/clr.list
>> jdo.tck.cfglist = clr.conf
>>
>> [Bruiser:jdo/trunk/tck20] clr% cat test/conf/clr.conf
>> jdo.tck.description = Subset of standard tests with standard  
>> mapping, no testdata.
>> jdo.tck.testdata =
>> jdo.tck.standarddata =
>> jdo.tck.mapping = 0
>> jdo.tck.classes =  
>> org.apache.jdo.tck.lifecycle.ObjectIdNotModifiedWhenObjectIdInstanceM 
>> odified
>>
>> [Bruiser:jdo/trunk/tck20] clr% maven -Djdo.tck.cfglist=clr.list  
>> runtck.jdori
>> __  __
>> |  \/  |__ _Apache__ ___
>> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
>> |_|  |_\__,_|\_/\___|_||_|  v. 1.0.1
>>
>> Attempting to download jpox-SNAPSHOT.jar.
>> Error retrieving artifact from [http://www.ibiblio.org/maven/jpox/ 
>> jars/jpox-SNAPSHOT.jar] <http://www.ibiblio.org/maven/jpox/jars/ 
>> jpox-SNAPSHOT.jar%5D>: java.net.UnknownHostException:  
>> webcache.sfbay.sun.com
>> Artifact /jpox/jars/jpox-SNAPSHOT.jar doesn't exists in remote  
>> repository, but it exists locally
>> Attempting to download jdo2-api-SNAPSHOT.jar.
>> Error retrieving artifact from [http://www.ibiblio.org/maven/ 
>> apache-jdo/jars/jdo2-api-SNAPSHOT.jar] <http://www.ibiblio.org/ 
>> maven/apache-jdo/jars/jdo2-api-SNAPSHOT.jar%5D>:  
>> java.net.UnknownHostException: webcache.sfbay.sun.com
>> Artifact /apache-jdo/jars/jdo2-api-SNAPSHOT.jar doesn't exists in  
>> remote repository, but it exists locally
>> Attempting to download jpox-enhancer-SNAPSHOT.jar.
>> Error retrieving artifact from [http://www.ibiblio.org/maven/jpox/ 
>> jars/jpox-enhancer-SNAPSHOT.jar] <http://www.ibiblio.org/maven/ 
>> jpox/jars/jpox-enhancer-SNAPSHOT.jar%5D>:  
>> java.net.UnknownHostException: webcache.sfbay.sun.com
>> Artifact /jpox/jars/jpox-enhancer-SNAPSHOT.jar doesn't exists in  
>> remote repository, but it exists locally
>> Attempting to download jdo2-enhancer-SNAPSHOT.jar.
>> Error retrieving artifact from [http://www.ibiblio.org/maven/ 
>> apache-jdo/jars/jdo2-enhancer-SNAPSHOT.jar] <http:// 
>> www.ibiblio.org/maven/apache-jdo/jars/jdo2-enhancer-SNAPSHOT.jar% 
>> 5D>: java.net.UnknownHostException: webcache.sfbay.sun.com
>> Artifact /apache-jdo/jars/jdo2-enhancer-SNAPSHOT.jar doesn't  
>> exists in remote repository, but it exists locally
>> Attempting to download jdo2-core-SNAPSHOT.jar.
>> Error retrieving artifact from [http://www.ibiblio.org/maven/ 
>> apache-jdo/jars/jdo2-core-SNAPSHOT.jar] <http://www.ibiblio.org/ 
>> maven/apache-jdo/jars/jdo2-core-SNAPSHOT.jar%5D>:  
>> java.net.UnknownHostException: webcache.sfbay.sun.com
>> Artifact /apache-jdo/jars/jdo2-core-SNAPSHOT.jar doesn't exists in  
>> remote repository, but it exists locally
>> Attempting to download jpox-c3p0-SNAPSHOT.jar.
>> Error retrieving artifact from [http://www.ibiblio.org/maven/jpox/ 
>> jars/jpox-c3p0-SNAPSHOT.jar] <http://www.ibiblio.org/maven/jpox/ 
>> jars/jpox-c3p0-SNAPSHOT.jar%5D>: java.net.UnknownHostException:  
>> webcache.sfbay.sun.com
>> Artifact /jpox/jars/jpox-c3p0-SNAPSHOT.jar doesn't exists in  
>> remote repository, but it exists locally
>> Attempting to download jpox-dbcp-SNAPSHOT.jar.
>> Error retrieving artifact from [http://www.ibiblio.org/maven/jpox/ 
>> jars/jpox-dbcp-SNAPSHOT.jar] <http://www.ibiblio.org/maven/jpox/ 
>> jars/jpox-dbcp-SNAPSHOT.jar%5D>: java.net.UnknownHostException:  
>> webcache.sfbay.sun.com
>> Artifact /jpox/jars/jpox-dbcp-SNAPSHOT.jar doesn't exists in  
>> remote repository, but it exists locally
>> build:start:
>>
>> setProps:
>>     [echo] setProps:
>>     [echo] Configurations for this run are clr.list
>>     [echo] Databases for this run are derby
>>     [echo] Identity types for this run are applicationidentity  
>> datastoreidentity
>>
>> runtck.jdori:
>> java:prepare-filesystem:
>>
>> java:compile:
>>     [echo] Compiling to /Users/clr/apachejdo/jdo/trunk/tck20/ 
>> target/classes
>>
>> testrunner.set:
>>     [echo] testrunner.set:
>>
>> copyprops:
>>     [echo] copyprops:
>>
>> doEnhance.jdori:
>> enhance.check:
>>
>> package.jdori:
>> package:
>>     [delete] Deleting: /Users/clr/apachejdo/jdo/trunk/tck20/target/ 
>> enhanced/jdori/applicationidentity.jar
>>     [jar] Building jar: /Users/clr/apachejdo/jdo/trunk/tck20/ 
>> target/enhanced/jdori/applicationidentity.jar
>>
>>
>> enhance.check:
>>
>> package.jdori:
>> package:
>>     [delete] Deleting: /Users/clr/apachejdo/jdo/trunk/tck20/target/ 
>> enhanced/jdori/datastoreidentity.jar
>>     [jar] Building jar: /Users/clr/apachejdo/jdo/trunk/tck20/ 
>> target/enhanced/jdori/datastoreidentity.jar
>>
>>
>>
>> package.jdori:
>> package:
>>     [delete] Deleting: /Users/clr/apachejdo/jdo/trunk/tck20/target/ 
>> enhanced/jdori/datastoreidentity.jar
>>     [jar] Building jar: /Users/clr/apachejdo/jdo/trunk/tck20/ 
>> target/enhanced/jdori/datastoreidentity.jar
>>
>>
>> privateRuntck.jdori:
>>     [echo] Run all configurations on jdori
>> ASTIdentifier : java.lang.reflect.InvocationTargetException
>> java.lang.reflect.InvocationTargetException
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native  
>> Method)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke 
>> (NativeMethodAccessorImpl.java:39)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke 
>> (DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:324)
>>         at org.apache.commons.jexl.util.introspection.UberspectImpl 
>> $VelMethodImpl.invoke(UberspectImpl.java:304)
>>         at org.apache.commons.jexl.parser.ASTMethod.execute 
>> (ASTMethod.java:56)
>>         at org.apache.commons.jexl.parser.ASTReference.execute 
>> (ASTReference.java:106)
>>         at org.apache.commons.jexl.parser.ASTReference.value 
>> (ASTReference.java:88)
>>         at org.apache.commons.jexl.ExpressionImpl.evaluate 
>> (ExpressionImpl.java:123)
>>         at  
>> org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate 
>> (JexlExpression.java:115)
>>         at  
>> org.apache.commons.jelly.expression.jexl.JexlExpressionFactory 
>> $ExpressionSupportLocal.evaluate(JexlExpressionFactory.java:168)
>>         at  
>> org.apache.commons.jelly.expression.ExpressionSupport.evaluateRecurse 
>> (ExpressionSupport.java:106)
>>         at  
>> org.apache.commons.jelly.expression.ExpressionSupport.evaluateAsStrin 
>> g(ExpressionSupport.java:91)
>>         at org.apache.commons.jelly.tags.core.ExprTag.doTag 
>> (ExprTag.java:88)
>>         at org.apache.commons.jelly.impl.TagScript.run 
>> (TagScript.java:279)
>>         at org.apache.commons.jelly.impl.ScriptBlock.run 
>> (ScriptBlock.java:135)
>>         at org.apache.commons.jelly.TagSupport.invokeBody 
>> (TagSupport.java:233)
>>         at org.apache.commons.jelly.TagSupport.getBodyText 
>> (TagSupport.java:286)
>>         at org.apache.commons.jelly.tags.core.SetTag.doTag 
>> (SetTag.java:136)
>>         at org.apache.commons.jelly.impl.TagScript.run 
>> (TagScript.java:279)
>>         at org.apache.commons.jelly.impl.ScriptBlock.run 
>> (ScriptBlock.java:135)
>>         at org.apache.commons.jelly.TagSupport.invokeBody 
>> (TagSupport.java:233)
>>         at org.apache.commons.jelly.tags.core.ForEachTag.doTag 
>> (ForEachTag.java:145)
>>         at org.apache.commons.jelly.impl.TagScript.run 
>> (TagScript.java:279)
>>         at org.apache.commons.jelly.impl.ScriptBlock.run 
>> (ScriptBlock.java:135)
>>         at org.apache.commons.jelly.TagSupport.invokeBody 
>> (TagSupport.java:233)
>>         at org.apache.commons.jelly.tags.core.ForEachTag.doTag 
>> (ForEachTag.java:145)
>>         at org.apache.commons.jelly.impl.TagScript.run 
>> (TagScript.java:279)
>>         at org.apache.commons.jelly.impl.ScriptBlock.run 
>> (ScriptBlock.java:135)
>>         at org.apache.commons.jelly.TagSupport.invokeBody 
>> (TagSupport.java:233)
>>         at org.apache.commons.jelly.tags.core.ForEachTag.doTag 
>> (ForEachTag.java:145)
>>         at org.apache.commons.jelly.impl.TagScript.run 
>> (TagScript.java:279)
>>         at org.apache.commons.jelly.impl.ScriptBlock.run 
>> (ScriptBlock.java:135)
>>         at  
>> org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag 
>> (MavenGoalTag.java:79)
>>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag 
>> $MavenGoalAction.performAction(MavenGoalTag.java:110)
>>         at com.werken.werkz.Goal.fire(Goal.java:639)
>>         at com.werken.werkz.Goal.attain(Goal.java:575)
>>         at com.werken.werkz.WerkzProject.attainGoal 
>> (WerkzProject.java:193)
>>         at  
>> org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag 
>> (MavenAttainGoalTag.java:127)
>>         at org.apache.commons.jelly.impl.TagScript.run 
>> (TagScript.java:279)
>>         at org.apache.commons.jelly.impl.ScriptBlock.run 
>> (ScriptBlock.java:135)
>>         at  
>> org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag 
>> (MavenGoalTag.java:79)
>>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag 
>> $MavenGoalAction.performAction(MavenGoalTag.java:110)
>>         at com.werken.werkz.Goal.fire(Goal.java:639)
>>         at com.werken.werkz.Goal.attain(Goal.java:575)
>>         at org.apache.maven.plugin.PluginManager.attainGoals 
>> (PluginManager.java:671)
>>         at org.apache.maven.MavenSession.attainGoals 
>> (MavenSession.java:263)
>>         at org.apache.maven.cli.App.doMain(App.java:488)
>>         at org.apache.maven.cli.App.main(App.java:1239)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native  
>> Method)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke 
>> (NativeMethodAccessorImpl.java:39)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke 
>> (DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:324)
>>         at com.werken.forehead.Forehead.run(Forehead.java:551)
>>         at com.werken.forehead.Forehead.main(Forehead.java:581)
>> Caused by: java.lang.NullPointerException
>>         at java.lang.String.concat(String.java:1503)
>>         ... 55 more
>> doRuntck.jdori:
>>     [java] Problems reading testlist JDOTCKTestCases.list:  
>> java.io.FileNotFoundException: JDOTCKTestCases.list (No such file  
>> or directory)
>>     [java] Time: 0
>>     [java] Description:
>>     [java] OK (0 tests)
>>
>> doRuntck.jdori:
>> Overriding previous definition of reference to this.jdori.class.path
>>     [java] RUN  
>> ObjectIdNotModifiedWhenObjectIdInstanceModified.testlog4j:WARN No  
>> appenders could be found for logger  
>> (com.mchange.v2.c3p0.C3P0Registry).
>>     [java] log4j:WARN Please initialize the log4j system properly.
>>     [java] 2005-07-02 17:15:05.880 java[3663] CFLog (0):  
>> CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port =  
>> 0x1c703, name = 'java.ServiceProvider'
>>     [java] See /usr/include/servers/bootstrap_defs.h for the error  
>> codes.
>>     [java] 2005-07-02 17:15:05.880 java[3663] CFLog (99):  
>> CFMessagePortCreateLocal(): failed to name Mach port  
>> (java.ServiceProvider)
>>     [java] [DEBUG] tck - Failures comparing oids.
>>
>> Craig Russell
>>
>> Architect, Sun Java Enterprise System http://java.sun.com/products/ 
>> jdo
>>
>> 408 276-5638 mailto:Craig.Russell@sun.com
>>
>> P.S. A good JDO? O, Gasp!
>>
>>
>>
>
>
> -- 
> Michael Bouschen        Tech@Spree Engineering GmbH
> mailto:mbo.tech@spree.de    http://www.tech.spree.de/
> Tel.:++49/30/235 520-33        Buelowstr. 66
> Fax.:++49/30/2175 2012        D-10783 Berlin
>
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Mime
View raw message