Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » null PerProjectInfo causing exception
null PerProjectInfo causing exception [message #220523] Tue, 13 December 2005 18:31 Go to next message
Joan Haggarty is currently offline Joan HaggartyFriend
Messages: 5
Registered: July 2009
Junior Member
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?

thanks, Joan.

IWAB0503E Unable to update Java build path. Please check your system
environment.
Java Model Exception: Java Model Status [Servers does not exist]
at
org.eclipse.jdt.internal.core.JavaElement.newNotPresentExcep tion(JavaElement.java:468)
at
org.eclipse.jdt.internal.core.JavaModelManager.getPerProject InfoCheckExistence(JavaModelManager.java:1223)
at
org.eclipse.jdt.internal.core.JavaProject.getPerProjectInfo( JavaProject.java:1792)
at
org.eclipse.jdt.internal.core.JavaProject.getRawClasspath(Ja vaProject.java:1849)
at
org.eclipse.jdt.internal.core.JavaProject.getRawClasspath(Ja vaProject.java:1835)
Re: null PerProjectInfo causing exception [message #220529 is a reply to message #220523] Tue, 13 December 2005 18:41 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: null PerProjectInfo causing exception [message #220541 is a reply to message #220536] Tue, 13 December 2005 19:35 Go to previous message
Joan Haggarty is currently offline Joan HaggartyFriend
Messages: 5
Registered: July 2009
Junior Member
Rich & Oliver,

Thanks for your responses. The comment about JavaCore.create sent me off
in the direction to solve the problem which lies in my code not jdt.
Previous Topic:Installing J2EE
Next Topic:APT Troubles
Goto Forum:
  


Current Time: Fri Apr 19 01:43:43 GMT 2024

Powered by FUDForum. Page generated in 0.01903 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top