Illegal pattern component: t

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Illegal pattern component: t

cazacugmihai
Hi,

I'm struggling with this error when the application is accessed from an android device:

2012-01-12 22:39:34,288 ERROR ( - ) (org.codehaus.groovy.grails.web.errors.GrailsExceptionResolver:213) - IllegalArgumentException occurred when processing request: [GET] /trade/apartment/buy
Illegal pattern component: t. Stacktrace follows:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error processing GroovyPageView: Error executing tag <r:script>: org.codehaus.groovy.grails.web.converters.exceptions.ConverterException: java.lang.IllegalArgumentException: Illegal pattern component: t
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <r:script>: org.codehaus.groovy.grails.web.converters.exceptions.ConverterException: java.lang.IllegalArgumentException: Illegal pattern component: t
at D__projects_macrobit_trade_grails_app_views_frontend_apartment_buy_gsp$_run_closure2.doCall(buy.gsp:89)
at D__projects_macrobit_trade_grails_app_views_frontend_apartment_buy_gsp.run(buy.gsp:90)
... 3 more
Caused by: org.apache.commons.lang.UnhandledException: org.codehaus.groovy.grails.web.converters.exceptions.ConverterException: java.lang.IllegalArgumentException: Illegal pattern component: t
at java.lang.String.valueOf(String.java:2826)
at D__projects_macrobit_trade_grails_app_views_frontend_apartment_buy_gsp$_run_closure2_closure19.doCall(buy.gsp:51)
at org.grails.plugin.resource.ResourceTagLib$_closure7.doCall(ResourceTagLib.groovy:420)
... 5 more
Caused by: org.codehaus.groovy.grails.web.converters.exceptions.ConverterException: java.lang.IllegalArgumentException: Illegal pattern component: t
at grails.converters.JSON.value(JSON.java:198)
at grails.converters.JSON.convertAnother(JSON.java:161)
at grails.converters.JSON.value(JSON.java:198)
at grails.converters.JSON.convertAnother(JSON.java:161)
at grails.converters.JSON.value(JSON.java:198)
at grails.converters.JSON.render(JSON.java:133)
... 8 more
Caused by: java.lang.IllegalArgumentException: Illegal pattern component: t
at org.apache.commons.lang.time.FastDateFormat.parsePattern(FastDateFormat.java:691)
at org.apache.commons.lang.time.FastDateFormat.init(FastDateFormat.java:558)
at org.apache.commons.lang.time.FastDateFormat.getInstance(FastDateFormat.java:217)
at BootStrap$_registerJsonConverters_closure6.doCall(BootStrap.groovy:62)
... 14 more

All things are fine when the application is accessed from my laptop/iMac/iPhone/iPad.

Do you know what can be the root of this issue?

In debug, I can go only to ResourceTagLib#script method:

    def script = { attrs, body ->
        def dispos = attrs.remove('disposition') ?: 'defer'
        storePageFragment('script', dispos, body())
    }

and here, the error appears when the "body()" is called.

Thanks!
Mihai
Reply | Threaded
Open this post in threaded view
|

Re: Illegal pattern component: t

cazacugmihai
It seems that the application is trying to convert a date and the error is thrown: http://i.imgur.com/OzcdC.png
Reply | Threaded
Open this post in threaded view
|

Re: Illegal pattern component: t

eduardoarantes
In reply to this post by cazacugmihai
Mihai Cazacu <cazacugmihai <at> gmail.com> writes:

>
>
> Hi,
>
> I'm struggling with this error when the application is accessed from an
android device:
>
>
>
> 2012-01-12 22:39:34,288 ERROR ( - )
(org.codehaus.groovy.grails.web.errors.GrailsExceptionResolver:213) -
IllegalArgumentException occurred when processing request: [GET]
/trade/apartment/buyIllegal pattern component: t. Stacktrace follows:
>
> org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
processing GroovyPageView: Error executing tag <r:script>:
org.codehaus.groovy.grails.web.converters.exceptions.ConverterException:
java.lang.IllegalArgumentException: Illegal pattern component: t at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:8
86) at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)Caused by:
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <r:script>:
org.codehaus.groovy.grails.web.converters.exceptions.ConverterException:
java.lang.IllegalArgumentException: Illegal pattern component: t at
D__projects_macrobit_trade_grails_app_views_frontend_apartment_buy_gsp$_run_clos
ure2.doCall(buy.gsp:89) at
D__projects_macrobit_trade_grails_app_views_frontend_apartment_buy_gsp.run(buy.g
sp:90) ... 3 moreCaused by: org.apache.commons.lang.UnhandledException:
org.codehaus.groovy.grails.web.converters.exceptions.ConverterException:
java.lang.IllegalArgumentException: Illegal pattern component: t at
java.lang.String.valueOf(String.java:2826) at
D__projects_macrobit_trade_grails_app_views_frontend_apartment_buy_gsp$_run_clos
ure2_closure19.doCall(buy.gsp:51) at
org.grails.plugin.resource.ResourceTagLib$_closure7.doCall(ResourceTagLib.groovy
:420) ... 5 more
>
> Caused by:
org.codehaus.groovy.grails.web.converters.exceptions.ConverterException:
java.lang.IllegalArgumentException: Illegal pattern component: t at
grails.converters.JSON.value(JSON.java:198) at
grails.converters.JSON.convertAnother(JSON.java:161) at
grails.converters.JSON.value(JSON.java:198) at
grails.converters.JSON.convertAnother(JSON.java:161) at
grails.converters.JSON.value(JSON.java:198) at
grails.converters.JSON.render(JSON.java:133) ... 8 moreCaused by:
java.lang.IllegalArgumentException: Illegal pattern component: t at
org.apache.commons.lang.time.FastDateFormat.parsePattern(FastDateFormat.java:691
) at
org.apache.commons.lang.time.FastDateFormat.init(FastDateFormat.java:558)
at
org.apache.commons.lang.time.FastDateFormat.getInstance(FastDateFormat.java:217)
       
at BootStrap$_registerJsonConverters_closure6.doCall(BootStrap.groovy:62)
... 14 more
>
> All things are fine when the application is accessed from my
laptop/iMac/iPhone/iPad.
>
> Do you know what can be the root of this issue?
>
>
> In debug, I can go only to ResourceTagLib#script method:
>
>
>
>     def script = { attrs, body ->        def dispos =
attrs.remove('disposition') ?: 'defer'        storePageFragment('script',
dispos, body())    }
>
>
> and here, the error appears when the "body()" is called.
>
> Thanks!
> Mihai
>


Hi,
did you get it fixed?
Regards,



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

    http://xircles.codehaus.org/manage_email