There is a singleton pattern being used. Try using Java_SPLPolicyRuleProvider.getInstance().
public static synchronized Java_SPLPolicyRuleProvider getInstance() throws SPLException David Wood Computing Systems for Wireless Networks IBM TJ Watson Research Center daw...@us.ibm.com 914-784-5123 (office), 914-396-6515 (mobile) From: Neeraj Joshi/Durham/i...@ibmus To: nicola carminati <djni...@hotmail.it> Cc: imperius-dev@incubator.apache.org Date: 10/27/2010 02:07 PM Subject: fw: Problem with JavaSPL David, Did we move to a factory based methodology ? Can you please comment Thanks Neeraj ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "It is hard enough to remember my opinions, without also remembering my reasons for them". -Friedrich Wilhelm Nietzsche Neeraj Joshi (knee-rudge) WebSphere XD - Compute Grid AIM, IBM Apache Imperius - http://incubator.apache.org/imperius ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From: nicola carminati <djni...@hotmail.it> To: Neeraj Joshi/Durham/i...@ibmus Date: 10/27/2010 12:42 PM Subject: Problem with JavaSPL Dear Neeraj Joshi, we have some problems with java-spl plugin. We try to compile your example (http://www.ibm.com/developerworks/autonomic/library/ac-spl/) and we have a trouble. Can you help us? the error is in this instruction: Java_SPLPolicyRuleProvider jspl = new Java_SPLPolicyRuleProvider(); the constructor is private. In the attachement there is our eclipse project. Thank you so much. B.R. Andrea Busi Nicola Carminati Marco Santacatterina [attachment "policySanta.rar" deleted by Neeraj Joshi/Durham/IBM]