Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-28119

NullPointerException creating quarkus project with Eclipse

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Blocker
    • None
    • 4.14.0.Final
    • quarkus
    • None
    • Hide

      I'm running Ubuntu 20.04 and installed Eclipse like so:

      > sudo snap install --classic eclipse

      My Eclipse version: 2019-12 (4.14.0).

      I then installed Quarkus Tools 4.14.0.Final from the Eclipse Marketplace.

      Following that, just followed the steps on:

      https://quarkus.io/blog/eclipse-got-quarkused/

      Show
      I'm running Ubuntu 20.04 and installed Eclipse like so: > sudo snap install --classic eclipse My Eclipse version: 2019-12 (4.14.0). I then installed Quarkus Tools 4.14.0.Final from the Eclipse Marketplace. Following that, just followed the steps on: https://quarkus.io/blog/eclipse-got-quarkused/

    Description

      Hi,

      As yet, I've not been able to get Eclipse to play nicely with Quarkus Tools.

      I'm simply following the steps to create a new Quarkus project as described here:

      https://quarkus.io/blog/eclipse-got-quarkused/

      The project creation step throws a NullPointerException (stack trace below). The project is created but is not properly recognised as a Java project which prevents running it from within Eclipse and facilities like code assist from working.

      I've repeated the steps to create the project after setting my default JRE and execution environment in eclipse to 1.7, 1.8 and 11. Same results each time.

      java.lang.NullPointerException
      at org.eclipse.m2e.core.internal.markers.SourceLocationHelper.findLocation(SourceLocationHelper.java:100)
      at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.processBuildResults(MavenBuilderImpl.java:313)
      at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.build(MavenBuilderImpl.java:177)
      at org.eclipse.m2e.core.project.configurator.AbstractLifecycleMapping.configure(AbstractLifecycleMapping.java:113)
      at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.lambda$2(ProjectConfigurationManager.java:509)
      at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:179)
      at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:153)
      at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:503)
      at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.configureNewMavenProjects(ProjectConfigurationManager.java:294)
      at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.lambda$0(ProjectConfigurationManager.java:174)
      at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:179)
      at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:153)
      at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:101)
      at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:1375)
      at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.importProjects(ProjectConfigurationManager.java:144)
      at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.importProjects(ProjectConfigurationManager.java:134)
      at org.jboss.tools.quarkus.ui.wizard.CodeProjectWizardController.createMavenProject(CodeProjectWizardController.java:135)
      at org.jboss.tools.quarkus.ui.wizard.CodeProjectWizardController.createProject(CodeProjectWizardController.java:88)
      at org.jboss.tools.quarkus.ui.wizard.CodeProjectWizardController.run(CodeProjectWizardController.java:67)
      at org.eclipse.core.runtime.jobs.Job$1.run(Job.java:164)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

      Attachments

        Activity

          People

            jmaury@redhat.com Jeff MAURY
            pcullen-1 Paul Cullen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: