ozoneplatform / owf-framework

OZONE Widget Framework
http://ozoneplatform.org
Apache License 2.0
329 stars 143 forks source link

Unable to use direct char[] access of java.lang.String #37

Closed MattPark closed 9 years ago

MattPark commented 11 years ago

With OWF 7.0 I've been seeing the following error in the log. It seems to come up when the lorem ipsum banner loads.

I've seen it on RHEL and Ubuntu--

I haven't noticed any loss of functionality.

2013-10-28 16:23:14,592 [main] INFO  org.apache.catalina.startup.Catalina- Server startup in 23691 ms
Unable to use direct char[] access of java.lang.String
java.lang.NoSuchFieldException: count
    at java.lang.Class.getDeclaredField(Class.java:1948)
    at org.codehaus.groovy.grails.web.util.StringCharArrayAccessor.<clinit>(StringCharArrayAccessor.java:53)
    at org.codehaus.groovy.grails.web.util.StreamCharBuffer.readAsString(StreamCharBuffer.java:531)
    at org.codehaus.groovy.grails.web.util.StreamCharBuffer.toString(StreamCharBuffer.java:552)
    at org.codehaus.groovy.grails.web.pages.FastStringWriter.getValue(FastStringWriter.java:59)
    at org.codehaus.groovy.grails.web.pages.FastStringWriter.toString(FastStringWriter.java:55)
    at org.codehaus.groovy.grails.web.pages.GroovyPagesUriSupport.getViewURIInternal(GroovyPagesUriSupport.java:192)
    at org.codehaus.groovy.grails.web.pages.GroovyPagesUriSupport.getNoSuffixViewURI(GroovyPagesUriSupport.java:153)
    at org.codehaus.groovy.grails.web.pages.DefaultGroovyPagesUriService.getNoSuffixViewURI(DefaultGroovyPagesUriService.java:159)
    at org.codehaus.groovy.grails.web.pages.DefaultGroovyPagesUriService.getNoSuffixViewURI(DefaultGroovyPagesUriService.java:148)
    at org.codehaus.groovy.grails.web.servlet.DefaultGrailsApplicationAttributes.getNoSuffixViewURI(DefaultGrailsApplicationAttributes.java:239)
    at org.codehaus.groovy.grails.web.metaclass.RenderDynamicMethod.renderView(RenderDynamicMethod.java:365)
    at org.codehaus.groovy.grails.web.metaclass.RenderDynamicMethod.invoke(RenderDynamicMethod.java:185)
    at sun.reflect.GeneratedMethodAccessor233.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
tinaColemanNextCentury commented 11 years ago

See https://groups.google.com/d/msg/ozoneplatform-users/SObe-AsPPZs/elMqhg2L2AwJ for both the explanation and a workaround. Going to leave the issue open to be handled by a pull request for the setEnv.bat/.sh fix Jason Wagner mentioned, but yeah, not functionality impacting. Root cause: It's a Grails issue, fixed in Grails 2.1. Grails tries to make use of a call on String that's no longer there in Java7.