Jean-Baptiste Quenot-3 wrote:
> 
> It means com.ptc.fusion.web.FusionAuthenticatedWebSession is
> already loaded in other classes that did not match the inclusion
> patterns.
> 
> To debug your usecase, set a conditional breakpoint in
> ReloadingClassLoader.loadClass() when class name is
> com.ptc.fusion.web.FusionAuthenticatedWebSession.  Maybe I could
> also add some debug log statements to help you diagnose.
> 
> Sometimes it is really difficult to understand where your class is
> loaded from.
> 

Again, thanks so much for your help. I followed your suggestion and it seems
that FusionAuthenticatedWebSession is only ever loaded once. Another person
posted a thread with a similar experience, but his issue was not related to
the use of ReloadingWicketFilter. He suggested I look at the following just
before the cast which is causing the problem. The cast is:

(FusionAuthenticatedWebSession) Session.get();

Most of the time the following holds true when I reach that statement:
----
Session.get().getClass().getClassLoader() =
org.apache.wicket.application.ReloadingClassLoader
FusionAuthenticatedWebSession.class.getClassLoader() =
org.apache.wicket.application.ReloadingClassLoader
----

However, when I am use the behaviour described earlier in the thread
(browser back button, click any link), I instead see that the following with
that cast:
----
Session.get().getClass().getClassLoader() =
org.apache.wicket.application.ReloadingClassLoader
FusionAuthenticatedWebSession.class.getClassLoader() = ContextLoader
----

Well, sure enough. That's the cause of my problem. Unfortunately, it doesn't
bring me any closer to understanding why. It doesn't appear that I'm loading
the session from anywhere except my reloadable classes. As a matter of fact,
"new FusionAuthenticatedWebSession" only shows up once in a search through
in my entire application. Is there a place where this session gets loaded by
wicket classes? Even then, I'm not sure if that's the answer because I
actually included "org.apache.wicket*" in my Reloadable filter for one run
of the application and I still encountered the issue. Call me stumped.


-- 
View this message in context: 
http://www.nabble.com/Has-something-changed-in-markup-inheritance--tf3963374.html#a11392701
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to