hhmm.... as Wicket always check serializable, I think my app's session does
not refererence to non-serializable WebApplication. but  the stack trace
shows:

        
com.tc.object.ClientObjectManagerImpl.lookupOrCreate(ClientObjectManagerImpl.java:306)
        
com.tc.object.tx.ClientTransactionManagerImpl.fieldChanged(ClientTransactionManagerImpl.java:507)
        com.tc.object.TCObjectImpl.objectFieldChanged(TCObjectImpl.java:272)
        wicket.Session.__tc_setsessionStore(Session.java)
        wicket.Session.getSessionStore(Session.java:900)
        wicket.Session.getAttributeNames(Session.java:881)
        wicket.Session.visitPageMaps(Session.java:753)
        wicket.Session.init(Session.java:581)
        wicket.RequestCycle.prepare(RequestCycle.java:911)
        wicket.RequestCycle.step(RequestCycle.java:986)
        wicket.RequestCycle.steps(RequestCycle.java:1084)
        wicket.RequestCycle.request(RequestCycle.java:454)
        wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

I use Wicket 1.2.3 so Session.java:900 is

public class Session {

   protected ISessionStore getSessionStore()
   {
       if (sessionStore == null)
       {
           sessionStore = getApplication().getSessionStore();  // line no
900
       }
       return sessionStore;
   }
}

it looks like terracotta intercept assignment "sessionStore = " and add a
setter

wicket.Session.__tc_setsessionStore(Session.java)

but sessionStore referenced by Application....


On 12/5/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:

Why would you put a reference to the application in your session
anyway? You can get the current app like Application.get(). Otherwise,
you can make the field transient, though when it gets deserialized,
you'd have to set the field yourself somehow.

Eelco


On 12/4/06, Ingram Chen <[EMAIL PROTECTED]> wrote:
> I just test terracotta-session, but it report error:
>
>
> com.tc.exception.TCNonPortableObjectError:
>
*******************************************************************************
> Attempt to share an instance of a non-portable class referenced by a
> portable class. This
> unshareable class is a subclass of a JVM- or host machine-specific
resource.
> Please either
> modify the class hierarchy or ensure that instances of this class don't
> enter the shared object
> graph.
>
> Referring class             : com.myapp.MyWebApplication
> Referring field             :
> wicket.protocol.http.WebApplication.wicketServlet
> Thread                      : http-9081-Processor3
> JVM ID                      : VM(0)
> Unshareable superclass names: javax.servlet.GenericServlet
>
*******************************************************************************
>
> It seems that I can't store any WebApplication reference in session...
>
>
>
> On 12/5/06, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:
> > Hi,
> >
> > I also have just tested terracotta with my springframework / wicket
> application.
> > It works perfect. I think, that teracotta meets wicket needs for
parallel
> and
> > loadbalanced execution envoronement the way we are looking for.
> >
> > Maciej
> >
> > > -----Ursprüngliche Nachricht-----
> > > Von: [email protected]
> > > Gesendet: 04.12.06 20:50:41
> > > An: "Wicket User List" <
> [email protected]>
> > > Betreff: [Wicket-user] Terracotta open source and tested with
> wicket-examples
> >
> >
> > > Hi all,
> > >
> > > Sorry to spam you with this, but you might be interested in this
> > > announcement
> http://www.infoq.com/news/2006/12/terracotta-jvm-clustering.
> > > We successfully tested wicket-examples (with the help of some people
> > > from Terracotta), and it looks like Terracotta is very promising
> > > indeed - certainly now that it is open sourced!
> > >
> > > Anyway, just FYI, and I'd be interested to learn the experiences of
> others.
> > >
> > > Eelco
> > >
> > >
>
-------------------------------------------------------------------------
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to
share
> your
> > > opinions on IT & business topics through brief surveys - and earn
cash
> > >
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > _______________________________________________
> > > Wicket-user mailing list
> > > [email protected]
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> > --
> > mfG
> >
> > Bednarz, Hannover
> >
> >
>
-------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
>
> --
> Ingram Chen
> Java [EMAIL PROTECTED]
> Institue of BioMedical Sciences Academia Sinica Taiwan
> blog: http://www.javaworld.com.tw/roller/page/ingramchen
>
-------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user




--
Ingram Chen
Java [EMAIL PROTECTED]
Institue of BioMedical Sciences Academia Sinica Taiwan
blog: http://www.javaworld.com.tw/roller/page/ingramchen
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to