Closed michaelfranz closed 10 years ago
I have the same issue. Another workaround is to delete the .slcache folder in your grails home folder.
It will allow you application to work properly and reload for a while (until you perform again the operation that got you the problem in the first place). I have not figured out what it is that is causing the problem.
I've seen GRAILS-9952 was a Grails bug that could be related: it has been marked as fixed exactly for grails 2.1.6 and 2.2.3. I suppose the workaround proposed by Vincent could be connected to the fact that the .slcache folder could be stale if you previously used a version of grails affected by the issue. i.e. see http://jira.grails.org/browse/GRAILS-9952?focusedCommentId=75947&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-75947
I can indeed confirm that this issue can by solved by periodically clearing the stale .slcache folder
My app fails to boot with the following message:
| Error 2013-07-21 09:47:13,807 [localhost-startStop-1] ERROR servlet.SpringServlet - Exception occurred when intialization Message: com.sun.proxy.$Proxy26 cannot be cast to javax.ws.rs.Consumes Line | Method ->> 182 | initReaders in com.sun.jersey.core.spi.factory.MessageBodyFactory
| 175 | initReaders in '' | 162 | init . . . . . . . in '' | 1279 | _initiate in com.sun.jersey.server.impl.application.WebApplicationImpl | 163 | access$700 . . . . in '' | 769 | f in com.sun.jersey.server.impl.application.WebApplicationImpl$13 | 765 | f . . . . . . . . in '' | 193 | processWithErrors in com.sun.jersey.spi.inject.Errors | 765 | initiate . . . . . in com.sun.jersey.server.impl.application.WebApplicationImpl | 117 | initiate in com.sun.jersey.spi.spring.container.servlet.SpringServlet | 319 | initiate . . . . . in com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent | 609 | load in com.sun.jersey.spi.container.servlet.WebComponent | 210 | init . . . . . . . in '' | 374 | init in com.sun.jersey.spi.container.servlet.ServletContainer | 557 | init . . . . . . . in '' | 51 | init in org.grails.jaxrs.web.JerseyServlet | 174 | init . . . . . . . in org.grails.jaxrs.web.JaxrsContext | 164 | init in '' | 45 | contextInitialized in org.grails.jaxrs.web.JaxrsListener | 303 | innerRun in java.util.concurrent.FutureTask$Sync | 138 | run . . . . . . . in java.util.concurrent.FutureTask | 895 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker | 918 | run . . . . . . . in '' ^ 680 | run in java.lang.Thread
Workaround: grails -noreloading run-app