Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329067 - Could not create handle problems
Summary: Could not create handle problems
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: UI (show other bugs)
Version: 2.1.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 2.1.2   Edit
Assignee: AJDT-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 329066 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-10-29 13:09 EDT by Andrew Clement CLA
Modified: 2010-11-05 03:54 EDT (History)
2 users (show)

See Also:


Attachments
my sts version (4.03 KB, text/plain)
2010-11-04 14:45 EDT, liuwenhao CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Clement CLA 2010-10-29 13:09:10 EDT
Seem to be accumulating lots of these in my error log working with petclinic. are they waiting on an AJ fix?

Could not create a Java element with handle:
=petclinic/src\/main\/java<com.springsource.petclinic.domain*Pet_Roo_Entity.aj'Pet_Roo_Entity)Pet.entityManager!2
java.lang.RuntimeException
	at org.eclipse.ajdt.core.model.AJProjectModelFacade.getRelationshipsForElement(AJProjectModelFacade.java:881)
	at org.eclipse.ajdt.core.model.AJProjectModelFacade.getRelationshipsForElement(AJProjectModelFacade.java:857)
	at org.eclipse.ajdt.core.javaelements.ITDAwareSourceTypeInfo.getITDs(ITDAwareSourceTypeInfo.java:162)
	at org.eclipse.ajdt.core.javaelements.ITDAwareSourceTypeInfo.augmentChildrenAndHierarchy(ITDAwareSourceTypeInfo.java:138)
	at org.eclipse.ajdt.core.javaelements.ITDAwareSourceTypeInfo.<init>(ITDAwareSourceTypeInfo.java:100)
	at org.eclipse.ajdt.core.codeconversion.ITDAwareNameEnvironment.find(ITDAwareNameEnvironment.java:103)
	at org.eclipse.jdt.internal.core.SearchableEnvironment.findType(SearchableEnvironment.java:287)
	at org.eclipse.jdt.internal.core.CancelableNameEnvironment.findType(CancelableNameEnvironment.java:45)
	at
Comment 1 Andrew Eisenberg CLA 2010-10-29 14:29:10 EDT
I'm seeing that too.  Investigating.
Comment 2 Andrew Eisenberg CLA 2010-10-29 14:43:10 EDT
Looks like AJDT was getting tripped up over the fact that there was an entityManager ITD field and an entityManager() ITD method.

Fixed now.  I want to add a few tests for this, though.
Comment 3 Andrew Eisenberg CLA 2010-10-29 14:43:35 EDT
*** Bug 329066 has been marked as a duplicate of this bug. ***
Comment 4 Andrew Eisenberg CLA 2010-11-02 12:55:18 EDT
Fixed and committed.
Comment 5 liuwenhao CLA 2010-11-04 14:45:18 EDT
Created attachment 182411 [details]
my sts version

I am sorry.
i upgrade the new version(modify date 2.1.2.e36x-20101101-1400),but it still not working.

My sts still show a message"Rebuild project.Not crosscutting model available".

and i am sorry,i have nothing to this job.can you seem that again.thank you.

with my wish.
wenhao liu
Comment 6 liuwenhao CLA 2010-11-04 14:46:28 EDT
(In reply to comment #4)
> Fixed and committed.


reply this would send you mail? please help me.
Comment 7 Andrew Eisenberg CLA 2010-11-04 18:36:21 EDT
We have not had a successful build in a few days due to some unrelated test failures on the build server.  I have just promoted the last build to being available on the dev update site.  Please try updating again and let me know if you still have the problem.
Comment 8 liuwenhao CLA 2010-11-05 03:54:13 EDT
(In reply to comment #7)
> We have not had a successful build in a few days due to some unrelated test
> failures on the build server.  I have just promoted the last build to being
> available on the dev update site.  Please try updating again and let me know if
> you still have the problem.



Great.Good job.It's working.thank you very much. bug is fixed!