Uploaded image for project: 'Red Hat CodeReady Studio (devstudio)'
  1. Red Hat CodeReady Studio (devstudio)
  2. JBDS-4157

Validation doesn't work - NoClassDefFoundError: jdk/nashorn/internal/runtime/ECMAException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • 10.2.0.GA
    • 10.2.0.AM3
    • rpm, webservices
    • None
    • Hide
      1. install rh-eclipse46-devstudio-10.2-0.20161103.0904.el7.x86_64.rpm
      2. clean and start eclipse
        rm -fr ~/.eclipse
        scl enable rh-eclipse46 bash
        cd /opt/rh/rh-eclipse46/root/usr/lib64/eclipse/
        ./eclipse -consolelog -console -debug -data /tmp/wksp-`date +%Y%m%d-%H%M`| tee /tmp/rh-eclipse46-devstudio10.2.log.`date +%Y%m%d-%H%M`.txt
        
      3. Unzip and import project jboss-as-kitchensink-html5-mobile.zip
      4. Check the log in your workspace. There should be "NoClassDefFoundError: jdk/nashorn/internal/runtime/ECMAException".

      Finally you can check the "RestService" class, there should be validation error (@PathParam value 'someId' doesn't match any @Path...), but isn't.

      Show
      install rh-eclipse46-devstudio-10.2-0.20161103.0904.el7.x86_64.rpm clean and start eclipse rm -fr ~/.eclipse scl enable rh-eclipse46 bash cd /opt/rh/rh-eclipse46/root/usr/lib64/eclipse/ ./eclipse -consolelog -console -debug -data /tmp/wksp-`date +%Y%m%d-%H%M`| tee /tmp/rh-eclipse46-devstudio10.2.log.`date +%Y%m%d-%H%M`.txt Unzip and import project jboss-as-kitchensink-html5-mobile.zip Check the log in your workspace. There should be "NoClassDefFoundError: jdk/nashorn/internal/runtime/ECMAException". Finally you can check the "RestService" class, there should be validation error (@PathParam value 'someId' doesn't match any @Path...), but isn't.
    • NEW

      I notice that devstudio isn't able to validate rest service class. There is following error in the log.

      !ENTRY org.eclipse.core.jobs 4 2 2016-11-03 11:52:21.836
      !MESSAGE An internal error occurred during: "Validating jboss-as-kitchensink-html5-mobile".
      !STACK 0
      java.lang.NoClassDefFoundError: jdk/nashorn/internal/runtime/ECMAException
      	at org.eclipse.wst.jsdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:903)
      	at org.eclipse.wst.jsdt.core.dom.ASTParser.createAST(ASTParser.java:673)
      	at org.eclipse.wst.jsdt.internal.core.validation.JavaScriptValidator.validate(JavaScriptValidator.java:62)
      	at org.eclipse.wst.validation.Validator$V2.validate(Validator.java:1159)
      	at org.eclipse.wst.validation.internal.ValManager.validate(ValManager.java:704)
      	at org.eclipse.wst.validation.internal.ValManager$1.visit(ValManager.java:665)
      	at org.eclipse.wst.validation.internal.ValManager.accept(ValManager.java:810)
      	at org.eclipse.wst.validation.internal.ValManager.validate(ValManager.java:669)
      	at org.eclipse.wst.validation.internal.ValBuilderJob$Visitor.visit(ValBuilderJob.java:299)
      	at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:120)
      	at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:84)
      	at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
      	at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
      	at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
      	at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
      	at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
      	at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
      	at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:129)
      	at org.eclipse.core.internal.resources.Resource.accept(Resource.java:94)
      	at org.eclipse.core.internal.resources.Resource.accept(Resource.java:52)
      	at org.eclipse.core.internal.resources.Resource.accept(Resource.java:117)
      	at org.eclipse.core.internal.resources.Resource.accept(Resource.java:105)
      	at org.eclipse.wst.validation.internal.ValBuilderJob.fullBuild(ValBuilderJob.java:219)
      	at org.eclipse.wst.validation.internal.ValBuilderJob.run(ValBuilderJob.java:178)
      	at org.eclipse.wst.validation.internal.ValBuilderJob.runInWorkspace(ValBuilderJob.java:126)
      	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      Caused by: java.lang.ClassNotFoundException: jdk.nashorn.internal.runtime.ECMAException cannot be found by org.eclipse.wst.jsdt.core_2.0.0.v201610121400
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:461)
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:372)
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:364)
      	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:161)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	... 27 more
      

      There are also errors like this

      java.lang.NoClassDefFoundError: org/apache/lucene/analysis/standard/StandardAnalyzer
      

      I know that lucene is known issue but what about ECMAException?

              lvalach_jira Lukáš Valach (Inactive)
              lvalach_jira Lukáš Valach (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: