Bug 185906

Summary: [Import/Export] Problem Occured message box is displayed after importing project
Product: [Eclipse Project] Platform Reporter: Eiji Morito <eiji.morito>
Component: AntAssignee: Platform-Ant-Inbox <platform-ant-inbox>
Status: ASSIGNED --- QA Contact:
Severity: normal    
Priority: P3 CC: hinaba, nils.meyer
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
my test project none

Description Eiji Morito CLA 2007-05-08 03:16:10 EDT
Build ID: I20070503-1400

Steps To Reproduce:
1. Create a plugin project.
2. Disable one of the builder of the project.
3. Delete the project, but don't delete the contents.
4. Import the project.
   --> Sometimes, the error message box is displayed.

More information:

The detail of message box:
  Title: Problem Occured
  Message: Building workspace (Time of error: 2007-05-08 1541:23:JST)
           Reason:
           Check the details
  Details:
       Errors during build.
       Errors running builder 'Integrated External Tool Builder' on project 'com.sample.myplugin'.
       The builder launch configuration could not be found.

---  .log   ---
!ENTRY org.eclipse.core.resources 4 2 2007-05-08 15:41:23.230
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
!STACK 1
org.eclipse.core.runtime.CoreException: The builder launch configuration could not be found.
	at org.eclipse.ui.externaltools.internal.model.ExternalToolsPlugin.newError(ExternalToolsPlugin.java:73)
	at org.eclipse.ui.externaltools.internal.model.ExternalToolBuilder.build(ExternalToolBuilder.java:74)
	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:624)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:166)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:197)
	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:246)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:249)
	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:302)
	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:334)
	at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:137)
	at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
!SUBENTRY 1 org.eclipse.ui.externaltools 4 0 2007-05-08 15:41:23.230
!MESSAGE The builder launch configuration could not be found.
!SUBENTRY 1 org.eclipse.ui.externaltools 4 0 2007-05-08 15:41:23.230
!MESSAGE The builder launch configuration could not be found.

!ENTRY org.eclipse.core.resources 4 75 2007-05-08 15:41:23.261
!MESSAGE Errors during build.
!SUBENTRY 1 org.eclipse.ui.externaltools 2 75 2007-05-08 15:41:23.261
!MESSAGE Errors running builder 'Integrated External Tool Builder' on project 'com.sample.myplugin'.
!SUBENTRY 1 org.eclipse.ui.externaltools 4 0 2007-05-08 15:41:23.261
!MESSAGE The builder launch configuration could not be found.
--------

On WizardProjectsImportPage#createExistingProject(), 
project is opened by specifying IResource.BACKGROUND_REFRESH flag.
Therefore, when build is performed before refresh, launch configuration,
which is stored under .externalToolBuilders folder in the project, cannot
be accessed.
Comment 1 Darin Swanson CLA 2007-05-08 15:21:36 EDT
Thank you for the bug report. 
I am assuming that after the refresh subsequent builds work without problems?
Comment 2 Nils Meyer CLA 2009-09-26 02:31:40 EDT
I think I can observer the same issue. Seems error is occuring most times after importing a project the second time from the same location (delete in Eclipse without deleting on file system in between), but still then bug is not to 100 % reproducable for me. Subsequent builds are working as assumed.

I'm using Eclipse 3.4.2. Log shows same error:

!ENTRY org.eclipse.core.resources 4 2 2009-09-26 08:12:57.327
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
!STACK 1
org.eclipse.core.runtime.CoreException: The builder launch configuration could not be found.
	at org.eclipse.ui.externaltools.internal.model.ExternalToolsPlugin.newError(ExternalToolsPlugin.java:73)
	at org.eclipse.ui.externaltools.internal.model.ExternalToolBuilder.build(ExternalToolBuilder.java:74)
	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:633)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)
	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)
	at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
	at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
!SUBENTRY 1 org.eclipse.ui.externaltools 4 0 2009-09-26 08:12:57.351
!MESSAGE The builder launch configuration could not be found.
!SUBENTRY 1 org.eclipse.ui.externaltools 4 0 2009-09-26 08:12:57.351
!MESSAGE The builder launch configuration could not be found.

!ENTRY org.eclipse.core.resources 4 75 2009-09-26 08:12:57.359
!MESSAGE Errors during build.
!SUBENTRY 1 org.eclipse.ui.externaltools 2 75 2009-09-26 08:12:57.359
!MESSAGE Errors running builder 'Integrated External Tool Builder' on project 'AntBuilderProject'.
!SUBENTRY 1 org.eclipse.ui.externaltools 4 0 2009-09-26 08:12:57.359
!MESSAGE The builder launch configuration could not be found.
Comment 3 Nils Meyer CLA 2009-09-26 02:32:39 EDT
Created attachment 148184 [details]
my test project
Comment 4 Eclipse Webmaster CLA 2019-09-06 16:04:40 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.