Problem occurs because of Spring integration; I called Service like that

final SupplierService supplierService = (SupplierService)
LazyInitProxyFactory.createProxy(SupplierService.class, new
IProxyTargetLocator() {
            public Object locateProxyTarget() {
                return ((WicketApplication) Application.get()).

getSpringContextLocator().getSpringContext().getBean("supplierService");

            }
        } );

Now It works.

I know i can use @SpringBean...

Thanks.

AOP trigerred when get

2010/10/3 Jeremy Thomerson <jer...@wickettraining.com>

> Show your link code. You're obviously holding a reference to the aspect,
> which can't be serialized.
>
> Jeremy Thomerson
> http://wickettraining.com
> -- sent from my "smart" phone, so please excuse spelling, formatting, or
> compiler errors
>
> On Oct 3, 2010 2:16 PM, "Altuğ Bilgin Altıntaş" <alt...@gmail.com> wrote:
>
> I found the problem (not solution yet)
>
> Spring's AOP config  :
>
>   <aop:config proxy-target-class="true">
>       <aop:aspect ref="loggingAspect">
>           <aop:pointcut id="daoPointcut"
>               expression="execution(boolean org.jtpd.data..*(..))" />
>           <aop:around pointcut-ref="daoPointcut" method="logDaoMethod" />
>       </aop:aspect>
>   </aop:config>
>
> For logging and when i search logs i see :
>
> org.apache.wicket.util.io.SerializableChecker$*
> WicketNotSerializableException*: Unable to serialize class:
> org.springframework.aop.aspectj.AspectJPointcutAdvisor
>
> AspectJPointcutAdvisor can not serializable so StatelessLink doesn't work
> and i always get Page Expired Error when exporting CSV file via using
> WebResponse.
>
> Any comment on that ?
>
>
>
> 2010/9/28 Igor Vaynberg <igor.vaynb...@gmail.com>
>
>
> > even if the page is stateful, the url the stateless link generates
> > should be stateless...got a ...
>

Reply via email to