Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » DTP -> ProfileManager.getInstance() throws NullPointerException
DTP -> ProfileManager.getInstance() throws NullPointerException [message #165036] Mon, 27 March 2006 15:46 Go to next message
Eclipse UserFriend
Originally posted by: eclipse.lokahl.de

Hi all,

I'm trying to use the org.eclipse.datatools.connectivity.ProfileManager
in order to get access to stored connection profiles.

Following code results in a NullPointerException:


ProfileManager pm = ProfileManager.getInstance();
IConnectionProfile[] profiles = pm.getProfiles();
for (int i = 0; i < profiles.length; i++) {
IConnectionProfile profile = profiles[i];
System.out.println(profile.getName());
}
}
}


#############################

java.lang.NullPointerException
at
org.eclipse.datatools.connectivity.internal.InternalProfileM anager.loadProfiles(InternalProfileManager.java:465)
at
org.eclipse.datatools.connectivity.internal.InternalProfileM anager.getProfiles(InternalProfileManager.java:66)
at
org.eclipse.datatools.connectivity.ProfileManager.getProfile s(ProfileManager.java:42)

#############################

Any suggestions on what I do wrong?

Regards,
Lorenz
Re: DTP -> ProfileManager.getInstance() throws NullPointerException [message #657920 is a reply to message #165036] Fri, 04 March 2011 15:43 Go to previous message
Marou is currently offline MarouFriend
Messages: 11
Registered: July 2010
Junior Member
I have the same problem.

How to resolve this issues?
Previous Topic:JSP editor error handling
Next Topic:Extending moduleArtifactAdapters
Goto Forum:
  


Current Time: Thu Dec 18 07:30:53 GMT 2014

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

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