Re: Null host causing NullPointerException in CrawlerSessionManagerValve

2024-10-10 Thread Donald I Macdonald
Sgrìobh Rémy Maucherat na leanas 10/10/2024 aig 1:07f: The crawler valve seems to be defined on the Engine, but more importantly it seems you have no default host ? So the request is not being mapped and it would return 404 (but the valve would need some extra null checks). Rémy Ahhh of cour

Re: Null host causing NullPointerException in CrawlerSessionManagerValve

2024-10-10 Thread Rémy Maucherat
On Thu, Oct 10, 2024 at 1:37 PM Donald I Macdonald wrote: > > Hi there, > > I've a tomcat 9.0.91 server (running on Corretto OpenJDK 17.0.12.7.1 + > Amazon Linux 2023). It runs behind nginx (v1.24.0). > > The catalina log records a NPE SEVERE error every few seconds, > complaining that the Host us

Null host causing NullPointerException in CrawlerSessionManagerValve

2024-10-10 Thread Donald I Macdonald
Hi there, I've a tomcat 9.0.91 server (running on Corretto OpenJDK 17.0.12.7.1 + Amazon Linux 2023). It runs behind nginx (v1.24.0). The catalina log records a NPE SEVERE error every few seconds, complaining that the Host used in the getClientIdentifier method within the CrawlerSessionManage

Re: contextVersion NullPointerException due to race condition

2024-03-11 Thread Mark Thomas
n reset by peer")= exception for that SSE request and ends up in Mapper.map() and gets a null= result from contextObjectToContextVersionMap.get(context). In the end this causes = a NullPointerException in internalMapWrapper when calling contextVersion.path.length() This seems to be

contextVersion NullPointerException due to race condition

2024-02-29 Thread FRANTS Patrick
sult from contextObjectToContextVersionMap.get(context). In the end this causes = a NullPointerException in internalMapWrapper when calling contextVersion.path.length() This seems to be only in Tomcat 10.1.12+. Tomcat 10.1.11 does not have the = problem. Regards, Patrick This ema

Re: NullPointerException in Tomcat startup while parsing XML configuration file

2022-03-15 Thread Mark Thomas
x27;s not obvious at all. If you are capable of attaching a debugger to Tomcat, you are most certainly capable of modifying an XML file within a JAR file. It does not prevent Tomcat startup. Good. It only prevents me from finding the NullPointerException in my application startup. Does it? H

Re: NullPointerException in Tomcat startup while parsing XML configuration file

2022-03-15 Thread Christopher Schultz
ing a debugger to Tomcat, you are most certainly capable of modifying an XML file within a JAR file. It does not prevent Tomcat startup. Good. It only prevents me from finding the NullPointerException in my application startup. Does it? How so? Because the NPE happens before your NPE happen

RE: NullPointerException in Tomcat startup while parsing XML configuration file

2022-03-15 Thread Harri Pesonen
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 does not prevent Tomcat startup. It only prevents me from finding the NullPointerException in my

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

NullPointerException in Tomcat startup while parsing XML configuration file

2022-03-14 Thread Harri Pesonen
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.75.jar!\org\apache\tomcat

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

NullPointerException on statrup - possible bug in Tomcat

2020-06-24 Thread tomcat-subs
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 to the point I've found where it is failin

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 t

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

NullPointerException in CoyoteOutputStream

2020-06-12 Thread 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 called from is the recycle() method in the Response o

Re: Re: Tomcat 8.5.48: NullPointerException in ApplicationMapping.getHttpServletMapping()

2019-11-18 Thread Adam Rauch
On 11/17/2019 9:01 AM, Mark Thomas wrote: On 16/11/2019 22:08, Adam Rauch wrote: While testing 8.5.48, we now see NullPointerExceptions when our ImageServlet code attempts to forward a request to a new location. In 8.5.47, the code works fine. Thanks for reporting this. I can see what the pro

RE: Tomcat 8.5.48: NullPointerException in ApplicationMapping.getHttpServletMapping()

2019-11-18 Thread jonmcalexander
-Original Message- From: Mark Thomas Sent: Monday, November 18, 2019 3:41 AM To: users@tomcat.apache.org Subject: Re: Tomcat 8.5.48: NullPointerException in ApplicationMapping.getHttpServletMapping() On 18/11/2019 04:36, jonmcalexan...@wellsfargo.com.INVALID wrote: > Oh yippee. Anot

Re: Tomcat 8.5.48: NullPointerException in ApplicationMapping.getHttpServletMapping()

2019-11-18 Thread Mark Thomas
on herein. If you have received this message in error, please advise > the sender immediately by reply e-mail and delete this message. Thank you for > your cooperation. > > -Original Message- > From: Mark Thomas > Sent: Sunday, November 17, 2019 11:01 AM > To: users@to

RE: Tomcat 8.5.48: NullPointerException in ApplicationMapping.getHttpServletMapping()

2019-11-17 Thread jonmcalexander
- From: Mark Thomas Sent: Sunday, November 17, 2019 11:01 AM To: users@tomcat.apache.org Subject: Re: Tomcat 8.5.48: NullPointerException in ApplicationMapping.getHttpServletMapping() On 16/11/2019 22:08, Adam Rauch wrote: > While testing 8.5.48, we now see NullPointerExceptions when

Re: Tomcat 8.5.48: NullPointerException in ApplicationMapping.getHttpServletMapping()

2019-11-17 Thread Mark Thomas
On 16/11/2019 22:08, Adam Rauch wrote: > While testing 8.5.48, we now see NullPointerExceptions when our > ImageServlet code attempts to forward a request to a new location. In > 8.5.47, the code works fine. Thanks for reporting this. I can see what the problem is. I updated the servlet4preview A

Tomcat 8.5.48: NullPointerException in ApplicationMapping.getHttpServletMapping()

2019-11-16 Thread Adam Rauch
While testing 8.5.48, we now see NullPointerExceptions when our ImageServlet code attempts to forward a request to a new location. In 8.5.47, the code works fine. A simplified version of our code:     public void sendResource(HttpServletRequest request, HttpServletResponse response) throws IO

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.

NullPointerException in Response.generateCookieString()

2017-07-17 Thread 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.catalina.connector.Response.generateCookieString(Response.j

Re: Aw: Re: Was bug 58646 (NullPointerException in InternalNioOutputBuffer) also fixed for 8.5.5?

2017-03-24 Thread Andrew Garland
Mark, FYI I created https://bz.apache.org/bugzilla/show_bug.cgi?id=60918 which is a bug report for 8.5.11 with similar characteristics to the one reported in bug 58646 -- View this message in context: http://tomcat.10.x6.nabble.com/Was-bug-58646-NullPointerException-in

Re: Tomcat 8.5.3 with Apr Connector throws NullPointerException

2017-03-20 Thread linbo liao
MT+08:00 Mark Thomas : > On 20/03/17 03:15, linbo liao wrote: > > Hi, > > > > My tomcat throws NullPointerException sometimes. Here is environment: > > > > Linux VM: RedHat Enterprise Linux Server release 6.7 x86_64 > > Tomcat: 8.5.3 > > JVM: HotSpot 64-

Re: Tomcat 8.5.3 with Apr Connector throws NullPointerException

2017-03-20 Thread Mark Thomas
On 20/03/17 03:15, linbo liao wrote: > Hi, > > My tomcat throws NullPointerException sometimes. Here is environment: > > Linux VM: RedHat Enterprise Linux Server release 6.7 x86_64 > Tomcat: 8.5.3 > JVM: HotSpot 64-Bit Server VM 1.8.0_65 > APR: 1.5.2-1 > Tomcat N

Tomcat 8.5.3 with Apr Connector throws NullPointerException

2017-03-19 Thread linbo liao
Hi, My tomcat throws NullPointerException sometimes. Here is environment: Linux VM: RedHat Enterprise Linux Server release 6.7 x86_64 Tomcat: 8.5.3 JVM: HotSpot 64-Bit Server VM 1.8.0_65 APR: 1.5.2-1 Tomcat Native: 1.2.7 The exception show in catalina.log : 18-Mar-2017 03:36:01.135 WARNING

Re: Aw: Re: Was bug 58646 (NullPointerException in InternalNioOutputBuffer) also fixed for 8.5.5?

2016-10-16 Thread Mark Thomas
On 16/10/2016 14:07, f...@arcor.de wrote: > Hello Mark! > Thank you very much! This helps! I think there is nothing we do with > request/response objects after their lifetime but we will double check it! If > we find a way to reproduce it and it looks like a tomcat bug I will open a > bug ticket

Aw: Re: Was bug 58646 (NullPointerException in InternalNioOutputBuffer) also fixed for 8.5.5?

2016-10-16 Thread flea
Hello Mark! Thank you very much! This helps! I think there is nothing we do with request/response objects after their lifetime but we will double check it! If we find a way to reproduce it and it looks like a tomcat bug I will open a bug ticket. Best regards Florian > On 15/10/2016 22:40, f...@

Re: Was bug 58646 (NullPointerException in InternalNioOutputBuffer) also fixed for 8.5.5?

2016-10-16 Thread Mark Thomas
On 15/10/2016 22:40, f...@arcor.de wrote: > Hello! > Some days ago we stumpled about a problem which looks at least very similar > to this one: > https://bz.apache.org/bugzilla//show_bug.cgi?id=58646 > > With tomcat 8.5.5 we saw a lot of these Exceptions after some time with real > users on the

Was bug 58646 (NullPointerException in InternalNioOutputBuffer) also fixed for 8.5.5?

2016-10-15 Thread flea
Hello! Some days ago we stumpled about a problem which looks at least very similar to this one: https://bz.apache.org/bugzilla//show_bug.cgi?id=58646 With tomcat 8.5.5 we saw a lot of these Exceptions after some time with real users on the platform: org.apache.catalina.connector.CoyoteAdapter.c

Re: Tomcat 8.5.5: SecureNioChannel.handshake throws NullPointerException during server startup

2016-09-19 Thread Avanish Kant
Thanks Remy for your input. May I know the related ticket# and when version 8.5.6 is expected to be released? On Sep 19, 2016 5:48 PM, R?my Maucherat wrote: 2016-09-19 11:54 GMT+02:00 Avanish Kant : > Extra bit of information that may help: > One change that I did try is to change "Http11NioPr

Re: Tomcat 8.5.5: SecureNioChannel.handshake throws NullPointerException during server startup

2016-09-19 Thread Rémy Maucherat
2016-09-19 11:54 GMT+02:00 Avanish Kant : > Extra bit of information that may help: > One change that I did try is to change "Http11NioProtocol" to > "Http11Nio2Protocol" just to see how it goes and noticed that this > Exception is not thrown for NIO2. > > I am suspecting that I have hit some bug

Tomcat 8.5.5: SecureNioChannel.handshake throws NullPointerException during server startup

2016-09-19 Thread Avanish Kant
is that I see following NullPointerException logged right after successful startup message. Please note that this exception is thrown even before I make an attempt to access the application from browser. Sep 19, 2016 2:30:26 PM org.apache.catalina.startup.Catalina start INFO: Server startup in

Re: Tomcat 8.5 NullPointerException on getSubmittedFileName() with HTTP/2

2016-06-16 Thread Thad Humphries
file"); > final String fileName = filePart.getSubmittedFileName(); > ... > > However when I add className="org.apache.coyote.http2.Http2Protocol" /> to the in > servlet.xml, the servlet fails with a NullPointerException on > filePart.getSubmittedFil

Tomcat 8.5 NullPointerException on getSubmittedFileName() with HTTP/2

2016-05-06 Thread Thad Humphries
t;); final String fileName = filePart.getSubmittedFileName(); ... However when I add to the in servlet.xml, the servlet fails with a NullPointerException on filePart.getSubmittedFileName(). Surprised, I tried uploading a .WAR through the Tomcat Manager with HTTP/2 enabled. Sure enough, it failed with t

Tomcat 8.5 NullPointerException on getSubmittedFileName() with HTTP/2

2016-04-29 Thread Thad Humphries
t;); final String fileName = filePart.getSubmittedFileName(); ... However when I add to the in servlet.xml, the servlet fails with a NullPointerException on filePart.getSubmittedFileName(). Has anyone else seen this? I'm am running Tomcat 8.5, Java 1.8.0_91, MacOS 10.10.5, and Chrome 50

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
> } > } > if (gotName) > logins = null; > } > } > > This all worked in Tomcat 7 but unfortunately isn't working in Tomcat > 8. I was getting "WARNING: Unable to determine Catalina base t

NullPointerException in MemoryRealm after upgrading to Tomcat 8.0.32 from 7.0.26

2016-03-08 Thread Jason Overland
onf/tomcat-users.xml" and so I had to start responding to TextInputCallback "catalinaBase" as required by the new getCatalinaBase method on JAASMemoryLoginModule. I got past that and now I'm getting a NullPointerException: Authentication fail

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.

NullPointerException when using NIO connector

2016-01-28 Thread João Sávio
Hello guys 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.NioEndpoint processSocket SEVERE: Error allocating socket processor java.lang.NullPointerE

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

NullPointerException in NioEndpoint under load (but not only)

2015-07-22 Thread Antoine Bonavita
Hello, Before I start with my question and stack trace, let me give you a bit of context: * Tomcat 7.0.61 * OpenJDK1.7.0_79 * Debian7 * Tomcat is running "behind" an nginx server (reverse proxying). * As we have pretty stringent constraints on response time, nginx is configured to reply to the

Re: Fwd: NullPointerException in websocket endpoint onerror

2015-01-15 Thread Mark Thomas
On 15/01/2015 14:34, Evil Bit wrote: > We're seeing the following issue with a websocket endpoint on tomcat 8.0.15 > when OnError tries to close the websocket session. What could be the problem? Most likely that what ever triggered the error has already closed the socket. It looks like some null

Fwd: NullPointerException in websocket endpoint onerror

2015-01-15 Thread Evil Bit
We're seeing the following issue with a websocket endpoint on tomcat 8.0.15 when OnError tries to close the websocket session. What could be the problem? java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source) at sun.reflect.Del

Re: ManagerBase.generateSessionId() gives me a NullPointerException

2014-03-07 Thread Mark Thomas
Looking at the logs added to https://issues.apache.org/bugzilla/show_bug.cgi?id=54315, the undeploy log in the failure case is a lot shorter. The Context appears to have no children (not even the servlets picked up from the default web.xml) which indicates that the deployment failed. My best guess

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: ManagerBase.generateSessionId() gives me a NullPointerException

2014-02-27 Thread Lorenzo Fini
Hi, as I told you I'm not a wizard in configuring log4j. using this configuration for log4j: log4j.logger.org.apache=FINE, logApache log4j.additivity.org.apache.catalina.util.LifecycleBase=false log4j.appender.logApache=org.apache.log4j.DailyRollingFileAppender log4j.appender.logApache.File=../lo

Re: ManagerBase.generateSessionId() gives me a NullPointerException

2014-02-27 Thread Mark Thomas
On 27/02/2014 15:01, Lorenzo Fini wrote: > Hi Mark, > > if I am just doing request.getSession() on the request that I receive, how > can it be an application error? That would depend on where the object named "request" was obtained from. > I do no store any request or session.. In which case, I

Re: ManagerBase.generateSessionId() gives me a NullPointerException

2014-02-27 Thread Lorenzo Fini
Hi Mark, if I am just doing request.getSession() on the request that I receive, how can it be an application error? I do no store any request or session.. 2014-02-27 15:55 GMT+01:00 Mark Thomas : > On 27/02/2014 14:35, Lorenzo Fini wrote: > > Hi, > > I get this error: > > > > java.lang.NullPoi

Re: ManagerBase.generateSessionId() gives me a NullPointerException

2014-02-27 Thread Mark Thomas
On 27/02/2014 14:35, Lorenzo Fini wrote: > Hi, > I get this error: > > java.lang.NullPointerException > > org.apache.catalina.session.ManagerBase.generateSessionId(ManagerBase.java:807) > > org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:653) > org.apache

ManagerBase.generateSessionId() gives me a NullPointerException

2014-02-27 Thread Lorenzo Fini
Hi, I get this error: java.lang.NullPointerException org.apache.catalina.session.ManagerBase.generateSessionId(ManagerBase.java:807) org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:653) org.apache.catalina.connector.Request.doGetSession(Request.java

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

NullPointerException when processing doFilter call in async Filter

2014-02-24 Thread Phill Cunnington
allow the filter to continue its processing asynchronously after the doFilter method has returned. To test this I created a simple filter which just creates a Future to make a call to FilterChain#doFilter. But what I see is a NullPointerException when making the call to FilterChain#doFilter

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) >

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

2014-02-18 Thread HU E
Dear all, During performance and stability run, we encountered one tomcat issue, i.e. sometimes a NullPointerException is thrown when executing org.apache.coyote.http11.InternalNioOutputBuffer.writeToSocket. This issue was happened very rarely. Following is the stack: PRS0: Http response

Re: Tomcat 7.0.48-dev WebSockets: NullPointerException on WsServerContainer.unregisterAuthenticatedSession

2013-11-28 Thread Francesco Bassi
gt; > whenever the HttpSession expires, I get a NullPointerException on > > WsServerContainer.unregisterAuthenticatedSession > > > > in this line: > > > > private void unregisterAuthenticatedSession(WsSession wsSession, > > String httpSessionId) { >

Re: Tomcat 7.0.48-dev WebSockets: NullPointerException on WsServerContainer.unregisterAuthenticatedSession

2013-11-28 Thread Mark Thomas
On 28/11/2013 14:06, Francesco Bassi wrote: > Hello everybody. > > I have a doubt: > > whenever the HttpSession expires, I get a NullPointerException on > WsServerContainer.unregisterAuthenticatedSession > > in this line: > > private void unregisterAuthentica

Tomcat 7.0.48-dev WebSockets: NullPointerException on WsServerContainer.unregisterAuthenticatedSession

2013-11-28 Thread Francesco Bassi
Hello everybody. I have a doubt: whenever the HttpSession expires, I get a NullPointerException on WsServerContainer.unregisterAuthenticatedSession in this line: private void unregisterAuthenticatedSession(WsSession wsSession, String httpSessionId) { Set wsSessions

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(

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

2013-03-14 Thread Nick Williams
quot;.basedir"); >>> tomcat.setPort(8973); >>> tomcat.enableNaming(); >>> tomcat.init(); >>> tomcat.start(); >>> >>> System.out.println("X: " + >>> tomcat.getConnector().getService().getC

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

2013-03-14 Thread Konstantin Kolinko
gt;>tomcat.init(); >>tomcat.start(); >> >>System.out.println("X: " + >> tomcat.getConnector().getService().getContainer()); >> >>tomcat.getServer().await(); >>} >> >> The System.out.println is fo

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

2013-03-14 Thread Nick Williams
m.out.println("X: " + > tomcat.getConnector().getService().getContainer()); > >tomcat.getServer().await(); >} > > The System.out.println is for debugging purposes, because I'm getting a > NullPointerException. Obviously I'm doing something wron

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

2013-03-14 Thread Nick Williams
ver().await(); } The System.out.println is for debugging purposes, because I'm getting a NullPointerException. Obviously I'm doing something wrong, because about an hour of Googling turned up precisely zero results of anyone who's getting a NullPointerException in MapperListener#findDefa

NullPointerException in NioBlockingSelector - not a problem though

2012-12-12 Thread Steffen Heil (Mailinglisten)
Hi I cannot reproduce it, but I've seen the following error in my logs a few times now: SEVERE: Error reading request, ignored java.lang.NullPointerException at org.apache.tomcat.util.net.NioBlockingSelector.read(NioBlockingSelector.java :193) at org.apache.tomcat.util.net.NioSele

Re: AW: Tomcat 7: JSP unloading - NullPointerException

2012-12-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Laszlo, On 12/7/12 10:58 AM, Keszthelyi Laszlo wrote: > It looks like the exception appears only when "maxLoadedJsps" and " > jspIdleTimeout" are set to a value >0 in tomcat/conf/web.xml and > ".tag" files are used with jsp- scriptlets. Thanks for

AW: Tomcat 7: JSP unloading - NullPointerException

2012-12-07 Thread Keszthelyi Laszlo
g on the fly. We were able to reproduce the exception on Tomcat 7.0.30, 7.0.32 and 7.0.33 on different machines using the described steps. Best regads Laszlo -Ursprüngliche Nachricht- Von: Keszthelyi Laszlo [mailto:laszlo.keszthe...@diepresse.com] Gesendet: Freitag, 07. Dezember 2012

AW: Tomcat 7: JSP unloading - NullPointerException

2012-12-07 Thread Keszthelyi Laszlo
: Freitag, 07. Dezember 2012 14:49 An: Tomcat Users List Betreff: Re: Tomcat 7: JSP unloading - NullPointerException 2012/12/7 Keszthelyi Laszlo : > > since Tomcat 7.0.30 (currently using version 7.0.33) I'm faced with the > following NullPointerException: > > De

Re: Tomcat 7: JSP unloading - NullPointerException

2012-12-07 Thread Konstantin Kolinko
2012/12/7 Keszthelyi Laszlo : > > since Tomcat 7.0.30 (currently using version 7.0.33) I'm faced with the > following NullPointerException: > > Dec 7, 2012 2:10:28 PM > org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor > processChildren > SEVERE

Tomcat 7: JSP unloading - NullPointerException

2012-12-07 Thread Keszthelyi Laszlo
Hi, since Tomcat 7.0.30 (currently using version 7.0.33) I'm faced with the following NullPointerException: Dec 7, 2012 2:10:28 PM org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor processChildren SEVERE: Exception invoking periodic operation: java.lang.NullPointerExce

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

2012-07-09 Thread ohaya
nalizer$4.run(Finalizer.java:186) > > > at java.lang.Thread.run(Thread.java:662) > > > > Do you see any Tomcat code in Trace B? No? Neither do I. So what makes > > you think there is a Tomcat problem here? > > > > Given the only difference in Trace A is

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

2012-07-08 Thread Konstantin Kolinko
ny Tomcat code in Trace B? No? Neither do I. So what makes >> you think there is a Tomcat problem here? >> >> Given the only difference in Trace A is that you are using a Tomcat >> Handler rather than the console I don't see anything here to suggest a >> Tomcat bug.

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

2012-07-07 Thread ohaya
anything here to suggest a > Tomcat bug. > > Looking at the source for java.util.ListResourceBundle, the key or the > value being used for the log message is null. That makes this an OAM > bug, not a Tomcat one. > > Mark > Hi Mark, Just to be clear, I wasn't pointi

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

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

2012-07-07 Thread ohaya
Hi, I have a simple servlet deployed to Tomcat 6.0.35, and when I enable in the web.xml, so that the servlet's init() method gets run when Tomcat starts up, I get: . . In LoginServlet.init: Returned from calling CreateDefaultInstance... In LoginServlet.init: FINISHED initializing!! Jul 7, 2012

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

NullPointerException during servlet.service()

2012-02-20 Thread Adrien RUFFIE
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-02-15 16:04:56,722 ERROR org.apache.catalina.core.ContainerBase.[Catalina].[local

Re: error in clustering: NullPointerException at java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength

2011-06-17 Thread Konstantin Kolinko
2011/6/17 Ronald Klop : > Regarding 'wine'. (...) > Darn, I look closer now and see the 'unless="skip.installer"' in dist.xml. Wine is required to build the exe installer. This step can be turned off, as you have found. > Thanks, I'm very close to debugging Tomcat myself. Is it easy to edit Tomca

Re: error in clustering: NullPointerException at java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength

2011-06-17 Thread Ronald Klop
Op donderdag, 16 juni 2011 18:55 schreef Christopher Schultz : -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ronald, On 6/16/2011 11:40 AM, Ronald Klop wrote: > I created a release package. First had to find a computer with Windows, > because it needs wine (I didn't want to le

Re: error in clustering: NullPointerException at java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength

2011-06-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ronald, On 6/16/2011 11:40 AM, Ronald Klop wrote: > I created a release package. First had to find a computer with Windows, > because it needs wine (I didn't want to learn wine on FreeBSD today), > but ok it builds now. Wait, what? Why do you need Wi

Re: error in clustering: NullPointerException at java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength

2011-06-16 Thread Ronald Klop
Good tip. I created a release package. First had to find a computer with Windows, because it needs wine (I didn't want to learn wine on FreeBSD today), but ok it builds now. Now I'll wait for my precious bug fix to get committed to 6. :-) Ronald. Op donderdag, 16 juni 2011 16:54 schreef Chris

Re: error in clustering: NullPointerException at java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength

2011-06-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ronald, On 6/16/2011 6:39 AM, Ronald Klop wrote: > A little lobby is started: > http://marc.info/?l=tomcat-dev&m=130805807619349&w=2 > > Thanks, but no reply yet from jfclere. He must be busy. > I'm not familiar with the inner workings of the Tomcat

Re: error in clustering: NullPointerException at java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength

2011-06-16 Thread Ronald Klop
A little lobby is started: http://marc.info/?l=tomcat-dev&m=130805807619349&w=2 Thanks, but no reply yet from jfclere. He must be busy. I'm not familiar with the inner workings of the Tomcat organization, but shouldn't releases be less dependent on one person? Ronald. Op dinsdag, 14 juni 2011

Re: error in clustering: NullPointerException at java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength

2011-06-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ronald, On 6/14/2011 6:23 AM, Ronald Klop wrote: > I see the issue if solved in an upcoming version of Tomcat. Thank you > very much for that. But can I expect an upcoming version of Tomcat 6.0 > in the not too distant future? > At the tomcat-dev list

Re: error in clustering: NullPointerException at java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength

2011-06-14 Thread Ronald Klop
Hi, I see the issue if solved in an upcoming version of Tomcat. Thank you very much for that. But can I expect an upcoming version of Tomcat 6.0 in the not too distant future? At the tomcat-dev list I only see recent votings for 7.0.x. Who normally is the initiator of the 6.x release cycle? Ro

  1   2   >