- This topic has 14 replies, 6 voices, and was last updated 17 years, 8 months ago by kfreeman.
-
AuthorPosts
-
zambizziMemberI’ve had this issue since buying 4.1x last year…and the issue is still present in 5.1.
I’m developing EJB3 apps against JBoss 4.0.5 and to do so, a User Library of the JBoss EJB3 jars needs to be made and referenced in the EJB portion of the Enterprise project in MyEclipse.
Everything will go just ducky for a while…then I’ll shut MyEclipse down….start it back up later and suddenly MyEclipse can’t “see” the EJB3 User Library…even though it’s clearly still referenced and nothing has changed. There are red underlines under every EJB3 import, annotation, or any calls to anything in the EJB3 User Library.
Removing the reference and re-adding it will “fix” this most times…sometimes not and it’s a matter of cleaning the project, restarting MyEclipse, and doing whatever pee-pee dance comes to mind until the erros go away.
Is there any chance of seeing this bug fixed eventually? This doesn’t happen *only* w/ the EJB3 libs I’m using, it happens w/ any of the User Libraries I’ve created.
I’m using (from Help->About…):
MyEclipse Enterprise Workbench
Version: 5.1.0 GA
Build id: 20061111-5.1.0-GAI installed it last week and I’m using the “all-in-one” bundle on Windows XP SP2.
Thanks!
Riyad KallaMemberUnfortunately we don’t instrument the User Library functionality from the platform in any way, so it’s possible there could be some behavior or setup you have that is exacerbating a bug in the implementation… my first line of defense though would be to restart using -clean incase it’s a stale cache issue that is screwing with it’s state when it is restarted:
http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-10280.html
zambizziMemberYeah, that’s the advice I got last time, however it has “-clean” hard-coded into the startup shortcut…so that’s never helped. I can’t be one of a few (or the only one) having this problem…I can re-create it in several different versions and now on two fresh installs of Windows XP.
Like I said, it’s not terrible…just annoying at worst. I can usually get it to go away in a matter of 30 sec. but sometimes it’s stubborn and I have to restart myeclipse to fix it.
Riyad KallaMemberYeah, that’s the advice I got last time, however it has “-clean” hard-coded into the startup shortcut…so that’s never helped. I can’t be one of a few (or the only one) having this problem…I can re-create it in several different versions and now on two fresh installs of Windows XP.
I honestly don’t see other folks reporting this… please point me to threads I’m missing. If this is an epidemic that I’m missing I’ll certainly have someone look into it if we can help.
I totally agree it’s annoying… honestly if it was happening to me, I’d just create a new workspace and import my old projects and preferences and pray it went away.
tib_onuMemberIt happens to me all the time, on different workspaces and on two different computers. Here are my installation details:
*** Date:
Friday, April 13, 2007 7:09:18 o’clock PM EDT** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.5.0_11*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 5.1.1 GA
Build id: 20070302-5.1.1-GA*** Eclipse details:
Eclipse SDKVersion: 3.2.2
Build id: M20070212-1330Eclipse 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 Plug-in Development Environment
Version: 3.2.1.r321_v20060823-6vYLLdQ3Nk8DrFG
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
Q:\Dev\Eclipse 3.2.2\eclipse\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
1a0_58
-clean
-Duser.name=XXXXX
-vm
C:\WINNT\system32\javaw.exeIn my workspace I have a simple project holding 3rd party jars. The 3rd party jars are part of some Eclipse user library definitions. I also have a couple of projects that have such a user library in their build path. One of the projects is fine, the second is missing all the jar files in the user library. Cleaning up the workspace, as well as starting the IDE with the -clean option doesn’t make any difference. I have to exit the IDE and restart it. It sometimes takes a couple of restarts (and no other action) to have the problem fixed.
The .log file in the workspace’s .metadata directory is empty.
If needed, I can send you some screen captures that illustrate the problem.
[/img]
Scott AndersonParticipantThis may be unrelated, but I notice your startup arguments don’t contain any memory settings which means that as soon as the workspace spins up it will likely be memory constrained. Can you try adjusting the heap settings as specified in this FAQ entry? It may not help with this issue (or it might) but it will surely make everything run better overall.
tib_onuMemberDo I really need to pass these arguments in the command line? My eclipse.ini file looks like this:
-vmargs
-Dosgi.splashLocation=Q:\Dev\MyEclipseIDE 5.1.1\eclipse\MyEclipseSplash.bmp-Xms128m
-Xmx512mGranted, the PermGen space has the default size (64M) but I don’t recall ever running into memory issues. Anyways, even after adjusting the PermGen size as suggested, the problem is still there.
Joe GeorgeMemberI’m experiencing the problem with the missing jars in the user libraries as well. My set-up:
*** Date: Mon Apr 23 10:39:07 EDT 2007*** Platform Details:
** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.5.0_11*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 5.5 M2*** Eclipse details:
Eclipse SDKVersion: 3.2.2
Build id: M20070212-1330Eclipse startup command
C:\eclipse-3.2\eclipse.exe -vm C:\Java\jdk1.5.0_11\bin\javaw.exe -vmargs -Xms128M -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128M
Riyad KallaMemberjgeorge300,
Do you mean your build path for some projects are now broken or do you mean when you go to look at certain user libraries, the contents are marked with an error marker as (not there)?Also which libraries?
This can happen when upgrading sometimes and the workspaces gets out of sync with the install, you can fix it by hitting Restore Defaults which will reset all the libraries to point at the correct (updated) paths for the JARs that are their contents.
Joe GeorgeMemberMy problem is the same as zambizzi’s. I have defined several user libraries to reference third party jars. (e.g. My user library ‘Oracle 9.2.0.1’ is defined to include the the Oracle JDBC jar files)
In my workspace, my projects will list the src dir, the JRE System library and the various User libraries I have defined. I can expand the various User libraries to show the jars they include. On occasion, Eclipse will report error about an undefined import. The User library in the package explorer will show no associated jar files. My projects have about 10 User Libraries added to the build path. Some will still work while others do not.
The build path of the project has not changed. The User Library dialog still shows all of the jars files.
Riyad KallaMemberThe user libraries are provided by the platform and we don’t do anything to instrument them, so something squirrely is going on here if they are loosing their contents. Try restarting using -clean as outlined here:
http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-10280.htmland see if that helps.
tib_onuMember@support-rkalla wrote:
Try restarting using -clean as outlined here:
http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-10280.htmland see if that helps.
We’re going in circles here. As I already reported, at least in my case restarting with -clean makes no difference (other than making the startup process slower) and cleaning up the projects doesn’t help either.
I understand that the problem might be out of your control, however this doesn’t mean that it doesn’t exist 😉
Riyad KallaMemberWe’re going in circles here.
Doh… I think I got my wires crossed, there are like 3 people in this thread now.
Guys my only suggestion would be to create a new workspace and import your preferences and projects into the new workspace as outlined here:
http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-14682.htmland hope that the issue goes away. Since we don’t instrument the User Libraries at all, my only guess as to why they are going sour is it’s possible the workspace’s state is corrupted in some manner, so getting a clean workspace should help.
Joe GeorgeMemberIt looks like someone has already submitted the problem we are experiencing in the Eclipse Bug DB. It looks like they have a solution, but I haven’t tried it yet.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=154984
Joe
kfreemanMemberThe referenced fix definitely worked for me, and this problem has been irritating me for some time now.
To summarize the steps for others that want to fix this problem:
1. Exit Eclipse
2. Delete the existing org.eclipse.jdt.core_3.2.3.v_686_R32x.jar from the plugins directory
3. Add org.eclipse.jdt.core_3.2.3.z20070319-1931.jar (from here: http://www.eclipse.org/jdt/core/patches/org.eclipse.jdt.core_3.2.3.z20070319-1931.jar) to this same plugins directory
4. Restart Eclipse
-
AuthorPosts