Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Problem with smartgwtpower-3.1d

    I just got the latest from /builds/SmartGWT/3.1d/PowerEdition/2012-04-18 and I am having trouble compiling my project. I get the following exception. Please note that the XXX's in my class names have been put there to replace the real class names. Are there changes I need to make to get this version to compile?

    Mvp4g Compilation: 0ms.
    [java] Rebinding com.mvp4g.client.Mvp4gModule
    [java] Invoking generator com.mvp4g.util.Mvp4gGenerator
    [java] Generating source for com.mvp4g.client.Mvp4gModule
    [java] Generating source for com.mvp4g.client.Mvp4gModule
    [java] Mvp4g Compilation: 0ms.
    [java] Scanning for additional dependencies: generated://C6F9BC24117016A814515B0C3BFDD1EF/com/mvp4g/client/Mvp4gModuleImpl_com_mvp4g_client_Mvp4gModuleGinjectorImpl.java
    [java] Computing all possible rebind results for 'com.XXX.StatusBarView'
    [java] Rebinding com.XXX.StatusBarView
    [java] Invoking generator com.smartgwt.rebind.PropertyHelperGenerator
    [java] Unhandled type'com.XXX.ITabbedConsoleView
    [java] java.lang.Exception
    [java] at com.smartgwt.rebind.BeanProperty.isSupportedType(BeanProperty.java:145)
    [java] at com.smartgwt.rebind.BeanProperty.getProperties(BeanProperty.java:182)
    [java] at com.smartgwt.rebind.PropertyHelperGenerator.generate(PropertyHelperGenerator.java:42)

    #2
    Do you have calls to GWT.create(<canvas subclass>.class) in you code? If so, what is the purpose of those calls? It appears to be some sort of conflict between SmartGWT generators and Mvp4gModule generators. Do you have a Canvas subclass that also inherits com.mvp4g.client.Mvp4gModule?

    We'll need to know more about what you're doing to be able to troubleshoot this.

    Comment


      #3
      I do not have any GWT.create(<canvas subclass>.class) calls in my code. I also do not have a Canvas subclass that also inherits com.mvp4g.client.Mvp4gModule.

      I would be glad to give you any other information you need.

      Comment


        #4
        A minimal standalone testcase would help.

        Comment


          #5
          That could be difficult to do. By the way I am getting this exception for many classes including Smart GWT classes:

          Unhandled type'com.smartgwt.logicalstructure.core.LogicalStructureObject

          Comment


            #6
            Can you post the skeletal code for the StatusBarView class?

            Without a standalone testcase, it's going to be difficult to get to the root of the problem and we'll likely have to wait to see if we get similar reports from other users.

            Comment


              #7
              I've attached several skeletal files that I can use to reproduce the problem. There is a call to GWT.create() in TestClient.java. If it's commented out the code will compile but if it's not, it won't.

              Please let me know if you need additional information.
              Attached Files

              Comment


                #8
                Your sample includes use of the third party libraries Mvp4g and GIN and you have not mentioned the versions you are using. I tried running your sample with GIN 1.5 and Mvp4g 1.4.0 but got the error below. We do not use Mvp4g but the issue you're hitting is because of its use.

                Please provide a complete standalone project, including the module xml file and all the configuration required by Mvp4g because I'm not sure what the cause of the error below is. Ideally modify the Hello World sample project that comes with SmartGWT so that we can reproduce your problem by simply running the sample. Once we're able to reproduce the issue it will be a lot easier to get to the root of the problem.

                Code:
                DEBUG: Rebinding com.mvp4g.client.Mvp4gModule. 
                  DEBUG: Invoking generator com.mvp4g.util.Mvp4gGenerator. 
                    INFO: 3294 classes scanned in 10 ms.. 
                    ERROR: No Event Bus interface has been found for Mvp4gModule module.. com.mvp4g.util.exception.InvalidMvp4gConfigurationException: No Event Bus interface has been found for Mvp4gModule module.
                	at com.mvp4g.util.config.Mvp4gConfiguration.load(Mvp4gConfiguration.java:231)
                	at com.mvp4g.util.Mvp4gGenerator.generate(Mvp4gGenerator.java:94)
                	at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)
                	at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)
                	at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:681)
                	at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
                	at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:74)
                	at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:285)
                	at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:141)
                	at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:585)
                	at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:455)
                	at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
                	at com.google.gwt.core.client.GWT.create(GWT.java:98)
                	at com.mycompany.client.HelloWorld.onModuleLoad(HelloWorld.java:146)
                	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                	at java.lang.reflect.Method.invoke(Method.java:597)
                	at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
                	at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:193)
                	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
                	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
                	at java.lang.Thread.run(Thread.java:680)

                Comment


                  #9
                  I am using gin-1.5-post-gwt-2.2.jar and mvp4g-1.3.1.jar. I have a complete standalone project which includes everything that is needed. However, it's a zip file and I was not able to upload a zip file to the forum.

                  Comment

                  Working...
                  X