Jose,
I understand that the error is occuring on line 413 from this
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
But what that fails to tell me is the exact call it is failing on. Can
you paste that actual code to the list. Then we could pin point the
issue. As in, soon after the statement rs.next()...are you calling
getString or getFloat or some ResultSet method, are you calling new
java.io.File(pathToFile) then some other functions for some reason?
What is the exact call on line 413? That is where it is failing. The
code is the key to gettting help in this situation. Maybe you can post
a whole block around the failing line. That would be more helpful.
Wade
-----Original Message-----
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2003 1:36 PM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: ENC: Urgent please -crazy error when turnning tomcat a NT4.0
Servi ce
Answering your question...
DataBase: Oracle 8i - ORACLE THIN DRIVER / SERVER: WINDOWS NT 4.0 SP6.0a
Place where the error occurs: line 413 --> soon after the statement
rs.next()
con.prepareStatement(query);
rs = pstmt.executeQuery();
if ( !rs.next() )
LINE 413-> {
If you have any other doubt let me know,
Regards, Euclides.
-----Mensagem original-----
De: Wade Chandler [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 20 de outubro de 2003 13:50
Para: 'Tomcat Users List'
Assunto: RE: Urgent please -crazy error when turnning tomcat a NT4.0
Servi ce
I would say it is a permissions error. You are getting a
NullPointerException. Which probably means something was not found. It
could even be a targeting error. The service is probably being ran as a
user with no permissions. What are you doing on the lines in the code
from here:
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
This is the link to your problem. It is not actually because of Tomcat.
I don't believe. It is permissions and system administration. Paste
your code. We could help you better. What type of database are you
using? Are you accessing any files or directories? That is the key to
your problem.
Wade
-----Original Message-----
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2003 12:24 PM
To: '[EMAIL PROTECTED]'
Subject: Urgent please -crazy error when turnning tomcat a NT4.0 Servi
ce
Hi Guys,
i am still having problems since Tomcat 4.1.18 was configured as a NT
4.0's service. This error (showed below) always happens whenever my app
try to work with the result set. Is it a hint? Of course, if i stop
making TomCat a NT service, the problem doesnt happen anymore and my app
runs fine... A hint: no logs are generated by NT and the Tomcat service
is UP! Thanks in advance, Euclides.
-----Mensagem original-----
De: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 21:19
Para: 'Tomcat Users List'
Assunto: RES: Urgent help -crazy error when turnning tomcat a NT4.0
Servi ce
Hi guys,
BELOW IS SHOWED THE ERROR! The problems happens at my Servlet, whenever
it tries to deal with the result set.Very strange! Another problem:
since i remove tool.jar from classpath, neither static nor dinamics
pages are loaded. Still needing help.
HTTP Status 500 -
------------------------------------------------------------------------
----
----
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
5)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at org.apache
-----Mensagem original-----
De: John Corrigan [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 21:00
Para: Tomcat Users List
Assunto: RE: Urgent help -crazy error when turnning tomcat a NT4.0
Service
If Jose is using a 4.1.x version of Tomcat and using the tools which are
included with Tomcat for running it as a service then environment
variables are irrelevant other than during the service installation
process. To change CLASSPATH or any other Java environment settings, he
would have to edit the registry.
It is not clear as to whether by "dynamic" pages he is referring to
JSPs, servlets, or those which access the database. If it is only JSPs
which fail, then I would suspect that the jvm.dll pointed to is
incorrect (common problem with 4.1.24). If it is only database access
(which the original post implied) then I would stick with my original
hunch that it is a permissions issue, depending upon the
database/driver.
-----Original Message-----
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 4:51 PM
To: Jose Euclides da Silva Junior - DATAPREVRJ; 'Tomcat Users List'
Subject: Re: Urgent help -crazy error when turnning tomcat a NT4.0
Service
no, set your
JAVA_HOME=c:\j2sdk1.4.1_01
nothing else
then set
PATH=%JAVA_HOME%\bin;%PATH%
in your computer environments, not the user environment
----- Original Message -----
From: "Jose Euclides da Silva Junior - DATAPREVRJ"
<[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, October 17, 2003 4:40 PM
Subject: RES: Urgent help -crazy error when turnning tomcat a NT4.0
Service
I ve put tools.jar at my JAVA HOME - like that -->
c:\j2sdk1.4.1_01\lib\tools.jar. Unfortunatelly, this problem goes on I
am still needing help. Euclides. -----Mensagem original-----
De: Filip Hanik [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 19:45
Para: Tomcat Users List
Assunto: Re: Urgent help -crazy error when turnning tomcat a NT4.0
Service
the only thing I can think of is that JAVA_HOME (tools.jar in CLASSPATH)
is not set correctly when running as a service, this would cause static
pages to show up, but compiled pages to fail during compilation
Filip
----- Original Message -----
From: "Jose Euclides da Silva Junior - DATAPREVRJ"
<[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, October 17, 2003 3:44 PM
Subject: RES: Urgent help -crazy error when turnning tomcat a NT4.0
Service
Ok, i will try to find out something like that...
-----Mensagem original-----
De: John Corrigan [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 19:38
Para: Tomcat Users List
Assunto: RE: Urgent help -crazy error when turnning tomcat a NT4.0
Service
No.
-----Original Message-----
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:27 PM
To: 'Tomcat Users List'
Subject: RES: Urgent help -crazy error when turnning tomcat a NT4.0
Service
Why? its no make sense... I didnt setted up any kind of rule about it. I
guess, if you were right none page would be showed! Isnt it?
-----Mensagem original-----
De: John Corrigan [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 19:20
Para: Tomcat Users List
Assunto: RE: Urgent help -crazy error when turnning tomcat a NT4.0
Service
Perhaps the service needs to run as a different user?
-----Original Message-----
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:13 PM
To: '[EMAIL PROTECTED]'
Subject: Urgent help -crazy error when turnning tomcat a NT4.0 Service
Howdy,
this is really a strange error. My app was running fine until TomCat
4.1.18 became a NT service. After that, only static web pages runs fine
and the environment always returns me -> http 500 error when a dinamic
page is called ( accessing database). Thanks in advance, Euclides.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]