org.eclipse.core.runtime.CoreException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • checkout Grails core project from git. Do not generate eclipse files using Gradle scripts. Using Gradle import wizard import everything. An error message about wrong path pops up. Entry in error log: {noformat} org.eclipse.core.runtime.CoreException: Path must include project and resource name: /scripts at com.springsource.sts.gradle.core.util.ExceptionUtil.coreException(ExceptionUtil.java:59) at com.springsource.sts.gradle.core.wizards.GradleImportOperation.importProject(GradleImportOperation.java:143) at com.springsource.sts.gradle.core.wizards.GradleImportOperation.perform(GradleImportOperation.java:91) at com.springsource.sts.gradle.ui.wizards.GradleImportWizard$1.doit(GradleImportWizard.java:57) at com.springsource.sts.gradle.core.util.GradleRunnable$1.run(GradleRunnable.java:42) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: java.lang.IllegalArgumentException: Path must include project and resource name: /scripts at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63) at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:1795) at org.eclipse.core.internal.resources.Container.getFolder(Container.java:221) at com.springsource.sts.gradle.core.GradleProject.newSourceEntry(GradleProject.java:253) at com.springsource.sts.gradle.core.GradleProject.setSourceFolders(GradleProject.java:171) at com.springsource.sts.gradle.core.GradleProject.refreshSourceFolders(GradleProject.java:145) at com.springsource.sts.gradle.core.GradleProject.convertToGradleProject(GradleProject.java:399) at com.springsource.sts.gradle.core.wizards.GradleImportOperation.importProject(GradleImportOperation.java:135) ... 4 more {noformat} This is cause by some invalid data returned by the Gradle tooling API. We should guard against illegal entries and ignore them. (Maybe with some error message, but continue to process after skipping the invalid entry.)
    via by Kris De Volder (c),
  • checkout Grails core project from git. Do not generate eclipse files using Gradle scripts. Using Gradle import wizard import everything. An error message about wrong path pops up. Entry in error log: {noformat} org.eclipse.core.runtime.CoreException: Path must include project and resource name: /scripts at com.springsource.sts.gradle.core.util.ExceptionUtil.coreException(ExceptionUtil.java:59) at com.springsource.sts.gradle.core.wizards.GradleImportOperation.importProject(GradleImportOperation.java:143) at com.springsource.sts.gradle.core.wizards.GradleImportOperation.perform(GradleImportOperation.java:91) at com.springsource.sts.gradle.ui.wizards.GradleImportWizard$1.doit(GradleImportWizard.java:57) at com.springsource.sts.gradle.core.util.GradleRunnable$1.run(GradleRunnable.java:42) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: java.lang.IllegalArgumentException: Path must include project and resource name: /scripts at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63) at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:1795) at org.eclipse.core.internal.resources.Container.getFolder(Container.java:221) at com.springsource.sts.gradle.core.GradleProject.newSourceEntry(GradleProject.java:253) at com.springsource.sts.gradle.core.GradleProject.setSourceFolders(GradleProject.java:171) at com.springsource.sts.gradle.core.GradleProject.refreshSourceFolders(GradleProject.java:145) at com.springsource.sts.gradle.core.GradleProject.convertToGradleProject(GradleProject.java:399) at com.springsource.sts.gradle.core.wizards.GradleImportOperation.importProject(GradleImportOperation.java:135) ... 4 more {noformat} This is cause by some invalid data returned by the Gradle tooling API. We should guard against illegal entries and ignore them. (Maybe with some error message, but continue to process after skipping the invalid entry.)
    via by Kris De Volder (c),
  • Maven2 Plugin for Eclipse Users List
    via by Unknown author,
    • org.eclipse.core.runtime.CoreException: Path must include project and resource name: /scripts at com.springsource.sts.gradle.core.util.ExceptionUtil.coreException(ExceptionUtil.java:59) at com.springsource.sts.gradle.core.wizards.GradleImportOperation.importProject(GradleImportOperation.java:143) at com.springsource.sts.gradle.core.wizards.GradleImportOperation.perform(GradleImportOperation.java:91) at com.springsource.sts.gradle.ui.wizards.GradleImportWizard$1.doit(GradleImportWizard.java:57) at com.springsource.sts.gradle.core.util.GradleRunnable$1.run(GradleRunnable.java:42) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: java.lang.IllegalArgumentException: Path must include project and resource name: /scripts at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63) at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:1795) at org.eclipse.core.internal.resources.Container.getFolder(Container.java:221) at com.springsource.sts.gradle.core.GradleProject.newSourceEntry(GradleProject.java:253) at com.springsource.sts.gradle.core.GradleProject.setSourceFolders(GradleProject.java:171) at com.springsource.sts.gradle.core.GradleProject.refreshSourceFolders(GradleProject.java:145) at com.springsource.sts.gradle.core.GradleProject.convertToGradleProject(GradleProject.java:399) at com.springsource.sts.gradle.core.wizards.GradleImportOperation.importProject(GradleImportOperation.java:135) ... 4 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    2 more bugmates