tomcat8 - Run Vaadin 8.1 app under Java 9 prerelease in IntelliJ 2017.2.2 -


in intellij 2017.2.2 able run vaadin 8.1.2 app (brand-new vaadin-archetype-application archetype) tomcat 8.5.20 under java 9+181 if project structure > project sdk set java 1.8.

if project structure > project sdk set java 9 compiler error around fillin assertion error filling vaadin mouseevents. have tried googling found no clues.

information:java: exception has occurred in compiler (9). please file bug against java compiler via java bug reporting page (http://bugreport.java.com) after checking bug database (http://bugs.java.com) duplicates. include program , following diagnostic in report. thank you. information:java:   @ jdk.compiler/com.sun.tools.javac.code.classfinder.fillin(classfinder.java:340) information:java:   @ jdk.compiler/com.sun.tools.javac.code.classfinder.complete(classfinder.java:285) information:java:   @ jdk.compiler/com.sun.tools.javac.code.symbol.complete(symbol.java:633) information:java:   @ jdk.compiler/com.sun.tools.javac.code.symbol$classsymbol.complete(symbol.java:1314) information:java:   @ jdk.compiler/com.sun.tools.javac.code.symbol$classsymbol.flags(symbol.java:1248) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.resolve.isaccessible(resolve.java:405) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.resolve.isaccessible(resolve.java:389) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.resolve.findimmediatemembertype(resolve.java:2170) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.resolve.findmembertype(resolve.java:2225) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.resolve.findidentintype(resolve.java:2403) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.attr.selectsym(attr.java:3588) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.attr.visitselect(attr.java:3453) information:java:   @ jdk.compiler/com.sun.tools.javac.tree.jctree$jcfieldaccess.accept(jctree.java:2104) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.attr.attribtree(attr.java:653) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.attr.attribtype(attr.java:713) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.attr.attribtype(attr.java:706) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.attr.attribbase(attr.java:859) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.typeenter$abstractheaderphase.attribsupertypes(typeenter.java:669) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.typeenter$hierarchyphase.runphase(typeenter.java:742) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.typeenter$phase.docompleteenvs(typeenter.java:270) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.typeenter$hierarchyphase.complete(typeenter.java:785) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.typeenter$hierarchyphase.docompleteenvs(typeenter.java:730) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.typeenter$phase.completeenvs(typeenter.java:245) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.typeenter$phase.completeenvs(typeenter.java:254) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.typeenter.complete(typeenter.java:195) information:java:   @ jdk.compiler/com.sun.tools.javac.code.symbol.isinterface(symbol.java:393) information:java:   @ jdk.compiler/com.sun.tools.javac.jvm.classreader.readmethod(classreader.java:2353) information:java:   @ jdk.compiler/com.sun.tools.javac.jvm.classreader.readclass(classreader.java:2641) information:java:   @ jdk.compiler/com.sun.tools.javac.jvm.classreader.readclassbuffer(classreader.java:2706) information:java:   @ jdk.compiler/com.sun.tools.javac.jvm.classreader.readclassfile(classreader.java:2719) information:java:   @ jdk.compiler/com.sun.tools.javac.code.classfinder.fillin(classfinder.java:348) information:java:   @ jdk.compiler/com.sun.tools.javac.code.type$classtype.complete(type.java:1139) information:java:   @ jdk.compiler/com.sun.tools.javac.code.type$classtype.gettypearguments(type.java:1065) information:java:   @ jdk.compiler/com.sun.tools.javac.code.type$classtype.iserroneous(type.java:1095) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.check.checknoncyclicinternal(check.java:2316) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.check.checknoncyclicinternal(check.java:2327) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.check.checknoncyclicinternal(check.java:2330) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.check.checknoncyclicinternal(check.java:2323) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.check.checknoncyclic(check.java:2277) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.attr.checkbase(attr.java:901) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.attr.attribbase(attr.java:860) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.enter.complete(enter.java:577) information:java:   @ jdk.compiler/com.sun.tools.javac.comp.enter.main(enter.java:554) information:java:   @ jdk.compiler/com.sun.tools.javac.main.javacompiler.entertrees(javacompiler.java:1052) information:java:   @ jdk.compiler/com.sun.tools.javac.main.javacompiler.compile(javacompiler.java:923) information:java:   @ jdk.compiler/com.sun.tools.javac.api.javactaskimpl.lambda$docall$0(javactaskimpl.java:100) information:java:   @ jdk.compiler/com.sun.tools.javac.api.javactaskimpl.handleexceptions(javactaskimpl.java:142) information:java:   @ jdk.compiler/com.sun.tools.javac.api.javactaskimpl.docall(javactaskimpl.java:96) information:java:   @ jdk.compiler/com.sun.tools.javac.api.javactaskimpl.call(javactaskimpl.java:90) information:java:   @ org.jetbrains.jps.javac.javacmain.compile(javacmain.java:190) information:java:   @ org.jetbrains.jps.incremental.java.javabuilder.compilejava(javabuilder.java:473) information:java:   @ org.jetbrains.jps.incremental.java.javabuilder.compile(javabuilder.java:328) information:java:   @ org.jetbrains.jps.incremental.java.javabuilder.dobuild(javabuilder.java:255) information:java:   @ org.jetbrains.jps.incremental.java.javabuilder.build(javabuilder.java:208) information:java:   @ org.jetbrains.jps.incremental.incprojectbuilder.runmodulelevelbuilders(incprojectbuilder.java:1260) information:java:   @ org.jetbrains.jps.incremental.incprojectbuilder.runbuildersforchunk(incprojectbuilder.java:937) information:java:   @ org.jetbrains.jps.incremental.incprojectbuilder.buildtargetschunk(incprojectbuilder.java:1009) information:java:   @ org.jetbrains.jps.incremental.incprojectbuilder.buildchunkifaffected(incprojectbuilder.java:900) information:java:   @ org.jetbrains.jps.incremental.incprojectbuilder.buildchunks(incprojectbuilder.java:733) information:java:   @ org.jetbrains.jps.incremental.incprojectbuilder.runbuild(incprojectbuilder.java:385) information:java:   @ org.jetbrains.jps.incremental.incprojectbuilder.build(incprojectbuilder.java:192) information:java:   @ org.jetbrains.jps.cmdline.buildrunner.runbuild(buildrunner.java:138) information:java:   @ org.jetbrains.jps.cmdline.buildsession.runbuild(buildsession.java:295) information:java:   @ org.jetbrains.jps.cmdline.buildsession.run(buildsession.java:125) information:java:   @ org.jetbrains.jps.cmdline.buildmain$mymessagehandler.lambda$channelread0$0(buildmain.java:236) information:java:   @ org.jetbrains.jps.service.impl.sharedthreadpoolimpl.lambda$executeonpooledthread$0(sharedthreadpoolimpl.java:42) information:java:   @ java.base/java.util.concurrent.executors$runnableadapter.call(executors.java:514) information:java:   @ java.base/java.util.concurrent.futuretask.run(futuretask.java:264) information:java:   @ java.base/java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1167) information:java:   @ java.base/java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:641) information:java:   @ java.base/java.lang.thread.run(thread.java:844) information:java: errors occurred while compiling module 'vnine' information:javac 9 used compile java sources information:module "vnine" rebuilt due project configuration/dependencies changes information:2017-08-18, 15:40 - compilation completed 2 errors , 0 warnings in 1s 866ms error:java: java.lang.assertionerror: filling jar:file:///users/basilbourque/.m2/repository/com/vaadin/vaadin-server/8.1.2/vaadin-server-8.1.2.jar!/com/vaadin/ui/component$event.class during jarfileobject[/users/basilbourque/.m2/repository/com/vaadin/vaadin-server/8.1.2/vaadin-server-8.1.2.jar:/com/vaadin/event/mouseevents$clickevent.class] error:java:     @ jdk.compiler/com.sun.tools.javac.util.assert.error(assert.java:162) 

so, 2 questions:

  • can intellij + vaadin + tomcat made work under java 9 yet? (that is, running as java 9 project – indeed run on java 9 java 8 project)
  • if so, might problem in case using brand-new unmodified vaadin application maven archetype?

inlined timeline

  • what might problem in case using brand-new unmodified vaadin application maven archetype?

to root cause case specifically, surely need more details you've tried in terms of code definitions.

  • can intellij + vaadin + tomcat made work under java 9 yet?*

on 22 august 2017

yes.you can make specific combination work. after solving problem unable process file module-info.class within java9 project results in classformatexception war created using mvn package run tomcat finally.

details: need use java 9 compatible version of tomcat. (apache-tomcat-9.0.0.m26 in case) , configure start

using jre_home: /library/java/javavirtualmachines/jdk-9.jdk/contents/home/

once server started, can access application @ localhost:8080/vaadinjavanine/ vaadinjavanine war file name within tomcat's webapps folder.

on 21 august 2017

the answer specific combination sadly still no. believe it's not yet possible make combination work.

jetty server

here's sample application updated me works intellij + vaadin + jetty on localhost:8080 using jetty server, irrespective of project sdk being set java1.8 or java9. works this:

vaadin default application

this attained after overcoming #jetty.project/1758 upgrading 6.0_beta of asm , asm-commons libraries , using custom 9.4.7-snapshot built on local used in project(commit - #e34415.)

tomcat server

  1. following recommended way of creating war, 've created application war(in case <finalname>vaadinjavanine</finalname>) using command:

    mvn package 
  2. made sure catalina_home/webapps included file. copied basically.

  3. started tomcat on default port access url application: localhost:8080/vaadinjavanine/

but have ended finding issue in current chain: unable process file module-info.class within java9 project results in classformatexception


on 20 august 2017

the answer question no. did was, tried out creating maven based vaadin application scratch based out of java9, following getting started guide. using following configurations:

apache-tomcat-8.0.22   intellij-idea 2017.2.2  <vaadin.version>8.1.2</vaadin.version>  apache maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-04t01:09:06+05:30) maven home: /usr/local/cellar/maven/3.5.0/libexec java version: 9, vendor: oracle corporation (jdk-9+181) 

created maven module using vaadin-archetype-application shared in guide shared. updated

  1. pom.xml

    <maven.compiler.source>1.9</maven.compiler.source> <maven.compiler.target>1.9</maven.compiler.target> 
  2. added module-info.java module under development.

i able execute mvn package on same running mvn jetty:run run application ended achieving multiexception | java.lang.runtimeexception: error scanning ui , servlet class


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -