Upgrade with async leads to infinite onDataAvailable

2018-07-25 Thread Sergey Mashkov
Hi I am facing problem in the following scenario: In response to an upgrade request I do upgrade, get WebConnection instance, take UpgradedServletInputStream from it As far it is a usual ServletInputStream I set ReadListener on it. It works almost properly so I didn't notice it for long. Now I se

Re: Protocol handler initialization failed, Address already in use

2018-07-11 Thread Sergey Esin
MTU:65536 Metric:1 RX packets:35 errors:0 dropped:0 overruns:0 frame:0 TX packets:35 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:9215 (8.9 KiB) TX bytes:9215 (8.9 KiB) On Tue, Jul 10, 2018 at 9:00 AM Jäkel, Guido wrote: >

Protocol handler initialization failed, Address already in use

2018-07-09 Thread Sergey Esin
no other processed on the host that use port 50080. The OS in docker container is: # cat /etc/os-release NAME="Alpine Linux" ID=alpine VERSION_ID=3.7.0 PRETTY_NAME="Alpine Linux v3.7" HOME_URL="http://alpinelinux.org"; BUG_REPORT_URL="http://bugs.alpinelinux.org"; with all available updates and with glibc 2.27-r0. Could you please suggest how to understand the reason? -- Regards, Sergey

Stream closed error while rendering JSP

2018-02-20 Thread Sergey Zolotarev
Hello, I'm trying to debug an exception that sometimes happens when Tomcat renders a JSP page. I have a custom error page (error.jsp) in a Struts 2 application defined in struts.xml like this: /error.jsp Sometimes it fails to render with and Tomcat says that it can't read the J

UpgradedServletInputStream.read EOF

2017-10-09 Thread Sergey Mashkov
Hi Could anybody explain me why UpgradedServletInputStream does fail with EOFException in non-blocking mode instead of returning -1 ? Where can I find exact Servlet API specification about this async API behaviour? java.io.EOFException at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapp

Tomcat 9: UpgradedServletOutputStream

2017-08-11 Thread Sergey Mashkov
Hi everyone I am experiencing race condition: from time to time when I cann to UpgradedServletOutputStream.setWriteListener(myCallback) servlet container doesn't invoke neither myCallback.onWritePossible() nor .onError. I believe the reason is that setWriteListener() method implementation sets li

Re: setWriteListener and async operations concurrency

2016-10-27 Thread Sergey Mashkov
On Thu, Oct 27, 2016 at 2:19 PM André Warnier (tomcat) wrote: > On 27.10.2016 12:15, Sergey Mashkov wrote: > > Hi > > > > I am experiencing deadlock when trying to set output stream write > listener: > > The thread from my own thread pool is trying to set a w

setWriteListener and async operations concurrency

2016-10-27 Thread Sergey Mashkov
Hi I am experiencing deadlock when trying to set output stream write listener: The thread from my own thread pool is trying to set a write listener (my code via setWriteListener call) and another one thread is https-jsse-nio-N-exec is trying to close and flush (there is no my code in the stack tra

Re: Tomcat-7.0.61 and SFlow_Valve.jar issue

2015-08-20 Thread Sergey
I added logging to this module and found that there is a problem with System.getProperty("sflow.dsindex”) call. It was resolved by adding to startup.sh : export CATALINA_OPTS="$CATALINA_OPTS -Dsflow.dsindex=1234 -Dsflow.hostname=app_1" Now SflowValve,jar is working. Thanks! S

Re: Tomcat-7.0.61 and SFlow_Valve.jar issue

2015-08-11 Thread Sergey
I recompiled SFlow_Valve.jar with Tomcat-7.0.61. Now it doesn’t give any errors in the log, but also doesn’t send any metrics to port 6343. Is there any way to debug this valve? Thanks!Sergey > >> On Jul 23, 2015, at 11:52 AM, Violeta Georgieva > <mailto:miles...@gm

Re: Tomcat-7.0.61 and SFlow_Valve.jar issue

2015-07-24 Thread Sergey
Sorry, Do you mean that I have to recompile SFlow_Valve.jar or our application which we are running on Tomcat server? Thanks! Sergey > On Jul 24, 2015, at 1:46 AM, Felix Schumacher > wrote: > > > > Am 23. Juli 2015 21:04:22 MESZ, schrieb Sergey <mailto:svin...@apple

Re: Tomcat-7.0.61 and SFlow_Valve.jar issue

2015-07-23 Thread Sergey
I see that in SFlow_Valve Source code it’s already “long”: long bytes_read = (request.getCoyoteRequest()).getBytesRead(); Then what’s wrong and how can I fix this issue? Thanks! Sergey > On Jul 23, 2015, at 11:52 AM, Violeta Georgieva wrote: > > Hi, > > 2015-07-23 21:36 G

Tomcat-7.0.61 and SFlow_Valve.jar issue

2015-07-23 Thread Sergey
e) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Unknown Source) Did anybody have this issue? Thanks! S

Re: Exception by upgrading to WebSocket connection in 8.0.0-RC1

2013-08-16 Thread Sergey Shcherbakov
( ThreadPoolExecutor.java:1145) [na:1.7.0_17] at java.util.concurrent.ThreadPoolExecutor$Worker.run( ThreadPoolExecutor.java:615) [na:1.7.0_17] at java.lang.Thread.run(Thread.java:722) [na:1.7.0_17] and still no connection upgrade to WS :( Regards, Sergey On Thu, Aug 15, 2013 at 7:04 PM, Rossen

Exception by upgrading to WebSocket connection in 8.0.0-RC1

2013-08-15 Thread Sergey Shcherbakov
the reason? Thank you! Best Regards, Sergey

Re: Placing a webapp log file aside by other server log files

2011-07-04 Thread USHAKOV, Sergey
- Original Message - From: "Mark Eggers" To: "Tomcat Users List" Sent: Monday, July 04, 2011 1:27 AM Subject: Re: Placing a webapp log file aside by other server log files - Original Message - From: "USHAKOV, Sergey" To: users@tomcat.apach

Placing a webapp log file aside by other server log files

2011-07-03 Thread USHAKOV, Sergey
ot do the job, as server logs location may be changed from ${catalina.base}/logs to something else by the server's "logging.properties". Any ideas? Thanks and best regards, Sergey - To unsubscribe, e-mail:

Tomcat clustering issue

2009-08-07 Thread Sergey Udaltsov
backend: localhost In tomcat logs - no errors. Is there any way I could debug the situation? Any configuration variables to check on tomcat side? Changing AJP to HTTP does not change the behaviour. Thanks for any ideas! Sergey

Re: Tomcat cluster on Windows 7 RC

2009-06-15 Thread Sergey Elin
onfigured > > Filip > > Sergey Elin wrote: >> >> Hi, >> >> I'm trying to setup a simple 2-node tomcat cluster on Windows 7 RC. >> Everything works fine exept local nodes dosen't connect to each other >> and even dosen't find each other

Tomcat cluster on Windows 7 RC

2009-06-15 Thread Sergey Elin
Hi, I'm trying to setup a simple 2-node tomcat cluster on Windows 7 RC. Everything works fine exept local nodes dosen't connect to each other and even dosen't find each other. Any external nodes can find and share sessions with local. I try to follow some googled tips (even turn off firewall) with

Re: not valid Tomcat installation

2009-03-21 Thread Sergey Livanov
no, I have only tc 6.0.18 CATALINA_HOME points to c:\tomcat 2009/3/21 André Warnier > >> 2009/3/21 André Warnier >> >> Sergey Livanov wrote: >>> >>> I install Tomcat 6.0.18 in c:\tomcat. >>>> When add the new server Eclipse writes tha

Re: not valid Tomcat installation

2009-03-21 Thread Sergey Livanov
Thank you Andre. When I add a new server I specify a path where Tomcat installed before. Tc5.r I installed without problems. 2009/3/21 André Warnier > Sergey Livanov wrote: > >> I install Tomcat 6.0.18 in c:\tomcat. >> When add the new server Eclipse writes that tomcat in

not valid Tomcat installation

2009-03-21 Thread Sergey Livanov
I install Tomcat 6.0.18 in c:\tomcat. When add the new server Eclipse writes that tomcat install directory is not correct. It does not point to valid Tomcat installation. What should I do ?

Tuning Tomcat

2009-02-03 Thread Sergey Livanov
Help me to adjust JVM, please. My configuration - win2k server, Tomcat5.5.9 system vars - JAVA_HOME=c:\jre153, CATALINA_HOME=c:\tomcat catalina.bat - set CATALINA_OPTS="-server -Xms256M -Xmx512M" After start Free memory: 1.64 MB Total memory: 5.44 MB Max memory: 63.56 MB TIA . ---

Database connectivity problem

2008-01-07 Thread Sergey Livanov
Please help figure out a connection pool error. My application ( tomcat, spring, ibatis ) works well in the configuration SQL 2000 + ms server 2000. When I transfer the application ( war ) to a win 2003 server I get an error ( error creating connection pool e.t.c. ) (I think ms server 2003 needs to

Re: Quartz

2007-09-06 Thread Sergey Livanov
Do as you know and as it is more convenient. I can't start with org.quartz.ee.servlet. QuartzInitializerServlet init but when has tried spring - all has worked for 5 minutes. It is very pleased. In Quartz forum answer badly, it is lazy. In spring - it is very good. Support is much better. This m

Re: Quartz

2007-09-06 Thread Sergey Livanov
this code works for me well baseportal.com.portal.sheduler.SimpleJob baseportal.com.portal.sheduler.Simple2Job 1000 3000 0/15 * 22 * * ? 2007/9/6, Andrew Hole <[EMAIL PROTECTED]>: > > I can't find an example of using Quartz t

Re: Quartz

2007-09-06 Thread Sergey Livanov
Andrew, It is the best way to use Quartz together with spring. Look the documentation, there all very well is described. 2007/9/6, Andrew Hole <[EMAIL PROTECTED]>: > > I can't find an example of using Quartz to scheduling jobs on Tomcat Web > application. > Someone already work with Quartz? Co

tomact and tcp sockets problem

2006-10-27 Thread Sergey Komar
=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/ I would highly appreciate your help or ideas. Thank you in advance! -- Best regards, Sergey mailto:[EMAIL PROTECTED] - To start a new topic, e-mail: users@tom