aspose file tools*
The moose likes Servlets and the fly likes Internal Servlet Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Internal Servlet Error" Watch "Internal Servlet Error" New topic
Author

Internal Servlet Error

Eric Howell
Ranch Hand

Joined: Nov 26, 2000
Posts: 63
I am getting the following Internal Servlet Error. Is it something to do with my packages?
My classes are in C:\tomcat\webapps\examples\WEB-INF\classes
I have 1 servlet and 2 javabeans at the moment under the package 'portal' eg portal.UrlServlet.class, portal.UrlSortBean
My form includes:
<FORM ACTION = "servlet/UrlServlet" METHOD = "post">
Here is my error
java.lang.NullPointerException
at java.lang.ClassLoader.resolveClass0(Native Method)
at java.lang.ClassLoader.resolveClass(ClassLoader.java:597)
at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:518)
at org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoader.java:174)
at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:265)
at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
at org.apache.tomcat.core.Handler.service(Handler.java:254)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:579)
Thanks for the help in advance. I think its something simple.
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Your error "java.lang.NullPointerException" is a very common error. It seems like an object is not initialized. It's kind of hard to tell though, without seeing more code.

Bosun


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Eric Howell
Ranch Hand

Joined: Nov 26, 2000
Posts: 63
Originally posted by Bosun Bello:
Your error "java.lang.NullPointerException" is a very common error. It seems like an object is not initialized. It's kind of hard to tell though, without seeing more code.

Bosun

Thanks Bosun
You were right. It was to do with some of my other code. My mind was so focused on another cause, I missed the obvious.Live and learn.
Cheers very much for the help anyway.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Internal Servlet Error