Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Struts
Struts2 cookies
debraj mallick
Ranch Hand
Posts: 188
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hi all,
i am getting exception when trying to add a large cookie,
28 Nov, 2011 3:27:02 PM org.apache.catalina.connector.CoyoteAdapter service SEVERE: An exception or error occurred in the container during the request processing java.lang.ArrayIndexOutOfBoundsException 28 Nov, 2011 3:27:02 PM org.apache.coyote.http11.AbstractHttp11Processor endRequest SEVERE: Error finishing response java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at org.apache.coyote.http11.AbstractOutputBuffer.write(AbstractOutputBuffer.java:491) at org.apache.coyote.http11.AbstractOutputBuffer.sendStatus(AbstractOutputBuffer.java:331) at org.apache.coyote.http11.AbstractHttp11Processor.prepareResponse(AbstractHttp11Processor.java:952) at org.apache.coyote.http11.AbstractHttp11Processor.action(AbstractHttp11Processor.java:739) at org.apache.coyote.Response.action(Response.java:168) at org.apache.coyote.http11.AbstractOutputBuffer.endRequest(AbstractOutputBuffer.java:308) at org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutputBuffer.java:160) at org.apache.coyote.http11.AbstractHttp11Processor.endRequest(AbstractHttp11Processor.java:990) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:350) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:204) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:182) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:311) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) 28 Nov, 2011 3:28:43 PM org.apache.catalina.core.StandardServer await INFO: A valid shutdown command was received via the shutdown port. Stopping the Server instance. 28 Nov, 2011 3:28:43 PM org.apache.coyote.AbstractProtocolHandler pause INFO: Pausing ProtocolHandler ["http-bio-8080"] 28 Nov, 2011 3:28:44 PM org.apache.coyote.AbstractProtocolHandler pause INFO: Pausing ProtocolHandler ["ajp-bio-8009"] 28 Nov, 2011 3:28:47 PM org.apache.catalina.core.StandardService stopInternal INFO: Stopping service Catalina [ INFO] [main 03:28:47] (AbstractApplicationContext.java:doClose:1002) Closing Root WebApplicationContext: startup date [Mon Nov 28 15:26:39 IST 2011]; root of context hierarchy [ INFO] [main 03:28:47] (DefaultSingletonBeanRegistry.java:destroySingletons:422) Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@42652110: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,userService,ingredientService,iceMixService,semiProductService,dishService,intercept,txAdvice,org.springframework.aop.config.internalAutoProxyCreator,serviceOperation,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#1,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,iccuserDao,ingredientDao,iceMixDao,iceMixIngredientDao,semiproductDao,semiproductIngredientDao,folderDao,taxDao,dishDao,dishIngredientDao,settingsDao,unitDao,notKnownDao,entityManagerFactory,transactionManager,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#0,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0,dataSource]; root of factory hierarchy [ INFO] [main 03:28:47] (AbstractEntityManagerFactoryBean.java:destroy:406) Closing JPA EntityManagerFactory for persistence unit 'debraj-db' 28 Nov, 2011 3:28:47 PM org.apache.catalina.core.ApplicationContext log INFO: Closing Spring root WebApplicationContext 28 Nov, 2011 3:28:47 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc SEVERE: The web application [/icc-web-struts2] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 28 Nov, 2011 3:28:47 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: The web application [/icc-web-struts2] appears to have started a thread named [MySQL Statement Cancellation Timer] but has failed to stop it. This is very likely to create a memory leak. 28 Nov, 2011 3:28:47 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks SEVERE: The web application [/icc-web-struts2] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@24174be7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@75783d33]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. 28 Nov, 2011 3:28:47 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks SEVERE: The web application [/icc-web-struts2] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@24174be7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@28fa1b85]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. 28 Nov, 2011 3:28:47 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks SEVERE: The web application [/icc-web-struts2] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@24174be7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@3c24cdc7]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. 28 Nov, 2011 3:28:47 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks SEVERE: The web application [/icc-web-struts2] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@24174be7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1441e2aa]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. 28 Nov, 2011 3:28:47 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks SEVERE: The web application [/icc-web-struts2] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@24174be7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@71881149]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. 28 Nov, 2011 3:28:47 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks SEVERE: The web application [/icc-web-struts2] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@24174be7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1c2709da]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. 28 Nov, 2011 3:28:47 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks SEVERE: The web application [/icc-web-struts2] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@24174be7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@46f7d5a6]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. 28 Nov, 2011 3:28:47 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks SEVERE: The web application [/icc-web-struts2] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@24174be7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@38eba9b0]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. 28 Nov, 2011 3:28:47 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks SEVERE: The web application [/icc-web-struts2] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@24174be7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@77d17f01]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. [ INFO] [main 03:28:47] (SessionFactoryImpl.java:close:769) closing [ INFO] [main 03:28:47] (TilesAccess.java:setContainer:90) Removing TilesContext for context: org.apache.catalina.core.ApplicationContextFacade 28 Nov, 2011 3:28:47 PM org.apache.coyote.AbstractProtocolHandler stop INFO: Stopping ProtocolHandler ["http-bio-8080"] 28 Nov, 2011 3:28:47 PM org.apache.coyote.AbstractProtocolHandler stop INFO: Stopping ProtocolHandler ["ajp-bio-8009"]
i am using struts2.2.3.1 and tomcat7.
any help would be appreciated.
debraj mallick
Ranch Hand
Posts: 188
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
another exception along with the above
28 Nov, 2011 5:45:16 PM org.apache.catalina.connector.CoyoteAdapter service SEVERE: An exception or error occurred in the container during the request processing java.lang.ArrayIndexOutOfBoundsException: 8192 at org.apache.coyote.http11.AbstractOutputBuffer.write(AbstractOutputBuffer.java:522) at org.apache.coyote.http11.AbstractOutputBuffer.write(AbstractOutputBuffer.java:429) at org.apache.coyote.http11.AbstractOutputBuffer.sendHeader(AbstractOutputBuffer.java:395) at org.apache.coyote.http11.AbstractHttp11Processor.prepareResponse(AbstractHttp11Processor.java:965) at org.apache.coyote.http11.AbstractHttp11Processor.action(AbstractHttp11Processor.java:739) at org.apache.coyote.Response.action(Response.java:170) at org.apache.coyote.Response.sendHeaders(Response.java:350) at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:315) at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:275) at org.apache.catalina.connector.Response.finishResponse(Response.java:501) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:426) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:317) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:204) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:311) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) 28 Nov, 2011 5:45:16 PM org.apache.coyote.http11.AbstractHttp11Processor endRequest SEVERE: Error finishing response java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at org.apache.coyote.http11.AbstractOutputBuffer.write(AbstractOutputBuffer.java:491) at org.apache.coyote.http11.AbstractOutputBuffer.sendStatus(AbstractOutputBuffer.java:331) at org.apache.coyote.http11.AbstractHttp11Processor.prepareResponse(AbstractHttp11Processor.java:952) at org.apache.coyote.http11.AbstractHttp11Processor.action(AbstractHttp11Processor.java:739) at org.apache.coyote.Response.action(Response.java:168) at org.apache.coyote.http11.AbstractOutputBuffer.endRequest(AbstractOutputBuffer.java:308) at org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutputBuffer.java:160) at org.apache.coyote.http11.AbstractHttp11Processor.endRequest(AbstractHttp11Processor.java:990) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:350) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:204) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:311) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)
debraj mallick
Ranch Hand
Posts: 188
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
i have add the code below in my action, then also i am getting the same exception
if (servletResponse.containsHeader("SET-COOKIE")) { String sessionid = servletRequest.getSession().getId(); servletResponse.setHeader("SET-COOKIE", "JSESSIONID=" + sessionid + "; Path=/; HttpOnly"); }
debraj mallick
Ranch Hand
Posts: 188
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hi Tim Holloway,
you have moved this post from
tomcat
to
struts
forum
https://coderanch.com/t/560179/Tomcat/Tomcat-cookies
like i said i am using struts2 to add cookies, but the problem is not with struts2, i think something i am missing with tomcat configuration.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Sending a mail from struts application using the Spring Framework utility library
threadlocal issues in tomcat
com.opensymphony.xwork2.inject. error with memory leak warning
ThreadLocal -- This is very likely to create a memory leak
Error Struts 2 / Tomcat 6.0.32
More...