Skip to Content
0
Former Member
Oct 19, 2006 at 04:17 PM

IConnection-get|ConnectionEx(spec) throwing null pointer exception

44 Views

Hi,

I closed a thread recenly and here is another one.

I have to fetch some data from MDM and bring it to my Web Dynpro application.

		IConnectionSpec spec = connectionFactory.getConnectionSpec();

		spec.setPropertyValue("UserName", "User");
		spec.setPropertyValue("Password", "User");
		spec.setPropertyValue("Server", "<IP ADDress>");
		spec.setPropertyValue("Port", "XXXX");
		spec.setPropertyValue("RepositoryLanguage", "English[US]");
	
		try{
			IConnection connection = connectionFactory.getConnectionEx(spec);
		}
		catch(ConnectionFailedException cfe){
		}
		catch(ConnectorException ce){
		}
		catch(Exception e){
			throw new Exception(e.toString());
		}

I am getting Null Pointer exception..

Does it mean that properties i am hardcoding are wrong?

Kindly let me know what could possibly be wrong here...