[
https://issues.apache.org/jira/browse/WICKET-2046?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Adriano dos Santos Fernandes updated WICKET-2046:
-------------------------------------------------
Attachment: guicetest.tar.gz
Demonstration of the problem:
- Enter on the homepage, enter something on the textfield and submit
- Restart the application in Tomcat or restart Jetty (Jetty seems having
problem with serialization, while it worked for me before with the workaround
in Start class)
- Click submit again
Using the @Injector in the HomePage, a NullPointerException happen. If you
don't use the @Injector (see the commented line), it works.
> wicket-guice do not work correctly when the application is redeployed with
> persistent sessions
> ----------------------------------------------------------------------------------------------
>
> Key: WICKET-2046
> URL: https://issues.apache.org/jira/browse/WICKET-2046
> Project: Wicket
> Issue Type: Bug
> Components: wicket-guice
> Affects Versions: 1.4-RC1
> Reporter: Adriano dos Santos Fernandes
> Attachments: guicetest.tar.gz
>
>
> The way wicket-guice (or rather, wicket-ioc) manages the typestore make it
> not work correctly when the application is redeployed with persistent
> sessions.
> When a proxy need to be retrieved from the typestore, before an object of the
> same type was being injected, GuiceProxyTargetLocator.locateProxyTarget() is
> called but the type is not present on the application typestore. See, it's
> added to the typestore in GuiceProxyTargetLocator constructor.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.