|
hello
maybe this has already been posted. here is a new short book about Grails. available as PDF. http://www.infoq.com/minibooks/grails Markus -- Markus Jais http://www.mjais.de ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
Great resource, congrats to Jason. Will absorb it over the next days!
A groovy/grails programmer has to read a lot these days :-) Cheers\ Sven On 1/17/07, Markus Jais <[hidden email]> wrote: hello -- Sven Haiges [hidden email] Skype: hansamann Personal Homepage, Wiki & Blog: http://www.svenhaiges.de Subscribe to the Grails Podcast: http://hansamann.podspot.de/rss |
|
Yep, I've downloaded the pdf already... :)
2007/1/17, Sven Haiges <[hidden email]>: Great resource, congrats to Jason. Will absorb it over the next days! -- Thorsten Kamann Software-Architect, Consultant, Coaching Germany, NRW [hidden email] http://www.planetes.de/thorsten-kamann/ callto://thorque |
|
its out on digg, so keep digging
<http://digg.com/programming/InfoQ_eBook_Getting_Started_with_Grails> --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
> its out on digg, so keep digging
> <http://digg.com/programming/InfoQ_eBook_Getting_Started_with_Grails> ah, and of course: Thanks Jason !! --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
> > its out on digg, so keep digging
> > <http://digg.com/programming/InfoQ_eBook_Getting_Started_with_Grails> dugg! > ah, and of course: Thanks Jason !! +1 ! Dierk --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
In reply to this post by Jan Galinski-2
On Wednesday 17 January 2007 06:22, Jan Galinski wrote:
> its out on digg, so keep digging > <http://digg.com/programming/InfoQ_eBook_Getting_Started_with_Grails> > Anyone with an account to theserverside.com, should post news of the book there also. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
In reply to this post by Dierk König
Thanks, Guys! And a big thanks to Graeme and the other reviewers for
their contributions as well! I hope you all enjoy it. Please feel free to let me know if you spot any problems or run into any issues. Cheers, Jason On Jan 17, 2007, at 9:19 AM, Dierk Koenig wrote: >>> its out on digg, so keep digging >>> <http://digg.com/programming/ >>> InfoQ_eBook_Getting_Started_with_Grails> > > dugg! > >> ah, and of course: Thanks Jason !! > > +1 ! > > Dierk > > --------------------------------------------------------------------- > 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 |
|
Thanks Jason. I bought the pdf, too impatient to wait for shipping,
but also, I read better off paper, so off to my printer it goes. Between your an Graeme's book I am finding lots of answers I didn't even have questions for! -Ed On 17-Jan-07, at 5:30 PM, Jason Rudolph wrote: > Thanks, Guys! And a big thanks to Graeme and the other reviewers > for their contributions as well! > > I hope you all enjoy it. Please feel free to let me know if you > spot any problems or run into any issues. > > Cheers, > Jason > > > On Jan 17, 2007, at 9:19 AM, Dierk Koenig wrote: > >>>> its out on digg, so keep digging >>>> <http://digg.com/programming/ >>>> InfoQ_eBook_Getting_Started_with_Grails> >> >> dugg! >> >>> ah, and of course: Thanks Jason !! >> >> +1 ! >> >> Dierk >> >> --------------------------------------------------------------------- >> 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 |
|
In reply to this post by Jason Rudolph
On Wednesday 17 January 2007 18:30, Jason Rudolph wrote:
> Thanks, Guys! And a big thanks to Graeme and the other reviewers for > their contributions as well! > Excellent job on the book! ( After reviewing the pdf, I'll be purchasing a hardcopy for sure ) > I hope you all enjoy it. Please feel free to let me know if you spot > any problems or run into any issues. > On page 48, under the 'Custom Tag Libraries' heading, the code snippet/example doesn't actually show the suggested changes spoken about in the preceding text: <tr class="prop"> <td valign="top" class="name">Start Date/Time:</td> <td valign="top" class="value"> ${race.startDateTime} </td> </tr> should have been: <tr class="prop"> <td valign="top" class="name">Start Date/Time:</td> <td valign="top" class="value"> <g:formatNumber number="${race.startDateTime}" format="yyy-MM-dd HH:mm"/> </td> </tr> Cheers, Corey --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
Is it a good idea to have one nice looking application like
RaceTracker present in the book available for download with grails? (with the nice style sheets used in the book) On 1/18/07, Corey <[hidden email]> wrote: > On Wednesday 17 January 2007 18:30, Jason Rudolph wrote: > > Thanks, Guys! And a big thanks to Graeme and the other reviewers for > > their contributions as well! > > > > Excellent job on the book! ( After reviewing the pdf, I'll be purchasing a hardcopy > for sure ) > > > > I hope you all enjoy it. Please feel free to let me know if you spot > > any problems or run into any issues. > > > > On page 48, under the 'Custom Tag Libraries' heading, the code snippet/example > doesn't actually show the suggested changes spoken about in the preceding text: > > <tr class="prop"> > <td valign="top" class="name">Start Date/Time:</td> > <td valign="top" class="value"> > ${race.startDateTime} > </td> > </tr> > > > should have been: > > <tr class="prop"> > <td valign="top" class="name">Start Date/Time:</td> > <td valign="top" class="value"> > <g:formatNumber number="${race.startDateTime}" > format="yyy-MM-dd HH:mm"/> > </td> > </tr> > > > Cheers, > > Corey > > > > --------------------------------------------------------------------- > 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 |
|
+1 for that.
Kiran K.G. wrote: > Is it a good idea to have one nice looking application like > RaceTracker present in the book available for download with grails? > (with the nice style sheets used in the book) > > > On 1/18/07, Corey <[hidden email]> wrote: >> On Wednesday 17 January 2007 18:30, Jason Rudolph wrote: >> > Thanks, Guys! And a big thanks to Graeme and the other reviewers for >> > their contributions as well! >> > >> >> Excellent job on the book! ( After reviewing the pdf, I'll be >> purchasing a hardcopy >> for sure ) >> >> >> > I hope you all enjoy it. Please feel free to let me know if you spot >> > any problems or run into any issues. >> > >> >> On page 48, under the 'Custom Tag Libraries' heading, the code >> snippet/example >> doesn't actually show the suggested changes spoken about in the >> preceding text: >> >> <tr class="prop"> >> <td valign="top" class="name">Start Date/Time:</td> >> <td valign="top" class="value"> >> ${race.startDateTime} >> </td> >> </tr> >> >> >> should have been: >> >> <tr class="prop"> >> <td valign="top" class="name">Start Date/Time:</td> >> <td valign="top" class="value"> >> <g:formatNumber number="${race.startDateTime}" >> format="yyy-MM-dd HH:mm"/> >> </td> >> </tr> >> >> >> Cheers, >> >> Corey >> >> >> >> --------------------------------------------------------------------- >> 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 |
|
In reply to this post by Markus Jais-2
Great book, but everywhere there's a reference to a "chapter", it says
"chapter 0" Markus Jais ha scritto: > hello > > maybe this has already been posted. > > here is a new short book about Grails. > available as PDF. > > http://www.infoq.com/minibooks/grails > > > Markus > > -- > Markus Jais > http://www.mjais.de > > > > > > > ___________________________________________________________ > Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > > > -- */Raffaele CASTAGNO /*/Logistica & Retail/ /[hidden email] <mailto:[hidden email]>/ /www.gruppotesi.com/ ------------------------------------------------------------------------ *TESI S.p.A.* Sede Legale: Via Mendicita' Istruita, 24 - 12042 Bra (CN) Sede Operativa: Via Savigliano, 48 - 12060 Loc. Roreto di Cherasco (CN) Tel. 0172 476301 - Fax 0172 476399 - [hidden email] / Disclaimer Questo messaggio è rivolto unicamente al destinatario indicato e potrebbe contenere informazioni riservate o confidenziali. Nel caso lo avesse ricevuto per errore, ci scusiamo per l'inconveniente: lo segnali cortesemente al mittente e distrugga subito l'originale. Ogni altro utilizzo sarà considerato illegale. Tesi SpA non si assume alcuna responsabilità per usi impropri di questo messaggio o di sue parti./ /This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, we apologize for this: please notify the sender immediately and delete the original. Any other use of the message is illegal. Tesi SpA does not accept any liability for corruption, interception or damages, if any, caused by unauthorized use of this message or parts./ --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
Hi Raffaele, Good catch, and thanks for pointing out this issue. Steven Devijver kindly pointed out those issues to me yesterday. I've notified the folks at InfoQ, and they tell me it should be fixed by the end of the week. Here's the correction I submitted to InfoQ...
Those are the only two instances of this problem that I'm aware of. If you've seen others, please let me know. Thanks again for your feedback. Cheers, Jason On Jan 18, 2007, at 6:08 PM, Raffaele Castagno wrote:
|
|
In reply to this post by Dmitriy Kopylenko
Thanks for the great feedback on the look and feel of the app. I
must admit, my wife deserves all the credit for those aesthetics. She did all the CSS work for the "UI makeover," and I also think it looks pretty darn slick. The book shows it in grayscale, but I think it looks even better in color. Hopefully you coded along with the book and got to see it for yourself. ;-) If not, you can check out the attached picture. Thanks again for the feedback. Cheers, Jason On Jan 18, 2007, at 4:12 PM, Dmitriy Kopylenko wrote: > +1 for that. > > Kiran K.G. wrote: >> Is it a good idea to have one nice looking application like >> RaceTracker present in the book available for download with grails? >> (with the nice style sheets used in the book) |
|
In reply to this post by Bugzilla from corey_s@qwest.net
On Jan 18, 2007, at 3:47 PM, Corey wrote:
Thanks, Corey. Much appreciated! ;-) I hope you enjoy your hardcopy.
Good catch. Thanks for letting me know. I'll notify the folks at InfoQ, and hopefully they can push out a correction. Here's the code snippet I have from the draft I submitted for publication. <tr class="prop"> <td valign="top" class="name">Start Date/Time:</td> <td valign="top" class="value"> <g:formatDate date="${race.startDateTime}" format="yyyy-MMM-dd HH:mm"/> </td> </tr>
Cheers, Jason |
|
On Thursday 18 January 2007 17:31, Jason Rudolph wrote:
> On Jan 18, 2007, at 3:47 PM, Corey wrote: <snip> > > should have been: > > <g:formatNumber number="${race.startDateTime}" > > format="yyy-MM-dd HH:mm"/> > > > > Here's the code snippet I have from the draft I submitted for publication. > > <g:formatDate date="${race.startDateTime}" format="yyyy-MMM- > dd HH:mm"/> > Whoops, bad cut'n'paste job on my part -- I intended that to be g:startDateTime ( not g:formatNumber ), as you indeed clarify above. > In the near future, I'll try to put together an errata page to > address any issues like this. So, if you see any more, please let me > know. > Definitely! Beers, Corey --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
In reply to this post by Jason Rudolph
Thanks for the free online book!
I was following the book and I got an error when editing a Race object that has a couple of registrations. Message: failed to lazily initialize a collection of role: Race.registrations, no session or session was closed Class: edit.gsp At Line: [67] The funny thing is that once I restarted the jetty server, it always complained that there was no session available to instantiate the lazy registrations property. This does not happen if I had kept the server running in the same session as I have created the race and added new registrations. Here is my config: Latest trunk from Grails + Embedded db + jdk1.6 + XP Any idea why this is happening? Thanks Bing -----邮件原件----- 发件人: Jason Rudolph [mailto:[hidden email]] 发送时间: 2007年1月18日 9:31 收件人: [hidden email] 主题: Re: [grails-user] free Grails Book on infoq Thanks, Guys! And a big thanks to Graeme and the other reviewers for their contributions as well! I hope you all enjoy it. Please feel free to let me know if you spot any problems or run into any issues. Cheers, Jason On Jan 17, 2007, at 9:19 AM, Dierk Koenig wrote: >>> its out on digg, so keep digging >>> <http://digg.com/programming/ >>> InfoQ_eBook_Getting_Started_with_Grails> > > dugg! > >> ah, and of course: Thanks Jason !! > > +1 ! > > Dierk > > --------------------------------------------------------------------- > 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 |
|
Hi Bing,
Thanks for reporting this issue. You're probably the first person to test this app out on Grails 0.4 + JDK 6 + XP. (The sample app is known to work using Grails 0.3.1 and JDK 5 on OS X and XP.) Can you tell me where you are in the book, and I'll give it a try with the current Grails 0.4 snapshot. Also, if you have a moment, can you please list the exact steps you followed to get the error? For example... 1. Start app 2. Create new race 3. Add registration ...and so on That level of detail would be greatly appreciated. As a side note, I'll be verifying that this app works against 0.4 when we get ready for the official 0.4 release. So, any issues that you can find like this in advance are much appreciated. Cheers, Jason On Jan 22, 2007, at 12:55 AM, Bing Ran wrote: > Thanks for the free online book! > > I was following the book and I got an error when editing a Race > object that > has a couple of registrations. > > Message: failed to lazily initialize a collection of role: > Race.registrations, no session or session was closed > Class: edit.gsp > At Line: [67] > > The funny thing is that once I restarted the jetty server, it always > complained that there was no session available to instantiate the lazy > registrations property. This does not happen if I had kept the server > running in the same session as I have created the race and added new > registrations. > > Here is my config: > > Latest trunk from Grails + Embedded db + jdk1.6 + XP > > Any idea why this is happening? > > Thanks > > Bing > > --------------------------------------------------------------------- > 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 |
|
Hi Jason, I finally manage to find a little time to verify that with other Oracle this
time. Basically I have used "generate-controller" and "generate-view"
on both the Race and Registration. The problem was associated with the registrations
property of the Race class. I clicked on "Edit" button on the "Show
Race" page to edit a race and clicked the "Update" button to get
the error. The error only showed up for the "old" race object that
had been created before the web server restart. New races created since the
restart are ok. I can work around this issue by “touching” the registrations property before save the race object, as shown in
the RaceController.groovy: def update = { def race = Race.get(
params.id ) if(race) {
race.properties = params ////// touch the registrations property to work around the save()
failure on “old” race objects //
System.out.println("race registrations: ${race.registrations.size()}----") //////
if(race.save()) { redirect(action:show,id:race.id) } else
{
render(view:'edit',model:[race:race]) } } else { flash.message
= "Race not found with id ${params.id}"
redirect(action:edit,id:params.id) } } I attach the exception here: org.hibernate.LazyInitializationException: failed to lazily initialize a
collection of role: Race.registrations, no session or session was closed at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:358)
at
org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:350)
at
org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:343)
at
org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86)
at org.hibernate.collection.PersistentSet.iterator(PersistentSet.java:163) at
org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:681)
at gjdk.org.hibernate.collection.PersistentSet_GroovyReflector.invoke(Unknown
Source) at groovy.lang.MetaMethod.invoke(MetaMethod.java:115) at
org.codehaus.groovy.runtime.NewInstanceMetaMethod.invoke(NewInstanceMetaMethod.java:109)
at
org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:713)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:559) at
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:449) at
org.codehaus.groovy.runtime.Invoker.invokePojoMethod(Invoker.java:129) at
org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:117) at
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:111)
at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:187)
at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodNSafe(ScriptBytecodeAdapter.java:195)
at race_edit_gsp$_run_closure4.doCall(edit.gsp:85) 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:597) at
org.codehaus.groovy.runtime.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:69)
at
org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:713)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:559) at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:97)
at race_edit_gsp$_run_closure4.doCall(edit.gsp) 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:597) at org.codehaus.groovy.runtime.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:69)
at
org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:713)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:559) at
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:449) at
org.codehaus.groovy.runtime.Invoker.invokePogoMethod(Invoker.java:140) at
org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:121) at
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:111)
at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:187)
at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeClosure(ScriptBytecodeAdapter.java:626)
at FormTagLib$_closure6.doCall(FormTagLib:145) at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown
Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) at
org.codehaus.groovy.runtime.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:69)
at
org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:713)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:559) at
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:449) at groovy.lang.Closure.call(Closure.java:188)
at
org.codehaus.groovy.grails.web.pages.GroovyPage.invokeTag(GroovyPage.java:200)
at gjdk.race_edit_gsp_GroovyReflector.invoke(Unknown Source) at
groovy.lang.MetaMethod.invoke(MetaMethod.java:115) at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:713)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:559) at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:97)
at race_edit_gsp.run(edit.gsp:128) at
org.codehaus.groovy.grails.web.pages.GroovyPagesTemplateEngine$GroovyPageTemplateWritable.writeTo(GroovyPagesTemplateEngine.java:418)
at
org.codehaus.groovy.grails.web.pages.GroovyPagesServlet.doPage(GroovyPagesServlet.java:154)
at org.codehaus.groovy.grails.web.pages.GroovyPagesServlet.doPost(GroovyPagesServlet.java:116)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427) at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)
at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:280) at
org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:171) at
org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:112)
at
org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:249)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1063)
at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:827)
at
org.codehaus.groovy.grails.web.servlet.GrailsDispatcherServlet.doDispatch(GrailsDispatcherServlet.java:84)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:736)
at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396)
at
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:360)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427) at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
at
org.codehaus.groovy.grails.web.servlet.filter.GrailsReloadServletFilter.doFilterInternal(GrailsReloadServletFilter.java:170)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
at
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)
at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
at
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:78)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
at
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
at
org.codehaus.groovy.grails.web.servlet.mvc.GrailsWebRequestFilter.doFilterInternal(GrailsWebRequestFilter.java:53)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at
org.mortbay.http.HttpContext.handle(HttpContext.java:1565) at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:635)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1517) at
org.mortbay.http.HttpServer.service(HttpServer.java:954) at
org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983) at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) -----邮件原件----- Hi Bing, Thanks for reporting this issue. You're probably the first person
to test this app out on Grails 0.4 + JDK 6 + XP. (The sample app
is known to work using Grails tell me where you are in the book, and I'll give it a try with the
current Grails 0.4 snapshot. Also, if you have a moment, can you please list the exact steps
you followed to get the error? For example... 1. Start app 2. Create new race 3. Add registration ...and so on That level of detail would be greatly appreciated. As a side note, I'll be verifying that this app works against 0.4 when we get ready for the official 0.4 release. So, any issues
that you can find like this in advance are much appreciated. Cheers, Jason On Jan 22, 2007, at 12:55 AM, Bing Ran wrote: > Thanks for the free online book! > > I was following the book and I got an error when editing a
Race > object that > has a couple of registrations. > > Message: failed to lazily initialize a collection of role: > Race.registrations, no session or session was closed > Class: edit.gsp > At Line: [67] > > The funny thing is that once I restarted the jetty server, it
always > complained that there was no session available to instantiate the
lazy > registrations property. This does not happen if I had kept the
server > running in the same session as I have created the race and added
new > registrations. > > Here is my config: > > Latest trunk from Grails + Embedded db + jdk1.6 + XP > > Any idea why this is happening? > > Thanks > > Bing > >
--------------------------------------------------------------------- > 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 |
| Powered by Nabble | Edit this page |
