|
[
Permalink
| « Hide
]
Ricardo J. Méndez added a comment - 12/Dec/07 04:21 PM
Full exception stack trace.
please attach a sample with steps to reproduce
Haven't gotten this issue in 1.0.1 at all.
Hi, I'm still got this issue and grails clean doesn't fix it. I had to go in manually and delete a bunch of *.class files in the project directory. I think they were something that Eclipse created when I imported the project. I had checked "Disable Groovy compiler generating class files" but sometimes it still does it when I import a project.
Deleting the .class files, and then doing grails clean fixed this for me. I just had this same issue with grails-1.0.3-SNAPSHOT.
grails-clean alone did not help; I then did a Project --> clean in Eclipse followed by a grails clean. That did the job. Don't think it's a grails bug; much more one of the myriads of issues related to developing a Grails app using Eclipse... the Eclipse support is really extremely poor. Same situation, deleting .class files from within Eclipse solved the problem.
I made 2 mistakes before that are maybe related to the root cause: I think it's related to 2) I'll try to isolate the conditions. This is actually very easy to reproduce: I get this error everytime when I "grails run-app" after I changed something in a domain class and did not do a full clean and package thereafter.
I always have to clean and rebuild everything when changing even the slightest thing in a domain class. This should be reopened, as it is extremely annoying and time consuming. attach an example with steps to reproduce please
Well, it happens in any of my domain classes, whenever I modify code there... So the example is:
1) Create domain class 2) start server 3) everything OK 4) stop server 5) modify domain class 6) start server 7) exception occurs (see bug report) 8) grails clean && grails package 9) start server 10) everything works again I suppose it doesn't happen with your setup, otherwise you had already gone nuts like me I'm sorry if I cannot give you better input, I can just say that the problem is there, and I had it from day one (that's roughly six months now). |
|||||||||||||||||||||||||||||||||||||||||||||||