|
Re: null PerProjectInfo causing exception [message #220529 is a reply to message #220523] |
Tue, 13 December 2005 18:41 |
Eclipse User |
|
|
|
Originally posted by: olivier_thomann.NOca.ibm.comSPAM
Joan Haggarty a écrit :
>
> I have some code that uses JavaCore.create() to create a IJavaProject
> from a dynamic web project. The code then attempts to get the classpath
> from that Java project using getRawClasspath(). The JavaProject object
> seems to be created ok but an exception is thrown in the process of
> retrieving the classpath. The jdt portion of the exception is shown below.
>
> Debugging this, I've traced to
> JavaModelManager.getPerProjectInfoCheckExistence().
> The PerProjectInfo returned by getPerProjectInfo is null so
> the newNotPresentException is thrown.
> Does anyone have an idea why the PerProjectInfo might be coming back as
> null?
You should open a bug report against JDT/Core with steps to reproduce
and build id.
Thanks.
--
Olivier
|
|
|
Re: null PerProjectInfo causing exception [message #220536 is a reply to message #220523] |
Tue, 13 December 2005 18:42 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Is the dynamic web project a java project already? JavaCore.create()
doesn't make a standard project to also have a java project nature. It
simply creates a handle for the IJavaProject. The project may not even
exist. Nor will it turn the project without a java nature into one with
the java nature on it.
--
Thanks,
Rich Kulp
|
|
|
|
Powered by
FUDForum. Page generated in 0.03123 seconds