[junitee-user] Servlet throws a null pointer exception
Brought to you by:
o_rossmueller
|
From: Drake P. <dph...@sa...> - 2011-10-19 20:36:23
|
I am running this in RAD 7.5.4. I am having the same null pointer issue described here. http://www.coderanch.com/t/422297/Testing/JunitEE I have all the correct jars in the WEB-INF lib directory of my Dynamic Web Project. [10/19/11 15:27:30:407 EDT] 00000024 servlet I com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: [WC] [/junit] [JUnitEEServlet]: Initialization successful. [10/19/11 15:27:30:422 EDT] 00000024 servlet E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods of the servlet JUnitEEServlet in application WC. Exception created : java.lang.NullPointerException at org.junitee.servlet.JUnitEEServlet.streamResource(JUnitEEServlet.java:251) at org.junitee.servlet.JUnitEEServlet.doGet(JUnitEEServlet.java:119) Can someone elaborate on this comment? You will have to create the object of TestRunner Class in your servlet and then call the run method on this object. Then Pass the TestRunnerResult Object to create the object of OutputProducer class . Call render() method on this object of OutputProducer Class. -- Thanks! Drake Philbrook |