- This topic has 11 replies, 2 voices, and was last updated 14 years, 10 months ago by
support-shalini.
-
AuthorPosts
-
astein70MemberI am using WAS 7 along with ME Blue 7.5. For the past few months I seemed to not have any issues debugging and stepping through code. This week I have been trying to move a service from using HttpClient 3.0.1 to HttpClient 4.0.1 and have noticed something very strange while debugging – about 1/3 of the time after making simple changes while debugging, the debugger had to disconnect due to the change.
When I stopped the debugger and restarted it, my source breakpoints were not aligning at all, as if ME Blue 7.5 was working off of an older copy of the source that was not visible in the IDE. Just now, even after working fine prior to my last shutdown, I restarted a fresh ME Blue 7.5 session and had the issue happen again.
To get around this issue I seem to have to redeploy under ME Blue 7.5 while the debugger is going, then stop the debugger to complete (‘redeploy’) the deployment, then build the EAR and manually Update it in WAS 7 for the problem to go away. But the problem happened way too often today.
Is it some bad historic caching that can be cleared out?
Thanks.
support-shaliniMemberastein70,
Can you give some information?
1. Can you copy paste your installation details from MyEclipse > Installation Summary > Installation Details?
2. Are there any errors logged in the log file located at workspace dir > .metadata > .log?
Also, Can you try using Project > Clean and check if the issue persists?
astein70MemberClean by itself does nothing to improve debugging, but looking at the .log file I see this after the last clean:
===
!ENTRY com.genuitec.eclipse.core.common 1 0 2010-04-17 20:59:18.198
!MESSAGE Error collecting output paths
!STACK 0
java.lang.NullPointerException
at com.genuitec.eclipse.core.util.JavaMetaUtils.getOutputDirectoryPaths(JavaMetaUtils.java:447)
at com.genuitec.eclipse.j2eedt.core.J2EEProjectUtil.getOutputDirectoryPaths(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.packaging.DefaultPackagerStrategy.explodeDependentProjects(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.packaging.PackageUtils.explodeDependentProjects(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.WebDeployment.Ć(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.WebDeployment.doProjectTypeSpecificPostResyncAll(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.Deployment.resyncAll(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder.webProjectBuildAll(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder.buildAll(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder.build(Unknown Source)
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)!ENTRY com.genuitec.eclipse.core.common 1 0 2010-04-17 20:59:18.198
!MESSAGE Error collecting output paths
!STACK 0
java.lang.NullPointerException
at com.genuitec.eclipse.core.util.JavaMetaUtils.getOutputDirectoryPaths(JavaMetaUtils.java:447)
at com.genuitec.eclipse.j2eedt.core.J2EEProjectUtil.getOutputDirectoryPaths(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.packaging.DefaultPackagerStrategy.explodeDependentProjects(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.packaging.PackageUtils.explodeDependentProjects(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.WebDeployment.Ć(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.WebDeployment.doProjectTypeSpecificPostResyncAll(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.Deployment.resyncAll(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder.webProjectBuildAll(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder.buildAll(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder.build(Unknown Source)
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)!ENTRY com.genuitec.eclipse.core.common 1 0 2010-04-17 20:59:18.714
!MESSAGE Error collecting output paths
!STACK 0
java.lang.NullPointerException
at com.genuitec.eclipse.core.util.JavaMetaUtils.getOutputDirectoryPaths(JavaMetaUtils.java:447)
at com.genuitec.eclipse.j2eedt.core.J2EEProjectUtil.getOutputDirectoryPaths(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.packaging.DefaultPackagerStrategy.explodeDependentProjects(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.packaging.PackageUtils.explodeDependentProjects(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.WebDeployment.Ć(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.WebDeployment.doProjectTypeSpecificPostResyncAll(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.Deployment.resyncAll(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.ModuleDeployment.deployAsExplodedArchive(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.Deployment.deploy(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.EARDeployment.resyncAll(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder.earProjectBuildAll(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder.buildAll(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder.build(Unknown Source)
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)!ENTRY com.genuitec.eclipse.core.common 1 0 2010-04-17 20:59:18.714
!MESSAGE Error collecting output paths
!STACK 0
java.lang.NullPointerException
at com.genuitec.eclipse.core.util.JavaMetaUtils.getOutputDirectoryPaths(JavaMetaUtils.java:447)
at com.genuitec.eclipse.j2eedt.core.J2EEProjectUtil.getOutputDirectoryPaths(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.packaging.DefaultPackagerStrategy.explodeDependentProjects(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.packaging.PackageUtils.explodeDependentProjects(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.WebDeployment.Ć(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.WebDeployment.doProjectTypeSpecificPostResyncAll(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.Deployment.resyncAll(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.ModuleDeployment.deployAsExplodedArchive(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.Deployment.deploy(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.EARDeployment.resyncAll(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder.earProjectBuildAll(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder.buildAll(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder.build(Unknown Source)
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)
===Here is the install details:
===
*** Date:
Saturday, April 17, 2010 8:56:40 PM EDT** System properties:
OS=windows server 2008
OS version=6.0.0
Java version=1.6.0_13*** MyEclipse details:
MyEclipse Blue Edition
Version: 7.5 Blue
Build id: 7.5-Blue-20090609*** Eclipse details:
MyEclipse Blue EditionVersion: 7.5 Blue
Build id: 7.5-Blue-20090609Eclipse Plug-in Development Environment
Version: 3.4.2.R342_v20090122-7T7U1E9imVKz-A8Vz-p_jRS
Build id: M20080703-0800Eclipse Platform
Version: 3.4.2.R342_v20090122-9I96EiWElHi8lheoJKJIvhM3JfVsYbRrgVIWL
Build id: M20090211-1700Eclipse Graphical Editing Framework GEF
Version: 3.4.2.v20090218-1145-67728084A56B4I233613552
Build id: 200902181337Eclipse RCP
Version: 3.4.200.R342_v20090122-989JESTEbig-SVaL8UJHcYBr4A63
Build id: M20090211-1700Eclipse Java Development Tools
Version: 3.4.2.r342_v20081217-7o7tEAoEEDWEm5HTrKn-svO4BbDI
Build id: M20090211-1700Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\Users\Administrator\AppData\Local\Genuitec\MyEclipse 7.5 Blue\myeclipse-blue.exe
-name
Myeclipse-blue
–launcher.library
C:\Users\Administrator\AppData\Local\Genuitec\MyEclipse 7.5 Blue\../Common\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731\eclipse_1115.dll
-startup
C:\Users\Administrator\AppData\Local\Genuitec\MyEclipse 7.5 Blue\../Common\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
-clean
-clean
-configuration
configuration
-vm
C:\Users\Administrator\AppData\Local\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\client\jvm.dll===
support-shaliniMemberastein70,
Can you switch to a new workspace and check if the issue persists?
astein70MemberSwitching to another workspace and coming back in seems to have solved the issue. Is there a way to avoid bouncing workspaces? Some of my co-workers would not have more than one workspace to switch to and use this ‘trick’.
support-shaliniMemberastein70,
Good to know that you are all set.
You can create a new workspace if needed and switch to it. Go to File > Switch Workspace > Other. Click Browse in the new window that opens, create a new folder at any desired location and click “OK”.Is there a way to avoid bouncing workspaces?
I will escalate this issue to the dev team member and they will get back to you on this.
astein70MemberThank you for the workaround, Shalini.
support-shaliniMemberWelcome!!
Do let us know if you have any issues.
astein70MemberThe issue continues, errors in the .log file as before. I still (sometimes?) have to run a manual WAS server update with a rebuilt EAR to get debug stepping in line with what the IDE is showing me, and definitely while in the IDE I am stepping through an older set of code somehow. It is as if the ‘redeploy’ from the IDE is not working.
support-shaliniMemberastein70,
Sorry for the inconvenience. Can you paste the messages from the deployment log when the redeploy fails?
Right click on your server in the servers view and select “View Deployment Log” from the context menu and check if there are any errors.
astein70MemberI finally got a chance to look at the deployment log, and found that the name it was trying to deploy to did not match the display name in WAS 7, so somewhere in the recent past I must have done something to get ME confused. I rebulit the workspace, renaming projects to what I realy wanted them to be and now deployement/re-deploys do not complain about not finding the application. There is still one issue though. I still seem to have to manually redeploy to get the code in sync once I make a code change; if I do not redeploy from ME then when I run through the code it is stepping through the older version. I have the IDE set to build automatically.
support-shaliniMemberastein70,
What is the mode of deployment that you are using? Packaged or Exploded?
When an EAR is deployed in Exploded mode, the changes made to the project are synced to the server immediately.
Please refer to the following for further reference –
http://www.myeclipseide.com/documentation/quickstarts/earprojects/#deployear
Let me know if that helps. -
AuthorPosts