struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sreekanth S. Nair" <sreekanth.n...@egovernments.org>
Subject Re: Serialization Issue while using tokenInterceptor
Date Sat, 23 May 2015 07:01:29 GMT
Struts 2 related jars
--------------------------
freemarker-2.3.19.jar
ognl-3.0.6.jar
struts2-convention-plugin-2.3.20.jar
struts2-core-2.3.20.jar
struts2-jasperreports-plugin-2.3.20.jar
struts2-jquery-plugin-3.7.1.jar
struts2-json-plugin-2.3.20.jar
struts2-rest-plugin-2.3.20.jar
struts2-spring-plugin-2.3.20.jar
xwork-core-2.3.20.jar


Other Jars
------------------
aopalliance-1.0.jar
asm-5.0.3.jar
asm-commons-5.0.2.jar
asm-tree-5.0.2.jar
aspectjrt-1.8.2.jar
aspectjweaver-1.8.4.jar
batik-css-1.7.jar
batik-ext-1.7.jar
batik-util-1.7.jar
cglib-3.1.jar
commons-beanutils-1.8.0.jar
commons-codec-1.10.jar
commons-collections-3.2.1.jar
commons-configuration-1.10.jar
commons-dbcp-1.4.jar
commons-digester-2.0.jar
commons-email-1.3.3.jar
commons-fileupload-1.3.1.jar
commons-httpclient-3.1.jar
commons-io-2.4.jar
commons-lang3-3.2.jar
commons-lang-2.5.jar
commons-pool2-2.2.jar
commons-pool-1.5.4.jar
commons-validator-1.1.4.jar
concurrent-1.3.4.jar
displaytag-1.2.jar
displaytag-export-poi-1.2.jar
ehcache-core-2.4.6.jar
ehcache-web-2.0.4.jar
embedded-redis-0.6.jar
ezmorph-1.0.6.jar

gson-2.2.4.jar
jcl-over-slf4j-1.7.7.jar
jcommon-1.0.23.jar
jcr-2.0.jar
jedis-2.4.1.jar
jfreechart-1.0.19.jar
joda-time-2.7.jar
joda-time-jsptags-1.1.1.jar
json-lib-2.3-jdk15.jar
json-simple-1.1.1.jar
jsoup-1.7.3.jar
jsr-275-1.0-beta-2.jar
jts-1.6.jar
jython-standalone-2.5.2.jar
log4j-1.2.17.jar
logback-classic-1.0.0.jar
logback-core-1.0.0.jar
sitemesh-2.4.2.jar
slf4j-api-1.7.7.jar
spring-aop-4.1.4.RELEASE.jar
spring-aspects-4.1.4.RELEASE.jar
spring-beans-4.1.4.RELEASE.jar
context-4.1.4.RELEASE.jar
spring-context-support-4.1.4.RELEASE.jar
spring-core-4.1.4.RELEASE.jar
spring-data-commons-1.9.1.RELEASE.jar
spring-data-envers-0.2.0.RELEASE.jar
spring-data-jpa-1.7.1.RELEASE.jar
spring-data-redis-1.3.0.RELEASE.jar
spring-expression-4.1.4.RELEASE.jar
spring-jdbc-4.1.4.RELEASE.jar
pring-jms-4.1.4.RELEASE.jar
spring-messaging-4.1.4.RELEASE.jar
spring-orm-4.1.4.RELEASE.jar
spring-security-acl-3.2.5.RELEASE.jar
spring-security-config-3.2.5.RELEASE.jar
spring-security-core-3.2.5.RELEASE.jar
spring-security-web-3.2.5.RELEASE.jar
spring-session-1.0.0.RELEASE.jar
spring-struts-3.2.3.RELEASE.jar
spring-tx-4.1.4.RELEASE.jar
spring-web-4.1.4.RELEASE.jar
spring-webmvc-4.1.4.RELEASE.jar
standard-1.0.6.jar

struts-1.2.9.jar
struts-el-1.2.9.jar
tiles-api-3.0.5.jar
tiles-autotag-core-runtime-1.1.0.jar
tiles-core-3.0.5.jar
tiles-jsp-3.0.5.jar
tiles-request-api-1.0.6.jar
tiles-request-jsp-1.0.6.jar
tiles-request-servlet-1.0.6.jar
tiles-servlet-3.0.5.jar
tiles-template-3.0.5.jar
units-0.01.jar
vecmath-1.3.1.jar
velocity-1.5.jar
xml-apis-1.3.04.jar
xml-apis-ext-1.3.04.jar
xmlpull-1.1.3.1.jar
xpp3_min-1.1.4c.jar
xstream-1.4.2.jar


-- 
Thanks & Regards

Sreekanth S Nair
Java Developer
-------------------------------------------
eGovernments Foundation <http://www.egovernments.org>
Ph : 9980078913
-------------------------------------------
<http://in.linkedin.com/pub/sreekanth-s-nair/b/946/5a0/>
<https://github.com/sreekanthsnair>   <sreekanthsnair@hotmail.co.uk>
<sreekanthsnyr@gmail.com>
-------------------------------------------

On Sat, May 23, 2015 at 12:06 PM, Lukasz Lenart <lukaszlenart@apache.org>
wrote:

> It's the same issue as WW-4028 which means you did something wrong
> when you were upgrading to latest Struts version. Can you list all
> jars?
>
> 2015-05-23 7:32 GMT+02:00 Sreekanth S. Nair <
> sreekanth.nair@egovernments.org>:
> > Below is the stacktrace, made log bold where its failing
> >
> > 10:59:30,195 INFO  [org.apache.struts2.rest.RestActionInvocation]
> (default
> > task-29) Executed action
> [//assetcategory/assetCategory-save!save!jsp!200]
> > took 278317 ms (execution: 277604 ms, result: 713 ms)
> > 10:59:30,281 ERROR [io.undertow.request] (default task-29) UT005023:
> > Exception handling request to /egassets/WEB-INF/jsp/assets/
> > assetcategory/assetCategory-edit.jsp: org.springframework.data.
> > redis.serializer.SerializationException: Cannot serialize; nested
> exception
> > is
> org.springframework.core.serializer.support.SerializationFailedException:
> > Failed to serialize object using DefaultSerializer; nested exception is
> > java.io.NotSerializableException: com.opensymphony.xwork2.
> > inject.ContainerImpl$ConstructorInjector
> >     at org.springframework.data.redis.serializer.
> >
> JdkSerializationRedisSerializer.serialize(JdkSerializationRedisSerializer.java:52)
> > [spring-data-redis-1.3.0.RELEASE.jar:1.3.0.RELEASE]
> >     at
> org.springframework.data.redis.core.AbstractOperations.rawHashValue(AbstractOperations.java:145)
> > [spring-data-redis-1.3.0.RELEASE.jar:1.3.0.RELEASE]
> >     at org.springframework.data.redis.core.DefaultHashOperations.putAll(
> > DefaultHashOperations.java:124) [spring-data-redis-1.3.0.
> > RELEASE.jar:1.3.0.RELEASE]
> >     at org.springframework.data.redis.core.DefaultBoundHashOperations.
> > putAll(DefaultBoundHashOperations.java:83) [spring-data-redis-1.3.0.
> > RELEASE.jar:1.3.0.RELEASE]
> >     at
> org.springframework.session.data.redis.RedisOperationsSessionReposito
> > ry$RedisSession.saveDelta(RedisOperationsSessionRepository.java:409)
> > [spring-session-1.0.0.RELEASE.jar:]
> >     at
> org.springframework.session.data.redis.RedisOperationsSessionReposito
> > ry$RedisSession.access$000(RedisOperationsSessionRepository.java:331)
> > [spring-session-1.0.0.RELEASE.jar:]
> >     at
> org.springframework.session.data.redis.RedisOperationsSessionReposito
> > ry.save(RedisOperationsSessionRepository.java:211)
> > [spring-session-1.0.0.RELEASE.jar:]
> >     at
> org.springframework.session.data.redis.RedisOperationsSessionReposito
> > ry.save(RedisOperationsSessionRepository.java:141)
> > [spring-session-1.0.0.RELEASE.jar:]
> >     at org.springframework.session.web.http.SessionRepositoryFilter$
> >
> SessionRepositoryRequestWrapper.commitSession(SessionRepositoryFilter.java:172)
> > [spring-session-1.0.0.RELEASE.jar:]
> >     at org.springframework.session.web.http.SessionRepositoryFilter$
> >
> SessionRepositoryRequestWrapper.access$100(SessionRepositoryFilter.java:151)
> > [spring-session-1.0.0.RELEASE.jar:]
> >     at org.springframework.session.web.http.SessionRepositoryFilter.
> > doFilterInternal(SessionRepositoryFilter.java:113)
> > [spring-session-1.0.0.RELEASE.jar:]
> >     at org.springframework.session.web.http.OncePerRequestFilter.
> > doFilter(OncePerRequestFilter.java:65)
> [spring-session-1.0.0.RELEASE.jar:]
> >     at
> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(
> > DelegatingFilterProxy.java:344)
> [spring-web-4.1.4.RELEASE.jar:4.1.4.RELEASE]
> >     at org.springframework.web.filter.DelegatingFilterProxy.doFilter(
> > DelegatingFilterProxy.java:261)
> [spring-web-4.1.4.RELEASE.jar:4.1.4.RELEASE]
> >     at
> io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
> > [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
> >     at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.
> > doFilter(FilterHandler.java:132) [undertow-servlet-1.1.0.Final.
> > jar:1.1.0.Final]
> >     at
> io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85)
> > [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
> >     at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.
> > handleRequest(ServletSecurityRoleHandler.java:61)
> > [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
> >     at
> io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(
> > ServletDispatchingHandler.java:36) [undertow-servlet-1.1.0.Final.
> > jar:1.1.0.Final]
> >     at org.wildfly.extension.undertow.security.
> > SecurityContextAssociationHandler.handleRequest(
> > SecurityContextAssociationHandler.java:78)
> >     at
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> > [undertow-core-1.1.0.Final.jar:1.1.0.Final]
> >     at
> io.undertow.servlet.handlers.security.SSLInformationAssociationHandl
> > er.handleRequest(SSLInformationAssociationHandler.java:131)
> > [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
> >     at
> io.undertow.servlet.handlers.security.ServletAuthenticationCallHandl
> > er.handleRequest(ServletAuthenticationCallHandler.java:56)
> > [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
> >     at
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> > [undertow-core-1.1.0.Final.jar:1.1.0.Final]
> >     at io.undertow.security.handlers.AbstractConfidentialityHandler
> > .handleRequest(AbstractConfidentialityHandler.java:45)
> > [undertow-core-1.1.0.Final.jar:1.1.0.Final]
> >     at
> io.undertow.servlet.handlers.security.ServletConfidentialityConstrai
> > ntHandler.handleRequest(ServletConfidentialityConstraintHandler.java:63)
> > [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
> >     at io.undertow.security.handlers.AuthenticationMechanismsHandle
> > r.handleRequest(AuthenticationMechanismsHandler.java:58)
> > [undertow-core-1.1.0.Final.jar:1.1.0.Final]
> >     at
> io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHand
> > ler.handleRequest(CachedAuthenticatedSessionHandler.java:70)
> > [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
> >     at
> io.undertow.security.handlers.SecurityInitialHandler.handleRequest(
> > SecurityInitialHandler.java:76)
> [undertow-core-1.1.0.Final.jar:1.1.0.Final]
> >     at
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> > [undertow-core-1.1.0.Final.jar:1.1.0.Final]
> >     at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.
> > handleRequest(JACCContextIdHandler.java:61)
> >     at
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> > [undertow-core-1.1.0.Final.jar:1.1.0.Final]
> >     at
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> > [undertow-core-1.1.0.Final.jar:1.1.0.Final]
> >     at io.undertow.servlet.handlers.ServletInitialHandler.
> > handleFirstRequest(ServletInitialHandler.java:261)
> > [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
> >     at
> io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(
> > ServletInitialHandler.java:247) [undertow-servlet-1.1.0.Final.
> > jar:1.1.0.Final]
> >     at io.undertow.servlet.handlers.ServletInitialHandler.access$
> > 000(ServletInitialHandler.java:76) [undertow-servlet-1.1.0.Final.
> > jar:1.1.0.Final]
> >     at
> io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(
> > ServletInitialHandler.java:166) [undertow-servlet-1.1.0.Final.
> > jar:1.1.0.Final]
> >     at
> io.undertow.server.Connectors.executeRootHandler(Connectors.java:197)
> > [undertow-core-1.1.0.Final.jar:1.1.0.Final]
> >     at
> io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:759)
> > [undertow-core-1.1.0.Final.jar:1.1.0.Final]
> >     at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> > [rt.jar:1.8.0_40]
> >     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> > [rt.jar:1.8.0_40]
> >     at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_40]
> > Caused by:
> org.springframework.core.serializer.support.SerializationFailedException:
> > Failed to serialize object using DefaultSerializer; nested exception is
> > java.io.NotSerializableException: com.opensymphony.xwork2.
> > inject.ContainerImpl$ConstructorInjector
> >     at org.springframework.core.serializer.support.
> > SerializingConverter.convert(SerializingConverter.java:67)
> > [spring-core-4.1.4.RELEASE.jar:4.1.4.RELEASE]
> >     at org.springframework.core.serializer.support.
> > SerializingConverter.convert(SerializingConverter.java:34)
> > [spring-core-4.1.4.RELEASE.jar:4.1.4.RELEASE]
> >     at org.springframework.data.redis.serializer.
> >
> JdkSerializationRedisSerializer.serialize(JdkSerializationRedisSerializer.java:50)
> > [spring-data-redis-1.3.0.RELEASE.jar:1.3.0.RELEASE]
> >     ... 41 more
> > *Caused by: java.io.NotSerializableException:
> > com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector*
> >     at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184)
> > [rt.jar:1.8.0_40]
> >     at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
> > [rt.jar:1.8.0_40]
> >     at com.opensymphony.xwork2.inject.util.ReferenceMap.
> > writeObject(ReferenceMap.java:595) [xwork-core-2.3.24.jar:2.3.24]
> >     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > [rt.jar:1.8.0_40]
> >     at sun.reflect.NativeMethodAccessorImpl.invoke(
> > NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_40]
> >     at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_40]
> >     at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_40]
> >     at
> java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988)
> > [rt.jar:1.8.0_40]
> >     at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
> > [rt.jar:1.8.0_40]
> >     at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
> > [rt.jar:1.8.0_40]
> >     at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
> > [rt.jar:1.8.0_40]
> >     at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
> > [rt.jar:1.8.0_40]
> >     at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
> > [rt.jar:1.8.0_40]
> >     at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
> > [rt.jar:1.8.0_40]
> >     at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
> > [rt.jar:1.8.0_40]
> >     at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
> > [rt.jar:1.8.0_40]
> >     at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
> > [rt.jar:1.8.0_40]
> >     at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
> > [rt.jar:1.8.0_40]
> >     at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
> > [rt.jar:1.8.0_40]
> >     at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
> > [rt.jar:1.8.0_40]
> >     at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
> > [rt.jar:1.8.0_40]
> >     at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
> > [rt.jar:1.8.0_40]
> >     at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
> > [rt.jar:1.8.0_40]
> >     at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
> > [rt.jar:1.8.0_40]
> >     at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
> > [rt.jar:1.8.0_40]
> >     at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
> > [rt.jar:1.8.0_40]
> >     at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
> > [rt.jar:1.8.0_40]
> >     at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
> > [rt.jar:1.8.0_40]
> >     at java.util.HashMap.internalWriteEntries(HashMap.java:1777)
> > [rt.jar:1.8.0_40]
> >     at java.util.HashMap.writeObject(HashMap.java:1354) [rt.jar:1.8.0_40]
> >     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > [rt.jar:1.8.0_40]
> >     at sun.reflect.NativeMethodAccessorImpl.invoke(
> > NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_40]
> >     at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_40]
> >     at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_40]
> >     at
> java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988)
> > [rt.jar:1.8.0_40]
> >     at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
> > [rt.jar:1.8.0_40]
> >     at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
> > [rt.jar:1.8.0_40]
> >     at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
> > [rt.jar:1.8.0_40]
> >     at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
> > [rt.jar:1.8.0_40]
> >     at org.springframework.core.serializer.DefaultSerializer.
> > serialize(DefaultSerializer.java:44) [spring-core-4.1.4.RELEASE.
> > jar:4.1.4.RELEASE]
> >     at org.springframework.core.serializer.support.
> > SerializingConverter.convert(SerializingConverter.java:62)
> > [spring-core-4.1.4.RELEASE.jar:4.1.4.RELEASE]
> >     ... 43 more
> >
> > --
> > Thanks & Regards
> >
> > Sreekanth S Nair
> > Java Developer
> > -------------------------------------------
> > eGovernments Foundation <http://www.egovernments.org>
> > Ph : 9980078913
> > -------------------------------------------
> > <http://in.linkedin.com/pub/sreekanth-s-nair/b/946/5a0/>
> > <https://github.com/sreekanthsnair>   <sreekanthsnair@hotmail.co.uk>
> > <sreekanthsnyr@gmail.com>
> > -------------------------------------------
> >
> > On Sat, May 23, 2015 at 10:42 AM, Lukasz Lenart <lukaszlenart@apache.org
> >
> > wrote:
> >
> >> 2015-05-23 7:02 GMT+02:00 Sreekanth S. Nair <
> >> sreekanth.nair@egovernments.org>:
> >> > I'm getting Serialization Exception when we use tokenInterceptor,
> which
> >> is
> >> > same as https://issues.apache.org/jira/browse/WW-4028 issue. I'm
> trying
> >> > with struts2 2.3.20 and even tried with  2.3.24.
> >>
> >> It must be something else, though. Can you post stacktrace?
> >>
> >>
> >> Regards
> >> --
> >> Ɓukasz
> >> + 48 606 323 122 http://www.lenart.org.pl/
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message