struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Serialization Issue while using tokenInterceptor
Date Sat, 23 May 2015 06:36:54 GMT
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
View raw message