sun.misc.InvalidJarIndexException:编译GWT 2.5时索引无效

时间:2013-01-16 18:25:38

标签: compiler-errors jdk1.6 weblogic12c gwt-2.5

我正在Weblogic版本12C上部署GWT2.5并使用JDK1.6

我收到 sun.misc.InvalidJarIndexException:索引无效

以下是完整的堆栈跟踪。

 [echo] com.myapp.MyEntryPoint is out of date
 [java] Compiling module com.myapp.MyEntryPoint 
 [java] [ERROR] Unexpected
 [java] sun.misc.InvalidJarIndexException: Invalid index
 [java]     at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:858)
 [java]     at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:765)
 [java]     at sun.misc.URLClassPath$JarLoader.findResource(URLClassPath.java:735)
 [java]     at sun.misc.URLClassPath.findResource(URLClassPath.java:146)
 [java]     at java.net.URLClassLoader$2.run(URLClassLoader.java:385)
 [java]     at java.security.AccessController.doPrivileged(Native Method)
 [java]     at java.net.URLClassLoader.findResource(URLClassLoader.java:382)
 [java]     at java.lang.ClassLoader.getResource(ClassLoader.java:1002)
 [java]     at com.google.gwt.dev.javac.JdtCompiler$INameEnvironmentImpl.findType(JdtCompiler.java:257)
 [java]     at com.google.gwt.dev.javac.JdtCompiler$INameEnvironmentImpl.findType(JdtCompiler.java:235)
 [java]     at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:122)
 [java]     at org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.java:181)
 [java]     at org.eclipse.jdt.internal.compiler.lookup.Scope.getTypeOrPackage(Scope.java:2460)
 [java]     at org.eclipse.jdt.internal.compiler.lookup.Scope.getType(Scope.java:2181)
 [java]     at org.eclipse.jdt.internal.compiler.ast.ParameterizedSingleTypeReference.internalResolveType(ParameterizedSingleTypeReference.java:113)
 [java]     at org.eclipse.jdt.internal.compiler.ast.ParameterizedSingleTypeReference.resolveType(ParameterizedSingleTypeReference.java:282)
 [java]     at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveSuperType(TypeReference.java:179)
 [java]     at org.eclipse.jdt.internal.compiler.lookup.ClassScope.findSupertype(ClassScope.java:1167)
 [java]     at org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectSuperInterfaces(ClassScope.java:958)
 [java]     at org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectTypeHierarchy(ClassScope.java:1011)
 [java]     at org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectMemberTypes(ClassScope.java:835)
 [java]     at org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectTypeHierarchy(ClassScope.java:1018)
 [java]     at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.connectTypeHierarchy(CompilationUnitScope.java:290)
 [java]     at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:185)
 [java]     at org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:719)
 [java]     at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:376)
 [java]     at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:420)
 [java]     at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:617)
 [java]     at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:193)
 [java]     at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:390)
 [java]     at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:275)
 [java]     at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:299)
 [java]     at com.google.gwt.dev.Precompile.precompile(Precompile.java:529)
 [java]     at com.google.gwt.dev.Precompile.precompile(Precompile.java:466)
 [java]     at com.google.gwt.dev.Compiler.run(Compiler.java:205)
 [java]     at com.google.gwt.dev.Compiler.run(Compiler.java:177)
 [java]     at com.google.gwt.dev.Compiler$1.run(Compiler.java:149)
 [java]     at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
 [java]     at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)
 [java]     at com.google.gwt.dev.Compiler.main(Compiler.java:156)

请帮助确定可能出现的问题。

1 个答案:

答案 0 :(得分:0)

我发现了这个问题。

它指的是旧的gwt-servlet.jar

一旦我用最新的jar替换,build就成功了。

谢谢。