com.meterware.httpunit.HttpInternalErrorException: Error on

Modérateurs : graffion, jmdouin, agoncal, mlebihan

sboudi
Messages : 8
Inscription : 27 nov. 2016 21:38

com.meterware.httpunit.HttpInternalErrorException: Error on

Message par sboudi » 27 nov. 2016 21:41

Mes tests avec l'API HttpUnit ne passent pas et j'obtient l'excepton suivante :
com.meterware.httpunit.HttpInternalErrorException: Error on HTTP request: 500 Internal Error [http://localhost:8080/barkbank/creditca ... ditCard%3E]
at com.meterware.httpunit.WebClient.validateHeaders(WebClient.java:573)
at com.meterware.httpunit.WebClient.updateClient(WebClient.java:464)
at com.meterware.httpunit.WebWindow.updateWindow(WebWindow.java:139)
at com.meterware.httpunit.WebWindow.getSubframeResponse(WebWindow.java:130)
at com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:121)
at com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:102)
at com.meterware.httpunit.WebClient.getResponse(WebClient.java:87)
at com.barkbank.verifier.VerifyCreditCardServletTest.sendToServletAndGetStatus(VerifyCreditCardServletTest.java:117)
at com.barkbank.verifier.VerifyCreditCardServletTest.testBarkBankVerifyInvalidXMLDocument(VerifyCreditCardServletTest.java:101)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:121)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

Par ailleurs, le test de detection de la servlet est KO pour la Servlet VerifyCreditCardServlet. Si quelqu'un a eu le meme soucis...

LUYI
Messages : 4
Inscription : 16 nov. 2016 10:52

Re: com.meterware.httpunit.HttpInternalErrorException: Error

Message par LUYI » 30 nov. 2016 1:32

Bonjour:

HttpInternalErrorException means there is an error in your HttpServlet.
and the Trace you showed to us meant nothing because it only showed the exception trace outside the servlet.
I suggest you to add "e.printStackTrace();" to catch the exception trace in the HttpServlet after the following line:
at com.barkbank.verifier.VerifyCreditCardServletTest.sendToServletAndGetStatus(VerifyCreditCardServletTest.java:117)
then you can analyze what is going on with your servlet , all you can show it to me .
I would like to help.

Répondre

Qui est en ligne ?

Utilisateurs parcourant ce forum : Bing [Bot] et 1 invité