[rules-users] NPE while creating Session using SimpleCredentials

Praveen praveen.sanju at gmail.com
Thu Nov 10 08:55:38 EST 2011


Hi,

I am getting NPE at line 3, I doubt if SimpleCredentials is an issue over
here.
Please provide inputs if someone has faced the same.


try {
			Repository repository = configurator.getJCRRepository(
repositoryHomeDirectory );
			Credentials credentials = new SimpleCredentials("admin",
"admin".toCharArray());
	//line 3      Session session = repository.login(credentials,
"production");
			Node node = session.getRootNode();
			System.out.println("root node path: " + node.getPath());
		} catch (Exception e) {
			e.printStackTrace();
		}

TIA.

Regards,
Praveen.

--
View this message in context: http://drools.46999.n3.nabble.com/NPE-while-creating-Session-using-SimpleCredentials-tp3496768p3496768.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list