Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 0.3
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Patch Submitted:Yes
Description
target generate-gwt-rpc exits with NullPointerException when trying to generate interfaces for a service that does not define static expose property, or the service is not going to be exposed as a GWT service.
patch: replace getInterfacesExist(Class serviceClass, String packageName) in DefaultGwtServiceInterfaceGenerator.groovy with the following:
boolean getInterfacesExist(Class serviceClass, String packageName) {
if (packageName == null) return false
File outputDir = getOutputDir(packageName)
return new File(outputDir, getMainFilename(serviceClass)).exists() &&
new File(outputDir, getAsyncFilename(serviceClass)).exists()
}
Issue Links
| This issue duplicates: | ||||
| GPGWT-12 | grails generate-gwt-rpc fails for unexposed services with NullPointerException |
|
|
|