can't run webtests

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

can't run webtests

Jeff Brown-2
Using the latest code from CVS I am unable to execute any webtests.  
They consistently fail with the following error.  Is this a known issue
or I have something wrong at this end?

Thanks.

: java.lang.NullPointerException
        at org.apache.tools.ant.Task.perform(Task.java:373)
        at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:177)
        at
groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:175)
        at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:138)
        at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:86)
        at
org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:161)
        at
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.
java:104)
        at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(Script
BytecodeAdapter.java:85)
        at Script1.run(Script1.groovy:12)
        at org.codehaus.groovy.ant.Groovy.execGroovy(Groovy.java:455)
        at org.codehaus.groovy.ant.Groovy.execute(Groovy.java:349)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
CheckExecutor.java:37)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
        at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)

        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: java.lang.NullPointerException
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:321)
        at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)

        at org.apache.tools.ant.Task.perform(Task.java:364)
        ... 31 more
--- Nested Exception ---
java.lang.NullPointerException
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:321)
        at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)

        at org.apache.tools.ant.Task.perform(Task.java:364)
        at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:177)
        at
groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:175)
        at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:138)
        at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:86)
        at
org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:161)
        at
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.
java:104)
        at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(Script
BytecodeAdapter.java:85)
        at Script1.run(Script1.groovy:12)
        at org.codehaus.groovy.ant.Groovy.execGroovy(Groovy.java:455)
        at org.codehaus.groovy.ant.Groovy.execute(Groovy.java:349)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
CheckExecutor.java:37)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
        at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)

        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)


jb

--
Jeff Brown
[hidden email]
Principal Software Engineer
Object Computing Inc.
http://www.ociweb.com/

Autism Strikes 1 in 250
Find The Cause ~ Find The Cure
http://www.jeffandbetsy.net/walkfar2005/
http://www.naar.org/ 



---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|

RE: can't run webtests

Dierk König
Hi Jeff,

hm, that's a strange error. I'll have to check with the latest version
myself but it always worked for me and I checked last week.

Are you using the webtests as scaffolded or with any changes?
Do you start via
 grails run-webtest
?
When did you run
 grails create-webtest
the last time? Do you have webtest in the download folder?

cheers
Mittie

> -----Original Message-----
> From: Jeff Brown [mailto:[hidden email]]
> Sent: Dienstag, 20. Juni 2006 4:36
> To: Grails User
> Subject: [grails-user] can't run webtests
>
>
> Using the latest code from CVS I am unable to execute any webtests.
> They consistently fail with the following error.  Is this a known issue
> or I have something wrong at this end?
>
> Thanks.
>
> : java.lang.NullPointerException
>         at org.apache.tools.ant.Task.perform(Task.java:373)
>         at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:177)
>         at
> groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:175)
>         at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:138)
>         at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:86)
>         at
> org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:161)
>         at
> org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.
> java:104)
>         at
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(Script
> BytecodeAdapter.java:85)
>         at Script1.run(Script1.groovy:12)
>         at org.codehaus.groovy.ant.Groovy.execGroovy(Groovy.java:455)
>         at org.codehaus.groovy.ant.Groovy.execute(Groovy.java:349)
>         at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>         at
> org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
> CheckExecutor.java:37)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
>         at
> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
>
>         at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>         at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> cutor.java:40)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> Caused by: java.lang.NullPointerException
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:321)
>         at
> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
>
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         ... 31 more
> --- Nested Exception ---
> java.lang.NullPointerException
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:321)
>         at
> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
>
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:177)
>         at
> groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:175)
>         at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:138)
>         at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:86)
>         at
> org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:161)
>         at
> org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.
> java:104)
>         at
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(Script
> BytecodeAdapter.java:85)
>         at Script1.run(Script1.groovy:12)
>         at org.codehaus.groovy.ant.Groovy.execGroovy(Groovy.java:455)
>         at org.codehaus.groovy.ant.Groovy.execute(Groovy.java:349)
>         at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>         at
> org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
> CheckExecutor.java:37)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
>         at
> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
>
>         at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>         at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> cutor.java:40)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>
>
> jb
>
> --
> Jeff Brown
> [hidden email]
> Principal Software Engineer
> Object Computing Inc.
> http://www.ociweb.com/
>
> Autism Strikes 1 in 250
> Find The Cause ~ Find The Cure
> http://www.jeffandbetsy.net/walkfar2005/
> http://www.naar.org/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|

RE: can't run webtests

Dierk König
ok, I could reproduce the error with the latest build and will look
after it.

It's high time that we include SampleGenerator into the automatic
build to avoid that kind of regression.

cheers
Mittie

> -----Original Message-----
> From: Dierk Koenig [mailto:[hidden email]]
> Sent: Dienstag, 20. Juni 2006 8:02
> To: [hidden email]
> Subject: RE: [grails-user] can't run webtests
>
>
> Hi Jeff,
>
> hm, that's a strange error. I'll have to check with the latest version
> myself but it always worked for me and I checked last week.
>
> Are you using the webtests as scaffolded or with any changes?
> Do you start via
>  grails run-webtest
> ?
> When did you run
>  grails create-webtest
> the last time? Do you have webtest in the download folder?
>
> cheers
> Mittie
>
> > -----Original Message-----
> > From: Jeff Brown [mailto:[hidden email]]
> > Sent: Dienstag, 20. Juni 2006 4:36
> > To: Grails User
> > Subject: [grails-user] can't run webtests
> >
> >
> > Using the latest code from CVS I am unable to execute any webtests.
> > They consistently fail with the following error.  Is this a known issue
> > or I have something wrong at this end?
> >
> > Thanks.
> >
> > : java.lang.NullPointerException
> >         at org.apache.tools.ant.Task.perform(Task.java:373)
> >         at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:177)
> >         at
> > groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:175)
> >         at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:138)
> >         at
> groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:86)
> >         at
> > org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:161)
> >         at
> > org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.
> > java:104)
> >         at
> > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(Script
> > BytecodeAdapter.java:85)
> >         at Script1.run(Script1.groovy:12)
> >         at org.codehaus.groovy.ant.Groovy.execGroovy(Groovy.java:455)
> >         at org.codehaus.groovy.ant.Groovy.execute(Groovy.java:349)
> >         at
> > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >         at org.apache.tools.ant.Task.perform(Task.java:364)
> >         at org.apache.tools.ant.Target.execute(Target.java:341)
> >         at org.apache.tools.ant.Target.performTasks(Target.java:369)
> >         at
> > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> >         at
> > org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
> > CheckExecutor.java:37)
> >         at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> >         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
> >         at
> > org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
> >
> >         at
> > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >         at org.apache.tools.ant.Task.perform(Task.java:364)
> >         at org.apache.tools.ant.Target.execute(Target.java:341)
> >         at org.apache.tools.ant.Target.performTasks(Target.java:369)
> >         at
> > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> >         at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> >         at
> > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> > cutor.java:40)
> >         at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> >         at org.apache.tools.ant.Main.runBuild(Main.java:668)
> >         at org.apache.tools.ant.Main.startAnt(Main.java:187)
> >         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> >         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> > Caused by: java.lang.NullPointerException
> >         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:321)
> >         at
> > org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
> >
> >         at org.apache.tools.ant.Task.perform(Task.java:364)
> >         ... 31 more
> > --- Nested Exception ---
> > java.lang.NullPointerException
> >         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:321)
> >         at
> > org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
> >
> >         at org.apache.tools.ant.Task.perform(Task.java:364)
> >         at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:177)
> >         at
> > groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:175)
> >         at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:138)
> >         at
> groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:86)
> >         at
> > org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:161)
> >         at
> > org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.
> > java:104)
> >         at
> > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(Script
> > BytecodeAdapter.java:85)
> >         at Script1.run(Script1.groovy:12)
> >         at org.codehaus.groovy.ant.Groovy.execGroovy(Groovy.java:455)
> >         at org.codehaus.groovy.ant.Groovy.execute(Groovy.java:349)
> >         at
> > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >         at org.apache.tools.ant.Task.perform(Task.java:364)
> >         at org.apache.tools.ant.Target.execute(Target.java:341)
> >         at org.apache.tools.ant.Target.performTasks(Target.java:369)
> >         at
> > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> >         at
> > org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
> > CheckExecutor.java:37)
> >         at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> >         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
> >         at
> > org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
> >
> >         at
> > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >         at org.apache.tools.ant.Task.perform(Task.java:364)
> >         at org.apache.tools.ant.Target.execute(Target.java:341)
> >         at org.apache.tools.ant.Target.performTasks(Target.java:369)
> >         at
> > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> >         at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> >         at
> > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> > cutor.java:40)
> >         at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> >         at org.apache.tools.ant.Main.runBuild(Main.java:668)
> >         at org.apache.tools.ant.Main.startAnt(Main.java:187)
> >         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> >         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> >
> >
> > jb
> >
> > --
> > Jeff Brown
> > [hidden email]
> > Principal Software Engineer
> > Object Computing Inc.
> > http://www.ociweb.com/
> >
> > Autism Strikes 1 in 250
> > Find The Cause ~ Find The Cure
> > http://www.jeffandbetsy.net/walkfar2005/
> > http://www.naar.org/
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|

RE: can't run webtests

Dierk König
Hi Jeff,

The NPE in Task.perform() appears when the AntBuilder was constructed
with no Project object and the Task tries to notify the Project of
starting its execution.

I guess the missing Project object is a side-effect of updating to
the new Groovy version with the updated property syntax. I fixed
the according base class WebTest.groovy and the NPE disappeared from
my machine using Grails build #51 and WebTest R_1351 (both latest
versions as of now).

You need to
- cvs update Grails and rebuild it
- delete the downloads folder
- grails init your app
- grails create-webtest
  (new WebTest download is triggered which can take some minutes)
- grails run-app in one console
- grails run-webtest in a second console
  (you can leave you existing webtests unchanged)

Please report whether this solves the problem for you.

cheers
Mittie

> -----Original Message-----
> From: Dierk Koenig [mailto:[hidden email]]
> Sent: Mittwoch, 21. Juni 2006 12:21
> To: [hidden email]
> Subject: RE: [grails-user] can't run webtests
>
>
> ok, I could reproduce the error with the latest build and will look
> after it.
>
> It's high time that we include SampleGenerator into the automatic
> build to avoid that kind of regression.
>
> cheers
> Mittie
>
> > -----Original Message-----
> > From: Dierk Koenig [mailto:[hidden email]]
> > Sent: Dienstag, 20. Juni 2006 8:02
> > To: [hidden email]
> > Subject: RE: [grails-user] can't run webtests
> >
> >
> > Hi Jeff,
> >
> > hm, that's a strange error. I'll have to check with the latest version
> > myself but it always worked for me and I checked last week.
> >
> > Are you using the webtests as scaffolded or with any changes?
> > Do you start via
> >  grails run-webtest
> > ?
> > When did you run
> >  grails create-webtest
> > the last time? Do you have webtest in the download folder?
> >
> > cheers
> > Mittie
> >
> > > -----Original Message-----
> > > From: Jeff Brown [mailto:[hidden email]]
> > > Sent: Dienstag, 20. Juni 2006 4:36
> > > To: Grails User
> > > Subject: [grails-user] can't run webtests
> > >
> > >
> > > Using the latest code from CVS I am unable to execute any webtests.
> > > They consistently fail with the following error.  Is this a
> known issue
> > > or I have something wrong at this end?
> > >
> > > Thanks.
> > >
> > > : java.lang.NullPointerException
> > >         at org.apache.tools.ant.Task.perform(Task.java:373)
> > >         at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:177)
> > >         at
> > > groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:175)
> > >         at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:138)
> > >         at
> > groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:86)
> > >         at
> > > org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:161)
> > >         at
> > > org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.
> > > java:104)
> > >         at
> > > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(Script
> > > BytecodeAdapter.java:85)
> > >         at Script1.run(Script1.groovy:12)
> > >         at org.codehaus.groovy.ant.Groovy.execGroovy(Groovy.java:455)
> > >         at org.codehaus.groovy.ant.Groovy.execute(Groovy.java:349)
> > >         at
> > > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> > >         at org.apache.tools.ant.Task.perform(Task.java:364)
> > >         at org.apache.tools.ant.Target.execute(Target.java:341)
> > >         at org.apache.tools.ant.Target.performTasks(Target.java:369)
> > >         at
> > > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> > >         at
> > > org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
> > > CheckExecutor.java:37)
> > >         at
> > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> > >         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
> > >         at
> > > org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
> > >
> > >         at
> > > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> > >         at org.apache.tools.ant.Task.perform(Task.java:364)
> > >         at org.apache.tools.ant.Target.execute(Target.java:341)
> > >         at org.apache.tools.ant.Target.performTasks(Target.java:369)
> > >         at
> > > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> > >         at
> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> > >         at
> > > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> > > cutor.java:40)
> > >         at
> > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> > >         at org.apache.tools.ant.Main.runBuild(Main.java:668)
> > >         at org.apache.tools.ant.Main.startAnt(Main.java:187)
> > >         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> > >         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> > > Caused by: java.lang.NullPointerException
> > >         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:321)
> > >         at
> > > org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
> > >
> > >         at org.apache.tools.ant.Task.perform(Task.java:364)
> > >         ... 31 more
> > > --- Nested Exception ---
> > > java.lang.NullPointerException
> > >         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:321)
> > >         at
> > > org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
> > >
> > >         at org.apache.tools.ant.Task.perform(Task.java:364)
> > >         at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:177)
> > >         at
> > > groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:175)
> > >         at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:138)
> > >         at
> > groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:86)
> > >         at
> > > org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:161)
> > >         at
> > > org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.
> > > java:104)
> > >         at
> > > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(Script
> > > BytecodeAdapter.java:85)
> > >         at Script1.run(Script1.groovy:12)
> > >         at org.codehaus.groovy.ant.Groovy.execGroovy(Groovy.java:455)
> > >         at org.codehaus.groovy.ant.Groovy.execute(Groovy.java:349)
> > >         at
> > > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> > >         at org.apache.tools.ant.Task.perform(Task.java:364)
> > >         at org.apache.tools.ant.Target.execute(Target.java:341)
> > >         at org.apache.tools.ant.Target.performTasks(Target.java:369)
> > >         at
> > > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> > >         at
> > > org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
> > > CheckExecutor.java:37)
> > >         at
> > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> > >         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
> > >         at
> > > org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
> > >
> > >         at
> > > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> > >         at org.apache.tools.ant.Task.perform(Task.java:364)
> > >         at org.apache.tools.ant.Target.execute(Target.java:341)
> > >         at org.apache.tools.ant.Target.performTasks(Target.java:369)
> > >         at
> > > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> > >         at
> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> > >         at
> > > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> > > cutor.java:40)
> > >         at
> > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> > >         at org.apache.tools.ant.Main.runBuild(Main.java:668)
> > >         at org.apache.tools.ant.Main.startAnt(Main.java:187)
> > >         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> > >         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> > >
> > >
> > > jb
> > >
> > > --
> > > Jeff Brown
> > > [hidden email]
> > > Principal Software Engineer
> > > Object Computing Inc.
> > > http://www.ociweb.com/
> > >
> > > Autism Strikes 1 in 250
> > > Find The Cause ~ Find The Cure
> > > http://www.jeffandbetsy.net/walkfar2005/
> > > http://www.naar.org/
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe from this list please visit:
> > >
> > >     http://xircles.codehaus.org/manage_email
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|

Re: can't run webtests

Jeff Brown-2
My initial test shows me that the problem has not gone away.  If I
"run-app" in one console and then "run-webtest" in another (per your
instructions below), the "run-webtest" target fails because it can't
bind to a port already in use.  If I skip the "run-app" then
"run-webtest" fails with the NPE from Task.perform().  This happens with
a brand new project generated from the latest cvs code.

I will spend some time digging in to it tonight to see if I can figure
anything out.  I will let you know.



jb

Dierk Koenig wrote:

> Hi Jeff,
>
> The NPE in Task.perform() appears when the AntBuilder was constructed
> with no Project object and the Task tries to notify the Project of
> starting its execution.
>
> I guess the missing Project object is a side-effect of updating to
> the new Groovy version with the updated property syntax. I fixed
> the according base class WebTest.groovy and the NPE disappeared from
> my machine using Grails build #51 and WebTest R_1351 (both latest
> versions as of now).
>
> You need to
> - cvs update Grails and rebuild it
> - delete the downloads folder
> - grails init your app
> - grails create-webtest
>   (new WebTest download is triggered which can take some minutes)
> - grails run-app in one console
> - grails run-webtest in a second console
>   (you can leave you existing webtests unchanged)
>
> Please report whether this solves the problem for you.
>
> cheers
> Mittie
>
>  
>> -----Original Message-----
>> From: Dierk Koenig [mailto:[hidden email]]
>> Sent: Mittwoch, 21. Juni 2006 12:21
>> To: [hidden email]
>> Subject: RE: [grails-user] can't run webtests
>>
>>
>> ok, I could reproduce the error with the latest build and will look
>> after it.
>>
>> It's high time that we include SampleGenerator into the automatic
>> build to avoid that kind of regression.
>>
>> cheers
>> Mittie
>>
>>    
>>> -----Original Message-----
>>> From: Dierk Koenig [mailto:[hidden email]]
>>> Sent: Dienstag, 20. Juni 2006 8:02
>>> To: [hidden email]
>>> Subject: RE: [grails-user] can't run webtests
>>>
>>>
>>> Hi Jeff,
>>>
>>> hm, that's a strange error. I'll have to check with the latest version
>>> myself but it always worked for me and I checked last week.
>>>
>>> Are you using the webtests as scaffolded or with any changes?
>>> Do you start via
>>>  grails run-webtest
>>> ?
>>> When did you run
>>>  grails create-webtest
>>> the last time? Do you have webtest in the download folder?
>>>
>>> cheers
>>> Mittie
>>>
>>>      
>>>> -----Original Message-----
>>>> From: Jeff Brown [mailto:[hidden email]]
>>>> Sent: Dienstag, 20. Juni 2006 4:36
>>>> To: Grails User
>>>> Subject: [grails-user] can't run webtests
>>>>
>>>>
>>>> Using the latest code from CVS I am unable to execute any webtests.
>>>> They consistently fail with the following error.  Is this a
>>>>        
>> known issue
>>    
>>>> or I have something wrong at this end?
>>>>
>>>> Thanks.
>>>>
>>>> : java.lang.NullPointerException
>>>>         at org.apache.tools.ant.Task.perform(Task.java:373)
>>>>         at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:177)
>>>>         at
>>>> groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:175)
>>>>         at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:138)
>>>>         at
>>>>        
>>> groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:86)
>>>      
>>>>         at
>>>> org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:161)
>>>>         at
>>>> org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.
>>>> java:104)
>>>>         at
>>>> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(Script
>>>> BytecodeAdapter.java:85)
>>>>         at Script1.run(Script1.groovy:12)
>>>>         at org.codehaus.groovy.ant.Groovy.execGroovy(Groovy.java:455)
>>>>         at org.codehaus.groovy.ant.Groovy.execute(Groovy.java:349)
>>>>         at
>>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
>>>>         at org.apache.tools.ant.Target.execute(Target.java:341)
>>>>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>>         at
>>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>>>>         at
>>>> org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
>>>> CheckExecutor.java:37)
>>>>         at
>>>>        
>>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>>>      
>>>>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
>>>>         at
>>>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
>>>>
>>>>         at
>>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
>>>>         at org.apache.tools.ant.Target.execute(Target.java:341)
>>>>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>>         at
>>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>>>>         at
>>>>        
>> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>>    
>>>>         at
>>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>>>> cutor.java:40)
>>>>         at
>>>>        
>>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>>>      
>>>>         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>>>>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>>>>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>>>>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>>>> Caused by: java.lang.NullPointerException
>>>>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:321)
>>>>         at
>>>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
>>>>
>>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
>>>>         ... 31 more
>>>> --- Nested Exception ---
>>>> java.lang.NullPointerException
>>>>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:321)
>>>>         at
>>>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
>>>>
>>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
>>>>         at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:177)
>>>>         at
>>>> groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:175)
>>>>         at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:138)
>>>>         at
>>>>        
>>> groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:86)
>>>      
>>>>         at
>>>> org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:161)
>>>>         at
>>>> org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.
>>>> java:104)
>>>>         at
>>>> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(Script
>>>> BytecodeAdapter.java:85)
>>>>         at Script1.run(Script1.groovy:12)
>>>>         at org.codehaus.groovy.ant.Groovy.execGroovy(Groovy.java:455)
>>>>         at org.codehaus.groovy.ant.Groovy.execute(Groovy.java:349)
>>>>         at
>>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
>>>>         at org.apache.tools.ant.Target.execute(Target.java:341)
>>>>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>>         at
>>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>>>>         at
>>>> org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
>>>> CheckExecutor.java:37)
>>>>         at
>>>>        
>>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>>>      
>>>>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
>>>>         at
>>>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
>>>>
>>>>         at
>>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
>>>>         at org.apache.tools.ant.Target.execute(Target.java:341)
>>>>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>>         at
>>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>>>>         at
>>>>        
>> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>>    
>>>>         at
>>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>>>> cutor.java:40)
>>>>         at
>>>>        
>>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>>>      
>>>>         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>>>>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>>>>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>>>>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>>>>
>>>>
>>>> jb
>>>>
>>>> --
>>>> Jeff Brown
>>>> [hidden email]
>>>> Principal Software Engineer
>>>> Object Computing Inc.
>>>> http://www.ociweb.com/
>>>>
>>>> Autism Strikes 1 in 250
>>>> Find The Cause ~ Find The Cure
>>>> http://www.jeffandbetsy.net/walkfar2005/
>>>> http://www.naar.org/
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe from this list please visit:
>>>>
>>>>     http://xircles.codehaus.org/manage_email
>>>>        
>>> ---------------------------------------------------------------------
>>> To unsubscribe from this list please visit:
>>>
>>>     http://xircles.codehaus.org/manage_email
>>>      
>> ---------------------------------------------------------------------
>> To unsubscribe from this list please visit:
>>
>>     http://xircles.codehaus.org/manage_email
>>    
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>  


--
Jeff Brown
[hidden email]
Principal Software Engineer
Object Computing Inc.
http://www.ociweb.com/

Autism Strikes 1 in 250
Find The Cause ~ Find The Cure
http://www.jeffandbetsy.net/walkfar2005/
http://www.naar.org/ 



---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|

RE: can't run webtests

Dierk König
Sorry, I meant to start
 grails webtest-impl
in the second console

Mittie

> -----Original Message-----
> From: Jeff Brown [mailto:[hidden email]]
> Sent: Donnerstag, 22. Juni 2006 17:37
> To: [hidden email]
> Subject: Re: [grails-user] can't run webtests
>
>
> My initial test shows me that the problem has not gone away.  If I
> "run-app" in one console and then "run-webtest" in another (per your
> instructions below), the "run-webtest" target fails because it can't
> bind to a port already in use.  If I skip the "run-app" then
> "run-webtest" fails with the NPE from Task.perform().  This happens with
> a brand new project generated from the latest cvs code.
>
> I will spend some time digging in to it tonight to see if I can figure
> anything out.  I will let you know.
>
>
>
> jb
>
> Dierk Koenig wrote:
> > Hi Jeff,
> >
> > The NPE in Task.perform() appears when the AntBuilder was constructed
> > with no Project object and the Task tries to notify the Project of
> > starting its execution.
> >
> > I guess the missing Project object is a side-effect of updating to
> > the new Groovy version with the updated property syntax. I fixed
> > the according base class WebTest.groovy and the NPE disappeared from
> > my machine using Grails build #51 and WebTest R_1351 (both latest
> > versions as of now).
> >
> > You need to
> > - cvs update Grails and rebuild it
> > - delete the downloads folder
> > - grails init your app
> > - grails create-webtest
> >   (new WebTest download is triggered which can take some minutes)
> > - grails run-app in one console
> > - grails run-webtest in a second console
> >   (you can leave you existing webtests unchanged)
> >
> > Please report whether this solves the problem for you.
> >
> > cheers
> > Mittie
> >
> >
> >> -----Original Message-----
> >> From: Dierk Koenig [mailto:[hidden email]]
> >> Sent: Mittwoch, 21. Juni 2006 12:21
> >> To: [hidden email]
> >> Subject: RE: [grails-user] can't run webtests
> >>
> >>
> >> ok, I could reproduce the error with the latest build and will look
> >> after it.
> >>
> >> It's high time that we include SampleGenerator into the automatic
> >> build to avoid that kind of regression.
> >>
> >> cheers
> >> Mittie
> >>
> >>
> >>> -----Original Message-----
> >>> From: Dierk Koenig [mailto:[hidden email]]
> >>> Sent: Dienstag, 20. Juni 2006 8:02
> >>> To: [hidden email]
> >>> Subject: RE: [grails-user] can't run webtests
> >>>
> >>>
> >>> Hi Jeff,
> >>>
> >>> hm, that's a strange error. I'll have to check with the latest version
> >>> myself but it always worked for me and I checked last week.
> >>>
> >>> Are you using the webtests as scaffolded or with any changes?
> >>> Do you start via
> >>>  grails run-webtest
> >>> ?
> >>> When did you run
> >>>  grails create-webtest
> >>> the last time? Do you have webtest in the download folder?
> >>>
> >>> cheers
> >>> Mittie
> >>>
> >>>
> >>>> -----Original Message-----
> >>>> From: Jeff Brown [mailto:[hidden email]]
> >>>> Sent: Dienstag, 20. Juni 2006 4:36
> >>>> To: Grails User
> >>>> Subject: [grails-user] can't run webtests
> >>>>
> >>>>
> >>>> Using the latest code from CVS I am unable to execute any webtests.
> >>>> They consistently fail with the following error.  Is this a
> >>>>
> >> known issue
> >>
> >>>> or I have something wrong at this end?
> >>>>
> >>>> Thanks.
> >>>>
> >>>> : java.lang.NullPointerException
> >>>>         at org.apache.tools.ant.Task.perform(Task.java:373)
> >>>>         at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:177)
> >>>>         at
> >>>> groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:175)
> >>>>         at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:138)
> >>>>         at
> >>>>
> >>> groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:86)
> >>>
> >>>>         at
> >>>> org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:161)
> >>>>         at
> >>>> org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.
> >>>> java:104)
> >>>>         at
> >>>> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(Script
> >>>> BytecodeAdapter.java:85)
> >>>>         at Script1.run(Script1.groovy:12)
> >>>>         at org.codehaus.groovy.ant.Groovy.execGroovy(Groovy.java:455)
> >>>>         at org.codehaus.groovy.ant.Groovy.execute(Groovy.java:349)
> >>>>         at
> >>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
> >>>>         at org.apache.tools.ant.Target.execute(Target.java:341)
> >>>>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
> >>>>         at
> >>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> >>>>         at
> >>>> org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
> >>>> CheckExecutor.java:37)
> >>>>         at
> >>>>
> >>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> >>>
> >>>>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
> >>>>         at
> >>>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
> >>>>
> >>>>         at
> >>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
> >>>>         at org.apache.tools.ant.Target.execute(Target.java:341)
> >>>>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
> >>>>         at
> >>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> >>>>         at
> >>>>
> >> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> >>
> >>>>         at
> >>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> >>>> cutor.java:40)
> >>>>         at
> >>>>
> >>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> >>>
> >>>>         at org.apache.tools.ant.Main.runBuild(Main.java:668)
> >>>>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
> >>>>         at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> >>>>         at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> >>>> Caused by: java.lang.NullPointerException
> >>>>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:321)
> >>>>         at
> >>>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
> >>>>
> >>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
> >>>>         ... 31 more
> >>>> --- Nested Exception ---
> >>>> java.lang.NullPointerException
> >>>>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:321)
> >>>>         at
> >>>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
> >>>>
> >>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
> >>>>         at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:177)
> >>>>         at
> >>>> groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:175)
> >>>>         at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:138)
> >>>>         at
> >>>>
> >>> groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:86)
> >>>
> >>>>         at
> >>>> org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:161)
> >>>>         at
> >>>> org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.
> >>>> java:104)
> >>>>         at
> >>>> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(Script
> >>>> BytecodeAdapter.java:85)
> >>>>         at Script1.run(Script1.groovy:12)
> >>>>         at org.codehaus.groovy.ant.Groovy.execGroovy(Groovy.java:455)
> >>>>         at org.codehaus.groovy.ant.Groovy.execute(Groovy.java:349)
> >>>>         at
> >>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
> >>>>         at org.apache.tools.ant.Target.execute(Target.java:341)
> >>>>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
> >>>>         at
> >>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> >>>>         at
> >>>> org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
> >>>> CheckExecutor.java:37)
> >>>>         at
> >>>>
> >>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> >>>
> >>>>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
> >>>>         at
> >>>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
> >>>>
> >>>>         at
> >>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
> >>>>         at org.apache.tools.ant.Target.execute(Target.java:341)
> >>>>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
> >>>>         at
> >>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> >>>>         at
> >>>>
> >> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> >>
> >>>>         at
> >>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> >>>> cutor.java:40)
> >>>>         at
> >>>>
> >>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> >>>
> >>>>         at org.apache.tools.ant.Main.runBuild(Main.java:668)
> >>>>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
> >>>>         at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> >>>>         at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> >>>>
> >>>>
> >>>> jb
> >>>>
> >>>> --
> >>>> Jeff Brown
> >>>> [hidden email]
> >>>> Principal Software Engineer
> >>>> Object Computing Inc.
> >>>> http://www.ociweb.com/
> >>>>
> >>>> Autism Strikes 1 in 250
> >>>> Find The Cause ~ Find The Cure
> >>>> http://www.jeffandbetsy.net/walkfar2005/
> >>>> http://www.naar.org/
> >>>>
> >>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe from this list please visit:
> >>>>
> >>>>     http://xircles.codehaus.org/manage_email
> >>>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe from this list please visit:
> >>>
> >>>     http://xircles.codehaus.org/manage_email
> >>>
> >> ---------------------------------------------------------------------
> >> To unsubscribe from this list please visit:
> >>
> >>     http://xircles.codehaus.org/manage_email
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
> >
>
>
> --
> Jeff Brown
> [hidden email]
> Principal Software Engineer
> Object Computing Inc.
> http://www.ociweb.com/
>
> Autism Strikes 1 in 250
> Find The Cause ~ Find The Cure
> http://www.jeffandbetsy.net/walkfar2005/
> http://www.naar.org/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|

Re: can't run webtests

Jeff Brown-2
I see now.

When I run "run-webtest" then I get the NPE from Task.perform().  If I
run "run-app" followed by "webtest-impl" in another shell, the tests work.

How is "run-webtest" supposed to be used?



jb

Dierk Koenig wrote:

> Sorry, I meant to start
>  grails webtest-impl
> in the second console
>
> Mittie
>
>  
>> -----Original Message-----
>> From: Jeff Brown [mailto:[hidden email]]
>> Sent: Donnerstag, 22. Juni 2006 17:37
>> To: [hidden email]
>> Subject: Re: [grails-user] can't run webtests
>>
>>
>> My initial test shows me that the problem has not gone away.  If I
>> "run-app" in one console and then "run-webtest" in another (per your
>> instructions below), the "run-webtest" target fails because it can't
>> bind to a port already in use.  If I skip the "run-app" then
>> "run-webtest" fails with the NPE from Task.perform().  This happens with
>> a brand new project generated from the latest cvs code.
>>
>> I will spend some time digging in to it tonight to see if I can figure
>> anything out.  I will let you know.
>>
>>
>>
>> jb
>>
>> Dierk Koenig wrote:
>>    
>>> Hi Jeff,
>>>
>>> The NPE in Task.perform() appears when the AntBuilder was constructed
>>> with no Project object and the Task tries to notify the Project of
>>> starting its execution.
>>>
>>> I guess the missing Project object is a side-effect of updating to
>>> the new Groovy version with the updated property syntax. I fixed
>>> the according base class WebTest.groovy and the NPE disappeared from
>>> my machine using Grails build #51 and WebTest R_1351 (both latest
>>> versions as of now).
>>>
>>> You need to
>>> - cvs update Grails and rebuild it
>>> - delete the downloads folder
>>> - grails init your app
>>> - grails create-webtest
>>>   (new WebTest download is triggered which can take some minutes)
>>> - grails run-app in one console
>>> - grails run-webtest in a second console
>>>   (you can leave you existing webtests unchanged)
>>>
>>> Please report whether this solves the problem for you.
>>>
>>> cheers
>>> Mittie
>>>
>>>
>>>      
>>>> -----Original Message-----
>>>> From: Dierk Koenig [mailto:[hidden email]]
>>>> Sent: Mittwoch, 21. Juni 2006 12:21
>>>> To: [hidden email]
>>>> Subject: RE: [grails-user] can't run webtests
>>>>
>>>>
>>>> ok, I could reproduce the error with the latest build and will look
>>>> after it.
>>>>
>>>> It's high time that we include SampleGenerator into the automatic
>>>> build to avoid that kind of regression.
>>>>
>>>> cheers
>>>> Mittie
>>>>
>>>>
>>>>        
>>>>> -----Original Message-----
>>>>> From: Dierk Koenig [mailto:[hidden email]]
>>>>> Sent: Dienstag, 20. Juni 2006 8:02
>>>>> To: [hidden email]
>>>>> Subject: RE: [grails-user] can't run webtests
>>>>>
>>>>>
>>>>> Hi Jeff,
>>>>>
>>>>> hm, that's a strange error. I'll have to check with the latest version
>>>>> myself but it always worked for me and I checked last week.
>>>>>
>>>>> Are you using the webtests as scaffolded or with any changes?
>>>>> Do you start via
>>>>>  grails run-webtest
>>>>> ?
>>>>> When did you run
>>>>>  grails create-webtest
>>>>> the last time? Do you have webtest in the download folder?
>>>>>
>>>>> cheers
>>>>> Mittie
>>>>>
>>>>>
>>>>>          
>>>>>> -----Original Message-----
>>>>>> From: Jeff Brown [mailto:[hidden email]]
>>>>>> Sent: Dienstag, 20. Juni 2006 4:36
>>>>>> To: Grails User
>>>>>> Subject: [grails-user] can't run webtests
>>>>>>
>>>>>>
>>>>>> Using the latest code from CVS I am unable to execute any webtests.
>>>>>> They consistently fail with the following error.  Is this a
>>>>>>
>>>>>>            
>>>> known issue
>>>>
>>>>        
>>>>>> or I have something wrong at this end?
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>> : java.lang.NullPointerException
>>>>>>         at org.apache.tools.ant.Task.perform(Task.java:373)
>>>>>>         at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:177)
>>>>>>         at
>>>>>> groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:175)
>>>>>>         at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:138)
>>>>>>         at
>>>>>>
>>>>>>            
>>>>> groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:86)
>>>>>
>>>>>          
>>>>>>         at
>>>>>> org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:161)
>>>>>>         at
>>>>>> org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.
>>>>>> java:104)
>>>>>>         at
>>>>>> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(Script
>>>>>> BytecodeAdapter.java:85)
>>>>>>         at Script1.run(Script1.groovy:12)
>>>>>>         at org.codehaus.groovy.ant.Groovy.execGroovy(Groovy.java:455)
>>>>>>         at org.codehaus.groovy.ant.Groovy.execute(Groovy.java:349)
>>>>>>         at
>>>>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>>>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
>>>>>>         at org.apache.tools.ant.Target.execute(Target.java:341)
>>>>>>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>>>>         at
>>>>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>>>>>>         at
>>>>>> org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
>>>>>> CheckExecutor.java:37)
>>>>>>         at
>>>>>>
>>>>>>            
>>>>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>>>>>
>>>>>          
>>>>>>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
>>>>>>         at
>>>>>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
>>>>>>
>>>>>>         at
>>>>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>>>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
>>>>>>         at org.apache.tools.ant.Target.execute(Target.java:341)
>>>>>>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>>>>         at
>>>>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>>>>>>         at
>>>>>>
>>>>>>            
>>>> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>>>>
>>>>        
>>>>>>         at
>>>>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>>>>>> cutor.java:40)
>>>>>>         at
>>>>>>
>>>>>>            
>>>>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>>>>>
>>>>>          
>>>>>>         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>>>>>>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>>>>>>         at
>>>>>>            
>> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>>    
>>>>>>         at
>>>>>>            
>> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>>    
>>>>>> Caused by: java.lang.NullPointerException
>>>>>>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:321)
>>>>>>         at
>>>>>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
>>>>>>
>>>>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
>>>>>>         ... 31 more
>>>>>> --- Nested Exception ---
>>>>>> java.lang.NullPointerException
>>>>>>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:321)
>>>>>>         at
>>>>>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
>>>>>>
>>>>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
>>>>>>         at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:177)
>>>>>>         at
>>>>>> groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:175)
>>>>>>         at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:138)
>>>>>>         at
>>>>>>
>>>>>>            
>>>>> groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:86)
>>>>>
>>>>>          
>>>>>>         at
>>>>>> org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:161)
>>>>>>         at
>>>>>> org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.
>>>>>> java:104)
>>>>>>         at
>>>>>> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(Script
>>>>>> BytecodeAdapter.java:85)
>>>>>>         at Script1.run(Script1.groovy:12)
>>>>>>         at org.codehaus.groovy.ant.Groovy.execGroovy(Groovy.java:455)
>>>>>>         at org.codehaus.groovy.ant.Groovy.execute(Groovy.java:349)
>>>>>>         at
>>>>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>>>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
>>>>>>         at org.apache.tools.ant.Target.execute(Target.java:341)
>>>>>>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>>>>         at
>>>>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>>>>>>         at
>>>>>> org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
>>>>>> CheckExecutor.java:37)
>>>>>>         at
>>>>>>
>>>>>>            
>>>>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>>>>>
>>>>>          
>>>>>>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
>>>>>>         at
>>>>>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
>>>>>>
>>>>>>         at
>>>>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>>>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
>>>>>>         at org.apache.tools.ant.Target.execute(Target.java:341)
>>>>>>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>>>>         at
>>>>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>>>>>>         at
>>>>>>
>>>>>>            
>>>> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>>>>
>>>>        
>>>>>>         at
>>>>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>>>>>> cutor.java:40)
>>>>>>         at
>>>>>>
>>>>>>            
>>>>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>>>>>
>>>>>          
>>>>>>         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>>>>>>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>>>>>>         at
>>>>>>            
>> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>>    
>>>>>>         at
>>>>>>            
>> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>>    
>>>>>> jb
>>>>>>
>>>>>> --
>>>>>> Jeff Brown
>>>>>> [hidden email]
>>>>>> Principal Software Engineer
>>>>>> Object Computing Inc.
>>>>>> http://www.ociweb.com/
>>>>>>
>>>>>> Autism Strikes 1 in 250
>>>>>> Find The Cause ~ Find The Cure
>>>>>> http://www.jeffandbetsy.net/walkfar2005/
>>>>>> http://www.naar.org/
>>>>>>
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe from this list please visit:
>>>>>>
>>>>>>     http://xircles.codehaus.org/manage_email
>>>>>>
>>>>>>            
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe from this list please visit:
>>>>>
>>>>>     http://xircles.codehaus.org/manage_email
>>>>>
>>>>>          
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe from this list please visit:
>>>>
>>>>     http://xircles.codehaus.org/manage_email
>>>>
>>>>        
>>> ---------------------------------------------------------------------
>>> To unsubscribe from this list please visit:
>>>
>>>     http://xircles.codehaus.org/manage_email
>>>
>>>
>>>      
>> --
>> Jeff Brown
>> [hidden email]
>> Principal Software Engineer
>> Object Computing Inc.
>> http://www.ociweb.com/
>>
>> Autism Strikes 1 in 250
>> Find The Cause ~ Find The Cure
>> http://www.jeffandbetsy.net/walkfar2005/
>> http://www.naar.org/
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list please visit:
>>
>>     http://xircles.codehaus.org/manage_email
>>    
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>  


--
Jeff Brown
[hidden email]
Principal Software Engineer
Object Computing Inc.
http://www.ociweb.com/

Autism Strikes 1 in 250
Find The Cause ~ Find The Cure
http://www.jeffandbetsy.net/walkfar2005/
http://www.naar.org/ 



---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|

RE: can't run webtests

Dierk König
Ok. I just committed the fix. Problem was missing 'inheritance' of
project references when using the antcall task.

There are two ways of calling the webtests
a) with an already running server
b) selfcontained (cares for starting/stopping the server for you)

a) is done via target
   webtest-impl
   and relies on the fact that you have started
   the server yourself with
   run-app

b) is done with
   run-webtest

happy testing
Mittie

P.S. The fix also makes the SampleGenerator useful again such that
we can start including it in the continuous build.


> -----Original Message-----
> From: Jeff Brown [mailto:[hidden email]]
> Sent: Donnerstag, 22. Juni 2006 23:03
> To: [hidden email]
> Subject: Re: [grails-user] can't run webtests
>
>
> I see now.
>
> When I run "run-webtest" then I get the NPE from Task.perform().  If I
> run "run-app" followed by "webtest-impl" in another shell, the tests work.
>
> How is "run-webtest" supposed to be used?
>
>
>
> jb
>
> Dierk Koenig wrote:
> > Sorry, I meant to start
> >  grails webtest-impl
> > in the second console
> >
> > Mittie
> >
> >
> >> -----Original Message-----
> >> From: Jeff Brown [mailto:[hidden email]]
> >> Sent: Donnerstag, 22. Juni 2006 17:37
> >> To: [hidden email]
> >> Subject: Re: [grails-user] can't run webtests
> >>
> >>
> >> My initial test shows me that the problem has not gone away.  If I
> >> "run-app" in one console and then "run-webtest" in another (per your
> >> instructions below), the "run-webtest" target fails because it can't
> >> bind to a port already in use.  If I skip the "run-app" then
> >> "run-webtest" fails with the NPE from Task.perform().  This
> happens with
> >> a brand new project generated from the latest cvs code.
> >>
> >> I will spend some time digging in to it tonight to see if I can figure
> >> anything out.  I will let you know.
> >>
> >>
> >>
> >> jb
> >>
> >> Dierk Koenig wrote:
> >>
> >>> Hi Jeff,
> >>>
> >>> The NPE in Task.perform() appears when the AntBuilder was constructed
> >>> with no Project object and the Task tries to notify the Project of
> >>> starting its execution.
> >>>
> >>> I guess the missing Project object is a side-effect of updating to
> >>> the new Groovy version with the updated property syntax. I fixed
> >>> the according base class WebTest.groovy and the NPE disappeared from
> >>> my machine using Grails build #51 and WebTest R_1351 (both latest
> >>> versions as of now).
> >>>
> >>> You need to
> >>> - cvs update Grails and rebuild it
> >>> - delete the downloads folder
> >>> - grails init your app
> >>> - grails create-webtest
> >>>   (new WebTest download is triggered which can take some minutes)
> >>> - grails run-app in one console
> >>> - grails run-webtest in a second console
> >>>   (you can leave you existing webtests unchanged)
> >>>
> >>> Please report whether this solves the problem for you.
> >>>
> >>> cheers
> >>> Mittie
> >>>
> >>>
> >>>
> >>>> -----Original Message-----
> >>>> From: Dierk Koenig [mailto:[hidden email]]
> >>>> Sent: Mittwoch, 21. Juni 2006 12:21
> >>>> To: [hidden email]
> >>>> Subject: RE: [grails-user] can't run webtests
> >>>>
> >>>>
> >>>> ok, I could reproduce the error with the latest build and will look
> >>>> after it.
> >>>>
> >>>> It's high time that we include SampleGenerator into the automatic
> >>>> build to avoid that kind of regression.
> >>>>
> >>>> cheers
> >>>> Mittie
> >>>>
> >>>>
> >>>>
> >>>>> -----Original Message-----
> >>>>> From: Dierk Koenig [mailto:[hidden email]]
> >>>>> Sent: Dienstag, 20. Juni 2006 8:02
> >>>>> To: [hidden email]
> >>>>> Subject: RE: [grails-user] can't run webtests
> >>>>>
> >>>>>
> >>>>> Hi Jeff,
> >>>>>
> >>>>> hm, that's a strange error. I'll have to check with the
> latest version
> >>>>> myself but it always worked for me and I checked last week.
> >>>>>
> >>>>> Are you using the webtests as scaffolded or with any changes?
> >>>>> Do you start via
> >>>>>  grails run-webtest
> >>>>> ?
> >>>>> When did you run
> >>>>>  grails create-webtest
> >>>>> the last time? Do you have webtest in the download folder?
> >>>>>
> >>>>> cheers
> >>>>> Mittie
> >>>>>
> >>>>>
> >>>>>
> >>>>>> -----Original Message-----
> >>>>>> From: Jeff Brown [mailto:[hidden email]]
> >>>>>> Sent: Dienstag, 20. Juni 2006 4:36
> >>>>>> To: Grails User
> >>>>>> Subject: [grails-user] can't run webtests
> >>>>>>
> >>>>>>
> >>>>>> Using the latest code from CVS I am unable to execute any webtests.
> >>>>>> They consistently fail with the following error.  Is this a
> >>>>>>
> >>>>>>
> >>>> known issue
> >>>>
> >>>>
> >>>>>> or I have something wrong at this end?
> >>>>>>
> >>>>>> Thanks.
> >>>>>>
> >>>>>> : java.lang.NullPointerException
> >>>>>>         at org.apache.tools.ant.Task.perform(Task.java:373)
> >>>>>>         at
> groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:177)
> >>>>>>         at
> >>>>>> groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:175)
> >>>>>>         at
> groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:138)
> >>>>>>         at
> >>>>>>
> >>>>>>
> >>>>> groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:86)
> >>>>>
> >>>>>
> >>>>>>         at
> >>>>>> org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:161)
> >>>>>>         at
> >>>>>>
> org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.
> >>>>>> java:104)
> >>>>>>         at
> >>>>>>
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(Script
> >>>>>> BytecodeAdapter.java:85)
> >>>>>>         at Script1.run(Script1.groovy:12)
> >>>>>>         at
> org.codehaus.groovy.ant.Groovy.execGroovy(Groovy.java:455)
> >>>>>>         at org.codehaus.groovy.ant.Groovy.execute(Groovy.java:349)
> >>>>>>         at
> >>>>>>
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >>>>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
> >>>>>>         at org.apache.tools.ant.Target.execute(Target.java:341)
> >>>>>>         at
> org.apache.tools.ant.Target.performTasks(Target.java:369)
> >>>>>>         at
> >>>>>>
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> >>>>>>         at
> >>>>>>
> org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
> >>>>>> CheckExecutor.java:37)
> >>>>>>         at
> >>>>>>
> >>>>>>
> >>>>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> >>>>>
> >>>>>
> >>>>>>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
> >>>>>>         at
> >>>>>>
> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
> >>>>>>
> >>>>>>         at
> >>>>>>
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >>>>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
> >>>>>>         at org.apache.tools.ant.Target.execute(Target.java:341)
> >>>>>>         at
> org.apache.tools.ant.Target.performTasks(Target.java:369)
> >>>>>>         at
> >>>>>>
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> >>>>>>         at
> >>>>>>
> >>>>>>
> >>>> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> >>>>
> >>>>
> >>>>>>         at
> >>>>>>
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> >>>>>> cutor.java:40)
> >>>>>>         at
> >>>>>>
> >>>>>>
> >>>>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> >>>>>
> >>>>>
> >>>>>>         at org.apache.tools.ant.Main.runBuild(Main.java:668)
> >>>>>>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
> >>>>>>         at
> >>>>>>
> >> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> >>
> >>>>>>         at
> >>>>>>
> >> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> >>
> >>>>>> Caused by: java.lang.NullPointerException
> >>>>>>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:321)
> >>>>>>         at
> >>>>>>
> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
> >>>>>>
> >>>>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
> >>>>>>         ... 31 more
> >>>>>> --- Nested Exception ---
> >>>>>> java.lang.NullPointerException
> >>>>>>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:321)
> >>>>>>         at
> >>>>>>
> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
> >>>>>>
> >>>>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
> >>>>>>         at
> groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:177)
> >>>>>>         at
> >>>>>> groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:175)
> >>>>>>         at
> groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:138)
> >>>>>>         at
> >>>>>>
> >>>>>>
> >>>>> groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:86)
> >>>>>
> >>>>>
> >>>>>>         at
> >>>>>> org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:161)
> >>>>>>         at
> >>>>>>
> org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.
> >>>>>> java:104)
> >>>>>>         at
> >>>>>>
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(Script
> >>>>>> BytecodeAdapter.java:85)
> >>>>>>         at Script1.run(Script1.groovy:12)
> >>>>>>         at
> org.codehaus.groovy.ant.Groovy.execGroovy(Groovy.java:455)
> >>>>>>         at org.codehaus.groovy.ant.Groovy.execute(Groovy.java:349)
> >>>>>>         at
> >>>>>>
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >>>>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
> >>>>>>         at org.apache.tools.ant.Target.execute(Target.java:341)
> >>>>>>         at
> org.apache.tools.ant.Target.performTasks(Target.java:369)
> >>>>>>         at
> >>>>>>
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> >>>>>>         at
> >>>>>>
> org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
> >>>>>> CheckExecutor.java:37)
> >>>>>>         at
> >>>>>>
> >>>>>>
> >>>>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> >>>>>
> >>>>>
> >>>>>>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
> >>>>>>         at
> >>>>>>
> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
> >>>>>>
> >>>>>>         at
> >>>>>>
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >>>>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
> >>>>>>         at org.apache.tools.ant.Target.execute(Target.java:341)
> >>>>>>         at
> org.apache.tools.ant.Target.performTasks(Target.java:369)
> >>>>>>         at
> >>>>>>
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> >>>>>>         at
> >>>>>>
> >>>>>>
> >>>> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> >>>>
> >>>>
> >>>>>>         at
> >>>>>>
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> >>>>>> cutor.java:40)
> >>>>>>         at
> >>>>>>
> >>>>>>
> >>>>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> >>>>>
> >>>>>
> >>>>>>         at org.apache.tools.ant.Main.runBuild(Main.java:668)
> >>>>>>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
> >>>>>>         at
> >>>>>>
> >> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> >>
> >>>>>>         at
> >>>>>>
> >> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> >>
> >>>>>> jb
> >>>>>>
> >>>>>> --
> >>>>>> Jeff Brown
> >>>>>> [hidden email]
> >>>>>> Principal Software Engineer
> >>>>>> Object Computing Inc.
> >>>>>> http://www.ociweb.com/
> >>>>>>
> >>>>>> Autism Strikes 1 in 250
> >>>>>> Find The Cause ~ Find The Cure
> >>>>>> http://www.jeffandbetsy.net/walkfar2005/
> >>>>>> http://www.naar.org/
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> ---------------------------------------------------------------------
> >>>>>> To unsubscribe from this list please visit:
> >>>>>>
> >>>>>>     http://xircles.codehaus.org/manage_email
> >>>>>>
> >>>>>>
> >>>>>
> ---------------------------------------------------------------------
> >>>>> To unsubscribe from this list please visit:
> >>>>>
> >>>>>     http://xircles.codehaus.org/manage_email
> >>>>>
> >>>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe from this list please visit:
> >>>>
> >>>>     http://xircles.codehaus.org/manage_email
> >>>>
> >>>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe from this list please visit:
> >>>
> >>>     http://xircles.codehaus.org/manage_email
> >>>
> >>>
> >>>
> >> --
> >> Jeff Brown
> >> [hidden email]
> >> Principal Software Engineer
> >> Object Computing Inc.
> >> http://www.ociweb.com/
> >>
> >> Autism Strikes 1 in 250
> >> Find The Cause ~ Find The Cure
> >> http://www.jeffandbetsy.net/walkfar2005/
> >> http://www.naar.org/
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe from this list please visit:
> >>
> >>     http://xircles.codehaus.org/manage_email
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
> >
>
>
> --
> Jeff Brown
> [hidden email]
> Principal Software Engineer
> Object Computing Inc.
> http://www.ociweb.com/
>
> Autism Strikes 1 in 250
> Find The Cause ~ Find The Cure
> http://www.jeffandbetsy.net/walkfar2005/
> http://www.naar.org/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email