Re: NullPointerException in Tomcat startup while parsing XML configuration file

2022-03-15 Thread Mark Thomas
On 15/03/2022 14:42, Christopher Schultz wrote: Harri, On 3/15/22 06:45, Harri Pesonen wrote: Hello, that xml file is embedded in catalina.jar, so obviously I have not modified it: jar:file:/C:/Tomcat/tomcat_home/lib/catalina.jar!/org/apache/catalina/mbeans/mbeans-descriptors.xml It's not

Re: NullPointerException in Tomcat startup while parsing XML configuration file

2022-03-15 Thread Christopher Schultz
hink? If you are reporting a bug, then consider it reported. -chris -Original Message- From: Christopher Schultz Sent: maanantai 14. maaliskuuta 2022 16.36 To: users@tomcat.apache.org Subject: Re: NullPointerException in Tomcat startup while parsing XML configuration file Harri, On 3/14/

RE: NullPointerException in Tomcat startup while parsing XML configuration file

2022-03-15 Thread Harri Pesonen
. -Harri -Original Message- From: Christopher Schultz Sent: maanantai 14. maaliskuuta 2022 16.36 To: users@tomcat.apache.org Subject: Re: NullPointerException in Tomcat startup while parsing XML configuration file Harri, On 3/14/22 10:23, Harri Pesonen wrote: > Hello, I don't

Re: NullPointerException in Tomcat startup while parsing XML configuration file

2022-03-14 Thread Christopher Schultz
Harri, On 3/14/22 10:23, Harri Pesonen wrote: Hello, I don't know if this is interesting, but while I started Tomcat in IDEA debugger, when I had breakpoint set to NullPointerException (so that it breaks on all of them), then it break here: org\apache\tomcat\tomcat-util\8.5.75\tomcat-util-8.5

Re: NullPointerException on statrup - possible bug in Tomcat

2020-06-24 Thread tomcat-subs
Problem resolved. Thank you. On Wed, Jun 24, 2020, at 12:46 PM, Konstantin Kolinko wrote: > ср, 24 июн. 2020 г. в 19:25, : > > > > I have a web application which is failing in RestEasy initialization with > > an NPE. It worked for many years until I added a large number of jar > > dependencies b

Re: NullPointerException on statrup - possible bug in Tomcat

2020-06-24 Thread Mark Thomas
On 24/06/2020 17:25, tomcat-s...@stiprus.com wrote: > I have a web application which is failing in RestEasy initialization with an > NPE. It worked for many years until I added a large number of jar > dependencies because of a new development effort. I've debugged the code by > stepping through

Re: NullPointerException on statrup - possible bug in Tomcat

2020-06-24 Thread Konstantin Kolinko
ср, 24 июн. 2020 г. в 19:25, : > > I have a web application which is failing in RestEasy initialization with an > NPE. It worked for many years until I added a large number of jar > dependencies because of a new development effort. I've debugged the code by > stepping through the Tomcat source t

Re: NullPointerException in CoyoteOutputStream

2020-06-12 Thread Konstantin Kolinko
пт, 12 июн. 2020 г. в 18:36, Mark A. Claassen : > > We were doing some load testing and we started getting a NullPointerException > at the stack trace below. We don't get the NPE all the time, so I am > guessing some of these objects got corrupted somehow. > One place the clear() method is calle

RE: NullPointerException in CoyoteOutputStream

2020-06-12 Thread Mark A. Claassen
<-- 89 } -Original Message- From: calder Sent: Friday, June 12, 2020 12:31 PM To: Tomcat Users List Subject: Re: NullPointerException in CoyoteOutputStream On Fri, Jun 12, 2020, 10:36 Mark A. Claassen wrote: > We were doing some load testing and we started getting a > NullP

Re: NullPointerException in CoyoteOutputStream

2020-06-12 Thread calder
On Fri, Jun 12, 2020, 10:36 Mark A. Claassen wrote: > We were doing some load testing and we started getting a > NullPointerException at the stack trace below. We don't get the NPE all > the time, so I am guessing some of these objects got corrupted somehow. > One place the clear() method is cal

Re: NullPointerException in Response.generateCookieString()

2017-07-17 Thread Matthias Keller
On 17.07.2017 12:29, Konstantin Kolinko wrote: -2017-07-17 11:59 GMT+03:00 Matthias Keller : Hi In our production environment we (sometimes but still often enough) have the problem, that we get an NPE deep within the Response object. This occurs under 8.5.13 and 8.5.16. The stacktrace (from

Re: NullPointerException in Response.generateCookieString()

2017-07-17 Thread Konstantin Kolinko
-2017-07-17 11:59 GMT+03:00 Matthias Keller : > Hi > > In our production environment we (sometimes but still often enough) have the > problem, that we get an NPE deep within the Response object. > > This occurs under 8.5.13 and 8.5.16. > > The stacktrace (from 8.5.13) is as follows: > > org.apache.

Re: NullPointerException in Response.generateCookieString()

2017-07-17 Thread Mark Thomas
On 17/07/17 09:59, Matthias Keller wrote: > Hi > > In our production environment we (sometimes but still often enough) have > the problem, that we get an NPE deep within the Response object. > > This occurs under 8.5.13 and 8.5.16. > > The stacktrace (from 8.5.13) is as follows: > > org.apache.

Re: NullPointerException in MemoryRealm after upgrading to Tomcat 8.0.32 from 7.0.26

2016-03-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jason, On 3/10/16 4:40 PM, Jason Overland wrote: > Chris, > > On Thu, Mar 10, 2016 at 6:18 AM, Christopher Schultz > wrote: >> Give this patch a try: ... I have no idea how the options get >> parsed; we'll see if this simple implementation will get

Re: NullPointerException in MemoryRealm after upgrading to Tomcat 8.0.32 from 7.0.26

2016-03-10 Thread Mark Thomas
On 10/03/2016 21:40, Jason Overland wrote: > Chris, > > On Thu, Mar 10, 2016 at 6:18 AM, Christopher Schultz > wrote: >> Give this patch a try: >> ... >> I have no idea how the options get parsed; we'll see if this simple >> implementation will get you going again. >> >> -chris >> > > The parsin

Re: NullPointerException in MemoryRealm after upgrading to Tomcat 8.0.32 from 7.0.26

2016-03-10 Thread Jason Overland
Chris, On Thu, Mar 10, 2016 at 6:18 AM, Christopher Schultz wrote: > Give this patch a try: > ... > I have no idea how the options get parsed; we'll see if this simple > implementation will get you going again. > > -chris > The parsing is working correctly. After applying the patch I could logi

Re: NullPointerException in MemoryRealm after upgrading to Tomcat 8.0.32 from 7.0.26

2016-03-10 Thread Christopher Schultz
Jason, On 3/9/16 1:19 PM, Jason Overland wrote: > For what it's worth, that analysis & approach to fixing seem > reasonable to me. Yes I'll be glad to file a bug report and test a > patch. Give this patch a try: CUT = Index: java/org/apache/catalina/realm/JAASMemoryLog

Re: NullPointerException in MemoryRealm after upgrading to Tomcat 8.0.32 from 7.0.26

2016-03-09 Thread Jason Overland
Chris, Thanks for the quick and informative response. On Wed, Mar 9, 2016 at 7:26 AM, Christopher Schultz wrote: > >> For authentication our configuration is using a MemoryRealm with >> digest="SHA". We are storing usernames and passwords in a >> tomcat-users.xml file. We are using a jaas.conf

Re: NullPointerException in MemoryRealm after upgrading to Tomcat 8.0.32 from 7.0.26

2016-03-09 Thread Christopher Schultz
Jason, On 3/8/16 8:44 PM, Jason Overland wrote: > Okay, so I checked out Tomcat 8.0.32 from source control. I then > reverted MemoryRealm's authenticate method to how it was in 7.0.26 and > built Tomcat and now my authentication works. This of course is not a > solution, but it obviates most of m

Re: NullPointerException in MemoryRealm after upgrading to Tomcat 8.0.32 from 7.0.26

2016-03-08 Thread Jason Overland
Okay, so I checked out Tomcat 8.0.32 from source control. I then reverted MemoryRealm's authenticate method to how it was in 7.0.26 and built Tomcat and now my authentication works. This of course is not a solution, but it obviates most of my other questions. I guess the important question is: ho

Re: NullPointerException when using NIO connector

2016-01-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 João, On 1/28/16 3:09 PM, João Sávio wrote: > I'm using Tomcat 7.0.53 and I've changed it to use the NIO > connector recently. So, the following error start appearing on the > logs (few per day) > > Jan 25, 2016 3:10:16 PM org.apache.tomcat.util.net.

Re: NullPointerException in NioEndpoint under load (but not only)

2015-08-11 Thread Antoine Bonavita
Hello, Never had any feedback on this, but I think I'm running into this bug: https://bz.apache.org/bugzilla/show_bug.cgi?id=57943 At least, setting the socket.bufferPool to 0 tremendously helped and I am not seeing this excpetion anymore. Waiting for 7.0.64 release to upgrade but I have good

Re: NullPointerException is thrown when executing org.apache.coyote.http11.InternalNioOutputBuffer.writeToSocket

2014-02-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Eric, On 2/26/14, 3:39 AM, HU E wrote: > Chris, Mark, thanks for your suggestion. After setting the system > property org.apache.catalina.connector.RECYCLE_FACADES to true, > this issue disappeared. That suggests that your application is making a

RE: NullPointerException is thrown when executing org.apache.coyote.http11.InternalNioOutputBuffer.writeToSocket

2014-02-26 Thread HU E
: Tomcat Users List Subject: Re: NullPointerException is thrown when executing org.apache.coyote.http11.InternalNioOutputBuffer.writeToSocket -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Eric, On 2/19/14, 2:40 AM, HU E wrote: > Thanks for your response. I will try your suggestion, i.e. sett

Re: NullPointerException is thrown when executing org.apache.coyote.http11.InternalNioOutputBuffer.writeToSocket

2014-02-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Eric, On 2/19/14, 2:40 AM, HU E wrote: > Thanks for your response. I will try your suggestion, i.e. setting > the system property org.apache.catalina.connector.RECYCLE_FACADES > to true(I guess I can set this in catalina.properties). I would set it

RE: NullPointerException is thrown when executing org.apache.coyote.http11.InternalNioOutputBuffer.writeToSocket

2014-02-18 Thread HU E
, February 18, 2014 6:30 PM To: Tomcat Users List Subject: Re: NullPointerException is thrown when executing org.apache.coyote.http11.InternalNioOutputBuffer.writeToSocket On 18/02/2014 09:31, HU E wrote: > PRS0: Http response exception : java.lang.NullPointerException > org.apache.coyote.

Re: NullPointerException is thrown when executing org.apache.coyote.http11.InternalNioOutputBuffer.writeToSocket

2014-02-18 Thread Mark Thomas
On 18/02/2014 09:31, HU E wrote: > PRS0: Http response exception : java.lang.NullPointerException > org.apache.coyote.http11.InternalNioOutputBuffer.writeToSocket(InternalNioOutputBuffer.java:463) > org.apache.coyote.http11.InternalNioOutputBuffer.flushBuffer(InternalNioOutputBuffer.java:800) >

Re: NullPointerException in MapperListener; Tomcat#start() does not create a Container?

2013-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Konstantin, On 3/14/13 5:25 PM, Konstantin Kolinko wrote: > 2013/3/15 Nick Williams : > >> I resolved the NullPointerException by calling >> tomcat.getService().setContainer(tomcat.getEngine()) between >> init() and start(). Everything is working

WebSockets problem Re: NullPointerException in MapperListener; Tomcat#start() does not create a Container?

2013-03-14 Thread Nick Williams
On Mar 14, 2013, at 4:25 PM, Konstantin Kolinko wrote: > 2013/3/15 Nick Williams : >> >> On Mar 14, 2013, at 2:56 PM, Nick Williams wrote: >> >>> Using a variety of tutorials I found online and the documentation for >>> o.a.c.startup.Tomcat, I created the following main method to start up an

Re: NullPointerException in MapperListener; Tomcat#start() does not create a Container?

2013-03-14 Thread Konstantin Kolinko
2013/3/15 Nick Williams : > > On Mar 14, 2013, at 2:56 PM, Nick Williams wrote: > >> Using a variety of tutorials I found online and the documentation for >> o.a.c.startup.Tomcat, I created the following main method to start up an >> embedded Tomcat. I'm using 7.0.37 Tomcat JARs. >> >>public

Re: NullPointerException in MapperListener; Tomcat#start() does not create a Container?

2013-03-14 Thread Nick Williams
On Mar 14, 2013, at 2:56 PM, Nick Williams wrote: > Using a variety of tutorials I found online and the documentation for > o.a.c.startup.Tomcat, I created the following main method to start up an > embedded Tomcat. I'm using 7.0.37 Tomcat JARs. > >public static void main(String... argumen

Re: NullPointerException/java.util.logging.ErrorManager: 5 when have

2012-07-09 Thread ohaya
oh...@cox.net wrote: > > Mark Thomas wrote: > > On 07/07/2012 17:33, oh...@cox.net wrote: > > > > Trace A: > > > java.util.logging.ErrorManager: 5 > > > java.lang.NullPointerException > > > at > > > java.util.ListResourceBundle.handleGetObject(ListResourceBundle.java:109) >

Re: NullPointerException/java.util.logging.ErrorManager: 5 when have

2012-07-08 Thread Konstantin Kolinko
2012/7/8 : >> On 07/07/2012 17:33, oh...@cox.net wrote: >> >> Trace A: >> > java.util.logging.ErrorManager: 5 >> > java.lang.NullPointerException >> > at >> > java.util.ListResourceBundle.handleGetObject(ListResourceBundle.java:109) >> > at java.util.ResourceBundle.getObject(Resou

Re: NullPointerException/java.util.logging.ErrorManager: 5 when have

2012-07-07 Thread ohaya
Mark Thomas wrote: > On 07/07/2012 17:33, oh...@cox.net wrote: > > Trace A: > > java.util.logging.ErrorManager: 5 > > java.lang.NullPointerException > > at > > java.util.ListResourceBundle.handleGetObject(ListResourceBundle.java:109) > > at java.util.ResourceBundle.getObje

Re: NullPointerException/java.util.logging.ErrorManager: 5 when have

2012-07-07 Thread Mark Thomas
On 07/07/2012 17:33, oh...@cox.net wrote: Trace A: > java.util.logging.ErrorManager: 5 > java.lang.NullPointerException > at > java.util.ListResourceBundle.handleGetObject(ListResourceBundle.java:109) > at java.util.ResourceBundle.getObject(ResourceBundle.java:368) > at ja

Re: NullPointerException/java.util.logging.ErrorManager: 5 when have

2012-07-07 Thread ohaya
Mark Thomas wrote: > On 07/07/2012 13:40, oh...@cox.net wrote: > > Can anyone tell me what might be causing the error, and how I can eliminate > > the problem? > > Since you have removed the part of the stack trace that might tell use > what the cause is, no. > > Mark Hi Mark, Sorry

Re: NullPointerException/java.util.logging.ErrorManager: 5 when have

2012-07-07 Thread Mark Thomas
On 07/07/2012 13:40, oh...@cox.net wrote: > Can anyone tell me what might be causing the error, and how I can eliminate > the problem? Since you have removed the part of the stack trace that might tell use what the cause is, no. Mark

Re: NullPointerException during servlet.service()

2012-02-20 Thread David N. Smith
On Feb 20, 2012, at 11:06 AM, "Adrien RUFFIE" mailto:a.ruf...@e-deal.com>> wrote: Hello all, One of my client put a several bug in its tomcat prod server but I have juste the following stacktrace And I have no idea where it may come (unknow scenario, user action performed …) Any idea ? 2012-0

Re: NullPointerException when Tomcat calls org.apache.catalina.connector.Request.parseParameters

2010-10-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, Resurrecting this thread from last week. On 10/7/2010 2:53 PM, laredotornado wrote: > You are correct. This stack trace came from a server with 6.0.13 installed. > We also observed this in our environment with 6.0.24. Can you give us the sta

Re: NullPointerException when Tomcat calls org.apache.catalina.connector.Request.parseParameters

2010-10-07 Thread laredotornado
You are correct. This stack trace came from a server with 6.0.13 installed. We also observed this in our environment with 6.0.24. Right now, it is not an option to upgrade. Is there a work-around? Below is the connector info from our server.xml file and the request from the Net panel of Fireb

Re: NullPointerException when Tomcat calls org.apache.catalina.connector.Request.parseParameters

2010-10-06 Thread Konstantin Kolinko
2010/10/6 laredotornado : > > Hi, > > I'm using Tomcat 6.0.26 with Java 1.6.  I'm getting a strange > NullPointerException from a Tomcat class.  My code is … > >                if (request != null && > request.getParameter(FORM_SUBMIT_SITE_NAME + > "FormSubmit") != null) { > > and the stack trace

Re: NullPointerException when Tomcat calls org.apache.catalina.connector.Request.parseParameters

2010-10-06 Thread André Warnier
laredotornado wrote: Hi, I'm using Tomcat 6.0.26 with Java 1.6. I'm getting a strange NullPointerException from a Tomcat class. My code is … if (request != null && request.getParameter(FORM_SUBMIT_SITE_NAME + "FormSubmit") != null) { and the stack trace is below. I have ver

RE: NullPointerException in MimeHeaders

2010-02-03 Thread Bertalan Kis
Thanks for the comment, I will search our code and see where we modify the headers concurrently. Bertalan Kis -Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: 03 February 2010 06:34 To: Tomcat Users List Subject: Re: NullPointerException in MimeHeaders

Re: NullPointerException in MimeHeaders

2010-02-02 Thread Konstantin Kolinko
2010/2/2 Bertalan Kis : > It seems attachments are disabled. > Here are the stacktraces: > > Jan 29, 2010 1:13:20 AM > com.sun.xml.ws.transport.http.servlet.WSServletDelegate doGet > SEVERE: caught throwable > java.lang.NullPointerException >        at > org.apache.tomcat.util.http.MimeHeaders.se

RE: NullPointerException in MimeHeaders

2010-02-02 Thread Bertalan Kis
[mailto:chuck.caldar...@unisys.com] Sent: 02 February 2010 13:13 To: Tomcat Users List Subject: RE: NullPointerException in MimeHeaders > From: Bertalan Kis [mailto:bertalan@razorfish.com] > Subject: RE: NullPointerException in MimeHeaders > > I can't see any suspicious in that class, maybe y

RE: NullPointerException in MimeHeaders

2010-02-02 Thread Caldarale, Charles R
> From: Bertalan Kis [mailto:bertalan@razorfish.com] > Subject: RE: NullPointerException in MimeHeaders > > I can't see any suspicious in that class, maybe you can: The fact that the filter /sometimes/ chooses synchronization makes me very suspicious, especially since the

RE: NullPointerException in MimeHeaders

2010-02-02 Thread Bertalan Kis
request.getParameter("xsd") != null; } Cheers, Bertalan Kis -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: 02 February 2010 12:53 To: Tomcat Users List Subject: RE: NullPointerException in MimeHeaders > From: Bertalan Kis [

RE: NullPointerException in MimeHeaders

2010-02-02 Thread Caldarale, Charles R
> From: Bertalan Kis [mailto:bertalan@razorfish.com] > Subject: RE: NullPointerException in MimeHeaders > > com.dnaO2.openspace.client.filter.MetadataRequestSynchFilter.doFilter > (MetadataRequestSynchFilter.java:54) The above is the spot you should be looking at, since that&#

RE: NullPointerException in MimeHeaders

2010-02-02 Thread Bertalan Kis
It seems attachments are disabled. Here are the stacktraces: Jan 29, 2010 1:13:20 AM com.sun.xml.ws.transport.http.servlet.WSServletDelegate doGet SEVERE: caught throwable java.lang.NullPointerException at org.apache.tomcat.util.http.MimeHeaders.setValue(MimeHeaders.java:269) at

Re: NullPointerException on Struts Action

2009-09-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, On 9/18/2009 2:24 PM, Martin Gainty wrote: > chris ..struts-1.2.9 is only 3 years old BTW Fair enough, but it's been abandoned and replaced with 1.3.x, which does not have the DataSource stuff in it anymore (for good reason: app servers provi

RE: NullPointerException on Struts Action

2009-09-18 Thread Julio César Chaves Fernández
mmm yes you're right I should post this on the struts forum but thanks... i'll check what you said about the right implementation. Thanks > Date: Fri, 18 Sep 2009 12:04:11 -0400 > From: ch...@christopherschultz.net > To: users@tomcat.apache.org > Subject: Re: NullPoin

RE: NullPointerException on Struts Action

2009-09-18 Thread Martin Gainty
esponsabilité pour le contenu fourni. > Date: Fri, 18 Sep 2009 12:04:11 -0400 > From: ch...@christopherschultz.net > To: users@tomcat.apache.org > Subject: Re: NullPointerException on Struts Action > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Julio, >

Re: NullPointerException on Struts Action

2009-09-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Julio, On 9/18/2009 9:44 AM, Julio César Chaves Fernández wrote: > Hi, i've been having a strange behavior with some struts apps deployed on > Oracle portal. Given that this is Struts running on Oracle, why not ask your question on the Struts list o

Re: NullPointerException - org.apache.tomcat.util.http.MimeHeaders.clear(MimeHeaders.java:130)

2009-08-13 Thread Rastogi Nikhil
Hi Mark, Pardon me for the mistakes (this was my first ever post to any forum). The full stack trace is as follows: java.lang.NullPointerException at org.apache.tomcat.util.http.MimeHeaders.clear(MimeHeaders.java:130) at org.apache.coyote.Response.reset(Response.java:289)

Re: NullPointerException - org.apache.tomcat.util.http.MimeHeaders.clear(MimeHeaders.java:130)

2009-08-13 Thread Mark Thomas
Rastogi Nikhil wrote: > I've implemented Axis2 Web Services in Tomcat 5.5.26 and at times of high > load (when there are several web service client requests coming in to > Tomcat), Tomcat starts throwing following NPE: Posting the same question to the dev and users list is poor list etiquette. If

RE: NullPointerException from DriverManager.getConnection() ->JdbcOdbcDriver.initialize()

2009-02-08 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:mgai...@hotmail.com] > Subject: RE: NullPointerException from > DriverManager.getConnection() ->JdbcOdbcDriver.initialize() > > that message does'nt make sense Why not? It's a NullPointerException, not a ClassNotFoundException. >

RE: NullPointerException from DriverManager.getConnection() -> JdbcOdbcDriver.initialize()

2009-02-08 Thread Nicholas Albion
Tomcat: 5.5.25 Java: 1.6.0_02-b06 It works when I run Tomcat on JRE 1.5. The class is loaded in Java 1.6, but the NPE is thrown within the JdbcOdbcDriver code: > java.lang.NullPointerException > at sun.jdbc.odbc.JdbcOdbcDriver.initialize(Unknown Source) at > sun.jdbc.odbc.JdbcOdbcDriver.con

RE: NullPointerException from DriverManager.getConnection() -> JdbcOdbcDriver.initialize()

2009-02-08 Thread Martin Gainty
that message does'nt make sense %JAVA_HOME%\jre\lib\rt.jar contains the sun.jdbc.odbc.JdbcOdbcDriver class please verify rt.jar is on your CLASSPATH and display which version JAVA and TC you are using.. Martin __ Disclaimer and confidentiality no

RE: NullPointerException from DriverManager.getConnection() -> JdbcOdbcDriver.initialize()

2009-02-08 Thread Caldarale, Charles R
> From: Nicholas Albion [mailto:nicholas.alb...@vecommerce.com.au] > Subject: RE: NullPointerException from > DriverManager.getConnection() -> JdbcOdbcDriver.initialize() > > all of a sudden, I'm getting a NullPointerException from > the JDBC-ODBC bridge The JDBC-

RE: NullPointerException from DriverManager.getConnection() -> JdbcOdbcDriver.initialize()

2009-02-08 Thread Nicholas Albion
For whatever reason, I've had to down-grade from jdk1.6.0_06 to jdk1.5.0_14/jre and it seems to be working > all of a sudden, I'm getting a NullPointerException from the JDBC-ODBC bridge, but only when I'm running the same code in Tomcat: > > java.lang.NullPointerException > at sun.jdbc.odbc.Jdb

Re: NullPointerException 5.5.17 Request.setAttribute(Request.java:1376)

2008-08-19 Thread Mark Thomas
Adam Jenkins wrote: > Hi All, > I'be been tearing my hair out for a couple of weeks over this one and would > appreciate any assistance anyone could give. It's a bit of a unique > scenario, so it'll take me a little while to explain: > We have a legacy struts app, forwarding to a jsf app (detail

Re: nullpointerexception with standard manager

2007-05-09 Thread Rashmi Rubdi
On 5/9/07, mélanie langlois <[EMAIL PROTECTED]> wrote: Hi, Thank you for your explanation. Actually, we don't need this feature in our application, so i want to disable the persistence of session. To disable the persistence of session add this between the opening and closing tag However

Re: nullpointerexception with standard manager

2007-05-09 Thread mélanie langlois
I saw only explanation for doing this on tomcat 5.5.x by modifying context.xml .. Thanks, Mélanie From: David Delbecq <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" To: Tomcat Users List Subject: Re: nullpointerexception with standard manager Date: Mon, 07 Ma

Re: nullpointerexception with standard manager

2007-05-07 Thread David Delbecq
The standardmanager persist sessions across reload using serialization. That mean all object in session must be serializable. An object is serializable if 1) it implements the Serializable interface (see also the externalizable interface which give more control on serialization) 2) it has an no-par

Re: NullPointerException after approx 3000 comet requests

2007-04-24 Thread Filip Hanik - Dev Lists
Sebastiaan van Erk wrote: Hi, I'm running Tomcat 6.0.10 on Linux Ubuntu Feisty on Java 5. I have a CometProcessor which handles a large number of requests in a very short time, and after about 3000 requests I consistently get the following two errors: Apr 18, 2007 12:09:19 PM org.apache.tom

Re: NullPointerException with Parameters.getParameterValues(String)

2007-04-11 Thread Rahul Thakur
Hi Chris, Rahul Thakur wrote: > Looks like it was the 'username'. The username is being initialised in > the taglib handler implementation but the behaviour differs between > JRun and Tomcat. That should not be the case. The servlet spec is quite clear about the order of execution of the vario

Re: NullPointerException with Parameters.getParameterValues(String)

2007-04-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rahul, Rahul Thakur wrote: > Looks like it was the 'username'. The username is being initialised in > the taglib handler implementation but the behaviour differs between > JRun and Tomcat. That should not be the case. The servlet spec is quite clear

Re: NullPointerException with Parameters.getParameterValues(String)

2007-04-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert, Robert Harper wrote: > Try username. I'm surprised the compiler doesn't complain that username is > being used without being initialized. If it didn't, the compiler probably > set username to be null. I don't know of a single compiler that wi

Re: NullPointerException with Parameters.getParameterValues(String)

2007-04-10 Thread Rahul Thakur
Looks like it was the 'username'. The username is being initialised in the taglib handler implementation but the behaviour differs between JRun and Tomcat. In the layout template jsp for the admin console, we use a taglib that checks if a user is logged in or not. The following snippet works on J

RE: NullPointerException with Parameters.getParameterValues(String)

2007-04-10 Thread Robert Harper
Try username. I'm surprised the compiler doesn't complain that username is being used without being initialized. If it didn't, the compiler probably set username to be null. You need to pass a valid string to the method getParameter(); Try something more like: String username = null; Username =

Re: NullPointerException with Parameters.getParameterValues(String)

2007-04-10 Thread Rashmi Rubdi
On 4/10/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: Huh? Are you suggesting that this will cause an NPE: String username; ... username = pageContext.getRequest().getParameter(username); ??! That's simply not true. Sorry you are right, this code doesn't even compile leave alone ge

Re: NullPointerException with Parameters.getParameterValues(String)

2007-04-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rashmi, Rashmi Rubdi wrote: > From looking at the following snippet I assume that username, password > and logout are initialized as in: > > String username ="username"; > String password ="password"; > String logout="logout"; > > If the above are n

Re: NullPointerException with Parameters.getParameterValues(String)

2007-04-09 Thread Rashmi Rubdi
From looking at the following snippet I assume that username, password and logout are initialized as in: String username ="username"; String password ="password"; String logout="logout"; If the above are not initialized then you would get NPE. On 4/9/07, Rahul Thakur <[EMAIL PROTECTED]> wrote:

Re: NullPointerException with Parameters.getParameterValues(String)

2007-04-09 Thread Rahul Thakur
Yes I noticed that bug report. Here's the relevant snippet for the login form. TIA, Rahul - snip   Login

Re: NullPointerException with Parameters.getParameterValues(String)

2007-04-09 Thread Rashmi Rubdi
Can you also post the HTML Form? May be it has some syntax errors. Someone has reported a bug that looks a bit similar but is not the same: http://mail-archives.apache.org/mod_mbox/tomcat-dev/200401.mbox/[EMAIL PROTECTED] -Rashmi On 4/9/07, Rahul Thakur <[EMAIL PROTECTED]> wrote: root cause j

Re: NullPointerException

2006-08-14 Thread Steve R Burrus
Please forgive my rather "dumb naivete" but what exactly is OpenEdit supposed to be anyway? I don't believe that I have ever heard of it before!! Antonio F. Tornisiello wrote: Hi, I'm facing a very strange problem trying to install OpenEdit as a WAR archive. If I extract it under the main s

Re: NullPointerException

2006-08-14 Thread Antonio F. Tornisiello
Mark, You seen to have located the problem :D On the main server the option to unpack WAR files was set to true but not in the virtual site section. It seens to have solved my problem. Thanks a lot :D []'s Antonio Mark Thomas wrote: This is expected with a WAR file. It looks like the app exp

Re: NullPointerException

2006-08-14 Thread Mark Thomas
Antonio F. Tornisiello wrote: > Hi, > > I'm facing a very strange problem trying to install OpenEdit as a WAR > archive. > If I extract it under the main server webapps directory, it works fine. > But the application is for only one customer, so I need to get it > working under a virtual website.