本文介绍了在DevMode中运行GWT 2.7期间发生奇怪的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么不对?

我为此建立了一些讨论,但没有解决方案

  09:43:36.128 [错误] [MyApplication]异常初始化模块
java.lang.IllegalArgumentException:null
at org。 objectweb.asm.ClassVisitor。< init>(Unknown Source)
at org.objectweb.asm.ClassVisitor。< init>(Unknown Source)
at com.google.gwt.dev.javac。 BytecodeSignatureMaker $ CompileDependencyVisitor。< init>(BytecodeSignatureMaker.java:59)
at com.google.gwt.dev.javac.BytecodeSignatureMaker.visitCompileDependenciesInBytecode(BytecodeSignatureMaker.java:227)
at com.google.gwt .dev.javac.BytecodeSignatureMaker.getCompileDependencySignature(BytecodeSignatureMaker.java:209)
at co m.google.gwt.dev.javac.CompiledClass.getSignatureHash(CompiledClass.java:166)
com.google.gwt.dev.javac.Dependencies $ Ref。< init>(Dependencies.java:42)
at com.google.gwt.dev.javac.Dependencies $ Ref。< init>(Dependencies.java:37)
at com.google.gwt.dev.javac.Dependencies.resolve(Dependencies .java:114)
,位于com.google.gwt.dev.javac.CompilationStateBuilder $ CompileMoreLater.compile(CompilationStateBuilder.java:366)
,位于com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom (CompilationStateBuilder.java:580)
,位于com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:513)
,位于com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom (CompilationStateBuilder.java:499)
在com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:668)
在com.google.gwt.dev.DevModeBase $ UiBrowserWidgetHostImpl.createModuleSpaceHost (DevModeBase.java:101)


可能是因为在类路径中存在不兼容的ASM版本。 GWT需要ASM 5 +


What is wrong?

I founded some discussion about it but without solutionhttps://plus.googleapis.com/communities/116543000751323604177/stream/1cf77106-8055-472e-abb2-ac58a512b663

09:43:36.128 [ERROR] [MyApplication] Exception initializing module
java.lang.IllegalArgumentException: null
    at org.objectweb.asm.ClassVisitor.<init>(Unknown Source)
    at org.objectweb.asm.ClassVisitor.<init>(Unknown Source)
    at com.google.gwt.dev.javac.BytecodeSignatureMaker$CompileDependencyVisitor.<init>(BytecodeSignatureMaker.java:59)
    at com.google.gwt.dev.javac.BytecodeSignatureMaker.visitCompileDependenciesInBytecode(BytecodeSignatureMaker.java:227)
    at com.google.gwt.dev.javac.BytecodeSignatureMaker.getCompileDependencySignature(BytecodeSignatureMaker.java:209)
    at com.google.gwt.dev.javac.CompiledClass.getSignatureHash(CompiledClass.java:166)
    at com.google.gwt.dev.javac.Dependencies$Ref.<init>(Dependencies.java:42)
    at com.google.gwt.dev.javac.Dependencies$Ref.<init>(Dependencies.java:37)
    at com.google.gwt.dev.javac.Dependencies.resolve(Dependencies.java:114)
    at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:366)
    at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:580)
    at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:513)
    at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:499)
    at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:668)
    at com.google.gwt.dev.DevModeBase$UiBrowserWidgetHostImpl.createModuleSpaceHost(DevModeBase.java:101)
解决方案

It could be that you have an incompatible version of ASM in the classpath. GWT requires ASM 5+

这篇关于在DevMode中运行GWT 2.7期间发生奇怪的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-31 10:09