Ok, I made a ClientBundle, and am trying to put my RPC endpoints into
the bundle, and getting a weird error. The relevant pieces are:

public interface Resources extends ClientBundle {
    @ClassType(Display.Service.class)
    GwtCreateResource<Display.ServiceAsync> displaySvc();

    @ClassType(Updater.Service.class)
    GwtCreateResource<Updater.ServiceAsync> updateSvc();

    @ClassType(AlgoList.Service.class)
    GwtCreateResource<AlgoList.ServiceAsync> listSvc();

    @ClassType(Admin.Service.class)
    GwtCreateResource<Admin.ServiceAsync> adminSvc();
}

I have my interfaces defined elsewhere. However, when I attempt to
create the resources, with the following:

public class ShowSort {
    private static final Resources resources;
    private static final Display.ServiceAsync displaySvc;
    private static final Updater.ServiceAsync updateSvc;
    private static final AlgoList.ServiceAsync listSvc;
    private static final Admin.ServiceAsync adminSvc;

    static {
        resources = GWT.create(Resources.class);
        resources.style().ensureInjected();
        resources.shCore().ensureInjected();
        resources.shTheme().ensureInjected();

        displaySvc = resources.displaySvc().create();
        updateSvc = resources.updateSvc().create();
        listSvc = resources.listSvc().create();
        adminSvc = resources.adminSvc().create();
    }
}

I get the following error:

   Scanning for additional dependencies: file:/E:/Documents/Kenai/
showsort~source-code-repository/ShowSort/src/java/org/darkhelm/
showsort/client/ShowSort.java
      Adding '2' new generated units
         Validating newly compiled units
            [ERROR] Errors in 'generated://
F280852A2C6F6F3CA331443A2AA1FAFB/org/darkhelm/showsort/client/
resources/
org_darkhelm_showsort_client_resources_Resources_default_InlineClientBundleGenerator.java'
               [ERROR] Line 10: The return type is incompatible with
GwtCreateResource<Admin.ServiceAsync>.create()
               [ERROR] Line 28: The return type is incompatible with
GwtCreateResource<Display.ServiceAsync>.create()
               [ERROR] Line 37: The return type is incompatible with
GwtCreateResource<AlgoList.ServiceAsync>.create()
               [ERROR] Line 64: The return type is incompatible with
GwtCreateResource<Updater.ServiceAsync>.create()
            [ERROR] Errors in 'generated://
93A5FCE98D7AEEFFC6892A326A030E84/org/darkhelm/showsort/client/
resources/
org_darkhelm_showsort_client_resources_Resources_default_StaticClientBundleGenerator.java'
               [ERROR] Line 10: The return type is incompatible with
GwtCreateResource<Admin.ServiceAsync>.create()
               [ERROR] Line 28: The return type is incompatible with
GwtCreateResource<Display.ServiceAsync>.create()
               [ERROR] Line 37: The return type is incompatible with
GwtCreateResource<AlgoList.ServiceAsync>.create()
               [ERROR] Line 64: The return type is incompatible with
GwtCreateResource<Updater.ServiceAsync>.create()
      [ERROR] Unable to find recently-generated type
'org.darkhelm.showsort.client.resources.org_darkhelm_showsort_client_resources_Resources_default_InlineClientBundleGenerator
   [ERROR] Errors in 'file:/E:/Documents/Kenai/showsort~source-code-
repository/ShowSort/src/java/org/darkhelm/showsort/client/
ShowSort.java'
      [ERROR]  Internal compiler error
java.lang.RuntimeException: Unable to commit generated files
        at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:
131)
        at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.process(AbstractCompiler.java:200)
        at
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
        at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:123)
        at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:234)
        at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.access$200(AbstractCompiler.java:109)
        at
com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:
522)
        at
com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:
112)
        at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:
47)
        at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:
430)
        at
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:
32)
        at com.google.gwt.dev.Precompile.precompile(Precompile.java:
522)
        at com.google.gwt.dev.Precompile.precompile(Precompile.java:
414)
        at com.google.gwt.dev.Compiler.run(Compiler.java:201)
        at com.google.gwt.dev.Compiler$1.run(Compiler.java:152)
        at
com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
        at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
81)
        at com.google.gwt.dev.Compiler.main(Compiler.java:159)
Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see
previous log entries)
        at
com.google.gwt.dev.javac.StandardGeneratorContext.finish(StandardGeneratorContext.java:
358)
        at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:
129)
        ... 17 more


help? I must be doing something wrong here.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to