Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365861 - Whenever I run a servlet using 'Run on server' option it displays a HTTP Staus 500 error window
Summary: Whenever I run a servlet using 'Run on server' option it displays a HTTP Stau...
Status: NEW
Alias: None
Product: WTP ServerTools
Classification: WebTools
Component: jst.server (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: jst.server CLA
QA Contact: Elson Yuen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-07 05:06 EST by Gopinath CLA
Modified: 2011-12-08 17:39 EST (History)
0 users

See Also:


Attachments
screenshot of the error window (89.68 KB, image/png)
2011-12-07 05:10 EST, Gopinath CLA
no flags Details
Source code of my servlet & jsp (2.92 KB, text/plain)
2011-12-07 05:29 EST, Gopinath CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gopinath CLA 2011-12-07 05:06:00 EST
Build Identifier: Version: 3.4.1  Build ID : M20080911-1700

Dec 7, 2011 3:24:59 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Cart1' did not find a matching property.
Dec 7, 2011 3:24:59 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: Q:\tcat6020\Java\jre1.6.0_03\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;Q:/tcat6020/Java/jre1.6.0_03/bin/client;Q:/tcat6020/Java/jre1.6.0_03/bin;Q:\ECJ2EE.340\VFS\CSIDL_SYSTEM\;Q:\ECJ2EE.340\VFS\CSIDL_WINDOWS\;C:\Program Files\Microsoft Application Virtualization Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Windows Imaging\;C:\Program Files\Microsoft Application Virtualization Client;ORACLE_HOME\bin;Q:\ecj2ee.340\Java\jdk1.5.0_18\bin;
Dec 7, 2011 3:24:59 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 7, 2011 3:24:59 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 369 ms
Dec 7, 2011 3:24:59 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 7, 2011 3:24:59 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
Dec 7, 2011 3:24:59 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Dec 7, 2011 3:24:59 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Dec 7, 2011 3:24:59 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/25  config=null
Dec 7, 2011 3:24:59 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 358 ms
Dec 7, 2011 3:26:02 PM org.apache.catalina.core.StandardWrapperValve invoke

SEVERE: Servlet.service() for servlet ShopCart threw exception
java.lang.NullPointerException
	at model.ShopCart.doPost(ShopCart.java:52)
	at model.ShopCart.doGet(ShopCart.java:34)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
	at java.lang.Thread.run(Unknown Source)


Reproducible: Always
Comment 1 Gopinath CLA 2011-12-07 05:10:29 EST
Created attachment 208043 [details]
screenshot of the error window
Comment 2 Gopinath CLA 2011-12-07 05:12:05 EST
Eclipse Ganymede
Version: 3.4.1
Build id: M20080911-1700
Comment 3 Gopinath CLA 2011-12-07 05:29:11 EST
Created attachment 208045 [details]
Source code of my servlet & jsp