I ran into similar problems, and I have yet to find a solution.
--
You received this message because you are subscribed to the Google Groups "Spock Framework - User" group.
To view this discussion on the web visit https://groups.google.com/d/msg/spockframework/-/Dls8O2KpsREJ.
To post to this group, send email to spockfr...@googlegroups.com.
To unsubscribe from this group, send email to spockframewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spockframework?hl=en.
http://tapestryjava.blogspot.com/2011/12/dissecting-tapestry-operation-trace.html
I'll be working on a fork/patch after lunch.
--
Howard M. Lewis Ship
Creator of Apache Tapestry
The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!
Any help is of course appreciated.
Cheers,
Peter
I'm about to verify the changes ... once its ready, where would you
like the patch?
The idea behind PIM was to have a way to get a fresh service instance for each test method (each iteration thereof in case of a data-driven test).
> I'm about to verify the changes ... once its ready, where would you like the patch?
My preference would be a GitHub pull request. Otherwise an attachment to an issue created at http://issues.spockframework.org or an email attachment would do as well.
Thanks!
Peter
https://github.com/spockframework/spock
I've just merged the pull request. Unfortunately it doesn't seem to be
compatible with Tapestry 5.2.
All the changes that were made are related to the per-iteration scope, a
fairly esoteric feature of spock-tapestry. As I can't see a way to make
this feature work across Tapestry versions, I'm inclined to just throw
it out. I'd be surprised if anyone used it; do you? If you are unsure,
look for usages of class spock.tapestry.ScopeConstants and do a
full-text search for @Scope("perIteration"). Thanks for any feedback.
Cheers,
Peter
> --
> You received this message because you are subscribed to the Google
> Groups "Spock Framework - User" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/spockframework/-/b_xiRcuk4XsJ.
@SubModule([ TapestryModule, HibernateCoreModule, AppModule ])gets evaluated you end up with an exception, and none of the test run. If you leave out HibernateCoreModule the test run, but then I can't run the test I need, so I'm stuck.I don't know what the correct solution to the problem is from a detailed standpoint. I just would really like to be able to use Spock (and Geb) for my testing, and without some sort of a fix, I can't.
Cheers,
Peter
> --
> You received this message because you are subscribed to the Google
> Groups "Spock Framework - User" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/spockframework/-/E-d8KzGohG8J.
Cheers,
Peter
> --
> You received this message because you are subscribed to the Google
> Groups "Spock Framework - User" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/spockframework/-/E7Oa1nY5BLMJ.
[WARN] cfg.AnnotationBinder Package not found or wo package-info.java: com.starpoint.instihire.domain [ERROR] ioc.Registry Method org.apache.tapestry5.ioc.internal.RegistryImpl.getObject(RegistryImpl.java:850) may no longer be invoked. [ERROR] ioc.Registry Operations trace: [ERROR] ioc.Registry [ 1] Instantiating service HibernateSessionManager implementation via org.apache.tapestry5.hibernate.HibernateCoreModule.buildHibernateSessionManager(HibernateSessionSource, PerthreadManager) (at HibernateCoreModule.java:96) [ERROR] ioc.Registry [ 2] Constructing service implementation via org.apache.tapestry5.hibernate.HibernateCoreModule.buildHibernateSessionManager(HibernateSessionSource, PerthreadManager) (at HibernateCoreModule.java:96) [ERROR] ioc.Registry [ 3] Realizing service HibernateSessionSource [ERROR] ioc.Registry [ 4] Instantiating service HibernateSessionSource implementation via org.apache.tapestry5.internal.hibernate.HibernateSessionSourceImpl(Logger, List) (at HibernateSessionSourceImpl.java:36) via org.apache.tapestry5.hibernate.HibernateCoreModule.bind(ServiceBinder) (at HibernateCoreModule.java:45) [ERROR] ioc.Registry [ 5] Invoking constructor org.apache.tapestry5.internal.hibernate.HibernateSessionSourceImpl(Logger, List) (at HibernateSessionSourceImpl.java:36) via org.apache.tapestry5.hibernate.HibernateCoreModule.bind(ServiceBinder) (at HibernateCoreModule.java:45) (for service 'HibernateSessionSource') [ERROR] ioc.Registry [ 6] Realizing service ClassNameLocator [ERROR] ioc.Registry [ 7] Instantiating service ClassNameLocator implementation via org.apache.tapestry5.ioc.internal.services.ClassNameLocatorImpl(ClasspathURLConverter) (at ClassNameLocatorImpl.java:62) via org.apache.tapestry5.ioc.services.TapestryIOCModule.bind(ServiceBinder) (at TapestryIOCModule.java:49) [ERROR] ioc.Registry [ 8] Creating plan to instantiate org.apache.tapestry5.ioc.internal.services.ClassNameLocatorImpl via public org.apache.tapestry5.ioc.internal.services.ClassNameLocatorImpl(org.apache.tapestry5.ioc.services.ClasspathURLConverter) [ERROR] ioc.Registry [ 9] Determining injection value for parameter #1 (org.apache.tapestry5.ioc.services.ClasspathURLConverter) [ERROR] TapestryIOCModule.ClassNameLocator Construction of service ClassNameLocator failed: Method org.apache.tapestry5.ioc.internal.RegistryImpl.getObject(RegistryImpl.java:850) may no longer be invoked. org.apache.tapestry5.ioc.internal.OperationException: Method org.apache.tapestry5.ioc.internal.RegistryImpl.getObject(RegistryImpl.java:850) may no longer be invoked. at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.logAndRethrow(OperationTrackerImpl.java:121) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:88) at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87) at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1121) at org.apache.tapestry5.ioc.internal.util.InternalUtils.calculateParameters(InternalUtils.java:293) at org.apache.tapestry5.ioc.internal.util.InternalUtils$23.invoke(InternalUtils.java:1488)