File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost/HSMS/xmlcomm. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost/HSMS/xmlcomm." Watch "java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost/HSMS/xmlcomm." New topic
Author

java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost/HSMS/xmlcomm.

mallikarjun dontamsetti
Ranch Hand

Joined: Mar 18, 2011
Posts: 243

Hi,
I have an application that is developed on SWINGS and applet and servlet. My database will be on different system(server oracle database) and when i try to run the application it is giving the fallowing errors

java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost/HSMS/xmlcomm.do
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1241)
at mil.navy.hsms.xmlcomm.client.HSMSCommManager.sendReceiveEvent(HSMSCommManager.java:241)
at mil.navy.hsms.xmlcomm.client.HSMSCommManager.postEventSync(HSMSCommManager.java:128)
at mil.navy.hsms.xmlcomm.client.HSMSCommManager.postEvent(HSMSCommManager.java:115)
at mil.navy.hsms.client.ModelProxy$Implementation.hsmsEventHappened(ModelProxy.java:63)
at mil.navy.hsms.events.HSMSEventPublisher$Implementation.processHSMSEvent(HSMSEventPublisher.java:133)
at mil.navy.hsms.logon.client.HSMSLogin.processEventer(HSMSLogin.java:250)
at mil.navy.hsms.client.MainClientController.startApp(MainClientController.java:159)
at mil.navy.hsms.client.HSMSApplet.main(HSMSApplet.java:45)

my server error log is
[20/Jul/2011:17:04:40] info ( 2224): CORE3282: stdout: XMLCommServlet-17689439 Info: [] Error: Authentication has failed. Error as follows:com.rp.database.ConnectionManagerBroker::getConnectionManager::SQLException java.sql.SQLException: ConnectionPool:init()::SQLException--java.sql.SQLException: ConnectionPool:createConnection::SQLException java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
[20/Jul/2011:17:04:40] failure ( 2224): for host 127.0.0.1 trying to POST /HSMS/xmlcomm.do, service-j2ee reports: StandardWrapperValve[xmlcomm]: WEB2792: Servlet.service() for servlet xmlcomm threw exception
java.lang.NullPointerException
at mil.navy.hsms.logon.LogonHSMSEvent.accept(LogonHSMSEvent.java:16)
at mil.navy.hsms.xmlcomm.server.XMLCommServlet.processRequest(XMLCommServlet.java:301)
at mil.navy.hsms.xmlcomm.server.XMLCommServlet.doPost(XMLCommServlet.java:54)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:807)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:580)


Please help me..
Prasad Krishnegowda
Ranch Hand

Joined: Apr 25, 2010
Posts: 510

The servlet cannot establish a connection to the database, it tells authentication failed, are you sure, you are giving the correct credentials?


Regards, Prasad
SCJP 5 (93%)
mallikarjun dontamsetti
Ranch Hand

Joined: Mar 18, 2011
Posts: 243

We make this application some modifications as client requested that he don't want to enter user name and password then we remove that one give access to application directly.
It works fine in all systems but when we try it in a new laptop it is shoeing this error
Prasad Krishnegowda
Ranch Hand

Joined: Apr 25, 2010
Posts: 510

Can you connect to oracle database from your laptop?
mallikarjun dontamsetti
Ranch Hand

Joined: Mar 18, 2011
Posts: 243

yes i can access the data base from sql developer and shared folders in server but application is showing this server communication error
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost/HSMS/xmlcomm.