Tested with RC2. Still broken. Added field, tried a few reloads. Still does not appear. Adding a comment will make it appear. Adding another field shows the previous field added but not the last one.
After 2-3 reloads gets:
Error 500: Internal Server Error
URI
/jira/contact/list
Class
groovy.lang.MissingMethodException
Message
No signature of method: jira.Contact.list() is applicable for argument types: () values: [] Possible solutions: list(), list(java.util.Map), last(), last(java.lang.String), last(java.util.Map), first()
Around line 15 of grails-app/controllers/jira/ContactController.groovy
Around line 186 of PageFragmentCachingFilter.java
183: if(method == null) {
184: log.debug("No cacheable method found for {}:{} {}",
185: new Object[]
{ request.getMethod(), request.getRequestURI(), getContext() }
);
186: chain.doFilter(request, response);
187: return;
188: }
189: Collection<CacheOperation> cacheOperations = cacheOperationSource.getCacheOperations(
Around line 63 of AbstractFilter.java
60: try {
61: // NO_FILTER set for RequestDispatcher forwards to avoid double gzipping
62: if (filterNotDisabled(request))
{
63: doFilter(request, response, chain);
64: }
65: else {
66: chain.doFilter(req, res);
Trace
Line | Method
->> 15 | list in ContactController.groovy
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 186 |
doFilter in PageFragmentCachingFilter.java |
| 63 |
doFilter in AbstractFilter.java |
| 886 |
runTask in java.util.concurrent.ThreadPoolExecutor$Worker |
| 908 |
run . . in ''
^ 680 |
run in java.lang.Thread |
Which WILL go away on subsequent refreshes but additional field does not appear.
Is the problem that the domain class isn't reloading or that the domain class is reloading but dynamic scaffolding isn't picking up the change? I haven't investigated but my sense is that this is probably not a class reloading problem per se, but a problem with the scaffolding mechanism not noticing that the class has been reloaded.