Announcement

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

    Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected

    Hi Admin,

    Am facing the problem while working to migrate our application from GWT-2.3.0/smartgwt-2.4 to GWT-2.6.1/smartgwt-5.0.

    Am using GWT-2.6.1 and smartgwt-5.0 and jdk-1.7v
    After addeding new version of JDk in eclipse did java class build using new JDK i.e. 1.7v and ran my GWT application it was successfully ran, but after typing the URL and while accessing the application through FF while loading the application throwing error on development mode console as posted below.
    I didn't see any link regarding the error am getting in this forum. This application working fine with GWT-2.4v.

    Can you please check and let me know to over come this problem ?.
    -----Error under Development Mode -------
    <CODE>
    Validating units:
    (PlatformLogger.java:39) 2014-11-20 19:46:43,233 [INFO ] eDAO client module invoked...
    Unable to load module entry point class com.fisglobal.rtaof.rtaofclient.client.RtaofClient (see associated exception for details)
    Failed to load module 'rtaofclient' from user agent 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0' at 127.0.0.1:56983

    19:46:43.275 [ERROR] [rtaofclient] Unable to load module entry point class com.fisglobal.rtaof.rtaofclient.client.RtaofClient (see associated exception for details)
    java.lang.RuntimeException: Deferred binding failed for 'com.fisglobal.rtaof.rtaofclient.client.MyOWNClientApplication' (did you forget to inherit a required module?)
    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
    at com.google.gwt.core.shared.GWT.create(GWT.java:72)
    at com.google.gwt.core.client.GWT.create(GWT.java:86)
    at com.fisglobal.rtaof.rtaofclient.client.RtaofClient.onModuleLoad(RtaofClient.java:83)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:411)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    at java.lang.Thread.run(Thread.java:722)
    Caused by: java.lang.IncompatibleClassChangeError: Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
    at com.fisglobal.webtop.rebind.AppGenerator.generate(AppGenerator.java:50)
    at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)
    at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:676)
    at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
    at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)
    at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)
    at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:147)
    at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:600)
    at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:470)
    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
    at com.google.gwt.core.shared.GWT.create(GWT.java:72)
    at com.google.gwt.core.client.GWT.create(GWT.java:86)
    at com.fisglobal.rtaof.rtaofclient.client.RtaofClient.onModuleLoad(RtaofClient.java:83)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:411)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    at java.lang.Thread.run(Thread.java:722)

    </CODE>
    ----------------------End -------------------------------------

    Also i did build all java classes using JDK 1.7 cleared all gwt related generated files like gwt-unitCache and other *.js files. then tried to manually compile with latest version of GWT 2.6 each module,but throws error again as posted below.


    ---------Console-------------

    Compiling module com.ourcompay.xxx....
    Validating units:
    Ignored 12 units with compilation errors in first pass.
    Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
    Compiling 10 permutations
    Compiling permutation 0...
    Compiling permutation 1...
    Compiling permutation 2...
    Compiling permutation 3...
    Compiling permutation 4...
    Compiling permutation 5...
    Compiling permutation 6...
    Compiling permutation 7...
    Compiling permutation 8...
    Compiling permutation 9...
    Compile of permutations succeeded
    Linking into D:\EclipseWorkSpace\v742_17_14\MyApp_v742_17_14\WebContent\somefolder
    Link succeeded
    Compilation succeeded -- 87.574s
    Compiling module com.ourcompany.Module1
    Validating units:
    Ignored 2 units with compilation errors in first pass.
    Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
    [ERROR] An internal compiler exception occurred
    com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit.
    at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:110)
    at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:276)
    at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
    at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:117)
    at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:65)
    at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
    at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
    at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
    at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:117)
    at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:65)
    at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
    at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
    at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
    at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:117)
    at com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclarationStatement.java:48)
    at com.google.gwt.dev.jjs.ast.JModVisitor$ListContextImmutable.traverse(JModVisitor.java:170)
    at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:336)
    at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:83)
    at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
    at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
    at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:138)
    at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:134)
    at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:82)
    at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
    at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
    at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
    at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:449)
    at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:418)
    at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
    at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
    at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
    at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:940)
    at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:665)
    at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:672)
    at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:34)
    at com.google.gwt.dev.Precompile.precompile(Precompile.java:271)
    at com.google.gwt.dev.Precompile.precompile(Precompile.java:223)
    at com.google.gwt.dev.Precompile.precompile(Precompile.java:139)
    at com.google.gwt.dev.Compiler.run(Compiler.java:167)
    at com.google.gwt.dev.Compiler.run(Compiler.java:132)
    at com.google.gwt.dev.Compiler$1.run(Compiler.java:99)
    at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
    at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
    at com.google.gwt.dev.Compiler.main(Compiler.java:106)
    Caused by: java.lang.IncompatibleClassChangeError: Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
    at com.fisglobal.webtop.rebind.AppGenerator.generate(AppGenerator.java:50)
    at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)
    at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:676)
    at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
    at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)
    at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)
    at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:265)
    at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)

    at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleGwtCreate(UnifyAst.java:387)
    at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleMagicMethodCall(UnifyAst.java:465)
    at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.endVisit(UnifyAst.java:255)
    at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:244)
    at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
    at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
    ... 42 more
    [ERROR] at Module1.java(83): GWT.create(ClientApplication.class)
    com.google.gwt.dev.jjs.ast.JMethodCall
    [ERROR] at Module1.java(83): (Application) GWT.create(ClientApplication.class)
    com.google.gwt.dev.jjs.ast.JCastOperation
    [ERROR] at Module1.java(83): (Application) (Application) GWT.create(ClientApplication.class)
    com.google.gwt.dev.jjs.ast.JCastOperation
    [ERROR] at Module1.java(83): final Application app = (Application) (Application) GWT.create(ClientApplication.class)
    com.google.gwt.dev.jjs.ast.JDeclarationStatement
    [ERROR] at Module1.java(76): {
    Module1.enableADA();
    PlatformLogger.info("eDAO client module invoked...");
    Window.setTitle("some account");
    ProgressIndicatorUtility.turnOffAppLoadingIndicator();
    final Application app = (Application) (Application) GWT.create(ClientApplication.class);
    ......
    .....
    }
    com.google.gwt.dev.jjs.ast.JBlock
    [ERROR] at Module1.java(76): {

    PlatformLogger.info("client module invoked...");
    Window.setTitle("some account");

    final Application app = (Application) (Application) GWT.create(ClientApplication.class);

    }
    com.google.gwt.dev.jjs.ast.JMethodBody
    [ERROR] at Module1.java(76): public void onModuleLoad();

    com.google.gwt.dev.jjs.ast.JMethod


    --------------End ---------------


    using
    SmartGWT-5.0
    GWT-2.6.0
    Firefox-24.0
    JDK/JRE 1.7v
    Last edited by umeshm; 20 Nov 2014, 06:58.

    #2
    Hi umeshm,

    I had a similar case in DevMode recently (when using a never used before gwt class). Message was like yours: "Found interface com.google.gwt.a.b.c.d, but class was expected".

    It went away after a successful compile of my project and did not cause errors either complied or in DevMode afterwards.

    So perhaps it will work for you as well once you remove the bug blocking you from compiling.

    Best regards,
    Blama

    Comment

    Working...
    X