Release 0.2 not running

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

Release 0.2 not running

Prashant Reddy
Hi all,

I downloaded the release-0.2 branches for all the components and tried to run powertac-server, but I'm getting compilation errors:
----
$ grails run-app
Welcome to Grails 1.3.7 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /Users/Prashant/Tools/Grails/current

Base Directory: /Users/Prashant/School/Research/PowerTAC/Repos/PowerTAC-Server/powertac-server
Resolving dependencies...
Dependencies resolved in 1925ms.
Running script /Users/Prashant/Tools/Grails/current/scripts/RunApp.groovy
Environment set to development
  [groovyc] Compiling 14 source files to /Users/Prashant/School/Research/PowerTAC/Repos/PowerTAC-Server/powertac-server/target/classes
  [groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
  [groovyc] Compile error during compilation with javac.
  [groovyc] /Users/Prashant/School/Research/PowerTAC/Repos/PowerTAC-Server/powertac-server/src/java/org/powertac/server/ICommandEncodingService.java:3: package org.powertac.common.msg does not exist
  [groovyc] import org.powertac.common.msg.TariffExpire;
  [groovyc]                               ^
  [groovyc] /Users/Prashant/School/Research/PowerTAC/Repos/PowerTAC-Server/powertac-server/src/java/org/powertac/server/ICommandEncodingService.java:12: cannot find symbol
  [groovyc] symbol  : class TariffExpire
  [groovyc] location: interface org.powertac.server.ICommandEncodingService
  [groovyc]   public String encodeTariffExpire(TariffExpire cmd);
  [groovyc]                                    ^
  [groovyc] 2 errors
  [groovyc]
  [groovyc]
  [groovyc] 1 error
Compilation error: Compilation Failed
$
----

I haven't tried to debug this yet, but I figured I'd post this here in case anyone has already run into the problem...

Thanks,
Prashant

 

Reply | Threaded
Open this post in threaded view
|

Re: Release 0.2 not running

grampajohn
Administrator
This is a very strange error, most likely caused by cruft in an existing development environment. If that's the case, it could be overcome by doing a grails clean and they try again.

John
Reply | Threaded
Open this post in threaded view
|

Re: Release 0.2 not running

Prashant Reddy
Thanks John. I had tried grails clean to no effect, but it indeed may
have been cruft in the environmet.  So, I got rid of my old repo,
cloned everything refresh, checked out release 0.2 and even blew away
my ~/.grails/1.3.7/projects to get rid of previously resolved
dependencies.

When I try to run from this fresh install, I get a different error
that complains about the following artifact not being found and
therefore fails to install several plugins:
----
                ::::::::::::::::::::::::::::::::::::::::::::::

                ::          UNRESOLVED DEPENDENCIES         ::

                ::::::::::::::::::::::::::::::::::::::::::::::

                :: com.thoughtworks.xstream#xstream;1.4-SNAPSHOT: not found

                ::::::::::::::::::::::::::::::::::::::::::::::
----

I'm not familiar enough with the Grails config file formats to tell
whether that semi-colon between 'xstream' and '1.4' is correct or
whether it should be a hyphen instead?

By the way, there doesn't seem to be a release-0.2 cut of
powertac-distribution-utility?

Thanks,
Prashant


On Thu, May 19, 2011 at 11:58 AM, grampajohn [via Power TAC
Developers] <[hidden email]> wrote:

> This is a very strange error, most likely caused by cruft in an existing
> development environment. If that's the case, it could be overcome by doing a
> grails clean and they try again.
>
> John
>
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://power-tac-developers.975333.n3.nabble.com/Release-0-2-not-running-tp2961907p2961952.html
> To unsubscribe from Release 0.2 not running, click here.
Reply | Threaded
Open this post in threaded view
|

Re: Release 0.2 not running

grampajohn
Administrator
Thanks for the testing. A new maven repo did not make it into the release branch. It's there now.

Sorry for the confusion.

John
Reply | Threaded
Open this post in threaded view
|

Re: Release 0.2 not running

Prashant Reddy
Thanks -- it gets much farther along with the updated powertac-common,
but it now fails in runtime initialization with the following error
(even after I did grails clean):
----
2011-05-19 15:15:43,930 [main] ERROR context.GrailsContextLoader  -
Error executing bootstraps: Error creating bean with name
'messageConverter': Invocation of init method failed; nested exception
is groovy.lang.GroovyRuntimeException: Could not find matching
constructor for:
com.thoughtworks.xstream.converters.reflection.ReflectionConverter()
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'messageConverter': Invocation of init method
failed; nested exception is groovy.lang.GroovyRuntimeException: Could
not find matching constructor for:
com.thoughtworks.xstream.converters.reflection.ReflectionConverter()
        at org.grails.tomcat.TomcatServer.start(TomcatServer.groovy:212)
        at grails.web.container.EmbeddableServer$start.call(Unknown Source)
        at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy:158)
        at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy)
        at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:280)
        at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
        at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:149)
        at _GrailsRun_groovy$_run_closure5.call(_GrailsRun_groovy)
        at _GrailsRun_groovy.runInline(_GrailsRun_groovy:116)
        at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
        at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:59)
        at RunApp$_run_closure1.doCall(RunApp.groovy:33)
        at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
        at gant.Gant.withBuildListeners(Gant.groovy:427)
        at gant.Gant.this$2$withBuildListeners(Gant.groovy)
        at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
        at gant.Gant.dispatch(Gant.groovy:415)
        at gant.Gant.this$2$dispatch(Gant.groovy)
        at gant.Gant.invokeMethod(Gant.groovy)
        at gant.Gant.executeTargets(Gant.groovy:590)
        at gant.Gant.executeTargets(Gant.groovy:589)
Caused by: groovy.lang.GroovyRuntimeException: Could not find matching
constructor for:
com.thoughtworks.xstream.converters.reflection.ReflectionConverter()
        at org.powertac.common.HibernateProxyConverter.<init>(HibernateProxyConverter.groovy:36)
        at org.powertac.common.MessageConverter.afterPropertiesSet(MessageConverter.groovy:69)
        ... 23 more
----

Prashant
Reply | Threaded
Open this post in threaded view
|

Re: Release 0.2 not running

grampajohn
Administrator
I believe this is now resolved.