Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 329067

Summary: Could not create handle problems
Product: [Tools] AJDT Reporter: Andrew Clement <aclement>
Component: UIAssignee: AJDT-inbox <AJDT-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: andrew.eisenberg, sjbwylbs
Version: 2.1.1   
Target Milestone: 2.1.2   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
my sts version none

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!