Re: Maven and InMethod Grid

2008-03-31 Thread Matej Knopp
Sorry, I don't think the grid components are available in any public
repo. I'd add it to bamboo on wicketstuff but somehow i can't access
the server.

-Matej


On Mon, Mar 31, 2008 at 9:27 PM, Pinger <[EMAIL PROTECTED]> wrote:
>
>  Got a Noob questions here. I want to use the InMethod Grid for wicket, but I
>  have to use maven. Can anyone who is using it post the relevant part of
>  their POM file.
>
>  Thanks
>
>
>  --
>  View this message in context: 
> http://www.nabble.com/Maven-and-InMethod-Grid-tp16399038p16399038.html
>  Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Resizable and reorderable grid components.
http://www.inmethod.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Bug on modal window

2008-03-31 Thread Matej Knopp
It can not be . Span is an inline element so you can't put block
element such as divs inside span. That is invalid markup and it
confuses browsers.

-Matej

On Mon, Mar 31, 2008 at 10:22 PM, Marco Aurélio Silva <[EMAIL PROTECTED]> wrote:
> Hi all
>
>  I found a bug in ModalWindow of wicket 1.2.6. If the markup of modalwindow
>  is inside a tag p, the modal doesn't work on IE6 and IE7.
>  I wrote a CMS componente where the user can insert links on the page. If
>  user insert a link that is a popup inside a tag   the popup doesn't
>  open. This is what I can see on ajax debbuger:
>
>  *INFO: *
>  *INFO: *
>  Initiating Ajax GET request on
>  
> /myapp/app/?wicket:interface=:3:cms:p:body:content:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:link:buttonContainer:lis:cont:link::IBehaviorListener&wicket:behaviorId=0&random=
>  0.4619706830869044
>  *INFO: *Invoking pre-call handler(s)...
>  *INFO: *Received ajax response (1937 characters)
>  *INFO: *
>
> id="cms_p_body_content_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_link_buttonContainer_lis_cont_modalWindowRepeater"
>  >
>  *INFO: *Response parsed. Now invoking steps...
>  *ERROR: *Error while parsing response: Unknow runtimer error.
>  *INFO: *Invoking post-call handler(s)...
>  *INFO: *Invoking failure handler(s)...
>
>  What I found out is that the error only happens if the markup of modal
>  window is a SPAN. If I use a DIV, the modal works fine. Unfortunately I
>  can't use DIV because DIV cause line break, and this break the layout of my
>  page. I tried to debug the javascript, but is a lot of lines and the JS
>  debugger of IE didn't help. Can anyone help me?
>



-- 
Resizable and reorderable grid components.
http://www.inmethod.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven and InMethod Grid

2008-03-31 Thread Matej Knopp
I know it does. It seems to refuse only slovak IP :)

-Matej

On Mon, Mar 31, 2008 at 10:00 PM, Maurice Marrink <[EMAIL PROTECTED]> wrote:
> Server works fine for me. but unless it is for a wicketstuff project
>  you are better of installing the jars in your companies repo.
>
>  Maurice
>
>
>
>  On Mon, Mar 31, 2008 at 9:33 PM, Matej Knopp <[EMAIL PROTECTED]> wrote:
>  > Sorry, I don't think the grid components are available in any public
>  >  repo. I'd add it to bamboo on wicketstuff but somehow i can't access
>  >  the server.
>  >
>  >  -Matej
>  >
>  >
>  >
>  >
>  >  On Mon, Mar 31, 2008 at 9:27 PM, Pinger <[EMAIL PROTECTED]> wrote:
>  >  >
>  >  >  Got a Noob questions here. I want to use the InMethod Grid for wicket, 
> but I
>  >  >  have to use maven. Can anyone who is using it post the relevant part of
>  >  >  their POM file.
>  >  >
>  >  >  Thanks
>  >  >
>  >  >
>  >  >  --
>  >  >  View this message in context: 
> http://www.nabble.com/Maven-and-InMethod-Grid-tp16399038p16399038.html
>  >  >  Sent from the Wicket - User mailing list archive at Nabble.com.
>  >  >
>  >  >
>  >  >  -
>  >  >  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  >  >  For additional commands, e-mail: [EMAIL PROTECTED]
>  >  >
>  >  >
>  >
>  >
>  >
>  >  --
>  >  Resizable and reorderable grid components.
>  >  http://www.inmethod.com
>  >
>  >
>  >
>  >  -
>  >  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  >  For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Resizable and reorderable grid components.
http://www.inmethod.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Bug on modal window

2008-03-31 Thread Matej Knopp
It can cause all kinds of problems, even ones you can not see
immediately, like with forms or other layout problems. If it's invalid
then it's invalid. Not all browsers can cope with that.

-Matej

On Mon, Mar 31, 2008 at 10:54 PM, Marco Aurélio Silva <[EMAIL PROTECTED]> wrote:
> Actually, it works with span also on IE, it only not works if  the span is
>  inside the  tag
>
>
>  On Mon, Mar 31, 2008 at 5:35 PM, Matej Knopp <[EMAIL PROTECTED]> wrote:
>
>
>
> > It can not be . Span is an inline element so you can't put block
>  > element such as divs inside span. That is invalid markup and it
>  > confuses browsers.
>  >
>  > -Matej
>  >
>  > On Mon, Mar 31, 2008 at 10:22 PM, Marco Aurélio Silva <[EMAIL PROTECTED]>
>  > wrote:
>  > > Hi all
>  > >
>  > >  I found a bug in ModalWindow of wicket 1.2.6. If the markup of
>  > modalwindow
>  > >  is inside a tag p, the modal doesn't work on IE6 and IE7.
>  > >  I wrote a CMS componente where the user can insert links on the page.
>  > If
>  > >  user insert a link that is a popup inside a tag   the popup
>  > doesn't
>  > >  open. This is what I can see on ajax debbuger:
>  > >
>  > >  *INFO: *
>  > >  *INFO: *
>  > >  Initiating Ajax GET request on
>  > >
>  >  
> /myapp/app/?wicket:interface=:3:cms:p:body:content:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:link:buttonContainer:lis:cont:link::IBehaviorListener&wicket:behaviorId=0&random=
>  > >  0.4619706830869044
>  > >  *INFO: *Invoking pre-call handler(s)...
>  > >  *INFO: *Received ajax response (1937 characters)
>  > >  *INFO: *
>  > >> >
>  >  
> id="cms_p_body_content_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_link_buttonContainer_lis_cont_modalWindowRepeater"
>  > >  >
>  > >  *INFO: *Response parsed. Now invoking steps...
>  > >  *ERROR: *Error while parsing response: Unknow runtimer error.
>  > >  *INFO: *Invoking post-call handler(s)...
>  > >  *INFO: *Invoking failure handler(s)...
>  > >
>  > >  What I found out is that the error only happens if the markup of modal
>  > >  window is a SPAN. If I use a DIV, the modal works fine. Unfortunately I
>  > >  can't use DIV because DIV cause line break, and this break the layout
>  > of my
>  > >  page. I tried to debug the javascript, but is a lot of lines and the JS
>  > >  debugger of IE didn't help. Can anyone help me?
>  > >
>  >
>  >
>  >
>  > --
>  > Resizable and reorderable grid components.
>  > http://www.inmethod.com
>  >
>
>
> > -
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>



-- 
Resizable and reorderable grid components.
http://www.inmethod.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Multiple TreeTables: wrong table expanded

2008-04-01 Thread Matej Knopp
That's really weird. Can you create a JIRA issue for it and maybe
attach a quickstart that demonstrates the behavior?

-Matej

On Tue, Apr 1, 2008 at 10:54 AM, Jaap Bos <[EMAIL PROTECTED]> wrote:
> On my ModalWindow I have a number of (about 6) TreeTables, all using
>  Ajax, generated in a ListView.
>
>  These trees have some equal nodes, but are not exact the same.
>
>  When I expand the roots of one of these, everything is fine.
>
>  However, if I want to Expand one of the subnodes of the root,
>  onClick(AjaxRequestTarget target) is called not on the owing TreeTable
>  but always on the last TreeTable.
>
>  One TreeTable works fine, what can be the cause wicket always wants to
>  expand nodes of the last one in case I have multiple TreeTables?
>
>
>
>  Jaap
>
>
>
>



-- 
Resizable and reorderable grid components.
http://www.inmethod.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Bug on modal window

2008-04-01 Thread Matej Knopp
You can use display:inline for the div.

-Matej

On Tue, Apr 1, 2008 at 2:36 PM, Wouter Huijnink <[EMAIL PROTECTED]> wrote:
> Marco Aurélio Silva wrote:
>  > My point is: It doesn't work if the  is inside the . And I can't
>  > put a div (with div works) because the div has a line break.
>  >
>  >
>
>  then add a class attribute to the div in order to exclude it from having
>  a line break in your CSS
>
>  --
>  Wouter Huijnink
>  Func. Internet Integration
>  W http://www.func.nl
>  T +31 20 423
>  F +31 20 4223500
>
>
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Resizable and reorderable grid components.
http://www.inmethod.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: java.io.StreamCorruptedException: invalid type code: 29

2008-04-02 Thread Matej Knopp
I'm affraid we won't be able to help here without a testcase.  We
already have a tests for this they pass, so it must be something we
didn't cover.

Also that reminds me, there's problem with wicket tester, the page
reference serialization test (don't remember the exact name now) is
not running properly because wicket tester has been switched to
httpsessionstore. WHY? Why do we use http sessionstore with tests when
noone really uses httpsessionstore in production?!

-Matej

On Wed, Apr 2, 2008 at 9:38 PM, Johan Compagner <[EMAIL PROTECTED]> wrote:
> yes very complex code but found it
>  PageSerializer also adds it to the used pages again..
>
>
>  On Wed, Apr 2, 2008 at 9:36 PM, James Carman <[EMAIL PROTECTED]>
>  wrote:
>
>
>
>  > Doesn't the code remember what it has already taken care of during
>  > serialization?  I seem to remember something like that in the code.
>  >
>  > On Wed, Apr 2, 2008 at 3:34 PM, Johan Compagner <[EMAIL PROTECTED]>
>  > wrote:
>  > > that method is only called when you have page references inside your
>  > page
>  > >  that is going to be (or was) serialized.
>  > >  It holds the page info so that it can get it from the session also.
>  > >
>  > >  Maybe in here we have a cycle that we dont really catch
>  > >  so Page A <-> Page B are both pointing to each other.
>  > >
>  > >  i am not quickly looking at the code but dont immediately see how we
>  > handle
>  > >  that
>  > >
>  > >  johan
>  > >
>  > >
>  > >
>  > >
>  > >  On Wed, Apr 2, 2008 at 9:26 PM, Daniel Wu <[EMAIL PROTECTED]> wrote:
>  > >
>  > >  >
>  > >  > I don't have a reproduceable testcase because the architecture that
>  > I'm
>  > >  > using
>  > >  > is a little bit different, it uses Wicket together with OSGi, running
>  > as
>  > >  > an
>  > >  > Eclipse plugin.
>  > >  >
>  > >  > I've noticed that this
>  > >  > java.io.StreamCorruptedExceptionStreamCorruptedException happens
>  > after a
>  > >  > java.lang.StackOverflowError. The line 363 of AbstractPageStore
>  > class,
>  > >  > inside the readResolve() method, is being called several times,
>  > causing
>  > >  > the
>  > >  > java.lang.StackOverflowError. This is weird, because I've another
>  > screen
>  > >  > which never calls this readResolve() method.
>  > >  >
>  > >  > When this method should be called?
>  > >  >
>  > >  >
>  > >  > Johan Compagner wrote:
>  > >  > >
>  > >  > > No that warning doesnt anything todo with serialization.
>  > >  > >
>  > >  > > But do you have a reproduceable testcase? That would be very nice
>  > to
>  > >  > > have, can you attach that to the jira (there is already  one
>  > >  > > describing this i think)
>  > >  > >
>  > >  > > On 3/29/08, Daniel Wu <[EMAIL PROTECTED]> wrote:
>  > >  > >>
>  > >  > >> I've updated my wicket application to Wicket 1.3.2, but now, when
>  > I try
>  > >  > >> to
>  > >  > >> switch between my application tabs (my tabs extend
>  > >  > >> org.apache.wicket.extensions.markup.html.tabs.AbstractTab) I'm
>  > getting
>  > >  > >> this
>  > >  > >> error:
>  > >  > >>
>  > >  > >> ERROR RequestCycle () - Could not deserialize object using
>  > >  > >>
>  > >  >
>  > `org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory`
>  > >  > >> object factory
>  > >  > >> java.lang.RuntimeException: Could not deserialize object using
>  > >  > >>
>  > >  >
>  > `org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory`
>  > >  > >> object factory
>  > >  > >>  at
>  > >  > >>
>  > org.apache.wicket.util.lang.Objects.byteArrayToObject(Objects.java:411)
>  > >  > >>  at
>  > >  > >>
>  > >  >
>  > 
> org.apache.wicket.protocol.http.pagestore.AbstractPageStore.deserializePage(AbstractPageStore.java:228)
>  > >  > >>  at
>  > >  > >>
>  > >  >
>  > 
> org.apache.wicket.protocol.http.pagestore.DiskPageStore.getPage(DiskPageStore.java:706)
>  > >  > >>  at
>  > >  > >>
>  > >  >
>  > 
> org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.get(SecondLevelCacheSessionStore.java:311)
>  > >  > >>  at org.apache.wicket.Session.getPage(Session.java:751)
>  > >  > >> ...
>  > >  > >> Caused by: java.io.StreamCorruptedException: invalid type code: 29
>  > >  > >>  at java.io.ObjectInputStream.readObject0(Unknown Source)
>  > >  > >>  at java.io.ObjectInputStream.defaultReadFields(Unknown
>  > Source)
>  > >  > >>  at java.io.ObjectInputStream.readSerialData(Unknown Source)
>  > >  > >>  at java.io.ObjectInputStream.readOrdinaryObject(Unknown
>  > Source)
>  > >  > >>  at java.io.ObjectInputStream.readObject0(Unknown Source)
>  > >  > >>  at java.io.ObjectInputStream.readObject(Unknown Source)
>  > >  > >>  at
>  > >  > >>
>  > org.apache.wicket.util.lang.Objects.byteArrayToObject(Objects.java:393)
>  > >  > >>
>  > >  > >> I've already downloaded and used the latest wicket 1.3 snapshot,
>  > which
>  > >  > >> was
>  > >  > >> suggested to me here:
>  > https://issues.apache.org/jira/bro

Re: Removing the jsessionid for SEO

2008-04-03 Thread Matej Knopp
On the other hand, crawling non-bookmarkable pages is not very useful
anyway, since ?wicket:interface url will always get page expired when
you click on the result.

However, preserving session makes lot of sense with hybrid url. Google
remembers the original url (without page instance) while indexing the
real page (after redirect).

I think though that the crawler is quite advanced. I'm would think  it
supports cookies (at least JSESSIONID) as well as it evaluates some of
the javascript on page.

-Matej

On Thu, Apr 3, 2008 at 6:56 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> right. if you strip sessionid then all your nonbookmarkable urls will
>  resolve to a 404. that will probably drop your rank a lot faster
>
>  -igor
>
>
>
>
>  On Thu, Apr 3, 2008 at 9:16 AM, Johan Compagner <[EMAIL PROTECTED]> wrote:
>  > the problem is that then you have to have all stateless pages. Else google
>  >  can't crawl your website.
>  >  And if that is the case then you could be completely stateless so you dont
>  >  have a session (id) to worry about at all.
>  >
>  >  johan
>  >
>  >
>  >
>  >
>  >
>  >
>  >  On Thu, Apr 3, 2008 at 4:54 PM, Zappaterrini, Larry <
>  >  [EMAIL PROTECTED]> wrote:
>  >
>  >  > When Google asks to not have special treatment for their bot, they are
>  >  > referring to content more than anything. Regarding the session id being
>  >  > coded in the URL, see the Technical guidelines section of Google's
>  >  > Webmaster Guidelines -
>  >  > http://www.google.com/support/webmasters/bin/answer.py?answer=35769#desi
>  >  > gn
>  >  >
>  >  > It specifically recommends "allow(ing) search bots to crawl your sites
>  >  > without session IDs or arguments that track their path through the
>  >  > site."
>  >  >
>  >  > -Original Message-
>  >  > From: Johan Compagner [mailto:[EMAIL PROTECTED]
>  >  > Sent: Thursday, April 03, 2008 7:35 AM
>  >  > To: users@wicket.apache.org
>  >  > Subject: Re: Removing the jsessionid for SEO
>  >  >
>  >  > isnt google always saying that you shouldn't alter behavior of your site
>  >  > depending of it is there bot or not?
>  >  >
>  >  > On Thu, Apr 3, 2008 at 1:00 PM, Artur W. <[EMAIL PROTECTED]> wrote:
>  >  >
>  >  > >
>  >  > > Hi!
>  >  > >
>  >  > >
>  >  > > igor.vaynberg wrote:
>  >  > > >
>  >  > > > also by doing what you have done users with cookies disabled wont be
>  >  > > > able to use your site...
>  >  > > >
>  >  > >
>  >  > > In my opinion session id is a problem. Google index the same page
>  >  > again
>  >  > > and
>  >  > > again.
>  >  > >
>  >  > > About the users without cookies we can do like this:
>  >  > >
>  >  > >
>  >  > >static class Unbuffered extends WebResponse {
>  >  > >
>  >  > > private static final String[] botAgents = {
>  >  > "onetszukaj",
>  >  > > "googlebot",
>  >  > > "appie", "architext",
>  >  > >"jeeves", "bjaaland", "ferret", "gulliver",
>  >  > > "harvest", "htdig",
>  >  > >"linkwalker", "lycos_", "moget",
>  >  > "muscatferret",
>  >  > > "myweb", "nomad",
>  >  > > "scooter",
>  >  > >"yahoo!\\sslurp\\schina", "slurp", "weblayers",
>  >  > > "antibot", "bruinbot",
>  >  > > "digout4u",
>  >  > >"echo!", "ia_archiver", "jennybot", "mercator",
>  >  > > "netcraft", "msnbot",
>  >  > > "petersnews",
>  >  > >"unlost_web_crawler", "voila", "webbase",
>  >  > > "webcollage", "cfetch",
>  >  > > "zyborg",
>  >  > >"wisenutbot", "robot", "crawl", "spider" }; /*
>  >  > and
>  >  > > so on... */
>  >  > >
>  >  > >public Unbuffered(final HttpServletResponse res) {
>  >  > >super(res);
>  >  > > }
>  >  > >
>  >  > >@Override
>  >  > >public CharSequence encodeURL(final CharSequence url) {
>  >  > > return isAgent() ? url : super.encodeURL(url);
>  >  > >}
>  >  > >
>  >  > >private static boolean isAgent() {
>  >  > >
>  >  > >String agent =
>  >  > >
>  >  > >
>  >  > ((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest().ge
>  >  > tHeader("User-Agent");
>  >  > >
>  >  > >for(String bot : botAgents) {
>  >  > >if (agent.toLowerCase().indexOf(bot) !=
>  >  > -1)
>  >  > > {
>  >  > >return true;
>  >  > >}
>  >  > >}
>  >  > >
>  >  > >return false;
>  >  > >}
>  >  > >}
>  >  > >
>  >  > >
>  >  > > I didn't test this code but I do similar thing in my old application
>  >  > in
>  >  > > Spring and it works.
>  >  > >
>  >  > > Take care,
>  >  > > Artur
>  >  > >
>  >  > >
>  >  > > --
>  >  > > View this message in context:
>  >  > >
>  >  > http://www.nabble.com/Removing-the-jsessionid-for-SEO-tp16464534p1646739
>  >

Re: Tomcat dying with Wicket 1.3.2 (Windows / JDK 1.5.0_10)

2008-04-03 Thread Matej Knopp
This is really weird. Do you have any inter-page references in your application?

-Matej

On Thu, Apr 3, 2008 at 9:35 PM, Jeremy Thomerson
<[EMAIL PROTECTED]> wrote:
> The oddness is what baffles me: Tomcat has no output anywhere.  I have
>  grepped and tailed the entire Tomcat logs directory, stdout*, stderr*,
>  localhost*, etc.  Nothing in eventvwr.
>
>  It must be memory related, though.  There is a steadily increasing memory
>  footprint - it was increasing so fast yesterday because we were getting
>  pounded by tons of traffic and Google's crawler and Ask's crawler all
>  simultaneously.  Of course, the traffic was still no higher than it has been
>  in the past - this is definitely a new problem.
>
>  I redeployed today with the pending 1.3.3 release built by Frank to see if
>  my leak could be the same as Martijn's below, but the memory continues to
>  increase.  It will die soon.  I have added the parameter to tell it to dump
>  on OOM - hopefully I got the right parameter and it will work.
>
>  Anyone here know how to (or if you can) use jstat / jmap with tomcat5.exe,
>  running as Windows service?  All my development is on Linux machines, and I
>  can easily use those tools, but on the Windows prod environment (ughh), jps
>  doesn't give me a VMID for Tomcat.
>
>  Thank you for your help!
>  Jeremy
>
>
>
>  On Thu, Apr 3, 2008 at 2:27 PM, Al Maw <[EMAIL PROTECTED]> wrote:
>
>  > You can use as many anonymous inner classes as you like. I have them
>  > coming
>  > out of my ears, personally.
>  >
>  > It's very odd for tomcat to die with no output. There will be output
>  > somewhere. Check logs/catalina.out and also logs/localhost*. If the JVM
>  > dies, it will hotspot or even segfault and log that, at least. If you have
>  > gradually increasing memory footprint then this should be pretty easy to
>  > track down with a profiler.
>  >
>  > Make sure you run Tomcat with a sensible amount of permanent generation
>  > space (128M+).
>  >
>  > Regards,
>  >
>  > Alastair
>  >
>  >
>  >
>  > On Thu, Apr 3, 2008 at 6:43 AM, Martijn Dashorst <
>  > [EMAIL PROTECTED]>
>  > wrote:
>  >
>  > > There are commandline options for the jvm to dump on OOM.
>  > >
>  > > Anyway, doesn't the log file give any insight into what is happening
>  > > in your application? Did you (or your sysadmin) disable logging for
>  > > Wicket?
>  > >
>  > > You can also run external tools to see what is happening inside your
>  > > JVM without blocking the app. e.g. use jmap -histo to see how many
>  > > objects are alive at a particular moment. The top 10 is always
>  > > interesting. In my case I found a memory leak in the diskpagestore
>  > > when exceptions occurred during writing to disk. This is solved in
>  > > 1.3.3 (which is just days away from an official release, try it!)
>  > >
>  > > jstat -gc -h50  1000 will log the garbage collector statistics
>  > > every second.
>  > >
>  > > Martijn
>  > >
>  > > On 4/3/08, Jeremy Thomerson <[EMAIL PROTECTED]> wrote:
>  > > > I upgraded my biggest production app from 1.2.6 to 1.3 last week.  I
>  > > have
>  > > >  had several apps running on 1.3 since it was in beta with no problems
>  > -
>  > > >  running for months without restarting.
>  > > >
>  > > >  This app receives more traffic than any of the rest.  We have a
>  > decent
>  > > >  server, and I had always allowed Tomcat 1.5GB of RAM to operate with.
>  > >  It
>  > > >  never had a problem doing so, and I didn't have OutOfMemory errors.
>  > >  Now,
>  > > >  after the upgrade to 1.3.2, I am having all sorts of trouble.  It ran
>  > > for
>  > > >  several days without a problem, but then started dying a couple times
>  > a
>  > > >  day.  Today it has died four times.  Here are a couple odd things
>  > about
>  > > >  this:
>  > > >
>  > > >- On 1.2.6, I never had a problem with stability - the app would
>  > run
>  > > >weeks between restarts (I restart once per deployment, anywhere
>  > from
>  > > once a
>  > > >week to at the longest about two months between deploy / restart).
>  > > >- Tomcat DIES instead of hanging when there is a problem.  Always
>  > > >before, if I had an issue, Tomcat would hang, and there would be
>  > OOM
>  > > in the
>  > > >logs.  Now, when it crashes, and I sign in to the server, Tomcat is
>  > > not
>  > > >running at all.  There is nothing in the Tomcat logs that says
>  > > anything, or
>  > > >in eventvwr.
>  > > >- I do not get OutOfMemory error in any logs, whereas I have always
>  > > >seen it in the logs before when I had an issue with other apps.  I
>  > am
>  > > >running Tomcat as a service on Windows, but it writes stdout /
>  > stderr
>  > > to
>  > > >logs, and I write my logging out to logs, and none of these logs
>  > > include ANY
>  > > >errors - they all just suddenly stop at the time of the crash.
>  > > >
>  > > >  My money is that it is an OOM error caused by somewhere that I am
>  > doing
>  > > >  something 

Re: java.io.StreamCorruptedException: invalid type code: 29

2008-04-04 Thread Matej Knopp
passing 0 instead of -1 is definitely not the solution. This can
result in wrong page version set to other page references. I wish you
could provide a quickstart that reproduces the problem. It looks like
a bug in wicket but so far I'm not able to reproduce this behavior.

-Matej

On Fri, Apr 4, 2008 at 9:01 PM, Daniel Wu <[EMAIL PROTECTED]> wrote:
> I think I've found the solution for my StreamCorruptedException problem.
>  Inside the org.apache.wicket.Page, there is a constant LATEST_VERSION which
>  value is  -1. In my application, the versionNumber passed as parameter to
>  the method getVersion(final int versionNumber) inside Page is never -1, the
>  initial versionNumber of a page is always 0. When this versionNumber is
>  different from 0, the versionManager object inside Page is not null, so the
>  flow goes to the else block inside the getVersion() method.
>
>  If LATEST_VERSION is -1, the flow of my application is always going to the
>  if block below, never to else block, as my versionNumber is always >= 0, so
>  depending on the versionNumber, no page will be recovered, which was leading
>  to the StreamCorruptedException, maybe because wicket was trying to
>  de-serialize the wrong version of my page.
>
>  if (versionNumber != LATEST_VERSION) {
>   page = versionManager.getVersion(versionNumber);
>  }
>  else {
>   page = versionManager.getVersion(getCurrentVersionNumber());
>  }
>
>  I've changed LATEST_VERSION value to 0, and now my application works
>  perfectly. Are these assumptions correct? Does anytime versionNumber assumes
>  the -1 value?
>
>
>
>  On Thu, Apr 3, 2008 at 8:43 PM, Daniel Wu <[EMAIL PROTECTED]> wrote:
>
>  > I debugged my application and it really doesn't have a
>  > ClassNotFoundException eaten by ObjectInputStream. I compared the flow of
>  > two screens of my application, one that works and another that doesn't:
>  >
>  > 1) The line 298 of SecondLevelCacheSessionStore =>
>  > getLastPage().getVersion(versionNumber) is returning the correct page,
>  > because inside the getVersion() method, the versionManager object is null.
>  > In this case, the screen that I'm testing works perfectly.
>  >
>  > 2) For the screen that throws the StackOverFlow and
>  > StreamCorruptedException, for some reason the versionManager object is not
>  > null, and it returns a null page object.
>  >
>  > Another strange thing is that after the line 393 of Objects.java => return
>  > ois.readObject(); => while debugging it using Eclipse, after this method
>  > call the flow goes straight to the line 363 of AbstractPageStore.java,
>  > without entering the finally block. So, an infinite loop starts, causing 
> the
>  > StackOverflow.
>  >
>  > During the tab switch of the screen that works, the line 393 of
>  > Objects.java is never reached, meaning that this screen was not serialized,
>  > right? This code is only reached during a tab switch of the screen that
>  > throws StackOverFlow exception.
>  >
>  > What defines if a page should be serialized/deserialized? Does anyone know
>  > what could be causing these problems?
>  >
>  >
>  > On Wed, Apr 2, 2008 at 7:28 PM, Daniel Stoch <[EMAIL PROTECTED]>
>  > wrote:
>  >
>  > > Hi,
>  > >
>  > > It seems that this could be an OSGi related issue. We have the similar
>  > > problem in our applications.
>  > > You can look at the thread: Wicket + OSGI + Session (november 2007).
>  > > Then Sebastiaan gave me a tip that this can be ClassNotFoundException:
>  > >
>  > > "It's probably a ClassNotFoundException on deserialization which gets
>  > > eaten by ObjectInputStream (there's a bug report at Sun for this). To be
>  > > sure you can debug trapping on ClassNotFoundException (caught and 
> uncaught)
>  > > when this problem occurs.
>  > >
>  > > However, since it's in a page you can easily fix this one: either
>  > > upgrade to trunk and implement your own IClassResolver and register it 
> with
>  > > the application, or write your own IObjectStreamFactory implementation 
> and
>  > > register it with the Objects class.
>  > >
>  > > In either case, have a look at the DefaultObjectStreamFactory to see how
>  > > to write a hook to look up classes in an ObjectInputStream implementation
>  > > (resolveClass method)."
>  > >
>  > >
>  > > Inside OSGI environment each bundle has its own class loader, so this
>  > > could leeds to problem when you try to use in your app a class defined in
>  > > another bundle.
>  > > I've solved this problem by implementing my own IClassResolver. The
>  > > default Wicket DefaultClassResolver is a final class, so we must make a 
> copy
>  > > of it and make a little change at the end of resolveClass method.
>  > >
>  > > The default implementation (DefaultClassResolver):
>  > >
>  > >synchronized (classes)
>  > >{
>  > >ClassLoader loader =
>  > > Thread.currentThread().getContextClassLoader();
>  > >if (loader == null)
>  > >{
>  > >  

Re: Cannot add wicket component to

2008-04-05 Thread Matej Knopp
You should try to add WebMarkupContainer to the style instead of
label.. Apart fomr that I don't see why it shouldn't be resolved.

-Matej

On Sat, Apr 5, 2008 at 2:08 PM, Daniel Walmsley <[EMAIL PROTECTED]> wrote:
> Hi there,
>
>  I'm writing a wicket template that produces a KML document, and it won't
> let me add labels or resolve component wicket:id within the KML  tag.
> D'oh!
>
>  I'm assuming this is a hangover from the HTML world.
>
>  My KML snippet:
>
>  
>