- This topic has 15 replies, 2 voices, and was last updated 17 years, 7 months ago by Riyad Kalla.
-
AuthorPosts
-
Aidan HughesMemberI’ve been having a problem over the past few days with content assist on JSPs.
everything else seems to be working OK.If I try to type eg.:
<% thisBean.getField %>
When I get as far as the . the code assist window opens, shows all available methods and then the program freezes.
I can’t escape out in any way and end up closing the application.This does NOT happen when I’m editing a pure java class file or servlet etc., only in a script on a JSP.
I’m running Windows 2000.
Startup arguments are -vmargs -Duser.language=en -Xms128M -Xmx512M -XX:PermSize=256M -XX:MaxPermSize=512M
(Ive adjusted the later from their defaults – it had no effect).
I was having the problem with Eclipse 3.2.1 and ME 5.1.0.
I downloaded Eclipse 3.2.2 and ME 5.1.1 and am having the same issue.
I have started Eclipse with the -clean argument – it didn’t help.
I have created a new workspace and created a dummy web project with some beans and a jsp and managed to get the same result again with very little effort.
My Java version is jdk1.5.0_11.Since eclipse is freezing, not crashing there is nothing in the log file.
I have left everything running for up to an hour to see if it just needed time (over lunch in case the boss is reading this!) – but it was still frozen when I came back to it.I could always turn content assist off – but it’s very useful (understatment) and I need it ! ! ! ! !
Any ideas what could be wrong?
Riyad KallaMemberLet’s try a test case really quick. Can you go to our download section and grab the 5.1.1 all-in-one installer, it’s about 127mb. Can you run the installer and install MyEclispe to a brand new directory that doesn’t exist, and then create a new workspace with a new project in it and try and reproduce it there?
Aidan HughesMemberOK – I’ve downloaded the all in one installer.
I installed to a fresh directory, created a brand new workspace.
Then manually typed (no cut/paste from possible corrupted files) in a couple of basic beans and created one jsp.
I got exactly the same result – eclipse froze when the content-assist window opened.The beans were in a package called bean:
main – with a string ID field, and a Vector<action> field.
action – with two string fields.In the jsp I used
<jsp:useBean id="thisBean" class="bean.main" scope="session"></jsp:useBean>
That gave me access to the beans from the jsp.
Then I typed
<% thisBean. >%
as soon as I typed the . the content assist window opened and Eclipse / My Eclipse froze.
I then went back and tried the same on standard objects (not beans I created myself).
e.g. trying to access any methods of “request” gave the same result –
content assist wndow opened and the application froze.
Again – this only happens in jsp files – it works fine in java files.I’ve been using Eclipse with My Eclipse now for nearly two years and have never had this issue before.
PC is new – 3.6GHz, 2GB RAM – I only have it three weeks and there were no issues for the first two weeks.One of my colleagues accessed my local workspace over our LAN last week in order to copy some files.
He may have opened some of them using Eclipse on his PC – he does not have My Eclipse.
This does not normally happen and it is the only thing I can think of that I’ve done differently recently.
Could this have caused a conflict on my PC?
Riyad KallaMemberThis is very strange in deed… can you load up the new install and go to MyEclipse > Installation Summary > Installation Details and paste that information here for me to look at just to double-check?
Also is your workspace on a network drive by chance? It’s possible invoking autocomplete starts a parse-routine on the libraries that is so slow, it seems to lock up the workbench…
Aidan HughesMemberHi,
No my workspace in on the local hard drive.
However, I have noticed background operations “Computing additional info” in the progress view quite a lot, and they seem to take a long time to complete – if ever – somtimes they stay for a whole session. They don’t seem to be connected to this freezing issue though.MyEclipse > Installation Summary > Installation Details are pasted below as requested.
One thing not included is that I use a local copy of Tomcat 5.5.23 and I start and stop that using My Eclipse.
Thanks,
Aidan.
*** Date:
17 April 2007 12:27:51 o’clock BST** System properties:
OS=Windows2000
OS version=5.0
Java version=1.5.0_08*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 5.1.1 GA
Build id: 20070302-5.1.1-GA*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 5.1.1 GA
Build id: 20070302-5.1.1-GAEclipse Platform
Version: 3.2.2.r322_v20070119-RQghndJN8IM0MsK
Build id: M20070212-1330Eclipse RCP
Version: 3.2.2.r322_v20070104-8pcviKVqd8J7C1U
Build id: M20070212-1330Eclipse Java Development Tools
Version: 3.2.2.r322_v20070104-R4CR0Znkvtfjv9-
Build id: M20070212-1330Eclipse Project SDK
Version: 3.2.2.r322_v20070104-dCGKm0Ln38lm-8s
Build id: M20070212-1330Eclipse Graphical Editing Framework
Version: 3.2.2.v20070208
Build id: 20070208-1315Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-launcher
C:\Program Files\MyEclipse 5.1.1 GA Stack\eclipse\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
4d0_50
-vm
C:\Program Files\MyEclipse 5.1.1 GA Stack\jre\bin\javaw.exe
Riyad KallaMemberGrrr… your setup looks perfect, I was hoping we’d see some glaring issue.
Are you sure there are no interesting exceptions getting written to your log file (<workspace dir>\.metadata\.log) that might shine some light on what’s going on?
Aidan HughesMemberI’m pasting the full contents of the log file for the clean installation below.
Hope this helps you!Aidan.
!SESSION 2007-04-16 09:54:40.929 ———————————————–
eclipse.buildId=M20060921-0945
java.version=1.5.0_08
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
Command-line arguments: -os win32 -ws win32 -arch x86!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-16 09:55:49.195
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA Stack\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\css_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-16 09:55:49.367
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA Stack\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\forms_lists_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-16 09:55:49.476
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA Stack\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\htmlform_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-16 09:55:49.679
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA Stack\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\html_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-16 09:55:49.820
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA Stack\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\javascript_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-16 09:55:49.929
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA Stack\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\jsf_f_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-16 09:55:50.101
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA Stack\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\jsf_h_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-16 09:55:50.242
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA Stack\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\struts_bean_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-16 09:55:50.398
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA Stack\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\struts_html_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-16 09:55:50.523
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA Stack\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\struts_logic_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-16 09:55:50.586
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA Stack\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\struts_tiles_snippets.xml!ENTRY org.eclipse.wst.internet.cache 1 0 2007-04-16 09:56:03.367
!MESSAGE wtp.autotest.noninteractive is set. Licenses dialogs will not be displayed.!ENTRY org.eclipse.jst.jsf.core 1 0 2007-04-16 09:56:24.773
!MESSAGE Could not load JSF Library Registry; creating new registry
!SESSION 2007-04-16 10:07:33.961 ———————————————–
eclipse.buildId=M20060921-0945
java.version=1.5.0_08
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
Command-line arguments: -os win32 -ws win32 -arch x86!ENTRY org.eclipse.core.resources 2 10035 2007-04-16 10:07:37.836
!MESSAGE A workspace crash was detected. The previous session did not exit normally.!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-16 10:07:41.945
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA Stack\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\css_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-16 10:07:41.961
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA Stack\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\forms_lists_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-16 10:07:41.976
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA Stack\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\htmlform_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-16 10:07:41.992
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA Stack\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\html_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-16 10:07:41.992
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA Stack\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\javascript_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-16 10:07:42.008
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA Stack\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\jsf_f_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-16 10:07:42.008
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA Stack\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\jsf_h_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-16 10:07:42.023
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA Stack\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\struts_bean_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-16 10:07:42.023
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA Stack\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\struts_html_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-16 10:07:42.023
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA Stack\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\struts_logic_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-16 10:07:42.023
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA Stack\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\struts_tiles_snippets.xml!ENTRY org.eclipse.wst.internet.cache 1 0 2007-04-16 10:07:44.398
!MESSAGE wtp.autotest.noninteractive is set. Licenses dialogs will not be displayed.!ENTRY org.eclipse.jst.jsf.core 1 0 2007-04-16 10:07:48.961
!MESSAGE Could not load JSF Library Registry; creating new registry
Riyad KallaMemberHere is one weird thing I”m seeing, your system info lists Eclipse Build 3.2.2, but your log file (from the new workspace) lists Build ID from version 3.2.1… the only reason this seems odd to me, is that with a clean install and clean workspace this shouldn’t be happening… so either the previous directory isn’t getting correctly deleted, or the reinstall using the 5.1.1 All In One installer isn’t happening as we had hoped… any ideas? Are you reusing any previous downloads to recreate the clean install possibly?
I’m digging at straws here… very strange that this is even happening in the first place.
Aidan HughesMemberHmmm.
This install was the all in one installer, freshly downloaded from your site.
I didn’t import anything into the new workspace – it was created by Eclipse when it opened for the first time, in a new location defined by me when prompted.
I now have several versions of Eclipse and my eclipse installed, and a couple of workspaces invarious places.
I’m home now, but when I get back into work tomorrow, I’ll back up everything, uninstall/delete my eclipse, eclipse, tomcat, java jres and jdks, and then start again from scratch.Is there anthing in the Pc registry which could be hanging over and corrupted?
I ask this because I can see no other connection between the previous installs and this latest clean install.
One final word – when I copy the projects to another PC, there is no issue – it is only on my PC.
I’m, therefore, thinking it’s related to the PC – not necessarily eclipse or my own code.Thanks for sticking with me on this – I know it’s hard to do this sort of support from a distance!
Aidan.
Riyad KallaMemberIs there anthing in the Pc registry which could be hanging over and corrupted?
Nope nothing, we don’t read from the registry, just the workspace.
I’m starting to think it’s a platform conflict issue… if you install the all-in-one at home, does it work fine?
One final word – when I copy the projects to another PC, there is no issue – it is only on my PC.
I’m, therefore, thinking it’s related to the PC – not necessarily eclipse or my own code.Bingo… I agree with you, this is sounding very “crazy low-level interaction” to me.
You could try patching your OS and device drivers, namely video, sound and motherboard if applicable… at this point we are just shooting in the dark though.
Your PC isn’t overclocked is it? That can definately cause memory issues and lockups.
Aidan HughesMemberI’m losing the will to live ! ! ! ! ! !
I’ve uninstalled all versions of Eclipse, My Eclipse, Java JDKs and JREs, and Tomcat.
I’ve made sure all properties files etc are removed.
I’ve removed all old workspaces.
I’ve rebooted (several times!)I’ve reinstalled Me Eclipse using the All in One installer I downloaded this week.
I installed nothing else.I started Eclipse, created a new workspace (got the messages about not having a suscription!)
I then created a new web project, and created just one JSP.In the body I then typed in the code:
<% String s = "abcd"; String t = s. %>
When I typed the . the content assist window opened, I was able to select substring(), and then Eclipse froze and stopped responding. I left it for about 15 minutes, but it didn’t come back so I had to exit out of it.
The log file contents are pasted below.
Drivers etc for hardware should be up to date and windows patches also should be OK.
PC is not overclocked.
I’m not having issues in any other applications that I’m aware of – just Eclipse, and only this small portion.I don’t know now what is going on – I’m out of ideas completely.
Where can we go from here?Aidan
!SESSION 2007-04-18 12:47:09.125 ———————————————–
eclipse.buildId=M20060921-0945
java.version=1.5.0_08
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
Command-line arguments: -os win32 -ws win32 -arch x86!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-18 12:47:43.047
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\css_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-18 12:47:43.140
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\forms_lists_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-18 12:47:43.281
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\htmlform_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-18 12:47:43.484
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\html_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-18 12:47:43.531
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\javascript_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-18 12:47:43.594
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\jsf_f_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-18 12:47:43.687
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\jsf_h_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-18 12:47:43.750
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\struts_bean_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-18 12:47:43.812
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\struts_html_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-18 12:47:43.875
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\struts_logic_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2007-04-18 12:47:43.953
!MESSAGE Installed snippet library: C:\Program Files\MyEclipse 5.1.1 GA\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.1.1\snippets\struts_tiles_snippets.xml!ENTRY com.genuitec.eclipse.core 1 0 2007-04-18 12:47:51.109
!MESSAGE Unable to locate .myeclipse.properties file!ENTRY org.eclipse.wst.internet.cache 1 0 2007-04-18 12:47:58.187
!MESSAGE wtp.autotest.noninteractive is set. Licenses dialogs will not be displayed.!ENTRY org.eclipse.jst.jsf.core 1 0 2007-04-18 12:48:12.609
!MESSAGE Could not load JSF Library Registry; creating new registry
Riyad KallaMemberOk let’s try this for kicks:
1) Go to http://java.sun.com
2) Download JDK 6.0 Update 1 release (just the JDK)
3) Install it. (During the install, if you uncheck the JRE, it will just unzip the JDK for you to the install location)
4) Edit the shortcut that you use to start MyEclipse and change the -vm argument from pointing at the JRE under the install dir, to the one where the JDK is installed, for example:
C:\Program Files\Java\jdk1.6.0_01\bin\javaw.exethen try and start it… if that doesn’t work I’m going to hang myself 🙁
Aidan HughesMemberOK.
Did what you said.
Installed the jdk6u1 and pointed the eclipse startup to this instead of the all in one version.
Made no difference! ! ! ! !But wait.
I took it a stage further and looked at the installed jres in Preferences.
This was still pointing to the My eclipse version.
so I added the jdk6u1 jre and deleted the My Eclipse version.
Hey presto – it all works beautifully.
HuraaaahhhhhhBut why does my project think it is a Java 1.6 project?
I think this comes down to my colleague who accessed my workspace over our LAN.
He is using Java 1.6 – and that could not be a coincidence.
This must have set/corrupted something on my PC.Anyay – this would seem like a great place to end the story.
However, the spec for the work I’m doing requires java 1.5.
How do I get my projects back to 1.5 ? ? ? ? ? ? ? ?
Or what is the impact of not doing so ? ? ? ? ? ? ? ?I think we’re nearly there – at least we now have some clues ! ! ! ! !
Don’t get out your rope just yet !Aidan.
Riyad KallaMemberAidan, that is great news, we are getting somewhere!
The reason your project was changed to 1.6 is likely because you erased the MyEclipse JRE and it just defaulted to the next available JRE.
You can install the Sun 1.5.0 JDK and go to INstalled JREs, add it there, and then change your project back to using it as the JRE Library set instead of the default 1.6 one.
NOTE: There are known issues with Java 1.6 and Matisse4MyEclipse, but otherwise it should run fine.
Aidan HughesMemberYes ! ! !
I’ve reinstalled Sun’s jdk1.5 and we’re back on track.
I’m still not sure how this happened – I was originally using the sun 1.5 jdk – I’m sure I had already tried changing the jre!
And particularly after so many reinstalls – and the various traces posted above all suggested this was OK ????
However, I’m happy it’s working again – hopefully it will stay that way.Just for completeness – one thing that is now obvious is that the JavaDoc content is now being displayed again – I hadn’t noticed up to now that when the list appeared, the JavaDoc comments did not pop up – I can only assume that eclipse was away looking for this and couldn’t find it somehow?
Anyway – thanks for your help – I thought this was never going to go away !
Aidan.
-
AuthorPosts