its a native call that isn't there in java 4

private native static StackTraceElement[][] dumpThreads(Thread[] threads);

johan


On 6/29/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:

We could try retrotranslator to see what kind of code is emitted?

Martijn

On 6/29/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> Yeah i think that code i also did see, this should go into the next
version
> yes.
> But i dont see how we can do that easy for java 4
>
> johan
>
>
> On 6/28/07, Jonathan Locke <[EMAIL PROTECTED]> wrote:
> >
> >
> > yeah, i just figured that out.  i'll just patch our wicket for
now.  but
> we
> > should add this for wicket 1.4 (in a nicer way than this (generic
utility
> > method), of course):
> >
> >                                                 final
> StringBuilder builder = new StringBuilder();
> >
>                                                 StackTraceElement[]
> elements = t.getStackTrace();
> >                                                 for (int
> i = 0; i < elements.length; i++) {
> >
> builder.append(elements[i]);
> >                                                 }
> >                                                 throw new
> WicketRuntimeException("After " + timeout + " the Pagemap "
> >
>                                                                 +
> pageMapName + " is still locked by: " + t
> >
>                                                                 +
> ", giving up trying to get the page for path: " + path + "\nStack
> > Trace: " + builder.toString());
> >
> >
> >
> > Eelco Hillenius wrote:
> > >
> > >> makes sense all right.  is there any way we could print out a stack
> trace
> > >> of
> > >> the thread that's holding the monitor we're trying to grab?  maybe
via
> > >> JMX?
> > >> this would be extremely useful when this exception is thrown!
> > >
> > > We've had a thread about that, and the conclusion was that this is
> > > possible (I believe Johan built it) but only with Java 5.
> > >
> > > Eelco
> > >
> > >
>
-------------------------------------------------------------------------
> > > 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
> > >
> > >
> >
> > --
> > View this message in context:
> http://www.nabble.com/pagemap-locking-tf3996742.html#a11351736
> > 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
> >
>
>
>
-------------------------------------------------------------------------
> 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
>
>


--
Wicket joins the Apache Software Foundation as Apache Wicket
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

-------------------------------------------------------------------------
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

-------------------------------------------------------------------------
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