Thread-47 java.lang.NullPointerException

2005-08-18 Thread shashidhar.vutukuru

hi ,

I click and browse through some of the features accessing applets in
the application, quite often I get the following  Null Pointer
Exception  in  the java console.
I really do not understand the cause of the problem.I am using
tomcat4.1.

the error is :
Exception in thread Thread-47 java.lang.NullPointerException

at sun.plugin.util.GrayBoxPanel.paint(Unknown Source)

at sun.plugin.util.GrayBoxPanel.setImage(Unknown Source)

at sun.plugin.util.GrayBoxPanel.setCustomImage(Unknown Source)

at sun.plugin.util.GrayBoxPainter.getGrayBoxPanel(Unknown Source)

at sun.plugin.util.GrayBoxPainter.paintGrayBox(Unknown Source)

at sun.plugin.util.GrayBoxPainter.repaintGrayBox(Unknown Source)

at sun.plugin.util.GrayBoxPainter.access$000(Unknown Source)

at sun.plugin.util.GrayBoxPainter$1.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)



Next time when I repeat the same scenario I get the following:

Exception in thread Thread-182 java.lang.NullPointerException

at sun.plugin.util.GrayBoxPanel.paint(Unknown Source)

at sun.plugin.util.GrayBoxPanel.setImage(Unknown Source)

at sun.plugin.util.GrayBoxPanel.setCustomImage(Unknown Source)

at sun.plugin.util.GrayBoxPainter.getGrayBoxPanel(Unknown Source)

at sun.plugin.util.GrayBoxPainter.paintGrayBox(Unknown Source)

at sun.plugin.util.GrayBoxPainter.repaintGrayBox(Unknown Source)

at sun.plugin.util.GrayBoxPainter.access$000(Unknown Source)

at sun.plugin.util.GrayBoxPainter$1.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)



 I do not  really know if it is really a Tomcat issue or not..

 Any help or pointers would be of immense help.

Thanks in advance.

--shashi




Confidentiality Notice

The information contained in this electronic message and any attachments to 
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or 
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

Re: Thread-47 java.lang.NullPointerException

2005-08-18 Thread Mark Thomas
Applets are a client side technology not a server side one. This means 
that applets are executed by browsers, not by Tomcat. As far as Tomcat 
is concerned, an applet is just a file delivered to the browser.


This is a bug in the applet you are using or possibly an error in the 
way you are using it.


Also, if you look at the stack trace, it is all from the 
sun.plugin.util.GrayBoxPanel class which is not a Tomcat class.


Mark

[EMAIL PROTECTED] wrote:

hi ,


I click and browse through some of the features accessing applets in
the application, quite often I get the following  Null Pointer
Exception  in  the java console.
I really do not understand the cause of the problem.I am using
tomcat4.1.



the error is :

Exception in thread Thread-47 java.lang.NullPointerException

at sun.plugin.util.GrayBoxPanel.paint(Unknown Source)

at sun.plugin.util.GrayBoxPanel.setImage(Unknown Source)

at sun.plugin.util.GrayBoxPanel.setCustomImage(Unknown Source)

at sun.plugin.util.GrayBoxPainter.getGrayBoxPanel(Unknown Source)

at sun.plugin.util.GrayBoxPainter.paintGrayBox(Unknown Source)

at sun.plugin.util.GrayBoxPainter.repaintGrayBox(Unknown Source)

at sun.plugin.util.GrayBoxPainter.access$000(Unknown Source)

at sun.plugin.util.GrayBoxPainter$1.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)





Next time when I repeat the same scenario I get the following:

Exception in thread Thread-182 java.lang.NullPointerException

at sun.plugin.util.GrayBoxPanel.paint(Unknown Source)

at sun.plugin.util.GrayBoxPanel.setImage(Unknown Source)

at sun.plugin.util.GrayBoxPanel.setCustomImage(Unknown Source)

at sun.plugin.util.GrayBoxPainter.getGrayBoxPanel(Unknown Source)

at sun.plugin.util.GrayBoxPainter.paintGrayBox(Unknown Source)

at sun.plugin.util.GrayBoxPainter.repaintGrayBox(Unknown Source)

at sun.plugin.util.GrayBoxPainter.access$000(Unknown Source)

at sun.plugin.util.GrayBoxPainter$1.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)





 I do not  really know if it is really a Tomcat issue or not..

 Any help or pointers would be of immense help.

Thanks in advance.


--shashi




Confidentiality Notice


The information contained in this electronic message and any attachments to 
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or 
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



java.lang.NullPointerException in tomcat 5.5.4

2005-01-03 Thread ssk 2001
Hi

I installed tomcat 5.5.4 ,jdk1.5 and beanfactory 1.0.1. When run the 
application it gave the error which is shown below , Pls can anyone help it 
solve this..
HTTP STATUS ERROR 500

-


type Exception report

message 

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

exception 
org.apache.jasper.JasperException 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373) 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)



root cause 
java.lang.NullPointerException 
gnu.beanfactory.PropertiesDefinitionLoader.mergeResource(PropertiesDefinitionLoader.java:201)
 
gnu.beanfactory.ServletContextDefinitionLoader.mergeServletResource(ServletContextDefinitionLoader.java:37)
 
gnu.beanfactory.ServletContextDefinitionLoader.init(ServletContextDefinitionLoader.java:95)
 
gnu.beanfactory.BeanContext.initializeServletContextDefinitionLoader(BeanContext.java:122)
 gnu.beanfactory.BeanContext.getDefinitionLoader(BeanContext.java:99) 
gnu.beanfactory.BeanFactory.getDefinitionLoader(BeanFactory.java:47) 
gnu.beanfactory.BeanFactory.getObjectInstance(BeanFactory.java:55) 
gnu.beanfactory.BeanContext.lookup(BeanContext.java:138) 
gnu.beanfactory.BeanContext.lookup(BeanContext.java:151) 
gnu.beanfactory.BeanContext.lookupHandle(BeanContext.java:403) 
gnu.beanfactory.BeanContext.resolve(BeanContext.java:420) 
gnu.beanfactory.servlet.DigestSecurity.init(DigestSecurity.java:47) 
gnu.beanfactory.servlet.DigestSecurity.(DigestSecurity.java:57)
gnu.beanfactory.servlet.Dispatcher.process(Dispatcher.java:100) 
gnu.beanfactory.servlet.Dispatcher.dispatch(Dispatcher.java:58) 
org.apache.jsp.login_jsp._jspService(org.apache.jsp.login_jsp:101) 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:802) 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325) 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)



note The full stack trace of the root cause is available in the Apache 
Tomcat/5.5.4 logs.

-

Thanks
SSK
 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: java.lang.NullPointerException in tomcat 5.5.4

2005-01-03 Thread Mark Thomas
1. Please don't post the same message multiple times.
2. Please don't hijack another thread - it plays havoc with thread-aware 
mail clients.

You need to start a new thread and then your message may get answered.
Mark
ssk 2001 wrote:
Hi
I installed tomcat 5.5.4 ,jdk1.5 and beanfactory 1.0.1. When run the 
application it gave the error which is shown below , Pls can anyone help it 
solve this..
HTTP STATUS ERROR 500
-
type Exception report
message 

description The server encountered an internal error () that prevented it from 
fulfilling this request.
exception 
org.apache.jasper.JasperException org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause 
java.lang.NullPointerException gnu.beanfactory.PropertiesDefinitionLoader.mergeResource(PropertiesDefinitionLoader.java:201) gnu.beanfactory.ServletContextDefinitionLoader.mergeServletResource(ServletContextDefinitionLoader.java:37) gnu.beanfactory.ServletContextDefinitionLoader.init(ServletContextDefinitionLoader.java:95) gnu.beanfactory.BeanContext.initializeServletContextDefinitionLoader(BeanContext.java:122) gnu.beanfactory.BeanContext.getDefinitionLoader(BeanContext.java:99) gnu.beanfactory.BeanFactory.getDefinitionLoader(BeanFactory.java:47) gnu.beanfactory.BeanFactory.getObjectInstance(BeanFactory.java:55) gnu.beanfactory.BeanContext.lookup(BeanContext.java:138) gnu.beanfactory.BeanContext.lookup(BeanContext.java:151) gnu.beanfactory.BeanContext.lookupHandle(BeanContext.java:403) gnu.beanfactory.BeanContext.resolve(BeanContext.java:420) gnu.beanfactory.servlet.DigestSecurity.init(DigestSecurity.java:47) gnu.beanfactory.servlet.DigestSecurity.(DigestSecurity.java:57)

gnu.beanfactory.servlet.Dispatcher.process(Dispatcher.java:100) 
gnu.beanfactory.servlet.Dispatcher.dispatch(Dispatcher.java:58) 
org.apache.jsp.login_jsp._jspService(org.apache.jsp.login_jsp:101) 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:802) 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325) 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

note The full stack trace of the root cause is available in the Apache 
Tomcat/5.5.4 logs.
-
Thanks
SSK
 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


java.lang.NullPointerException in tomcat 5.5.4

2004-12-31 Thread ssk 2001
 
Hi

 I installed tomcat 5.5.4 ,jdk1.5 and beanfactory 1.0.1. When run the 
application it gave the error which is shown below , Pls can anyone help it 
solve this..
HTTP STATUS ERROR 500

-


type Exception report

message 

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

exception 
org.apache.jasper.JasperException   
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373) 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)   
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)



root cause 
java.lang.NullPointerException  
gnu.beanfactory.PropertiesDefinitionLoader.mergeResource(PropertiesDefinitionLoader.java:201)
   
gnu.beanfactory.ServletContextDefinitionLoader.mergeServletResource(ServletContextDefinitionLoader.java:37)
 
gnu.beanfactory.ServletContextDefinitionLoader.init(ServletContextDefinitionLoader.java:95)
 
gnu.beanfactory.BeanContext.initializeServletContextDefinitionLoader(BeanContext.java:122)
  gnu.beanfactory.BeanContext.getDefinitionLoader(BeanContext.java:99)
gnu.beanfactory.BeanFactory.getDefinitionLoader(BeanFactory.java:47)
gnu.beanfactory.BeanFactory.getObjectInstance(BeanFactory.java:55)  
gnu.beanfactory.BeanContext.lookup(BeanContext.java:138)
gnu.beanfactory.BeanContext.lookup(BeanContext.java:151)
gnu.beanfactory.BeanContext.lookupHandle(BeanContext.java:403)  
gnu.beanfactory.BeanContext.resolve(BeanContext.java:420)   
gnu.beanfactory.servlet.DigestSecurity.init(DigestSecurity.java:47) 
gnu.beanfactory.servlet.DigestSecurity.init(DigestSecurity.java:57)
gnu.beanfactory.servlet.Dispatcher.process(Dispatcher.java:100) 
gnu.beanfactory.servlet.Dispatcher.dispatch(Dispatcher.java:58) 
org.apache.jsp.login_jsp._jspService(org.apache.jsp.login_jsp:101)  
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)  
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325) 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)   
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)



note The full stack trace of the root cause is available in the Apache 
Tomcat/5.5.4 logs.

-

Thanks
SSK
 
 

 
 
 
 
 
 
 
 

 


-
Do you Yahoo!?
 Yahoo! Mail - Helps protect you from nasty viruses.

Re: java.lang.NullPointerException in tomcat 5.5.4

2004-12-31 Thread penpower
This email [EMAIL PROTECTED] is no longer available due to heavy spamming. 
Please visit our website http://www.alestron.com for contact info.

Thank you!





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: java.lang.NullPointerException in tomcat 5.5.4

2004-12-31 Thread penpower
This email [EMAIL PROTECTED] is no longer available due to heavy spamming. 
Please visit our website http://www.alestron.com for contact info.

Thank you!





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: java.lang.NullPointerException in tomcat 5.5.4

2004-12-31 Thread Ryan Stewart
In your login.jsp you're calling the dispatch method of 
gnu.beanfactory.servlet.Dispatcher and most likely passing it null as an 
argument. I don't know anything about this beanfactory, so I can't say much 
more at the moment.

-Original Message-
From: ssk 2001[EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Date: Fri Dec 31 00:08:20 PST 2004
Subject: java.lang.NullPointerException in tomcat 5.5.4

 I installed tomcat 5.5.4 ,jdk1.5 and beanfactory 1.0.1. When run the 
 application it gave the error which is shown below , Pls can anyone help it 
 solve this..
HTTP STATUS ERROR 500
[...]
root cause 
java.lang.NullPointerException
[...]
gnu.beanfactory.servlet.Dispatcher.dispatch(Dispatcher.java:58) 
org.apache.jsp.login_jsp._jspService(org.apache.jsp.login_jsp:101)  [...]

___
Check-out GO.com
GO get your free GO E-Mail account with expanded storage of 6 MB!
http://mail.go.com



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SEVERE: Error reading tld listeners java.lang.NullPointerException

2004-07-09 Thread Robert Hunt

Why does this happen during startup?

Jul 9, 2004 2:05:07 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-30041
Jul 9, 2004 2:05:07 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1328 ms
Jul 9, 2004 2:05:07 PM org.apache.catalina.core.StandardService start
INFO: Starting service JTProdSvc
Jul 9, 2004 2:05:07 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.25
Jul 9, 2004 2:05:08 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jul 9, 2004 2:05:09 PM org.apache.catalina.core.StandardContext start
SEVERE: Error reading tld listeners java.lang.NullPointerException
java.lang.NullPointerException
 at java.util.Arrays.sort(Unknown Source)
 at org.apache.naming.resources.FileDirContext.list(FileDirContext.java:885)
 at org.apache.naming.resources.FileDirContext.list(FileDirContext.java:306)
 at
org.apache.naming.resources.ProxyDirContext.list(ProxyDirContext.java:475)
 at
org.apache.catalina.startup.TldConfig.tldScanResourcePathsWebInf(TldConfig.j
ava:625)
 at
org.apache.catalina.startup.TldConfig.tldScanResourcePathsWebInf(TldConfig.j
ava:640)
 at
org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:59
4)
 at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:281)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4260)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
 at org.apache.catalina.core.StandardService.start(StandardService.java:476)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2298)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)


Other than this exception, the server process starts fine and runs without
issue.  I'd like to get NO exceptions during startup, especially seemingly
spurious SEVERE ones.

Thanks.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: interesting java.lang.NullPointerException error when first viewing an index.jsp page - refresh once and page loads correctly

2003-01-11 Thread Paul Yunusov
On Friday 10 January 2003 05:49 pm, Brandon Rodak wrote:
 Paul,

 Here is a link to the Java - http://www.flex-internet.com/java.txt

 Thanks again for your help

 Brandon Rodak
 Web Services
 Computer Marketing Corporation
 http://www.cmcflex.com  http://www.flex-internet.com

Brandon, the scriptlet in your jsp gets your server's cookies from the client:

Cookie[] cookies = request.getCookies();

but on the initial request, there are no cookies set by your server on any 
given client, so getCookies() returns null in accordance with the servlet 
spec. That triggers a NPE when you try to process the cookies later:

for (int i=0; icookies.length; i++) {
...
}

Put an if statement around your for loop to check if cookies is null or 
not and that should fix your problem.


Paul

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




interesting java.lang.NullPointerException error when first viewing an index.jsp page - refresh once and page loads correctly

2003-01-10 Thread Brandon Rodak
This may be a rather easy issue but with my limited knowledge of Tomcat - I
thought one of you more qualified folks would have a solution.

Whenever I visit the initial index.jsp (via index.htm as a workaround) page
I get the following server error:

java.lang.NullPointerException at
org.apache.jsp.index$jsp._jspService(index$jsp.java:75) at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
and so on

Clicking F5 or Refresh once loads the page - so you can see it is quite a
nuisance - we have implemented Apache 1.3.27 with Tomcat 4.0.6 - I have also
posted some lines of the catalina log and error logs for review below:

Catalina_Log

2003-01-09 14:48:39 Ajp13Processor[8009][7] process: invoke
java.io.IOException: Broken pipe at
java.net.SocketOutputStream.socketWrite(Native Method) at
java.net.SocketOutputStream.write(SocketOutputStream.java:91) at
org.apache.ajp.Ajp13.send(Ajp13.java:525) at
org.apache.ajp.RequestHandler.finish(RequestHandler.java:501) at
org.apache.ajp.Ajp13.finish(Ajp13.java:395) at
org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464) at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at
java.lang.Thread.run(Thread.java:479)

Error log

2003-01-09 22:38:16 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception java.lang.NullPointerException at
org.apache.jsp.index$jsp._jspService(index$jsp.java:75) at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

Any ideas on how I can remedy this issue so that the index.jsp page loads on
first hit would be greatly appreciated.

You can view the page in question here:
http://sitemaster.flex-internet.com/index.jsp

Thanks again for any and all help!

Brandon Rodak
Web Services
Computer Marketing Corporation
http://www.cmcflex.com  http://www.flex-internet.com



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: interesting java.lang.NullPointerException error when first viewing an index.jsp page - refresh once and page loads correctly

2003-01-10 Thread Paul Yunusov
On Friday 10 January 2003 04:15 pm, Brandon Rodak wrote:
 This may be a rather easy issue but with my limited knowledge of Tomcat - I
 thought one of you more qualified folks would have a solution.

 Whenever I visit the initial index.jsp (via index.htm as a workaround) page
 I get the following server error:

 java.lang.NullPointerException at
 org.apache.jsp.index$jsp._jspService(index$jsp.java:75) at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 and so on

 Clicking F5 or Refresh once loads the page - so you can see it is quite a
 nuisance - we have implemented Apache 1.3.27 with Tomcat 4.0.6 - I have
 also posted some lines of the catalina log and error logs for review below:

It might help if you post some snippets from the JSP. The stack trace for the 
NPE gives you a clue where in the JSP to look for the culprit and what 
snippet to post.

Paul

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: interesting java.lang.NullPointerException error when first viewing an index.jsp page - refresh once and page loads correctly

2003-01-10 Thread Brandon Rodak
Paul,

You can view the source of the page at
http://www.flex-internet.com/source.txt

and the full error and stack trace (?) at
http://www.flex-internet.com/error.txt

Thanks for the help,

Brandon Rodak
Web Services
Computer Marketing Corporation
http://www.cmcflex.com  http://www.flex-internet.com

-Original Message-
From: Paul Yunusov [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 10, 2003 2:19 PM
To: Tomcat Users List
Subject: Re: interesting java.lang.NullPointerException error when first
viewing an index.jsp page - refresh once and page loads correctly


On Friday 10 January 2003 04:15 pm, Brandon Rodak wrote:
 This may be a rather easy issue but with my limited knowledge of Tomcat -
I
 thought one of you more qualified folks would have a solution.

 Whenever I visit the initial index.jsp (via index.htm as a workaround)
page
 I get the following server error:

 java.lang.NullPointerException at
 org.apache.jsp.index$jsp._jspService(index$jsp.java:75) at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 and so on

 Clicking F5 or Refresh once loads the page - so you can see it is quite a
 nuisance - we have implemented Apache 1.3.27 with Tomcat 4.0.6 - I have
 also posted some lines of the catalina log and error logs for review
below:

It might help if you post some snippets from the JSP. The stack trace for
the
NPE gives you a clue where in the JSP to look for the culprit and what
snippet to post.

Paul

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: interesting java.lang.NullPointerException error when first viewing an index.jsp page - refresh once and page loads correctly

2003-01-10 Thread Pulat Yunusov
On Friday 10 January 2003 04:40 pm, Brandon Rodak wrote:
 Paul,

 You can view the source of the page at
 http://www.flex-internet.com/source.txt

 and the full error and stack trace (?) at
 http://www.flex-internet.com/error.txt

 Thanks for the help,

 Brandon Rodak
 Web Services
 Computer Marketing Corporation
 http://www.cmcflex.com  http://www.flex-internet.com

Brandon, I meant you could look at index$jsp.java (line 75) mentioned in the 
NPE stacktrace to look for clues. It's in your Tomcat's work directory 
hierarchy. Can you post it too?

I am almost certain the problem is in that scriptlet at the top of the page 
but without looking at the generated servlet's line 75, I can't tell which 
null reference causes the NPE. The elders were right to caution against 
scriptlets after all.

Paul

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: interesting java.lang.NullPointerException error when first viewing an index.jsp page - refresh once and page loads correctly

2003-01-10 Thread Brandon Rodak
Paul,

Here is a link to the Java - http://www.flex-internet.com/java.txt

Thanks again for your help

Brandon Rodak
Web Services
Computer Marketing Corporation
http://www.cmcflex.com  http://www.flex-internet.com

-Original Message-
From: Pulat Yunusov [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 10, 2003 3:13 PM
To: Tomcat Users List
Subject: Re: interesting java.lang.NullPointerException error when first
viewing an index.jsp page - refresh once and page loads correctly


On Friday 10 January 2003 04:40 pm, Brandon Rodak wrote:
 Paul,

 You can view the source of the page at
 http://www.flex-internet.com/source.txt

 and the full error and stack trace (?) at
 http://www.flex-internet.com/error.txt

 Thanks for the help,

 Brandon Rodak
 Web Services
 Computer Marketing Corporation
 http://www.cmcflex.com  http://www.flex-internet.com

Brandon, I meant you could look at index$jsp.java (line 75) mentioned in the
NPE stacktrace to look for clues. It's in your Tomcat's work directory
hierarchy. Can you post it too?

I am almost certain the problem is in that scriptlet at the top of the page
but without looking at the generated servlet's line 75, I can't tell which
null reference causes the NPE. The elders were right to caution against
scriptlets after all.

Paul

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: java.lang.NullPointerException

2002-10-23 Thread Eddie Liang
Jeff,
  When you said  importing the bean class at the top of the page, Is it
like that in the JSP page:

% page import=com.imedge.admin.IMDbFamilyBean %

Thank you

Eddie Liang
Database Architect
Phone: 630-810-9669 x253


-Original Message-
From: KIESEL,JEFF (HP-NewJersey,ex2) [mailto:jkiesel;hp.com] 
Sent: Wednesday, October 23, 2002 9:03 AM
To: 'Tomcat Users List'
Subject: RE: java.lang.NullPointerException

i just recently had the same problem with 4.1.12, it seems there's a bug.
try importing the bean class at the top of the page.

-Original Message-
From: Eddie Liang [mailto:eliang;edge.com]
Sent: Wednesday, October 23, 2002 9:50 AM
To: 'Tomcat Users List'
Subject: java.lang.NullPointerException


Hi,

   I  use the JSP, tomcat 4.0.4 to call a java bean class, I got the below
error. Does anybody know what is wrong?

 

Thank you very much.

 

java.lang.NullPointerException
at
org.apache.jsp.FamilyMain$jsp._jspService(FamilyMain$jsp.java:124)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)

 

Here is my JSP source code:

 

!-- Developed and Documented by Krishna Veeramachaneni --

html

 

head

titleIMEDGE Content Management Services Administrator/title

link href=/JSP/com/imedge/admin/style.css rel=stylesheet
type=text/css 

/head

jsp:useBean id=dbbean class=com.imedge.admin.IMDbFamilyBean  

/jsp:useBean

% 

   

  /* Java code to retrieve family name and description if any */

  int i = 0;

  String familyName = BRACView;

  String familyDesc = The default text goes here;

 

  String[] AllFamilyName = (String[]) dbbean.getAllFamilyName();

 

  

%

body  link=#99 vlink=#00 alink=#00  

ID=Bdy leftmargin=0 rightmargin=0 topmargin=0 bgcolor=beige 

 

% include file=/JSP/com/imedge/admin/Banner.jsp %

% include file=/JSP/com/imedge/admin/FamilyMenu.jsp%

 

table  width=100% height=100% cellpadding=0 cellspacing=0

  tr  

td  class=leftFrame bgcolor=beige color=black
valign=top width=180 

  

   h4 nbsp; img align=absmiddle
src=/JSP/com/imedge/admin/images/familysmall.gif  nbsp; Family /h4

 

   form name=add_form

  nbsp;input class=submitStyle name=family_create
type=reset value=Add +  

 
onClick=self.location.href='/JSP/com/imedge/admin/CreateFamily.jsp';

   /form

   

   div class=marginStyle 

  % for (i=0; i AllFamilyName.length; i++) { 

if (AllFamilyName[i] !=  null ) {%

  b font color=white nbsp;a
href=/JSP/com/imedge/admin/EditFamily.jsp?familyname=%= AllFamilyName[i]
%%= AllFamilyName[i] % /a /fontBR BR

  %}

 } %

   /div

/td

td valign=top align=left class=rightFrame 



  table width=97% 

tr

  td 

div class=mesg

  Click Add to add a family. Click a
family name to edit or delete the family.



/div

  /td

/tr

RE: java.lang.NullPointerException

2002-10-23 Thread Eddie Liang

Jeff,

  Thank you for the info. But line 124 of FamilyMain$jsp.java is

// HTML // begin
[file=/JSP/com/imedge/admin/FamilyMain.jsp;from=(122,57);to=(136,3)]

and Line 125 of FamilyMain$jsp.java is:

out.write(\r\n\r\ntable  width=\100%\ height=\100%\ cellpadding=\0\
cellspacing=\0\\r\n\ttr  \r\n\t\ttd  class=\leftFrame\
bgcolor=\beige\ color=\black\ valign=\top\ width=180 \r\n\t\t
\r\n\t\t   h4 nbsp; img align=\absmiddle\
src=\/JSP/com/imedge/admin/images/familysmall.gif\  nbsp; Family
/h4\r\n\r\n\t\t   form name=\add_form\\r\n\t\t\tnbsp;input
class=\submitStyle\ name=\family_create\ type=\reset\ value=\Add + \
\r\n\t\t\tonClick=\self.location.href='/JSP/com/imedge/admin/CreateFamily.j
sp';\\r\n\t\t   /form\r\n\t\t   \r\n\t\t   div class=\marginStyle\
\r\n\t\t\t);

It looks like no error there

Eddie Liang
Database Architect
Phone: 630-810-9669 x253


-Original Message-
From: [EMAIL PROTECTED] [mailto:jeff.guttadauro;abbott.com] 
Sent: Wednesday, October 23, 2002 8:59 AM
To: Tomcat Users List
Subject: Re: java.lang.NullPointerException


Just take a look at line 124 of the generated servlet (FamilyMain$jsp.java)
mentioned in the stack trace.  This file will be under the work directory.
Look for code calling a method on an object, which in this error condition
happens to be null.

HTH,
-Jeff



 

Eddie Liang

eliang@edge.To: 'Tomcat Users List'
[EMAIL PROTECTED]
com cc:

 Subject:
java.lang.NullPointerException   
10/23/02

08:49 AM

Please

respond to

Tomcat Users

List

 

 





Hi,

   I  use the JSP, tomcat 4.0.4 to call a java bean class, I got the below
error. Does anybody know what is wrong?



Thank you very much.



java.lang.NullPointerException
at
org.apache.jsp.FamilyMain$jsp._jspService(FamilyMain$jsp.java:124)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)



Here is my JSP source code:



!-- Developed and Documented by Krishna Veeramachaneni --

html



head

titleIMEDGE Content Management Services Administrator/title

link href=/JSP/com/imedge/admin/style.css rel=stylesheet
type=text/css 

/head

jsp:useBean id=dbbean class=com.imedge.admin.IMDbFamilyBean  

/jsp:useBean

%



  /* Java code to retrieve family name and description if any */

  int i = 0;

  String familyName = BRACView;

  String familyDesc = The default text goes here;



  String[] AllFamilyName = (String[]) dbbean.getAllFamilyName();





%

body  link=#99 vlink=#00 alink=#00

ID=Bdy leftmargin=0 rightmargin=0 topmargin=0 bgcolor=beige 



%@ include file=/JSP/com/imedge/admin/Banner.jsp %

%@ include file=/JSP/com/imedge/admin/FamilyMenu.jsp%



table  width=100% height=100% cellpadding=0 cellspacing=0

  tr 

td  class=leftFrame bgcolor=beige color=black
valign=top width=180 



   h4 nbsp; img align=absmiddle
src=/JSP/com/imedge/admin/images/familysmall.gif  nbsp; Family /h4



   form name=add_form

  nbsp;input class=submitStyle name

java.lang.NullPointerException

2002-10-23 Thread Eddie Liang
Hi,

   I  use the JSP, tomcat 4.0.4 to call a java bean class, I got the below
error. Does anybody know what is wrong?

 

Thank you very much.

 

java.lang.NullPointerException
at
org.apache.jsp.FamilyMain$jsp._jspService(FamilyMain$jsp.java:124)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)

 

Here is my JSP source code:

 

!-- Developed and Documented by Krishna Veeramachaneni --

html

 

head

titleIMEDGE Content Management Services Administrator/title

link href=/JSP/com/imedge/admin/style.css rel=stylesheet
type=text/css 

/head

jsp:useBean id=dbbean class=com.imedge.admin.IMDbFamilyBean  

/jsp:useBean

% 

   

  /* Java code to retrieve family name and description if any */

  int i = 0;

  String familyName = BRACView;

  String familyDesc = The default text goes here;

 

  String[] AllFamilyName = (String[]) dbbean.getAllFamilyName();

 

  

%

body  link=#99 vlink=#00 alink=#00  

ID=Bdy leftmargin=0 rightmargin=0 topmargin=0 bgcolor=beige 

 

% include file=/JSP/com/imedge/admin/Banner.jsp %

% include file=/JSP/com/imedge/admin/FamilyMenu.jsp%

 

table  width=100% height=100% cellpadding=0 cellspacing=0

  tr  

td  class=leftFrame bgcolor=beige color=black
valign=top width=180 

  

   h4 nbsp; img align=absmiddle
src=/JSP/com/imedge/admin/images/familysmall.gif  nbsp; Family /h4

 

   form name=add_form

  nbsp;input class=submitStyle name=family_create
type=reset value=Add +  

 
onClick=self.location.href='/JSP/com/imedge/admin/CreateFamily.jsp';

   /form

   

   div class=marginStyle 

  % for (i=0; i AllFamilyName.length; i++) { 

if (AllFamilyName[i] !=  null ) {%

  b font color=white nbsp;a
href=/JSP/com/imedge/admin/EditFamily.jsp?familyname=%= AllFamilyName[i]
%%= AllFamilyName[i] % /a /fontBR BR

  %}

 } %

   /div

/td

td valign=top align=left class=rightFrame 



  table width=97% 

tr

  td 

div class=mesg

  Click Add to add a family. Click a
family name to edit or delete the family.



/div

  /td

/tr

  /table

/td

  /tr

/table



 

/body

/html

 

 

 

Eddie Liang

Database Architect

Phone: 630-810-9669 x253

 




RE: java.lang.NullPointerException

2002-10-23 Thread KIESEL,JEFF (HP-NewJersey,ex2)
i just recently had the same problem with 4.1.12, it seems there's a bug.
try importing the bean class at the top of the page.

-Original Message-
From: Eddie Liang [mailto:eliang;edge.com]
Sent: Wednesday, October 23, 2002 9:50 AM
To: 'Tomcat Users List'
Subject: java.lang.NullPointerException


Hi,

   I  use the JSP, tomcat 4.0.4 to call a java bean class, I got the below
error. Does anybody know what is wrong?

 

Thank you very much.

 

java.lang.NullPointerException
at
org.apache.jsp.FamilyMain$jsp._jspService(FamilyMain$jsp.java:124)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)

 

Here is my JSP source code:

 

!-- Developed and Documented by Krishna Veeramachaneni --

html

 

head

titleIMEDGE Content Management Services Administrator/title

link href=/JSP/com/imedge/admin/style.css rel=stylesheet
type=text/css 

/head

jsp:useBean id=dbbean class=com.imedge.admin.IMDbFamilyBean  

/jsp:useBean

% 

   

  /* Java code to retrieve family name and description if any */

  int i = 0;

  String familyName = BRACView;

  String familyDesc = The default text goes here;

 

  String[] AllFamilyName = (String[]) dbbean.getAllFamilyName();

 

  

%

body  link=#99 vlink=#00 alink=#00  

ID=Bdy leftmargin=0 rightmargin=0 topmargin=0 bgcolor=beige 

 

% include file=/JSP/com/imedge/admin/Banner.jsp %

% include file=/JSP/com/imedge/admin/FamilyMenu.jsp%

 

table  width=100% height=100% cellpadding=0 cellspacing=0

  tr  

td  class=leftFrame bgcolor=beige color=black
valign=top width=180 

  

   h4 nbsp; img align=absmiddle
src=/JSP/com/imedge/admin/images/familysmall.gif  nbsp; Family /h4

 

   form name=add_form

  nbsp;input class=submitStyle name=family_create
type=reset value=Add +  

 
onClick=self.location.href='/JSP/com/imedge/admin/CreateFamily.jsp';

   /form

   

   div class=marginStyle 

  % for (i=0; i AllFamilyName.length; i++) { 

if (AllFamilyName[i] !=  null ) {%

  b font color=white nbsp;a
href=/JSP/com/imedge/admin/EditFamily.jsp?familyname=%= AllFamilyName[i]
%%= AllFamilyName[i] % /a /fontBR BR

  %}

 } %

   /div

/td

td valign=top align=left class=rightFrame 



  table width=97% 

tr

  td 

div class=mesg

  Click Add to add a family. Click a
family name to edit or delete the family.



/div

  /td

/tr

  /table

/td

  /tr

/table



 

/body

/html

 

 

 

Eddie Liang

Database Architect

Phone: 630-810-9669 x253

 


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: java.lang.NullPointerException

2002-10-23 Thread jeff . guttadauro

Just take a look at line 124 of the generated servlet (FamilyMain$jsp.java)
mentioned in the stack trace.  This file will be under the work directory.
Look for code calling a method on an object, which in this error condition
happens to be null.

HTH,
-Jeff



   

Eddie Liang

eliang@edge.To: 'Tomcat Users List' 
[EMAIL PROTECTED]
com cc:   

 Subject: java.lang.NullPointerException   

10/23/02   

08:49 AM   

Please 

respond to 

Tomcat Users  

List  

   

   





Hi,

   I  use the JSP, tomcat 4.0.4 to call a java bean class, I got the below
error. Does anybody know what is wrong?



Thank you very much.



java.lang.NullPointerException
at
org.apache.jsp.FamilyMain$jsp._jspService(FamilyMain$jsp.java:124)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)



Here is my JSP source code:



!-- Developed and Documented by Krishna Veeramachaneni --

html



head

titleIMEDGE Content Management Services Administrator/title

link href=/JSP/com/imedge/admin/style.css rel=stylesheet
type=text/css 

/head

jsp:useBean id=dbbean class=com.imedge.admin.IMDbFamilyBean  

/jsp:useBean

%



  /* Java code to retrieve family name and description if any */

  int i = 0;

  String familyName = BRACView;

  String familyDesc = The default text goes here;



  String[] AllFamilyName = (String[]) dbbean.getAllFamilyName();





%

body  link=#99 vlink=#00 alink=#00

ID=Bdy leftmargin=0 rightmargin=0 topmargin=0 bgcolor=beige 



%@ include file=/JSP/com/imedge/admin/Banner.jsp %

%@ include file=/JSP/com/imedge/admin/FamilyMenu.jsp%



table  width=100% height=100% cellpadding=0 cellspacing=0

  tr 

td  class=leftFrame bgcolor=beige color=black
valign=top width=180 



   h4 nbsp; img align=absmiddle
src=/JSP/com/imedge/admin/images/familysmall.gif  nbsp; Family /h4



   form name=add_form

  nbsp;input class=submitStyle name=family_create
type=reset value=Add + 


onClick

java.lang.NullPointerException tc4.0.4

2002-08-17 Thread Luminous Heart

I get this error the first time I try to access the
jsp page, if I reload it works fine. What is wrong?

Apache Tomcat/4.0.4 - HTTP Status 500 - Internal
Server Error



type Exception report

message Internal Server Error

description The server encountered an internal error
(Internal Server Error) that prevented it from
fulfilling this request.

exception 

java.lang.NullPointerException
at
org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:61)
at
org.postgresql.Connection.ExecSQL(Connection.java:398)
at
org.postgresql.jdbc2.Statement.execute(Statement.java:130)
at
org.postgresql.jdbc2.Statement.executeQuery(Statement.java:54)
at
org.postgresql.jdbc2.PreparedStatement.executeQuery(PreparedStatement.java:99)
at
com.codestudio.sql.PoolManPreparedStatement.executeQuery(Unknown
Source)
at
org.apache.jsp.AccountAccess$jsp._jspService(AccountAccess$jsp.java:207)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:531)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:392)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:536)






__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Error reading request, ignored - java.lang.NullPointerException

2002-07-07 Thread muralipn

Hello All

Sometimes I get this error on tomcat dos window,  when I start
tomcat server ,

ContextManaget : Error reading request, ignored -
java.lang.NullPointerException
  at
org.apache.tomcat.core.contextManager.handleError(Contextmanager.java:1099)
and
etc.,

Your help will definitely solve my problem.

From
Murali







--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




java.lang.NullPointerException at TldLocationsCache.processJars when running Tomcat 4.x built from sources

2002-06-14 Thread Aleksander Grzebyta

Dear Collegues !

I tried to build Tomcat 4.0.3 and then 4.1 (from cvs) and every time failing
the same way (!) when running the built project. (running tomcat and
pointing the browser to http://localhost:8080).
The compilation run rather fine - just some depreciation warnings. I
followed instructions in BUILT.txt.
Please point me into the right direction. I know something went wrong. But
what ? Has anybody similar problems ?

There were some inconsistences:

The downloaded jakarta-tomcat-connectors does not contain
SystemLogHandler.class - I found it on the one downloaded from cvs.
Also there were no
# - Commons Logging, version 1.0.1 or later -
in the location pointed in build.properties.sample file:
commons-logging.loc=http://jakarta.apache.org/builds/jakarta-commons/release
/commons-logging/v1.0.1/commons-logging-1.0.1.tar.gz
I have found them also somewhere among cvs downloaded files.

sincerely Olek
Poznan, Poland

System : w2k
JDK: 1.4.0
ANT: 1.4.1

Tomcat 4.0.3 - source download
Tomcat 4.1 from cvs


javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:94
7)
 at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:656)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:380)
 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:518)
 at java.lang.Thread.run(Thread.java:536)

root cause
java.lang.NullPointerException
 at
org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.j
ava:203)
 at
org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:139)
 at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:350)
 at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:265)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91
9)
 at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:656)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350

java.lang.NullPointerException

2002-04-10 Thread Short, Dave

I've just configured Tomcat 3.3a and Apache 1.3.24 on a W2K professional
machine.  Everything seems to work ok (Apache forwards servlet requests to
Tomcat).  However, when I try to access my servlet the following message is
written to Tomcat's log directory:

2002-04-10 10:15:58 - /PSIRxConnect: Exception in R( /PSIRxConnect +
/servlet/Jaws + /PSIRx/PSIRxMain/f_usernamepassword) -
java.lang.NullPointerException
at com.sybase.jaws.JawsServlet.processRequest(JawsServlet.java,
Compiled Code)
at com.sybase.jaws.JawsServlet.doGet(JawsServlet.java:162)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at
org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Unknown
Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:479)

Tomcat seems to find and execute my servlet.  Then it dies on the apache
stuff.  Is this a Tomcat Class issue?  Any help would be greatly
appreciated.

Dave

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




java.lang.NullPointerException....Helllloo PLZ HELP me

2001-05-18 Thread Naeem Malik

HI
 i mailed again caz i need reply today, my Boss
getting angry. 
 Yesterday I was also mailed my problem but there was
persons who guide me but i need more
guidence to sort out that problem... so i m mailing
again. 
 I am webdevloper developing one website and using
tools JSP, Servlet,
 and working on Jakarta-Tomcat version 3.1. I am the
old user of jakarta-tomcat, 
so i know how to configure it properly. I m using
tomcat for my website but from
last 5 days, I am getting the problems what i
undersatnd it is related to the buffer
or context stuff but i m unbale to sort it out, so
there is full description of 
my problem:
   
1Some time it start working properly and then
suddenly start give following 
  Exception from Browser
 
Error: 500
Location: /examples/jsp/New/dyeing.jsp
Internal Servlet Error:

java.lang.NullPointerException
at
jsp.New._0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0._jspService(_0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0.java:123)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174)
at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
at
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Unknown Source)

then i Checked the 123 line of 
_0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0.java
there was the following code:

} catch (Exception ex) {
if (out.getBufferSize() != 0)
out.clearBuffer();
pageContext.handlePageException(ex);
} finally {
out.flush();
   
_jspxFactory.releasePageContext(pageContext);
}

OR 


Error: 500
Location: /examples
Internal Servlet Error:

java.lang.NullPointerException
at
org.apache.tomcat.servlets.DefaultServlet.serveFile(DefaultServlet.java:301)
at
org.apache.tomcat.servlets.DefaultServlet.doGet(DefaultServlet.java:218)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Unknown Source)

then i Checked the 301 line of DefaultServlet.java
there was the following code:


if(absPath.indexOf(..) != -1) {
// We have .. in the path...
response.sendError(response.SC_NOT_FOUND);
return;
}


2 or very rarely it gives the following message or
error


Error: 404
Location: /
File Not Found
/

3 even it gives like most common message of Browser
by the giving the 
   URL http://localhost:8080 on InternetExplorer and
then suddenly start working and 
   then again same message which is as follow

   The page cannot be found

   bla bla bla

   HTTP 404 - File not found
   Internet Explorer 





The following r the configurations of My system
I am using Compaq  800 MHZ of PIII, 20 GB Hard
Disk, 128 MB RAM.
Operating System   WinNT 4 +Service Pack 5
Data Base  Oracle 8
Tools  JDK1.3.0_01, JSP1.1, Servlet,
Jakarta-ant, JavaScript,
   HTML and etc   
  
Autoexec.bat Path  =  set
PATH=%PATH%;c:\jdk13\bin;c:\java\jakarta-tomcat\bin
  set JAVA_HOME=c:\jdk13
  set
CLASSPATH=.;c:\jdk13\jre\lib\rt.jar;
  c:\jdk13\lib\tools.jar;
  c:\jdk13\lib\jsdk.jar;
 
c:\java\jakarta-tomcat\lib\servlet.jar
  set ANT_HOME=c:\java\jakarta-ant
  set Temp=C:\Temp 


 
I will be very thanks full if you guide me that what’s
going on, is there some thing wrong 
with product or there is some problem in my
configuration.
Where as I using tomcat on port 8080 and I changed it
many times but nothing happen else dam
exceptions or messages. 
I installed JDK1.3  Tomcat 10 times in these 4 days
with different settings but I am still 
not able to sort out the problem. So again I am very
hope

RE: java.lang.NullPointerException....Helllloo PLZ HELP me

2001-05-18 Thread Warren Crossing

can you trouble shoot the null pointers.. i mean is pagecontext
initialized.. do a system.out.println on it

what the the exact lines of code the npe comes from.. are you using jikes to
compile jsp or default javac??

man my boss is gonna kill me 2.. 

-Original Message-
From: Naeem Malik [mailto:[EMAIL PROTECTED]]
Sent: Friday, 18 May 2001 5:34 PM
To: [EMAIL PROTECTED]
Subject: java.lang.NullPointerExceptionHeoo PLZ HELP me


HI
 i mailed again caz i need reply today, my Boss
getting angry. 
 Yesterday I was also mailed my problem but there was
persons who guide me but i need more
guidence to sort out that problem... so i m mailing
again. 
 I am webdevloper developing one website and using
tools JSP, Servlet,
 and working on Jakarta-Tomcat version 3.1. I am the
old user of jakarta-tomcat, 
so i know how to configure it properly. I m using
tomcat for my website but from
last 5 days, I am getting the problems what i
undersatnd it is related to the buffer
or context stuff but i m unbale to sort it out, so
there is full description of 
my problem:
   
1Some time it start working properly and then
suddenly start give following 
  Exception from Browser
 
Error: 500
Location: /examples/jsp/New/dyeing.jsp
Internal Servlet Error:

java.lang.NullPointerException
at
jsp.New._0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0._jspService(_000
2fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0.java:123)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va:174)
at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
at
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
at java.lang.Thread.run(Unknown Source)

then i Checked the 123 line of 
_0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0.java
there was the following code:

} catch (Exception ex) {
if (out.getBufferSize() != 0)
out.clearBuffer();
pageContext.handlePageException(ex);
} finally {
out.flush();
   
_jspxFactory.releasePageContext(pageContext);
}

OR 


Error: 500
Location: /examples
Internal Servlet Error:

java.lang.NullPointerException
at
org.apache.tomcat.servlets.DefaultServlet.serveFile(DefaultServlet.java:301)
at
org.apache.tomcat.servlets.DefaultServlet.doGet(DefaultServlet.java:218)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
at java.lang.Thread.run(Unknown Source)

then i Checked the 301 line of DefaultServlet.java
there was the following code:


if(absPath.indexOf(..) != -1) {
// We have .. in the path...
response.sendError(response.SC_NOT_FOUND);
return;
}


2 or very rarely it gives the following message or
error


Error: 404
Location: /
File Not Found
/

3 even it gives like most common message of Browser
by the giving the 
   URL http://localhost:8080 on InternetExplorer and
then suddenly start working and 
   then again same message which is as follow

   The page cannot be found

   bla bla bla

   HTTP 404 - File not found
   Internet Explorer 





The following r the configurations of My system
I am using Compaq  800 MHZ of PIII, 20 GB Hard
Disk, 128 MB RAM.
Operating System   WinNT 4 +Service Pack 5
Data Base  Oracle 8
Tools  JDK1.3.0_01, JSP1.1, Servlet,
Jakarta-ant, JavaScript,
   HTML and etc   
  
Autoexec.bat Path  =  set
PATH=%PATH%;c:\jdk13\bin;c:\java\jakarta-tomcat\bin
  set JAVA_HOME=c:\jdk13
  set
CLASSPATH=.;c:\jdk13\jre\lib\rt.jar;
  c:\jdk13\lib\tools.jar;
  c:\jdk13\lib\jsdk.jar;
 
c:\java\jakarta-tomcat\lib\servlet.jar
  set ANT_HOME=c:\java\jakarta-ant

java.lang.NullPointerException

2001-05-18 Thread Naeem Malik


HI
 Thanx for Replay but why it work some time. 
Yesterday I was also mailed my problem but there was
persons who guide me but i need more
guidence to sort out that problem... so i m mailing
again. 
 I am webdevloper developing one website and using
tools JSP, Servlet,
 and working on Jakarta-Tomcat version 3.1. I am the
old user of jakarta-tomcat, 
so i know how to configure it properly. I m using
tomcat for my website but from
last 5 days, I am getting the problems what i
undersatnd it is related to the buffer
or context stuff but i m unbale to sort it out, so
there is full description of 
my problem:
   
1Some time it start working properly and then
suddenly start give following 
  Exception from Browser
 
Error: 500
Location: /examples/jsp/New/dyeing.jsp
Internal Servlet Error:

java.lang.NullPointerException
at
jsp.New._0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0._jspService(_0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0.java:123)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174)
at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
at
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Unknown Source)

then i Checked the 123 line of 
_0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0.java
there was the following code:

} catch (Exception ex) {
if (out.getBufferSize() != 0)
out.clearBuffer();
pageContext.handlePageException(ex);
} finally {
out.flush();
   
_jspxFactory.releasePageContext(pageContext);
}

OR 


Error: 500
Location: /examples
Internal Servlet Error:

java.lang.NullPointerException
at
org.apache.tomcat.servlets.DefaultServlet.serveFile(DefaultServlet.java:301)
at
org.apache.tomcat.servlets.DefaultServlet.doGet(DefaultServlet.java:218)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Unknown Source)

then i Checked the 301 line of DefaultServlet.java
there was the following code:


if(absPath.indexOf(..) != -1) {
// We have .. in the path...
response.sendError(response.SC_NOT_FOUND);
return;
}


2 or very rarely it gives the following message or
error


Error: 404
Location: /
File Not Found
/

3 even it gives like most common message of Browser
by the giving the 
   URL http://localhost:8080 on InternetExplorer and
then suddenly start working and 
   then again same message which is as follow

   The page cannot be found

   bla bla bla

   HTTP 404 - File not found
   Internet Explorer 





The following r the configurations of My system
I am using Compaq  800 MHZ of PIII, 20 GB Hard
Disk, 128 MB RAM.
Operating System   WinNT 4 +Service Pack 5
Data Base  Oracle 8
Tools  JDK1.3.0_01, JSP1.1, Servlet,
Jakarta-ant, JavaScript,
   HTML and etc   
  
Autoexec.bat Path  =  set
PATH=%PATH%;c:\jdk13\bin;c:\java\jakarta-tomcat\bin
  set JAVA_HOME=c:\jdk13
  set
CLASSPATH=.;c:\jdk13\jre\lib\rt.jar;
  c:\jdk13\lib\tools.jar;
  c:\jdk13\lib\jsdk.jar;
 
c:\java\jakarta-tomcat\lib\servlet.jar
  set ANT_HOME=c:\java\jakarta-ant
  set Temp=C:\Temp 


 
I will be very thanks full if you guide me that what’s
going on, is there some thing wrong 
with product or there is some problem in my
configuration.
Where as I using tomcat on port 8080 and I changed it
many times but nothing happen else dam
exceptions or messages. 
I installed JDK1.3  Tomcat 10 times in these 4 days
with different settings but I am still 
not able to sort out the problem. So again I am very
hope full for positive

java.lang.NullPointerException......Plz Help Me

2001-05-17 Thread Naeem Malik

Dear 
  I am working as a Web Developer in Nishat Dyeing 
Finishing since 11th Feb 2001
In Lahore, Pakistan. I am developing their website and
using tools JSP, Servlet,
 and working on Jakarta-Tomcat version 3.1. I am the
old user of jakarta-tomcat, 
so i know how to configure it properly. I m using
tomcat for my website but from
last 4 days, I am getting the following problems:

   
1Some time it start working and then suddenly start
give following Exception from Browser--
 
Error: 500
Location: /examples/jsp/New/dyeing.jsp
Internal Servlet Error:

java.lang.NullPointerException
at
jsp.New._0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0._jspService(_0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0.java:123)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174)
at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
at
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Unknown Source)


2 or very rarely it gives the following message or
error--


Error: 404
Location: /
File Not Found
/


The following r the configurations of My system
I am using Compaq  800 MHZ of PIII, 20 GB Hard
Disk, 128 MB RAM.
Operating System   WinNT 4 +Service Pack 5
Data Base  Oracle 8
Tools  JDK1.3.0_01, JSP1.1, Servlet,
Jakarta-ant, JavaScript,
   HTML and etc   
  
Autoexec.bat Path  =  set
PATH=%PATH%;c:\jdk13\bin;c:\java\jakarta-tomcat\bin
  set JAVA_HOME=c:\jdk13
  set
CLASSPATH=.;c:\jdk13\jre\lib\rt.jar;
  c:\jdk13\lib\tools.jar;
  c:\jdk13\lib\jsdk.jar;
 
c:\java\jakarta-tomcat\lib\servlet.jar
  set ANT_HOME=c:\java\jakarta-ant
  set Temp=C:\Temp 


 
I will be very thanks full if you guide me that what’s
going on, is there some thing wrong 
with product or there is some problem in my
configuration.
Where as I using tomcat on port 8080 and I changed it
also many times but nothing happen. 
I installed JDK1.3  Tomcat 10 times in these 4 days
with different settings but I am still 
not able to sort out the problem. So again I am very
hope full for positive response from 
your side.
Thanks  Regard
Naeem Malik




__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



AW: java.lang.NullPointerException......Plz Help Me

2001-05-17 Thread Ralph Einfeldt

Have a look at line 123 in the generated source file
_0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0.java
to see which statement causes the exception.

If you found the region and can't see the error, try to
reduce the page to the bare minimum that reproduces the
error and post the source for that.

 -Ursprüngliche Nachricht-
 Von: Naeem Malik [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 17. Mai 2001 09:10
 An: [EMAIL PROTECTED]
 Betreff: java.lang.NullPointerException..Plz Help Me
snip/
 Error: 500
 Location: /examples/jsp/New/dyeing.jsp
 Internal Servlet Error:
 
 java.lang.NullPointerException
   at
 jsp.New._0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0._j
 spService(_0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0.
 java:123)



Re: AW: java.lang.NullPointerException......Plz Help Me

2001-05-17 Thread Antony Bowesman

Ralph Einfeldt wrote:
 
 Have a look at line 123 in the generated source file
 _0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0.java
 to see which statement causes the exception.
 
 If you found the region and can't see the error, try to
 reduce the page to the bare minimum that reproduces the
 error and post the source for that.

I have seen a similar problem which I posted to tomcat dev.  The
generated source code is

...
} finally {
if (out != null) out.flush();
if (_jspxFactory != null) 
_jspxFactory.releasePageContext(pageContext);
}
...

and the error came from the releasePageContext method which tried to do
something with pageContext.  It seems quite repeatable if tomcat is run
with security.  e.g. standard 3.2 examples/numguess.  My case is when I
have access controls turned on and am doing authentication.  No answer
in the dev list.  This always occurs if you have no permissions when
compiling the login page which is the result of a redirection from the
protected resource.  This is in 3.2.2b4

Seems to be a general problem when run with security.

 
  -Ursprüngliche Nachricht-
  Von: Naeem Malik [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 17. Mai 2001 09:10
  An: [EMAIL PROTECTED]
  Betreff: java.lang.NullPointerException..Plz Help Me
 snip/
  Error: 500
  Location: /examples/jsp/New/dyeing.jsp
  Internal Servlet Error:
 
  java.lang.NullPointerException
at
  jsp.New._0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0._j
  spService(_0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0.
  java:123)



Re: AW: java.lang.NullPointerException......Plz Help Me

2001-05-17 Thread Naeem Malik

on line 123 in
_0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0.jav
there is the following code:

} catch (Exception ex) {
if (out.getBufferSize() != 0)
out.clearBuffer();
pageContext.handlePageException(ex);
} finally {
out.flush();
  
_jspxFactory.releasePageContextpageContext);
}

--- Ralph Einfeldt [EMAIL PROTECTED]
wrote:
 Have a look at line 123 in the generated source file

_0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0.java
 to see which statement causes the exception.
 
 If you found the region and can't see the error, try
 to
 reduce the page to the bare minimum that reproduces
 the
 error and post the source for that.
 
  -Ursprüngliche Nachricht-
  Von: Naeem Malik [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 17. Mai 2001 09:10
  An: [EMAIL PROTECTED]
  Betreff: java.lang.NullPointerException..Plz
 Help Me
 snip/
  Error: 500
  Location: /examples/jsp/New/dyeing.jsp
  Internal Servlet Error:
  
  java.lang.NullPointerException
  at
 

jsp.New._0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0._j
 

spService(_0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0.
  java:123)


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



java.lang.NullPointerException...Is there some to HELP me ....

2001-05-17 Thread Naeem Malik

HI
 Yesterday I was also mailed my problem but there was
persons who guide me but i need more
guidence to sort out that problem... so i m mailing
again. 
 I am webdevloper developing one website and using
tools JSP, Servlet,
 and working on Jakarta-Tomcat version 3.1. I am the
old user of jakarta-tomcat, 
so i know how to configure it properly. I m using
tomcat for my website but from
last 5 days, I am getting the problems what i
undersatnd it is related to the buffer
or context stuff but i m unbale to sort it out, so
there is full description of 
my problem:
   
1Some time it start working properly and then
suddenly start give following 
  Exception from Browser
 
Error: 500
Location: /examples/jsp/New/dyeing.jsp
Internal Servlet Error:

java.lang.NullPointerException
at
jsp.New._0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0._jspService(_0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0.java:123)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174)
at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
at
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Unknown Source)

then i Checked the 123 line of 
_0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0.java
there was the following code:

} catch (Exception ex) {
if (out.getBufferSize() != 0)
out.clearBuffer();
pageContext.handlePageException(ex);
} finally {
out.flush();
   
_jspxFactory.releasePageContext(pageContext);
}

OR 

Error: 500
Location: /examples
Internal Servlet Error:

java.lang.NullPointerException
at
org.apache.tomcat.servlets.DefaultServlet.serveFile(DefaultServlet.java:301)
at
org.apache.tomcat.servlets.DefaultServlet.doGet(DefaultServlet.java:218)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Unknown Source)

then i Checked the 301 line of DefaultServlet.java
there was the following code:


if(absPath.indexOf(..) != -1) {
// We have .. in the path...
response.sendError(response.SC_NOT_FOUND);
return;
}


2 or very rarely it gives the following message or
error


Error: 404
Location: /
File Not Found
/

3 or it also gives like most common message of
Browser by the giving the URL http://localhost:8080
on InternetExplorer and then suddenly start working
and then again same message which is as follow

  The page cannot be found

   bla bla bla

   HTTP 404 - File not found
   Internet Explorer 


The following r the configurations of My system
I am using Compaq  800 MHZ of PIII, 20 GB Hard
Disk, 128 MB RAM.
Operating System   WinNT 4 +Service Pack 5
Data Base  Oracle 8
Tools  JDK1.3.0_01, JSP1.1, Servlet, 
Jakarta-ant, JavaScript,HTML and etc 
Autoexec.bat Path  =  set
PATH=%PATH%;c:\jdk13\bin;c:\java\jakarta-tomcat\bin
  set JAVA_HOME=c:\jdk13
  set
CLASSPATH=.;c:\jdk13\jre\lib\rt.jar;
  c:\jdk13\lib\tools.jar;
  c:\jdk13\lib\jsdk.jar;
 
c:\java\jakarta-tomcat\lib\servlet.jar
  set ANT_HOME=c:\java\jakarta-ant
  set Temp=C:\Temp 


 
I will be very thanks full if you guide me that what’s
going on, is there some thing wrong 
with product or there is some problem in my
configuration.
Where as I using tomcat on port 8080 and I changed it
also many times but nothing happen. 
I installed JDK1.3  Tomcat 10 times in these 4 days
with different settings but I am still 
not able to sort out the problem. So again I am very
hope full for positive response from 
your side.
Thanks  Regard
Naeem Malik


__
Do You Yahoo!?
Yahoo

java.lang.NullPointerException message error

2001-02-15 Thread Pedro Henrique Ponchio

Anybody know what the error message "java.lang.NullPointerException"
means? 

My information screen appear this message when I shutdown TOMCAT:

Stop tomcat
fechando a conexo com o BD...2001-02-15 12:56:26 -
ContextManager: Removing con
text Ctx( /omir )
pronto!
BC4J HTTP Container was timed out
The binding listener for OmirModule was timed out
java.lang.NullPointerException
Signal ignored: 15
2001-02-15 12:56:26 - Ctx(  ): IOException in: R(  + / + null)
Bad file descript
or


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RES: java.lang.NullPointerException message error

2001-02-15 Thread Pedro Henrique Ponchio

The big question is when this error happens the TOMCAT didnt shutdown
properly, still having some java process running in memory. So, I need
to use kill -9 to can start TOMCAT again ...

Please, anyone have any suggestion??

Pedro

-Mensagem original-
De: Pedro Henrique Ponchio 
Enviada em: Thursday, February 15, 2001 3:03 PM
Para: [EMAIL PROTECTED]
Assunto: java.lang.NullPointerException message error


Anybody know what the error message "java.lang.NullPointerException"
means? 

My information screen appear this message when I shutdown TOMCAT:

Stop tomcat
fechando a conexo com o BD...2001-02-15 12:56:26 -
ContextManager: Removing con
text Ctx( /omir )
pronto!
BC4J HTTP Container was timed out
The binding listener for OmirModule was timed out
java.lang.NullPointerException
Signal ignored: 15
2001-02-15 12:56:26 - Ctx(  ): IOException in: R(  + / + null)
Bad file descript
or


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Handler Thread Problem : java.lang.NullPointerException

2000-12-27 Thread Koen Maes \(BE-day.com\)




Hi,

I upgraded to Tomcat 3.2 because I'm getting 
Handler Thread Problem : java.lang.NullPointerException
I thought it was caused by the virtual hosts, so I 
tried using the new HOST directive for server.XML
You can see my config files below.
When I surf to: http://www.garages.be this redirects to http://212.100.172.240/park/index.jsp
and gives the error Handler Thread Problem : 
java.lang.NullPointerException
When I simply type http://212.100.172.240/park/index.jspeverything 
works fine.
The index.jsp is completely stripped 
to
%@ page language="java" 
import="com.kmoware.register.servlets.*" errorPage="error.jsp" 
%htmlheadbodyURLFORWARDING 
TEST/body/html
Getting desperate !!!

Thx,
Koen






* HTTPD.CONF

[]

VirtualHost 
10.0.1.201 ServerAdmin [EMAIL PROTECTED] 
ServerAlias be-day.com ServerAlias 192.168.1.254 # reached 
via internal IP ServerAlias www.be-day.com 
DocumentRoot /var/tomcat/webapps/register ServerName 
be-day.com ErrorLog 
logs/www.be-day.com-error_log CustomLog 
logs/www.be-day.com-access_log combined ApJServMount 
/register/servlet /register Alias /register 
/var/tomcat/webapps/register Directory 
"/var/tomcat/webapps/register" Options 
FollowSymLinks /Directory 
Location /register/WEB-INF/  AllowOverride 
None deny from all 
/Location/VirtualHost

VirtualHost 
10.0.1.201 ServerAlias * 
DocumentRoot /var/tomcat/webapps/park ServerName 
park.be-day.com ErrorLog 
logs/park.be-day.com-error_log CustomLog 
logs/park.be-day.com-access_log combined ApJServMount 
/park/servlet /park Alias /park 
/var/tomcat/webapps/park Directory 
"/var/tomcat/webapps/park" Options 
FollowSymLinks /Directory 
Location /park/WEB-INF/  AllowOverride 
None deny from all 
/Location/VirtualHost[]

SERVER.XML
[]
 Host 
name="be-day.com" Context 
path="/register" docBase="webapps/register" debug="0" 
reloadable="true" 
/Host

 Host 
name="park.be-day.com" 
Context path="/park" docBase="webapps/park" debug="0" 
reloadable="true" 
/Host[]

 smime.p7s


Handler Thread Problem : java.lang.NullPointerException ?HELP?

2000-12-27 Thread Koen Maes \(BE-day.com\)





Hi,

I upgraded to Tomcat 3.2 because I'm getting 
Handler Thread Problem : java.lang.NullPointerException
I thought it was caused by the virtual hosts, so I 
tried using the new HOST directive for server.XML
You can see my config files below.
When I surf to: http://www.garages.be this redirects to http://212.100.172.240/park/index.jsp
and gives the error Handler Thread Problem : 
java.lang.NullPointerException
When I simply type http://212.100.172.240/park/index.jspeverything 
works fine.
The index.jsp is completely stripped 
to
%@ page language="java" 
import="com.kmoware.register.servlets.*" errorPage="error.jsp" 
%htmlheadbodyURLFORWARDING 
TEST/body/html
Getting desperate !!!

Thx,
Koen






* HTTPD.CONF

[]

VirtualHost 
10.0.1.201 ServerAdmin [EMAIL PROTECTED] 
ServerAlias be-day.com ServerAlias 192.168.1.254 # reached 
via internal IP ServerAlias www.be-day.com 
DocumentRoot /var/tomcat/webapps/register ServerName 
be-day.com ErrorLog 
logs/www.be-day.com-error_log CustomLog 
logs/www.be-day.com-access_log combined ApJServMount 
/register/servlet /register Alias /register 
/var/tomcat/webapps/register Directory 
"/var/tomcat/webapps/register" Options 
FollowSymLinks /Directory 
Location /register/WEB-INF/  AllowOverride 
None deny from all 
/Location/VirtualHost

VirtualHost 
10.0.1.201 ServerAlias * 
DocumentRoot /var/tomcat/webapps/park ServerName 
park.be-day.com ErrorLog 
logs/park.be-day.com-error_log CustomLog 
logs/park.be-day.com-access_log combined ApJServMount 
/park/servlet /park Alias /park 
/var/tomcat/webapps/park Directory 
"/var/tomcat/webapps/park" Options 
FollowSymLinks /Directory 
Location /park/WEB-INF/  AllowOverride 
None deny from all 
/Location/VirtualHost[]

SERVER.XML
[]
 Host 
name="be-day.com" Context 
path="/register" docBase="webapps/register" debug="0" 
reloadable="true" 
/Host

 Host 
name="park.be-day.com" 
Context path="/park" docBase="webapps/park" debug="0" 
reloadable="true" 
/Host[]



RE: Handler Thread Problem : java.lang.NullPointerException

2000-12-27 Thread Adam Le



How 
about trying this for your index.jsp:

--- Begin Code --

 !-- Put your imports here 
--
 %@ page import="java.io.*,java.util.* 
%
 html
 body
 % response.sendRedirect 
("http://212.100.172.240/park/index.jsp"); 
%
 /body
 /html

!-- End Code --

Just a 
thought

Adam


  -Original Message-From: Koen Maes (BE-day.com) 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, December 27, 2000 11:02 
  AMTo: [EMAIL PROTECTED]Subject: Handler 
  Thread Problem : java.lang.NullPointerException
  
  Hi,
  
  I upgraded to Tomcat 3.2 because I'm getting 
  Handler Thread Problem : java.lang.NullPointerException
  I thought it was caused by the virtual hosts, so 
  I tried using the new HOST directive for server.XML
  You can see my config files below.
  When I surf to: http://www.garages.be this redirects to http://212.100.172.240/park/index.jsp
  and gives the error Handler Thread Problem : 
  java.lang.NullPointerException
  When I simply type http://212.100.172.240/park/index.jspeverything 
  works fine.
  The index.jsp is completely stripped 
  to
  %@ page language="java" 
  import="com.kmoware.register.servlets.*" errorPage="error.jsp" 
  %htmlheadbodyURLFORWARDING 
  TEST/body/html
  Getting desperate !!!
  
  Thx,
  Koen
  
  
  
  
  
  
  * HTTPD.CONF
  
  []
  
  VirtualHost 
  10.0.1.201 ServerAdmin [EMAIL PROTECTED] 
  ServerAlias be-day.com ServerAlias 192.168.1.254 # 
  reached via internal IP ServerAlias www.be-day.com 
  DocumentRoot /var/tomcat/webapps/register ServerName 
  be-day.com ErrorLog 
  logs/www.be-day.com-error_log CustomLog 
  logs/www.be-day.com-access_log combined ApJServMount 
  /register/servlet /register Alias /register 
  /var/tomcat/webapps/register Directory 
  "/var/tomcat/webapps/register" Options 
  FollowSymLinks /Directory 
  Location /register/WEB-INF/  AllowOverride 
  None deny from all 
  /Location/VirtualHost
  
  VirtualHost 
  10.0.1.201 ServerAlias * 
  DocumentRoot /var/tomcat/webapps/park ServerName 
  park.be-day.com ErrorLog 
  logs/park.be-day.com-error_log CustomLog 
  logs/park.be-day.com-access_log combined ApJServMount 
  /park/servlet /park Alias /park 
  /var/tomcat/webapps/park Directory 
  "/var/tomcat/webapps/park" Options 
  FollowSymLinks /Directory 
  Location /park/WEB-INF/  AllowOverride 
  None deny from all 
  /Location/VirtualHost[]
  
  SERVER.XML
  []
   
  Host name="be-day.com" 
  Context path="/register" docBase="webapps/register" debug="0" 
  reloadable="true" 
  /Host
  
   
  Host 
  name="park.be-day.com" 
  Context path="/park" docBase="webapps/park" debug="0" 
  reloadable="true" 
  /Host[]
  


HANDLER THREAD PROBLEM : java.lang.NullPointerException

2000-12-26 Thread Koen Maes

Hi

I've got my website uprunning http://www.be-day.com and it is
completely running using Tomcat. We are selling domainnames for .BE
(Belgium) Everything works fine but our latest feature : URL Forwarding.

Tomcat always reports : HANDLER THREAD PROBLEM :
java.lang.NullPointerException

We configured apache to take any unknown URL entering to one specific
virtual host which has an index.jsp file ready.
In case the customer configured URL Forwarding, I query the database and

turn the index.jsp page into a forwarding page to forward to the
configured URL. If no URL Forwarding is configured by the customer in
the database, I just turn the index.jsp page into a "parked domain"
page.
If I access the index.jsp page directly I get no problems. I just type :

www.myserver.be/park/index.jsp and Tomcat responds properly. But if I
enter with www.mycustomerdomain.be, then apache takes this URL to
www.myserver.be/park/index.jsp but Tomcat responds with HANDLER THREAD
PROBLEM : java.lang.NullPointerException The parked pages and the rest
of the website run in the same Tomcat context. I already tried to fix
this
by separating the contexts. No luck.

Thx for your time  patience,

Pls CC: [EMAIL PROTECTED]
Koen







HANDLER THREAD PROBLEM: java.lang.NullPointerException

2000-12-22 Thread Shahed Ali



I get these errors sometimes, can cant figure out what the 
problem is.
Can someone tell me where should I start looking 
?

Thanks
Shahed

HANDLER THREAD PROBLEM: 
java.lang.NullPointerExceptionERROR: can't find default error handler or 
error in default error page