History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GRAILSPLUGINS-166
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Graeme Rocher
Reporter: Karsten Silz
Votes: 5
Watchers: 6
Operations

If you were logged in you would be able to see more operations.
Grails Plugins

Error with Grails 1.0RC1

Created: 17/Oct/07 07:09 AM   Updated: 08/Apr/08 11:10 PM
Component/s: Grails-ScaffoldTags
Affects Version/s: Grails-ScaffoldTags 0.7
Fix Version/s: Grails-ScaffoldTags 0.7.1

Time Tracking:
Not Specified

Environment: Windows XP, SP2, Java 6u3, Grails 1.0RC1, ScaffoldTags 0.7


 Description  « Hide
I installed the plugin with the "img-no-skin" and then generated controllers and views for my single class ("User"). Now when I hit the user controller, I get the following stack trace:
[17422] StackTrace Sanitizing stacktrace:
java.io.FileNotFoundException: grails-app\views\user (Access denied)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at org.springframework.core.io.FileSystemResource.getInputStream(FileSystemResource.java:85)
        at org.codehaus.groovy.grails.web.pages.GroovyPagesTemplateEngine.createTemplateWithResource(GroovyPagesTemplateEngine.java:2
75)
        at org.codehaus.groovy.grails.web.pages.GroovyPagesTemplateEngine.createTemplate(GroovyPagesTemplateEngine.java:167)
        at org.codehaus.groovy.grails.web.pages.GroovyPagesTemplateEngine.createTemplate(GroovyPagesTemplateEngine.java:182)
        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.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:127)
        at org.codehaus.groovy.runtime.metaclass.StdMetaMethod.invoke(StdMetaMethod.java:18)
        at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:538)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:749)
        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:945)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:589)
        at org.codehaus.groovy.runtime.Invoker.invokePojoMethod(Invoker.java:87)
        at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:75)
        at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:74)
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:158)
        at ScaffoldTagLib.executeTemplate(ScaffoldTagLib.groovy:767)
        at ScaffoldTagLib.this$2$executeTemplate(ScaffoldTagLib.groovy)
        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.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
        at org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:58)
        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.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:127)
        at org.codehaus.groovy.runtime.metaclass.StdMetaMethod.invoke(StdMetaMethod.java:18)
        at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:538)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:749)
        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:945)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:589)
        at org.codehaus.groovy.runtime.Invoker.invokePojoMethod(Invoker.java:87)
        at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:75)
        at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:74)
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:158)
        at org.codehaus.groovy.grails.plugins.web.ControllersGrailsPlugin$_closure4_closure82.doCall(ControllersGrailsPlugin.groovy:4
22)
        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.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
        at org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:58)
        at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:538)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:749)
        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:945)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:589)
        at groovy.lang.Closure.call(Closure.java:290)
        at org.codehaus.groovy.runtime.metaclass.ClosureMetaMethod.invoke(ClosureMetaMethod.java:78)
        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:943)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:589)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:717)
        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:945)
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:66)
        at ScaffoldTagLib$_closure2.doCall(ScaffoldTagLib.groovy:214)
        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.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
        at org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:58)
        at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:538)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:749)
        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:945)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:589)
        at groovy.lang.Closure.call(Closure.java:290)
        at org.codehaus.groovy.grails.web.pages.GroovyPage.invokeTag(GroovyPage.java:213)
        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.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:127)
        at org.codehaus.groovy.runtime.metaclass.StdMetaMethod.invoke(StdMetaMethod.java:18)
        at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:538)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:749)
        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:945)
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:66)
        at D__source_bugs_and_screenshots_grails_ScaffoldPlugin_SeldonManager_grails_app_views_user_list_gsp.run(D__source_bugs_and_s
creenshots_grails_ScaffoldPlugin_SeldonManager_grails_app_views_user_list_gsp:22)
        at org.codehaus.groovy.grails.web.pages.GroovyPageWritable.writeTo(GroovyPageWritable.java:110)
        at org.codehaus.groovy.grails.web.servlet.view.GroovyPageView.renderWithTemplateEngine(GroovyPageView.java:109)
        at org.codehaus.groovy.grails.web.servlet.view.GroovyPageView.renderMergedOutputModel(GroovyPageView.java:88)
        at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:239)
        at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1140)
        at org.codehaus.groovy.grails.web.servlet.GrailsDispatcherServlet.doDispatch(GrailsDispatcherServlet.java:268)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:790)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)
[...]
Caused by: java.io.FileNotFoundException: grails-app\views\user (Acess denied)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:127)
        at ScaffoldTagLib.executeTemplate(ScaffoldTagLib.groovy:767)
        at ScaffoldTagLib.this$2$executeTemplate(ScaffoldTagLib.groovy)
        at org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
        at org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:127)
        at org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
        at ScaffoldTagLib$_closure2.doCall(ScaffoldTagLib.groovy:214)
        at org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
        at org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:127)
        at D__source_bugs_and_screenshots_grails_ScaffoldPlugin_SeldonManager_grails_app_views_user_list_gsp.run(D__source_bugs_and_s
creenshots_grails_ScaffoldPlugin_SeldonManager_grails_app_views_user_list_gsp:22)
[17469] view.GroovyPageView Error processing GroovyPageView: I/O error reading stream for resource [file [D:\source\bugs and screensh
ots\grails\ScaffoldPlugin\SeldonManager\grails-app\views\user]]: grails-app\views\user (Zugriff verweigert)
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: I/O error reading stream for resource [file [D:\source\bugs and
 screenshots\grails\ScaffoldPlugin\SeldonManager\grails-app\views\user]]: grails-app\views\user (Zugriff verweigert)
        at org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:127)
        at ScaffoldTagLib.executeTemplate(ScaffoldTagLib.groovy:767)
        at ScaffoldTagLib.this$2$executeTemplate(ScaffoldTagLib.groovy)
        at org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
        at org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:127)
        at org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
        at ScaffoldTagLib$_closure2.doCall(ScaffoldTagLib.groovy:214)
        at org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
        at org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:127)
        at D__source_bugs_and_screenshots_grails_ScaffoldPlugin_SeldonManager_grails_app_views_user_list_gsp.run(D__source_bugs_and_s
creenshots_grails_ScaffoldPlugin_SeldonManager_grails_app_views_user_list_gsp:22)
Caused by: java.io.FileNotFoundException: grails-app\views\user (Access denied)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Christian Sprecher - 29/Oct/07 11:29 AM
Same here on W2K ...

Bob Herrmann - 29/Nov/07 07:45 AM
Just tried this today (Nov 29, 2007) and I'm not getting goodness. Running on Linux and I get

java.io.FileNotFoundException: grails-app/views/keyword (Is a directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)

FYI: My domain classes use full package names and are written in Java using annotations. ie. com.mycompany.Keyword.java


Peter Kelley - 04/Feb/08 04:55 PM
I'm seeing this too with a really basic sample project. This is a critical issue as far as I'm concerned. How do we raise the priority?

SR Melody - 01/Apr/08 07:17 AM
I'm also seeing this on Ubuntu Linux on a simple project. It's disappointing this isn't working at all, it seems like a neat idea.

David Smiley - 08/Apr/08 11:10 PM
ScaffoldTags needs to be ported to grails 1; it hasn't yet. I have an app in production that uses & depends on ST heavily on grails 0.6. Without it I'm not sure what I would of done given that I had a huge domain model that needed CRUD operations. I just recently upgraded the app to run on grails 1.0.1 which involved a couple tweaks to ST. I'm not using ST generated controllers (as you are attempting to use) so I don't know what needs to be done there. The main change I remember making was in ScaffoldTagLib.groovy (the real brains of ST), which declared the types of some parameters to be Class but grails or groovy appears to have a bug with that: GRAILS-2659