- This topic has 8 replies, 2 voices, and was last updated 19 years, 10 months ago by martind.
-
AuthorPosts
-
martindMemberHi,
A strange problem has just appeared: whenever I save a file the entire workspace is rebuilt. So even if I’m just making a small change to a JSP page, for example, all .java source files are cleaned and recompiled. This is clearly very frustrating, as every tiny change causes Eclipse to lock up for several minutes. The previous version of the application did’nt do this – I’ve compared settings and can’t see any difference… Do you have any idea what could be causing this?
I’m using Weblogic 6, Eclipse 3.0.1 & MyEclipse 3.8.4 on Windows XP.
Thanks for your help.
Martin.
Riyad KallaMemberTry shutting down MyEclipse and using the -clean command as outlined here: http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-30.html#343
Clearly this shouldn’t be happening, very annoying indeed…
martindMemberThanks Riyad,
I tried this a couple of times, but it didn’t help – still cleaning output folders when any file is saved.
Do you have any other ideas?
M.
Riyad KallaMemberDouble check your log file, i wonder if an exception of sorts is taking place that is causing Eclipse to think it should build…
<workspace dir>\.metadata\.log (look near the bottom).
Also do you have automatic build on? (Project > Build automatically) You should if you don’t.
martindMemberAutomatic build is on.
Could the exception below be relevant? Looks like it might be, but doesn’t make much sense to me.
—————————————————————————————————————
—————————————————————————————————————
!ENTRY org.eclipse.core.runtime 4 2 Mar 15, 2005 14:16:03.71
!MESSAGE Problems occurred when invoking code from plug-in: “org.eclipse.core.runtime”.
!STACK 0
java.lang.NullPointerException
at org.eclipse.jdt.internal.debug.core.hcr.JavaHotCodeReplaceManager.getHotSwapTargets(JavaHotCodeReplaceManager.java:327)
at org.eclipse.jdt.internal.debug.core.hcr.JavaHotCodeReplaceManager.notifyTargets(JavaHotCodeReplaceManager.java:281)
at org.eclipse.jdt.internal.debug.core.hcr.JavaHotCodeReplaceManager.resourceChanged(JavaHotCodeReplaceManager.java:218)
at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:283)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:277)
at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:151)
at org.eclipse.core.internal.resources.Workspace.broadcastChanges(Workspace.java:172)
at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:900)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:163)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:212)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
!SESSION Mar 15, 2005 14:20:47.561 ———————————————
eclipse.buildId=M200409161125
java.version=1.4.2_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
Command-line arguments: rvmeclipse—————————————————————————————————————
—————————————————————————————————————
Riyad KallaMemberWhat builders do you have listed under your project properties > Builders panel?
martindMemberI have an EAR Project with the following builders:
– J2EEProjectValidator
– DeploymentDescriptorValidator
– Validation
– Structured Document and Model Builder
– DeploymentBuilderThen there are a couple of web apps with:
– WebClasspathBuilder
– Java Builder
– J2EEProjectValidator
– DeploymentDescriptorValidator
– Validation
– Structured Document and Model Builder
– DeploymentBuilderFinally there are several EJB Projects with these:
– Java Builder
– DeploymentDescriptorValidator
– Validation
– Structured Document and Model Builder
– DeploymentBuilderI compared these to the previous version of the project (which builds correctly) and there is no difference.
M.
Riyad KallaMemberAdmitedly this one is stumping me, so I asked another for some help and this is what he had to say:
He said his workspace is cleaned and rebuild on *any* file save, then used a
JSP file as an example. Is it also true on any Java file save? Can he
create a new project and see if the same thing occurs in it? Does he have
any other external plugins installed? Is his file system local? Is it a
clearcase VOB, by any chance? Could something be modifying the files
externally on disk?Can you answer those questions?
martindMemberLads,
I managed to ‘fix’ this problem by making new projects in a clean workspace and copying the source files across from the previous project which had worked fine. Now, I thought that was exactly was I did the first time round, so I still have no idea what caused the problem. The filesystem is on a network and I can only imagine that the files where pointed to / being modified from somewhere else.
I’m none the wise, but it works, so who cares…!
Thanks for your help.
M.
-
AuthorPosts