• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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..
 
Ranch Hand
Posts: 672
4
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The servlet cannot establish a connection to the database, it tells authentication failed, are you sure, you are giving the correct credentials?
 
mallikarjun dontamsetti
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 672
4
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you connect to oracle database from your laptop?
 
mallikarjun dontamsetti
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes i can access the data base from sql developer and shared folders in server but application is showing this server communication error
reply
    Bookmark Topic Watch Topic
  • New Topic