GWT Plugin

GenerateGwtRpc: java.lang.NullPointerException when a service does not contain expose property nor expose it as a GWT service

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major 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

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: