Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

MalformedURLException while testing Actionservlets

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 love a good mentalist. And so does this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!