It turns out the reason for this NullPointerException is because I overrode setup() and tearDown() in my subclass of DeployingTestCase without calling super for each method.
Frank -----Original Message----- From: Frank Wilson [mailto:[email protected]] Sent: 19 May 2010 11:36 To: [email protected] Subject: [Smartfrog-users] nullpointer exception on deployment In a TestCase that extends DeployingTestBase I am getting a NullPointerException when trying to do a deployment using expectSuccessfulTestRun(package,"script"). SmartFrogException:: java.lang.NullPointerException, SmartFrog 3.17.014 (2009-07-28 16:40:51 BST) at org.smartfrog.sfcore.common.SmartFrogException.forward(SmartFrogException.ja va:92) at org.smartfrog.sfcore.common.ActionDeploy.Deploy(ActionDeploy.java:192) at org.smartfrog.sfcore.common.ActionDeploy.doDeploy(ActionDeploy.java:297) at org.smartfrog.sfcore.common.ActionDeploy.execute(ActionDeploy.java:272) at org.smartfrog.sfcore.common.ConfigurationAction.execute(ConfigurationAction. java:110) at org.smartfrog.sfcore.common.ConfigurationDescriptor.execute(ConfigurationDes criptor.java:1076) at org.smartfrog.SFSystem.runConfigurationDescriptor(SFSystem.java:353) at org.smartfrog.test.DeployingTestBase$ApplicationLoaderThread.execute(Deployi ngTestBase.java:215) at org.smartfrog.sfcore.utils.SmartFrogThread.run(SmartFrogThread.java:279) Caused by: java.lang.NullPointerException at org.smartfrog.sfcore.common.ActionDeploy.Deploy(ActionDeploy.java:155) ... 7 more Any idea what's causing this? A week ago this happened to me, when I renamed the test class it went away. Now the error is back again. Interestingly when I put this code in the place of expectSucessfulTestRun no exceptions are thrown, so there can't be a problem reading the script. URL sfURL = getClass().getResource(package+"script.sf"); InputStream is = sfURL.openConnection().getInputStream(); is.read(); is.close(); Thanks, Frank Wilson ---------------------------------------------------------------------------- -- _______________________________________________ Smartfrog-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/smartfrog-users ------------------------------------------------------------------------------ _______________________________________________ Smartfrog-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/smartfrog-users
