On Wednesday, January 17, 2018 at 5:07:46 PM UTC+1, Byron Ludwig wrote:
Hi,Could someone please explain how GWT now compiles and runs JUnit test cases as I have just upgraded my code base from 2.7 to 2.8.2 and now none of my GWT test cases work.What has changed between releases? I can now see it trys to compile the project like a normal startup and this never occurred before.
See http://www.gwtproject.org/release-notes.html#Release_Notes_2_8_0_RC1
Specifically, in the "deprecations" section: "Classic dev mode deprecated.You can switch back to dev mode for your test cases temporarily by passing gwt.args='-devMode'."
Everything else is working after upgrading and my application compiles and runs perfectly fine, just not the test cases.Here is the exception I am getting but I cannot make heads or tails where the actual error is?
Try passing -strict (or -failOnError) and/or -draft in the gwt.args system property.
Any help is appreciated.17/01/18 14:55:04 INFO [main org.eclipse.jetty.util.log] Logging initialized @1620ms17/01/18 14:55:04 INFO [main org.eclipse.jetty.server.Server] jetty-9.2.14.v20151106 17/01/18 14:55:04 INFO [main /] No Spring WebApplicationInitializer types detected on classpath17/01/18 14:55:05 INFO [main org.eclipse.jetty.server.handler.ContextHandler] Started c.g.g.j.@5d534f5d{/, file:/C:/Users/test/workspaceGWT28/fractalsGWT/ www-test/, AVAILABLE}{C:\Users\test\workspaceGWT28\fractalsGWT\ www-test} 17/01/18 14:55:05 INFO [main org.eclipse.jetty.server.ServerConnector] Started ServerConnector@78452606{HTTP/ 1.1}{0.0.0.0:61672} 17/01/18 14:55:05 INFO [main org.eclipse.jetty.server.Server] Started @2373ms Compiling module com.alaric.gwt.framework.client.gwttestcase. GwtTestModule.JUnit Ignored 190 units with compilation errors in first pass.Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.Compiling 1 permutationCompiling permutation 0...[ERROR] An internal compiler exception occurredcom.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit. at com.google.gwt.dev.js.ast.JsVisitor.translateException( JsVisitor.java:482) at com.google.gwt.dev.js.ast.JsVisitor.doTraverse( JsVisitor.java:469) at com.google.gwt.dev.js.ast.JsVisitor.doAcceptList( JsVisitor.java:450) at com.google.gwt.dev.js.ast.JsVisitor.acceptList( JsVisitor.java:113) at com.google.gwt.dev.js.ast.JsInvocation.traverse( JsInvocation.java:89) at com.google.gwt.dev.js.ast.JsVisitor.doTraverse( JsVisitor.java:467) at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor. java:444) at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor. java:109) at com.google.gwt.dev.js.ast.JsExprStmt.traverse( JsExprStmt.java:42) at com.google.gwt.dev.js.ast.JsVisitor.doTraverse( JsVisitor.java:467) at com.google.gwt.dev.js.ast.JsVisitor. doAcceptWithInsertRemove( JsVisitor.java:461) at com.google.gwt.dev.js.ast.JsVisitor. acceptWithInsertRemove( JsVisitor.java:121) at com.google.gwt.dev.js.ast.JsBlock.traverse(JsBlock.java: 53) at com.google.gwt.dev.js.ast.JsVisitor.doTraverse( JsVisitor.java:467) at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor. java:444) at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor. java:109) at com.google.gwt.dev.js.ast.JsProgramFragment.traverse( JsProgramFragment.java:41) at com.google.gwt.dev.js.ast.JsVisitor.doTraverse( JsVisitor.java:467) at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor. java:444) at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor. java:109) at com.google.gwt.dev.js.ast.JsProgram.traverse(JsProgram. java:120) at com.google.gwt.dev.js.ast.JsVisitor.doTraverse( JsVisitor.java:467) at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor. java:444) at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor. java:109) at com.google.gwt.dev.js.ast.JavaScriptVerifier. verifyGlobalNameOrdering( JavaScriptVerifier.java:93) at com.google.gwt.dev.js.ast.JavaScriptVerifier.verify( JavaScriptVerifier.java:36) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler. compilePermutation( JavaToJavaScriptCompiler.java: 434) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler. compilePermutation( JavaToJavaScriptCompiler.java: 272) at com.google.gwt.dev.CompilePerms.compile( CompilePerms.java:198) at com.google.gwt.dev.ThreadedPermutationWorkerFacto ry$ThreadedPermutationWorker. compile( ThreadedPermutationWorkerFacto ry.java:50) at com.google.gwt.dev.PermutationWorkerFactory$ Manager$WorkerThread.run( PermutationWorkerFactory.java: 74) at java.lang.Thread.run(Unknown Source)Caused by: java.lang.AssertionError: $intern_8276 reference found before definition.at com.google.gwt.dev.js.ast.JavaScriptVerifier$2.endVisit( JavaScriptVerifier.java:89) at com.google.gwt.dev.js.ast.JsNameRef.traverse(JsNameRef. java:113) at com.google.gwt.dev.js.ast.JsVisitor.doTraverse( JsVisitor.java:467) ... 30 more[ERROR] at Unknown(0): Vvlcom.google.gwt.dev.js.ast.JsNameRef [ERROR] at SearchQuickDetailPresenterImpl.java(64): Hji(4422, 814,Vvl)com.google.gwt.dev.js.ast.JsInvocation [ERROR] at SearchQuickDetailPresenterImpl.java(64): Hji(4422, 814,Vvl)com.google.gwt.dev.js.ast.JsExprStmt [ERROR] at com.google.gwt.dev.js.ast.JsProgram(0): var mvl = 'MessageModel.java:', nvl = 'MessageActivateRequest.java:', ovl = 'MessageCreateRequest.java:',pvl = 'MessageListGridRequest.java:', qvl = 'MessageReadRequest.java:',rvl = 'MessageUpdateRequest.java:',svl = 'MessageActivateResponse.java:', tvl = 'MessageContextResponse.java:', uvl = 'MessageCreateResponse.java:',vvl = 'MessageDeleteResponse.java:',wvl = 'MessageReadResponse.java:',xvl = 'MessageUpdateResponse.java:',yvl = 'MessageEditorPresenterImpl.java:', zvl = 'MessageDetailsPresenterImpl.java:', Avl = 'MessageContentPresenterImpl.java:', Bvl = 'MessageTransportPresenterImpl. java:', Cvl = 'MessageTemplate.java:',Dvl = 'includeTemplateName',Evl = 'VerticalMessageContext.java:', Fvl = 'com.alaric.gwt.framework.client.presenter.editor. message', Gvl = 'MessageContentViewImpl.java:', Hvl = 'MessageContentFieldViewImpl.java:', Ivl = 'MessageContentFieldPresenterIm pl.java:', Jvl = 'RichTextArea.java:',Kvl = 'TransactionFieldProviderImpl.java:', Lvl = 'com.alaric.gwt.framework.client.presenter.editor. message.content', Mvl = 'com.alaric.gwt.framework.client.presenter.editor. message.content.field', Nvl = 'com.alaric.gwt.framework.client.presenter.editor. message.content.field. transaction', Ovl = 'MessageDetailsViewImpl.java:', Pvl = 'com.alaric.gwt.framework.client.presenter.editor. message.details', Qvl = 'com.alaric.gwt.framework.client.presenter.editor. message.details.users', Rvl = 'UserTableWithButtonsPresenterI mpl.java:', Svl = 'com.alaric.gwt.framework.client.presenter.editor. message.transport', Tvl = 'com.alaric.gwt.framework.client.presenter.editor. message.transport.swaptable', Uvl = 'TransportMessageTableWithButto nsPresenterImpl.java:', Wvl = 'MessageManagerPresenterImpl.java:', _vl = ' messages?',bwl = 'com.alaric.gwt.framework.client.view.editor.message', cwl = 'MessageEditorViewImpl.java:',dwl = 'RichTextAreaImplStandard.java:', ewl = 'MessageContentViewImpl_MessageContentViewImplUiBinder Impl.java:', fwl = 'com.alaric.gwt.framework.client.view.editor.message. component.content', gwl = 'MessageContentViewImpl_MessageContentViewImplUiBinder Impl_GenBundle_default_ InlineClientBundleGenerator. java:', hwl = 'Placeholder fields',iwl = 'AbstractTextWithStyleAndDouble ClickRightClickColumn.java:', kwl = 'MessageContentFieldViewImpl_MessageContentFieldViewImplUiB inderImpl.java:', lwl = 'com.alaric.gwt.framework.client.view.editor.message. component.content.fields', mwl = 'MessageContentFieldViewImpl_MessageContentFieldViewImplUiB inderImpl_GenBundle_default_ InlineClientBundleGenerator. java:', nwl = 'MessageDetailsViewImpl_MessageDetailsViewImplUiBinder Impl.java:', owl = 'com.alaric.gwt.framework.client.view.editor.message. component.details', pwl = 'com.alaric.gwt.framework.client.view.editor.message. component.details.users', qwl = 'com.alaric.gwt.framework.client.view.editor.message. component.details.users.table' , rwl = 'UserDescriptor.java:',swl = 'UserTableViewImpl.java:',twl = 'MessageTransportViewImpl.java:', uwl = 'MessageTransportViewImpl_MessageProviderViewImplUiBinde rImpl.java:', vwl = 'com.alaric.gwt.framework.client.view.editor.message. component.transport', wwl = 'Configured Message Transports',xwl = 'MessageTransportViewImpl_MessageProviderViewImplUiBinde rImpl_TemplateImpl.java:', ywl = 'com.alaric.gwt.framework.client.view.editor.message. component.transport.swaptable' , zwl = 'com.alaric.gwt.framework.client.view.editor.message. component.transport.swaptable. table', Awl = 'DescriptionColumn.java:',Bwl = 'com.alaric.gwt.framework.client.view.library. keyvaluetablewithbuttons.cell' , Cwl = 'EmptyColumn.java:',Dwl = 'KeyColumn.java:',Ewl = 'com.alaric.gwt.framework.client.view.manager.message', Fwl = 'MessageDeleteRequest.java:',Gwl = 'MessageTemplateContext.java:', Hwl = 'RichTextAreaImpl.java:',Iwl = 'RichTextAreaImplMozilla.java:'; function fv(a){var b,c;B6i[b = ++C6i] = fv;(D6i[b] = R7i + S9i ,!(D6i[b] = ctj + '2342' ,a).xd) && ((D6i[b] = ctj + '2343' ,a).xd = new r$b(a));c = (D6i[b] = ctj + '2346' ,a).xd;[...]}function gv(a){var b,c;B6i[b = ++C6i] = gv;(D6i[b] = R7i + S9i ,!(D6i[b] = ctj + '2406' ,a).yd) && ((D6i[b] = ctj + '2407' ,a).yd = new M$b(a));c = (D6i[b] = ctj + '2410' ,a).yd;[...]}function hv(a){var b,c;B6i[b = ++C6i] = hv;(D6i[b] = R7i + S9i ,!(D6i[b] = ctj + '2470' ,a).zd) && ((D6i[b] = ctj + '2471' ,a).zd = new R$b(a));c = (D6i[b] = ctj + '2474' ,a).zd;[...]}[...]com.google.gwt.dev.js.ast.JsGlobalBlock [ERROR] at com.google.gwt.dev.js.ast.JsProgram(0): <JsProgramFragment> com.google.gwt.dev.js.ast.JsProgramFragment [ERROR] at com.google.gwt.dev.js.ast.JsProgram(0): <JsProgram> com.google.gwt.dev.js.ast.JsProgram [ERROR] Unrecoverable exception,shutting downcom.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) at com.google.gwt.dev.javac.CompilationProblemReporter. logAndTranslateException( CompilationProblemReporter. java:106) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler. compilePermutation( JavaToJavaScriptCompiler.java: 459) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler. compilePermutation( JavaToJavaScriptCompiler.java: 272) at com.google.gwt.dev.CompilePerms.compile( CompilePerms.java:198) at com.google.gwt.dev.ThreadedPermutationWorkerFacto ry$ThreadedPermutationWorker. compile( ThreadedPermutationWorkerFacto ry.java:50) at com.google.gwt.dev.PermutationWorkerFactory$ Manager$WorkerThread.run( PermutationWorkerFactory.java: 74) at java.lang.Thread.run(Unknown Source)[ERROR] Not all permutation were compiled ,completed (0/1)[ERROR] Compiler aborted with an exceptioncom.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) at com.google.gwt.dev.PermutationWorkerFactory$ Manager.doRun( PermutationWorkerFactory.java: 166) at com.google.gwt.dev.PermutationWorkerFactory$ Manager.run( PermutationWorkerFactory.java: 106) at com.google.gwt.dev.PermutationWorkerFactory. compilePermutations( PermutationWorkerFactory.java: 257) at com.google.gwt.dev.CompilePerms.compile( CompilePerms.java:211) at com.google.gwt.dev.Compiler.compile(Compiler.java:219) at com.google.gwt.dev.Compiler.compile(Compiler.java:155) at com.google.gwt.junit.JUnitShell.compileForWebMode( JUnitShell.java:1102) at com.google.gwt.junit.JUnitShell. maybeCompileForWebMode( JUnitShell.java:1167) at com.google.gwt.junit.CompileStrategy. maybeCompileModuleImpl2( CompileStrategy.java:183) at com.google.gwt.junit.CompileStrategy. maybeCompileModuleImpl( CompileStrategy.java:113) at com.google.gwt.junit.SimpleCompileStrategy. maybeCompileModule( SimpleCompileStrategy.java:36) at com.google.gwt.junit.JUnitShell.runTestImpl( JUnitShell.java:1358) at com.google.gwt.junit.JUnitShell.runTestImpl( JUnitShell.java:1326) at com.google.gwt.junit.JUnitShell.runTest(JUnitShell. java:682) at com.google.gwt.junit.client.GWTTestCase.runTest( GWTTestCase.java:421) at junit.framework.TestCase.runBare(TestCase.java:141) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java: 142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase. java:247) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at org.junit.internal.runners.JUnit38ClassRunner.run( JUnit38ClassRunner.java:84) at org.eclipse.jdt.internal.junit4.runner. JUnit4TestReference.run( JUnit4TestReference.java:86) at org.eclipse.jdt.internal.junit.runner.TestExecution. run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner. runTests(RemoteTestRunner. java:459) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner. runTests(RemoteTestRunner. java:678) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner. run(RemoteTestRunner.java:382) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner. main(RemoteTestRunner.java: 192)
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment