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

Exception in thread http-bio-8081-exec-9 java.lang.StackOverflowError

2014-02-18 Thread Dilip Sankhla
* I am getting below mention error, every thing was working fine with tomcat 6. Please Help My tomcat and java configurations are Server version: Apache Tomcat/7.0.50 Server built: Dec 19 2013 10:18:12 Server number: 7.0.50.0 OS Name:Mac OS X OS Version: 10.7.5 Architecture:

Re: Exception in thread http-bio-8081-exec-9 java.lang.StackOverflowError

2014-02-18 Thread Konstantin Kolinko
2014-02-18 13:49 GMT+04:00 Dilip Sankhla dilipsank...@gmail.com: * I am getting below mention error, every thing was working fine with tomcat 6. Please Help My tomcat and java configurations are Server version: Apache Tomcat/7.0.50 Server built: Dec 19 2013 10:18:12 Server number:

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: snip/ 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)

Websocket on tomcat 7.0.50 not working

2014-02-18 Thread J Java
I am trying to implement a websocket on tomcat 7.0.50 using annotated endpoints as specified in Java Websocket API (1.0)- JSR 356. Following are the brief steps how I have coded it 1) Write a websocket endpoint using @ServerEndpoint annotation 2) implement @onOpen and @onMessage methods 3) open a

Re: Websocket on tomcat 7.0.50 not working

2014-02-18 Thread Mark Thomas
On 18/02/2014 11:42, J Java wrote: I am trying to implement a websocket on tomcat 7.0.50 using annotated endpoints as specified in Java Websocket API (1.0)- JSR 356. Following are the brief steps how I have coded it 1) Write a websocket endpoint using @ServerEndpoint annotation 2) implement

Re: Websocket on tomcat 7.0.50 not working

2014-02-18 Thread J Java
I have currently deployed it through Eclipse Juno. However I am *not * using Eclipse's instance. My webapp gets deployed in my tomcat and not Eclipse's one. Please let me know any additional information you need. Or please let me know how to go debugging it like checking if Websocket Server

Re: Websocket on tomcat 7.0.50 not working

2014-02-18 Thread J Java
Also I using Struts 2. but my Struts2 servlet only handles urls with pattern : *.action filter-mapping filter-namestruts2/filter-name url-pattern*.action/url-pattern /filter-mapping Also I have configured Spring security but logs show that it is filtering the request properly. On Tue, Feb 18,

Re: Websocket on tomcat 7.0.50 not working

2014-02-18 Thread J Java
just an update : this is what i get in tomcat access logs : 127.0.0.1 - - [18/Feb/2014:16:42:45 +0530] GET /jkweb/websocket/fileuploadtracker HTTP/1.1 404 1017 is this correct ?? On Tue, Feb 18, 2014 at 5:56 PM, J Java jforjava1...@gmail.com wrote: Also I using Struts 2. but my Struts2

Re: Websocket on tomcat 7.0.50 not working

2014-02-18 Thread Niki Dokovski
On Tue, Feb 18, 2014 at 3:10 PM, J Java jforjava1...@gmail.com wrote: just an update : this is what i get in tomcat access logs : 127.0.0.1 - - [18/Feb/2014:16:42:45 +0530] GET /jkweb/websocket/fileuploadtracker HTTP/1.1 404 1017 is this correct ?? Can you check the context root of the

Re: Websocket on tomcat 7.0.50 not working

2014-02-18 Thread J Java
yes Nikki. its jkweb Thanks, Shailesh On Tue, Feb 18, 2014 at 6:53 PM, Niki Dokovski nick...@gmail.com wrote: On Tue, Feb 18, 2014 at 3:10 PM, J Java jforjava1...@gmail.com wrote: just an update : this is what i get in tomcat access logs : 127.0.0.1 - - [18/Feb/2014:16:42:45

Re: Websocket on tomcat 7.0.50 not working

2014-02-18 Thread J Java
Another Update: I downloaded 8.0.3 as well and started it without eclipse and deployed the app but still the same result. How to check if tomcat is creating the server endpoints for my websocket? I don't understand what I am doing wrong? Guys, need your help ASAP. Thanks, Shailesh. On Tue,

Re: Websocket on tomcat 7.0.50 not working

2014-02-18 Thread J Java
Hey guys, I have solved it. Problem was very specific to my installation. I had the websocket api .jar being installed in my app's WEB-INF/lib directory as well. Not sure why it was breaking it. can you put some light on the root cause of this behaviour and why it doesn't work when you gave

Re: Unable to shutdown tomcat

2014-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Tim, (This looks alot like a question posted recently by Pooja). On 2/16/14, 3:05 PM, Tim Leung wrote: I did a kill -3, and see these messages written to catalina.out. Something definitely doesn't seem right - [snip] Thread-5 daemon prio=5

RE: Unable to shutdown tomcat

2014-02-18 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Unable to shutdown tomcat Thread-5 daemon prio=5 tid=7fe82c1f7000 nid=0x10c4bb000 waiting for monitor entry [] java.lang.Thread.State: BLOCKED (on object monitor) This thread might be a problem. Nope

GZIP support in Tomcat 7

2014-02-18 Thread Akash Jain
I have following configuration in my server.xml : Connector port=19380 protocol=HTTP/1.1 compression=on compressableMimeType=text/ html,text/xml,text/plain,application/javascript,application/json,text/javascript,text/json

Re: GZIP support in Tomcat 7

2014-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Akash, On 2/18/14, 7:45 PM, Akash Jain wrote: I have following configuration in my server.xml : Connector port=19380 protocol=HTTP/1.1 compression=on compressableMimeType=text/

Re: Unable to shutdown tomcat

2014-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chuck, On 2/18/14, 5:38 PM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Unable to shutdown tomcat Thread-5 daemon prio=5 tid=7fe82c1f7000 nid=0x10c4bb000 waiting for monitor entry

Re: GZIP support in Tomcat 7

2014-02-18 Thread Dhaval Jaiswal
Can you add below entry and check. text/css. Just give a try for the below too and revert with result. application/js, text/js You can add compressionMinSize if you want. On Wed, Feb 19, 2014 at 6:15 AM, Akash Jain akash.delh...@gmail.com wrote: I have following configuration in my

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

2014-02-18 Thread HU E
Mark, 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). Thanks Eric -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Tuesday,