db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew T. Adams" <matthew.ad...@xcalia.com>
Subject RE: Successful w/dsid, error w/appid running detach.list?
Date Thu, 29 Dec 2005 21:39:24 GMT
Thanks.  I guess I was confused when I read in trunk/readme.txt the
following:
 
 
It seemed to imply that the argument should be one of the .list files, which
made sense to me since the property is "jdo.tck.cfglist", and when you look
at the contents of  is a bunch of .conf files.  Upon closer look, I see that
the configurations.list file contains a property definition for
jdo.tck.cfglist, then it made sense.  I remember getting tripped up by this
a while ago -- I wouldn't be surprised if others got tripped up as well.
I'll update the trunk/readme.txt to make it explicit that this is a list of
.conf files, not a .list file.
 
--matthew

-----Original Message-----
From: Craig.Russell@Sun.COM [mailto:Craig.Russell@Sun.COM] 
Sent: Thursday, December 29, 2005 1:27 PM
To: jdo-dev@db.apache.org
Subject: Re: Successful w/dsid, error w/appid running detach.list?


Hi Matthew, 

The detach.list is not necessary. The detach.conf should be the parameter of
the -Djdo.tck.cfglist on your command line.

I just ran the test:

[Bruiser:jdo/trunk/tck20] clr% cat test/conf/detach.conf 
jdo.tck.description = Detachment tests with standard mapping, no testdata. 
jdo.tck.testdata = 
jdo.tck.standarddata = 
jdo.tck.mapping = 0
jdo.tck.classes = \
    org.apache.jdo.tck.api.persistencemanager.detach.SetDetachAllOnCommit \
    org.apache.jdo.tck.api.persistencemanager.detach.GetDetachAllOnCommit
jdo.tck.requiredOptions =
[Bruiser:jdo/trunk/tck20] clr% maven -Djdo.tck.cfglist=detach.conf
runtck.jdori
__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.1

Attempting to download jdo2-api-SNAPSHOT.jar.
Artifact /apache-jdo/jars/jdo2-api-SNAPSHOT.jar doesn't exists in remote
repository, but it exists locally
Attempting to download jdo2-enhancer-SNAPSHOT.jar.
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.
Artifact /apache-jdo/jars/jdo2-core-SNAPSHOT.jar doesn't exists in remote
repository, but it exists locally
Attempting to download jpox-SNAPSHOT.jar.
1607K downloaded
Attempting to download jpox-enhancer-SNAPSHOT.jar.
162K downloaded
Attempting to download jpox-c3p0-SNAPSHOT.jar.
Attempting to download jpox-dbcp-SNAPSHOT.jar.
build:start:

setProps:
    [echo] setProps:
    [echo] Configurations for this run are "detach.conf". To override this,
use -Djdo.tck.cfglist=xxx on the maven command line.
    [echo] Databases for this run are "derby". To override this, use
-Djdo.tck.dblist=xxx on the maven command line.
    [echo] Identity types for this run are "applicationidentity
datastoreidentity". To override this, use -Djdo.tck.identitytypes=xxx on the
maven command line.

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/applicationidenti
ty.jar
    [jar] Building jar:
/Users/clr/apachejdo/jdo/trunk/tck20/target/enhanced/jdori/applicationidenti
ty.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



privateRuntck.jdori:
    [mkdir] Created dir:
/Users/clr/apachejdo/jdo/trunk/tck20/target/logs/20051229-132415
    [echo] Run all configurations on jdori
exclude:

doRuntck.jdori:
    [java] Cannot find test class
'org.apache.jdo.tck.api.persistencemanager.detach.GetDetachAllOnCommit'.
    [java] RUN SetDetachAllOnCommit.test
    [java] Description: Detachment tests with standard mapping, no testdata.
    [java] Time: 028
    [java] derby-app-detach-junit.txt:
    [java]     OK Tests run: 001, Time: 028 seconds.
    [java] Excluded tests:
[org.apache.jdo.tck.enhancement.FieldAccessModified,
org.apache.jdo.tck.enhancement.ImplementsPersistenceCapable]
    [echo] Finished run with database="derby"
identitytype="applicationidentity" mapping="".

exclude:

doRuntck.jdori:
Overriding previous definition of reference to this.jdori.class.path
    [java] Cannot find test class
'org.apache.jdo.tck.api.persistencemanager.detach.GetDetachAllOnCommit'.
    [java] RUN SetDetachAllOnCommit.test
    [java] Description: Detachment tests with standard mapping, no testdata.
    [java] Time: 025
    [java] derby-dsid-detach-junit.txt:
    [java]     OK Tests run: 001, Time: 025 seconds.
    [java] Excluded tests:
[org.apache.jdo.tck.enhancement.FieldAccessModified,
org.apache.jdo.tck.enhancement.ImplementsPersistenceCapable]
    [echo] Finished run with database="derby"
identitytype="datastoreidentity" mapping="".


result:
    [java] Result: All (2) configurations passed.
    [java] See file
'/Users/clr/apachejdo/jdo/trunk/tck20/target/logs/20051229-132415/TCK-result
s.txt' for details.
BUILD SUCCESSFUL
Total time: 2 minutes 10 seconds
Finished at: Thu Dec 29 13:25:21 PST 2005

Voila!

Craig

I suggest that you svn del test/conf/delete.list... 


On Dec 29, 2005, at 11:56 AM, Matthew T. Adams wrote:


Hi all,

I was wondering why I'm getting the following error when trying to run the
rather sparse detachment tests.  Note that things appear to succeed with
datastore id, but there are exceptions thrown with application id.  Can
someone explain what is going on and why I should or shouldn't be worried?
There's nothing notable in the logs; I've attached the JPOX log just in
case, since it actually had stuff in it.

Thanks,
Matthew

Here's my console output:

C:\apache-jdo\project\trunk\tck20>maven -Djdo.tck.cfglist=detach.list
runtck.jdori
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.1-beta-2

DEPRECATED: the default goal should be specified in the <build> section of
project.xml instead of maven.xml
DEPRECATED: the default goal should be specified in the <build> section of
project.xml instead of maven.xml
Attempting to download jdo2-api-SNAPSHOT.jar.
Artifact /apache-jdo/jars/jdo2-api-SNAPSHOT.jar doesn't exist in remote
repository, but it exists locally.
Attempting to download jdo2-enhancer-SNAPSHOT.jar.
Artifact /apache-jdo/jars/jdo2-enhancer-SNAPSHOT.jar doesn't exist in remote
repository, but it exists locally.
Attempting to download jdo2-core-SNAPSHOT.jar.
Artifact /apache-jdo/jars/jdo2-core-SNAPSHOT.jar doesn't exist in remote
repository, but it exists locally.
Attempting to download jpox-SNAPSHOT.jar.
1607K downloaded
Attempting to download jpox-enhancer-SNAPSHOT.jar.
162K downloaded
Attempting to download jpox-c3p0-SNAPSHOT.jar.
Attempting to download jpox-dbcp-SNAPSHOT.jar.
build:start:

setProps:
    [echo] setProps:
    [echo] Configurations for this run are "detach.list". To override this,
use -Djdo.tck.cfglist=xxx on the maven command line.
    [echo] Databases for this run are "derby". To override this, use
-Djdo.tck.dblist=xxx on the maven command line.
    [echo] Identity types for this run are "applicationidentity
datastoreidentity". To override this, use -Djdo.tck.identitytypes=xxx on the
maven command line.


runtck.jdori:
    [mkdir] Created dir:
C:\apache-jdo\project\trunk\tck20\target\logs\database
java:prepare-filesystem:

java:compile:
    [echo] Compiling to C:\apache-jdo\project\trunk\tck20/target/classes
    [javac] Compiling 2 source files to
C:\apache-jdo\project\trunk\tck20\target\classes

testrunner.set:
    [echo] testrunner.set:

copyprops:
    [echo] copyprops:

doEnhance.jdori:
enhance.check:

package.jdori:
package:
    [delete] Deleting:
C:\apache-jdo\project\trunk\tck20\target\enhanced\jdori\applicationidentity.
jar
    [jar] Building jar:
C:\apache-jdo\project\trunk\tck20\target\enhanced\jdori\applicationidentity.
jar


enhance.check:

package.jdori:
package:
    [delete] Deleting:
C:\apache-jdo\project\trunk\tck20\target\enhanced\jdori\datastoreidentity.ja
r
    [jar] Building jar:
C:\apache-jdo\project\trunk\tck20\target\enhanced\jdori\datastoreidentity.ja
r



privateRuntck.jdori:
    [mkdir] Created dir:
C:\apache-jdo\project\trunk\tck20\target\logs\20051229-105331
    [echo] Run all configurations on jdori
exclude:

Caught exception evaluating: org.apache.commons.jexl.ExpressionImpl@14b84c7.
Reason: java.lang.NullPointerException
java.lang.NullPointerException
        at java.lang.String.concat(String.java:1503)
        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.invok
e(UberspectImpl.java:268)
        at
org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:61)
        at
org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:68)
        at
org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:50)
        at
org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:86)
        at
org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(JexlExpress
ion.java:69)
        at
org.apache.commons.jelly.expression.ExpressionSupport.evaluateRecurse(Expres
sionSupport.java:61)
        at
org.apache.commons.jelly.expression.ExpressionSupport.evaluateAsString(Expre
ssionSupport.java:46)
        at org.apache.commons.jelly.tags.core.ExprTag.doTag(ExprTag.java:42)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
        at
org.apache.commons.jelly.TagSupport.getBodyText(TagSupport.java:234)
        at org.apache.commons.jelly.tags.core.SetTag.doTag(SetTag.java:90)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
        at
org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:150)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
        at
org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:150)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
        at
org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:150)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:
78)
        at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction
(MavenGoalTag.java:109)
        at org.apache.maven.werkz.Goal.fire(Goal.java:656)
        at org.apache.maven.werkz.Goal.attain(Goal.java:592)
        at
org.apache.maven.werkz.WerkzProject.attainGoal(WerkzProject.java:210)
        at
org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGoalTa
g.java:114)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:
78)
        at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction
(MavenGoalTag.java:109)
        at org.apache.maven.werkz.Goal.fire(Goal.java:656)
        at org.apache.maven.werkz.Goal.attain(Goal.java:592)
        at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:693)
        at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
        at org.apache.maven.cli.App.doMain(App.java:511)
        at org.apache.maven.cli.App.main(App.java:1258)
        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)
doRuntck.jdori:
    [java] Missing JDO TCK test classes for configuration 'detach.list'.
Please check the property 'jdo.tck.classes'.
    [java] [ERROR] Java Result: 2
    [echo] Finished run with database="derby"
identitytype="applicationidentity" mapping="".

exclude:

doRuntck.jdori:
Overriding previous definition of reference to this.jdori.class.path
    [java] RUN SetDetachAllOnCommit.test
    [java] RUN GetDetachAllOnCommit.test
    [java] Description: Detachment tests with standard mapping, no testdata.
    [java] Time: 006
    [java] derby-dsid-detach-junit.txt:
    [java]     OK Tests run: 002, Time: 006 seconds.
    [java] Excluded tests:
[org.apache.jdo.tck.enhancement.FieldAccessModified,
org.apache.jdo.tck.enhancement.ImplementsPersistenceCapable]
    [echo] Finished run with database="derby"
identitytype="datastoreidentity" mapping="".


result:
    [java] Result: All (1) configurations passed.
    [java] See file
'C:\apache-jdo\project\trunk\tck20/target/logs/20051229-105331\TCK-results.t
xt' for details.

BUILD SUCCESSFUL
Total time   : 1 minutes 9 seconds
Finished at  : Thursday, December 29, 2005 10:53:38 AM PST 
<derby-dsid-detach-jpox.txt>


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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message