[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Problem with ServletRequestAttributes$DestructionCallbackBindingListener  XML
Forum Index -> Terracotta for Spring
Author Message
demtnt

neo

Joined: 10/29/2009 06:48:31
Messages: 1
Offline

Hello!

We are using Spring + Terracotta(3.0.1). There are 2 beans with scope - session:
Code:
 ...
 	<bean id="mode" class="app.mobi.web.RenderMode" scope="session" init-method="init" lazy-init="false">
 	</bean>
 ...
 	<bean id="sessionParameters" class="app.mobi.web.SessionParametersHolder" scope="session" />
 

tc-config.xml

<application>

<spring>
<jee-application name="mobi">
<session-support>true</session-support>
<application-contexts>
<application-context>
<paths>
<path>*/applicationContext.xml</path>
</paths>

<beans>
<bean name="sessionParameters"/>
</beans>
</application-context>
</application-contexts>
</jee-application>
</spring>
 

After running I'm getting:

Attempt to share an instance of a non-portable class by passing it as an argument to a method of a
logically-managed class. This unshareable class has not been included for sharing in the
configuration.
...
* add this snippet inside the <dso> element

<instrumented-classes>
<include>
<class-expression>org.springframework.web.context.request.ServletRequestAttributes$DestructionCallbackBindingListener</class-expression>
</include>
</instrumented-classes>
...
 
Debugging, I've find out that session contains 2 beans and DestructionCollback's for every bean. Is there workaround not to add DestructionCollbacks to session, because if I include it to instrumented classes it takes a lot of other spring stuff with it.

Dmitrij

PS It's impossible migrate to last TC version.
lima

consul
[Avatar]
Joined: 06/22/2009 10:12:31
Messages: 361
Offline

If you can find which class is referring to that class, set the reference field to transient will prevent it from been clustered by Terracotta.
bss

neo

Joined: 04/26/2010 03:03:29
Messages: 1
Offline

I'm having the exact same problem. Did you find a solution to this problem?
 
Forum Index -> Terracotta for Spring
Go to:   
Powered by JForum 2.1.7 © JForum Team