File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes MalformedURLException while testing Actionservlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "MalformedURLException while testing Actionservlets" Watch "MalformedURLException while testing Actionservlets" New topic

MalformedURLException while testing Actionservlets


Joined: Mar 04, 2003
Posts: 3
Hi there,

I've got the following problem:

While trying to run an ActionServletTest with Mock strutstest i get the following error: java.lang.NullPointerException
at<init>( Code))
at org.apache.xerces.impl.XMLEntityManager.startEntity(
at org.apache.xerces.impl.XMLEntityManager.startDocumentEntity(
at org.apache.xerces.impl.XMLDocumentScannerImpl.setInputSource(
at org.apache.xerces.parsers.StandardParserConfiguration.parse(
at org.apache.xerces.parsers.StandardParserConfiguration.parse(
at org.apache.xerces.parsers.XMLParser.parse(
at org.apache.xerces.parsers.AbstractSAXParser.parse(
at org.apache.commons.digester.Digester.parse(
at org.apache.struts.action.ActionServlet.initServlet(
at org.apache.struts.action.ActionServlet.init(
at javax.servlet.GenericServlet.init(
at servletunit.struts.MockStrutsTestCase.getActionServlet(
at servletunit.struts.MockStrutsTestCase.actionPerform(
at nl.iza.reis.informatieverzoek.actions.InformatieVerzoekActionTest.testVerstuurInformatieVerzoekMetOntbrekendeDrukwerkId(
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(
at junit.framework.TestCase.runBare(
at junit.framework.TestResult$1.protect(
at junit.framework.TestResult.runProtected(
at junit.framework.TestSuite.runTest(
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(

It starts when the actionPerform() methode is called in the testmethode. I'm using IBM websphere 5.0. It seems that the struts-config.xml cannot be found. I checked the url but and thats the correct url.

Tried to find it with google but without succes.

Thanks in forward!
I agree. Here's the link:
subject: MalformedURLException while testing Actionservlets
It's not a secret anymore!