Multiple Entries in g:link params= Map Crashes Server

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

Multiple Entries in g:link params= Map Crashes Server

Randall R Schulz
Hi,

On two separate GSP pages I have, whenever I add a second parameter to
the params= attribute of a <g:link ...> tag, the Grails server blows up
with a couple hundred lines of stack traces.

I've attached a zip archive holding a sample of one of these stack
traces.

Here are two sample GSP fragments:

    Relational Cross-Reference:
    <span class="actionButton">
    <g:link action="xrr" id="${clif?.id}" params="[kind:'tsv']">Download Tab-separated</g:link>
    </span>
    <span class="actionButton">
    <g:link action="xrr" id="${clif?.id}" params="[kind:'csv']">Download Comma-separated</g:link>
    </span>

Up to here, there's no problem, but when I add this:

    <span class="actionButton">
    <g:link action="xrr" id="${clif?.id}" params="[kind:'tsv',type='text/plain']">View Tab-separated</g:link>
    </span>
    <span class="actionButton">
    <g:link action="xrr" id="${clif?.id}" params="[kind:'csv',type='text/plain']">View Comma-separated</g:link>
    </span>


Ka-boom!


Randall Schulz

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

    http://xircles.codehaus.org/manage_email

multi-params-trace.zip (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Entries in g:link params= Map Crashes Server

graemer
Raise an issue and attach a sample app that reproduces the problem

Cheers

On 10/4/07, Randall R Schulz <[hidden email]> wrote:

> Hi,
>
> On two separate GSP pages I have, whenever I add a second parameter to
> the params= attribute of a <g:link ...> tag, the Grails server blows up
> with a couple hundred lines of stack traces.
>
> I've attached a zip archive holding a sample of one of these stack
> traces.
>
> Here are two sample GSP fragments:
>
>     Relational Cross-Reference:
>     <span class="actionButton">
>     <g:link action="xrr" id="${clif?.id}" params="[kind:'tsv']">Download Tab-separated</g:link>
>     </span>
>     <span class="actionButton">
>     <g:link action="xrr" id="${clif?.id}" params="[kind:'csv']">Download Comma-separated</g:link>
>     </span>
>
> Up to here, there's no problem, but when I add this:
>
>     <span class="actionButton">
>     <g:link action="xrr" id="${clif?.id}" params="[kind:'tsv',type='text/plain']">View Tab-separated</g:link>
>     </span>
>     <span class="actionButton">
>     <g:link action="xrr" id="${clif?.id}" params="[kind:'csv',type='text/plain']">View Comma-separated</g:link>
>     </span>
>
>
> Ka-boom!
>
>
> Randall Schulz
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


--
Graeme Rocher
Grails Project Lead
http://grails.org

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

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|

Re: Multiple Entries in g:link params= Map Crashes Server

Jeff Brown
In reply to this post by Randall R Schulz
Randall,

Instead of this...

params="[kind:'tsv', type='text/plain']"

...don't you want this...

params="[kind:'tsv', type:'text/plain']"

Note the colon (:) between "type" and "text/plain".



jb
 



On 10/4/07, Randall R Schulz <[hidden email]> wrote:
Hi,

On two separate GSP pages I have, whenever I add a second parameter to
the params= attribute of a <g:link ...> tag, the Grails server blows up
with a couple hundred lines of stack traces.

I've attached a zip archive holding a sample of one of these stack
traces.

Here are two sample GSP fragments:

    Relational Cross-Reference:
    <span class="actionButton">
    <g:link action="xrr" id="${clif?.id}" params="[kind:'tsv']">Download Tab-separated</g:link>
    </span>
    <span class="actionButton">
    <g:link action="xrr" id="${clif?.id}" params="[kind:'csv']">Download Comma-separated</g:link>
    </span>

Up to here, there's no problem, but when I add this:

    <span class="actionButton">
    <g:link action="xrr" id="${clif?.id}" params="[kind:'tsv',type='text/plain']">View Tab-separated</g:link>
    </span>
    <span class="actionButton">
    <g:link action="xrr" id="${clif?.id}" params="[kind:'csv',type='text/plain']">View Comma-separated</g:link>
    </span>


Ka-boom!


Randall Schulz

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

     http://xircles.codehaus.org/manage_email




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

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
http://www.autismspeaks.org/
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Entries in g:link params= Map Crashes Server

Randall R Schulz
On Thursday 04 October 2007 09:19, Jeff Brown wrote:

> Randall,
>
> Instead of this...
>
> params="[kind:'tsv', type='text/plain']"
>
> ...don't you want this...
>
> params="[kind:'tsv', type:'text/plain']"
>
> Note the colon (:) between "type" and "text/plain".
>
>
>
> jb

Yes! Another "D'Oh!" moment...

I scrutinized the syntax looking for problems and didn't see that.

Thanks for pointing it out.


Randall Schulz

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

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|

Re: Multiple Entries in g:link params= Map Crashes Server

Randall R Schulz
On Thursday 04 October 2007 09:24, Randall R Schulz wrote:

> On Thursday 04 October 2007 09:19, Jeff Brown wrote:
> > Randall,
> >
> > Instead of this...
> >
> > params="[kind:'tsv', type='text/plain']"
> >
> > ...don't you want this...
> >
> > params="[kind:'tsv', type:'text/plain']"
> >
> > Note the colon (:) between "type" and "text/plain".
> >
> >
> >
> > jb
>
> Yes! Another "D'Oh!" moment...
>
> I scrutinized the syntax looking for problems and didn't see that.
>
> Thanks for pointing it out.


It's kind of interesting that JetGroovy didn't bat an eyelash at that,
but the Groovy compiler flew off the handle.


Randall Schulz

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

    http://xircles.codehaus.org/manage_email