Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-1403

Reinjection fails after Server restart

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3.1
    • Fix Version/s: 1.3.6, 1.4-RC2
    • Component/s: wicket-guice
    • Labels:
      None
    • Environment:
      Resin 3.1.5 with persistent sessions enabled,
      Apache Tomcat 6.0.16 with persistent sessions enabled

      Description

      Please see attached testcase.
      Steps to reproduce:

      • start it with mvn resin:run, go to http://localhost:8080/example
      • click a few times
      • stop & restart
      • reload the page (everything fine here (means reload obviously succeeds)
      • click again, you´ll face
        Caused by: java.lang.NullPointerException: type
        	at com.google.inject.util.Objects.nonNull(Objects.java:35)
        	at com.google.inject.TypeLiteral.<init>(TypeLiteral.java:69)
        	at com.google.inject.TypeLiteral$SimpleTypeLiteral.<init>(TypeLiteral.java:181)
        	at com.google.inject.TypeLiteral.get(TypeLiteral.java:169)
        	at org.apache.wicket.guice.GuiceProxyTargetLocator.locateProxyTarget(GuiceProxyTargetLocator.java:61)
        	at org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:412)
        	at org.apache.wicket.proxy.$Proxy13.foo(Unknown Source)
        	at org.codesmell.HomePage$1.onClick(HomePage.java:25)
        	at org.apache.wicket.markup.html.link.Link.onLinkClicked(Link.java:214)
        	... 21 more
        

      GuiceProxyTargetLocator does not seem to be coded to cope with this.

        Attachments

        1. example.zip
          13 kB
          uwe schaefer
        2. GuiceProxyTargetLocator.java
          2 kB
          uwe schaefer
        3. GuiceProxyTargetLocator_without_additional_dependency.java
          2 kB
          uwe schaefer

          Issue Links

            Activity

              People

              • Assignee:
                ivaynberg Igor Vaynberg
                Reporter:
                javadoc uwe schaefer
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: