cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From CFX Novice <suchitrat...@gmail.com>
Subject Re: Unable to get results from JAX RS service after declaring the referred bean as session scoped
Date Thu, 24 Jul 2008 12:50:59 GMT

I figured out the problem. Turned out that xyzService had some attributes
which were not serializable so declaring them transient solved the problem.


CFX Novice wrote:
> 
> Hi,
> 
> I have this piece of code in my applicationContext.xml
> 
>     <jaxrs:server id="xyzserver" address="/xyzservice/">
>     <jaxrs:serviceBeans>
>       <ref bean="xyzservice" />
>     </jaxrs:serviceBeans>
>   </jaxrs:server>
> 
>   <bean id="xyzservice" class="com.xyz.xyzService" scope="session">
>           <aop:scoped-proxy/>
>   </bean>
> 
> 
> Before I made the bean session-scoped everything was working fine but when
> I made it session-scoped, I'm getting the following exception:
> Application has thrown exception, unwinding now:
> java.lang.IllegalArgumentException: setAttribute: Non-serializable
> attribute
> 
> I made xyzService class Serializable, and then accessing the service gives
> an NPE
> 
> Any clues?  I just need the xyzService bean to be session scoped
> 

-- 
View this message in context: http://www.nabble.com/Unable-to-get-results-from-JAX-RS-service-after-declaring-the-referred-bean-as-session-scoped-tp18611651p18631289.html
Sent from the cxf-user mailing list archive at Nabble.com.


Mime
View raw message