Module :16 : REST API Issue Not able to HTTP Status 404 - /Retail_App_Rest/ | Soapui Tutorial |Soapui Training |Web services testing

SOAPUI Training Forum

Module :16 : REST API Issue Not able to HTTP Status 404 - /Retail_App_Rest/

J
Jayshree Gupta Post on 23/11/2019

Hi Ashish , 

As per the Module 16 instructions I have installed Apache Tomcat and started the application

I have deployed the application in the "C:Program Files\Apache Software Foundation\Tomcat 6.0\webapps"

I have also started the mysql database 

but REST API test cases are made then I got the error as :

HTTP Status 404 - /Retail_App_Rest/


type Status report

message /Retail_App_Rest/

description The requested resource is not available.


Apache Tomcat/6.0.37

 

I have also attached the screenshot of the REST API test case Request :

{
"username": "admin",
"password": "whizdom"
}

I have also attached the screenshot of the REST API test case Response :

<html>
<head>
<meta content="HTML Tidy for Java (vers. 27 Sep 2004), see www.w3.org" name="generator"/>
<title>Apache Tomcat/6.0.37 - Error report</title>
<style type="text/css">&lt;!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style>
</head>
<body>
<h1>HTTP Status 500 -</h1>
<hr noshade="noshade" size="1"/>
<p>
<b>type</b>
Exception report
</p>
<p>
<b>message</b>
</p>
<p>
<b>description</b>
<u>The server encountered an internal error that prevented it from fulfilling this request.</u>
</p>
<p>
<b>exception</b>
</p>
<pre>java.lang.NullPointerException
java.io.Reader.&lt;init>(Unknown Source)
java.io.InputStreamReader.&lt;init>(Unknown Source)
util.Validate.getStringFromInputStream(Validate.java:119)
util.Validate.validateLogin(Validate.java:46)
admin.Admin.loginAdmin(Admin.java:50)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511)
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442)
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)
com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)</pre>
<br/>
<br/>
<p>
<b>note</b>
<u>The full stack trace of the root cause is available in the Apache Tomcat/6.0.37 logs.</u>
</p>
<hr noshade="noshade" size="1"/>
<h3>Apache Tomcat/6.0.37</h3>
</body>
</html>

 

 

S
Support Team Reply on 30/11/2019

Please refer this annoucement made few days back:

https://www.whizdomtraining.com/user/notification