reset password
Author Message
nahmed5
Posts: 57
Posted 20:49 Jan 24, 2014 |

Hi,

I have finished my hw1 & it works perfectly on Eclipse. But after deploying it on CS3, it doesn't run on it. I get the following error:

HTTP Status 500 - Servlet.init() for servlet cs320.hw1.servelet.AdvisingForm threw exception


type Exception report

message Servlet.init() for servlet cs320.hw1.servelet.AdvisingForm threw exception

description The server encountered an internal error that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet.init() for servlet cs320.hw1.servelet.AdvisingForm threw exception
	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
	org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
	org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
	org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
	org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
	java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	java.lang.Thread.run(Thread.java:724)

 

root cause

java.lang.NullPointerException
	cs320.hw1.servelet.AdvisingForm.init(AdvisingForm.java:65)
	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
	org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
	org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
	org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
	org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
	java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	java.lang.Thread.run(Thread.java:724)

 

note The full stack trace of the root cause is available in the Apache Tomcat

 I have tried last one hour to resolve the issue by deleting/ reloading files. But still getting the same error. Please, help.

PS- My hw0 & Lab1 worked on CS3.

saman_saeedi
Posts: 3
Posted 21:12 Jan 24, 2014 |

Did you upload your undergrad_courses.txt file ?

nahmed5
Posts: 57
Posted 21:20 Jan 24, 2014 |

Nope. Uploading it & letting U know. Thanks!

 

nahmed5
Posts: 57
Posted 21:24 Jan 24, 2014 |

Working now. Thanks a lot! Such a trivial mistake!