Announcement

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

    SmartGWT2.4 vs GWT2.1.0 vs Eclipse 3.6 don't compile

    System: linux 32
    jdk: 1.6_23; 16_20
    gwt: 2.1.1
    smartGWT: 2.4 release; nightlyBuild from 11-01-11
    eclipse 3.4; 3.6

    All worked fine with smartgwt2.2, I think it's too early to migrate now to 2.4 =D

    Problem:
    while compile any smartGWT project
    (e.g. Showcase, or even add line <inherits name="com.smartgwt.SmartGwt"/> to empty compillable project)

    Compiling module ru.geoleader.pv4.PVIV
    [ERROR] Unexpected
    sun.misc.InvalidJarIndexException: Invalid index
    at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:858)
    at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:765)
    at sun.misc.URLClassPath$JarLoader.findResource(URLClassPath.java:735)
    at sun.misc.URLClassPath.findResource(URLClassPath.java:146)
    at java.net.URLClassLoader$2.run(URLClassLoader.java:385)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findResource(URLClassLoader.java:382)
    at java.lang.ClassLoader.getResource(ClassLoader.java:1003)
    at com.google.gwt.dev.javac.JdtCompiler$INameEnvironmentImpl.findType(JdtCompiler.java:257)
    at com.google.gwt.dev.javac.JdtCompiler$INameEnvironmentImpl.findType(JdtCompiler.java:235)
    at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:122)
    at org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getType(PackageBinding.java:127)
    at org.eclipse.jdt.internal.compiler.lookup.Scope.findType(Scope.java:1389)
    at org.eclipse.jdt.internal.compiler.lookup.Scope.getTypeOrPackage(Scope.java:2480)
    at org.eclipse.jdt.internal.compiler.lookup.Scope.getType(Scope.java:2181)
    at org.eclipse.jdt.internal.compiler.ast.SingleTypeReference.getTypeBinding(SingleTypeReference.java:44)
    at org.eclipse.jdt.internal.compiler.ast.TypeReference.internalResolveType(TypeReference.java:130)
    at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType(TypeReference.java:201)
    at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveSuperType(TypeReference.java:179)
    at org.eclipse.jdt.internal.compiler.lookup.ClassScope.findSupertype(ClassScope.java:1167)
    at org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectSuperclass(ClassScope.java:867)
    at org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectTypeHierarchy(ClassScope.java:1010)
    at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.connectTypeHierarchy(CompilationUnitScope.java:290)
    at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:185)
    at org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:719)
    at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:376)
    at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:420)
    at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:617)
    at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:193)
    at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:390)
    at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:275)
    at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:299)
    at com.google.gwt.dev.Precompile.precompile(Precompile.java:529)
    at com.google.gwt.dev.Precompile.precompile(Precompile.java:466)
    at com.google.gwt.dev.Compiler.run(Compiler.java:205)
    at com.google.gwt.dev.Compiler.run(Compiler.java:177)
    at com.google.gwt.dev.Compiler$1.run(Compiler.java:149)
    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:156)
    Last edited by lorez; 12 Jan 2011, 03:39. Reason: changing version

    #2
    The same problem on Netbeans
    gwt 2.0.4 or 2.1.0
    SGWT-2.4 or nightly 2011-01-13
    javac 1.6.0_20
    gentoo linux kernel 2.6.35
    Code:
    [ERROR] Unexpected
    sun.misc.InvalidJarIndexException: Invalid index
            at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:858)
            at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:765)
            at sun.misc.URLClassPath$JarLoader.findResource(URLClassPath.java:735)
            at sun.misc.URLClassPath.findResource(URLClassPath.java:146)
            at java.net.URLClassLoader$2.run(URLClassLoader.java:385)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findResource(URLClassLoader.java:382)
            at java.lang.ClassLoader.getResource(ClassLoader.java:1003)
            at com.google.gwt.dev.javac.JdtCompiler$INameEnvironmentImpl.findType(JdtCompiler.java:240)
            at com.google.gwt.dev.javac.JdtCompiler$INameEnvironmentImpl.findType(JdtCompiler.java:226)
            at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:122)
            at org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.java:181)
            at org.eclipse.jdt.internal.compiler.lookup.Scope.getTypeOrPackage(Scope.java:2460)
            at org.eclipse.jdt.internal.compiler.lookup.Scope.getType(Scope.java:2181)
            at org.eclipse.jdt.internal.compiler.ast.SingleTypeReference.getTypeBinding(SingleTypeReference.java:44)
            at org.eclipse.jdt.internal.compiler.ast.TypeReference.internalResolveType(TypeReference.java:130)
            at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType(TypeReference.java:201)
            at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveSuperType(TypeReference.java:179)
            at org.eclipse.jdt.internal.compiler.lookup.ClassScope.findSupertype(ClassScope.java:1167)
            at org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectSuperclass(ClassScope.java:867)
            at org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectTypeHierarchy(ClassScope.java:1010)
            at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.connectTypeHierarchy(CompilationUnitScope.java:290)
            at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:185)
            at org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:719)
            at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:376)
            at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:420)
            at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:467)
            at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:142)
            at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:281)
            at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:182)
            at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:280)
            at com.google.gwt.dev.Precompile.precompile(Precompile.java:502)
            at com.google.gwt.dev.Precompile.precompile(Precompile.java:414)
            at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:190)
            at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:157)
            at com.google.gwt.dev.GWTCompiler$1.run(GWTCompiler.java:126)
            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.GWTCompiler.main(GWTCompiler.java:133)
    MichalG

    Comment


      #3
      If anyone else affected by this problem:
      SGWT sources checked out from svn and ant clean/compile produces smartgwt.jar good enough.
      HTH
      MichalG

      Comment


        #4
        I wonder if this is because you're running using 1.6.0_20 and the official Smart GWT 2.4 release was built using JDK 1.5. Can you try using JDK 1.5 with the official Smart GWT 2.4 release and see if you still get the error? You also mention you're on linux so it could possibly be a JDK 1.6 platform specific bug.

        Comment


          #5
          The same error with jdk1.5.0_22
          MichalG

          Comment


            #6
            Originally posted by michalg
            The same error with jdk1.5.0_22
            MichalG
            The same result with
            jdk1.5.0_05; jdk1.5.0_20
            gwt 1.7; 2.0.3; 2.1.1
            in any combinations =(
            problem seems to be in smartgwt.jar...

            Comment

            Working...
            X