Re: Problem getting Tomcat to see my webapp

2011-02-25 Thread Josh Kamau
Jim,

The easiest way to work with wicket is to use maven.  You can start by
following the simple instructions listed here
http://www.wicketeer.blogspot.com/

On Fri, Feb 25, 2011 at 8:17 AM, Jim Goodwin  wrote:

> Hello all,
>
> I've used Java and Eclipse for years but I'm a web-technology
> newbie, trying to set up Wicket so I can learn some skills.
> I hit a snag setting up.
>
> I'm trying to  follow setup and configuration instructions given at
> http://agileskills2.org/EWDW/Chapters1-2.pdf
>
> These instructions are a little out of date, but I was able to figure
> out everything until (on page 30 of the text at that url, about 40%
> down the web-page) it said:
>
>   Next, modify the web.xml file in src/main/webapp/WEB-INF with the
>   following
>   content. This file is called the "deployment descriptor":
>
>   
>   Archetype Created Web Application
>   
>   WicketFilter
>   org.apache.wicket.protocol.http.WicketFilter
>   
>   applicationClassName
>   com.foo.myapp.MyApp
>   
>   
>   
>   WicketFilter
>   /app/*
>   
>   
>
> FIRST PROBLEM:
>
> The instructions seem to assume that some previous step
> would already have created /webapp/WEB-INF/web.xml under
> src/main, but there is nothing under src/main except /java.
> Nor do I find anything like web.xml anywhere in the project tree.
>
> So I created the directories and the web.xml file by hand, using the text
> above except I just left out the "..." in the first tag.
>
> SECOND PROBLEM:
>
> The next instruction is to right-click the Tomcat instance in the Eclipse
> "servers" view, and choose  "Add/Remove" to add your app to the server
> instance. The instructions show a screenshot in which the "Add/Remove"
> command raises a dialog box with myapp listed among the choices.
>
> For me, the command just produces an alert saying there are no resources
> that can be added or removed from the server.
>
> Any idea what I'm doing wrong?
>
> Any idea what previous step was supposed to have created
> src/main/webapp/WEB-INF ?
> Does that location look exactly right to you?
>
> And what is the Add/Remove command is really trying to do? i.e. especially,
> where is it trying to read and write?
>
>
> Thanks for any help
> Jim
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Test

2011-02-25 Thread Josh Kamau
I have been having the same problem for the last 2 weeks. Every time i send
a mail or a reply, i get a mail delivery failure.  Today it however seemed
to be working. I have been able to send a reply. If this gets through, i
will conclude that the issue has been resolved or resolved its self.

Josh.

On Fri, Feb 25, 2011 at 12:49 AM, Jim Goodwin  wrote:

> Everything I send to this list is being bounced by a  spam-filter
> at the list-serv end. Just testing a very simple text-only message.
> Very sorry if this actually goes through, nothing else would
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Session optimization

2011-02-25 Thread Martin Makundi
FYI: 
http://stackoverflow.com/questions/5092211/session-optimization-in-jetty-wicket

**
Martin

2011/2/23 Martin Makundi :
> Hi!
>
> Is there a way to swap sessions onto disk with jetty if they are idle
> for n.n. minutes?
>
> It is under investigation, but we suspect that we have many idle users
> logged in with large session size. So, while they are doing nothing,
> their session could be pushed onto disk.
>
> Is there a setting or utility or way to achieve this? We are using 
> wicket+jetty.
>
> Simply shortening session destroy timeout is not an option.
>
> **
> Martin
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: "(...) is managed by a different Object Manager"

2011-02-25 Thread hrbaer

Meanwhile I tested a bit more and you really can reduce the example of
eager/lazy-loading.

After using Google a while I tried to add 
@Persistent( defaultFetchGroup="true" )
private ArrayList fragen;
to my POJO. 

But now I get the following (console) output: "WARN  [DataNucleus.MetaData]
- Meta-data warning for de.web.guestbook.model.Katalog.fragen: The datastore
does not support joins and therefore cannot honor requests to place related
objects in the default fetch group.  The field will be fetched lazily on
first access.  You can modify this warning by setting the
datanucleus.appengine.ignorableMetaDataBehavior property in your config.  A
value of NONE will silence the warning.  A value of ERROR will turn the
warning into an exception.".

Nethertheless I do load the list of Fragen eagerly. 
So my only open point is: Is there a "best practice" to handle this kind of
warning or should I just ignore it?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/is-managed-by-a-different-Object-Manager-tp3322642p3324133.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Session size with ModalWindow

2011-02-25 Thread Stefan Lindner
We have a modal window (not matter Panel oder Page as content) which
holds a lot of AjaxLinks. Each time an AjaxLink is clicked the session
grows. Is there a way to suppress the versioning of the session and
page? It's the PageMap that is growing.

The ModalWindow does not hold any explicit reference to a page oder
another component on the page.

Stefan

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Session size with ModalWindow

2011-02-25 Thread Martin Grigorov
I have experienced memory problems before with Page backed ModalWindow, so
I'd recommend Panel backed.
About versioning see Component.setVersioned(false).

On Fri, Feb 25, 2011 at 11:45 AM, Stefan Lindner wrote:

> We have a modal window (not matter Panel oder Page as content) which
> holds a lot of AjaxLinks. Each time an AjaxLink is clicked the session
> grows. Is there a way to suppress the versioning of the session and
> page? It's the PageMap that is growing.
>
> The ModalWindow does not hold any explicit reference to a page oder
> another component on the page.
>
> Stefan
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


RE: Session size with ModalWindow

2011-02-25 Thread Stefan Lindner
You're right, using a panel as modal window's content is a little bit better. 
The session grows slower but it grows infinitely. 
Setting setVersioned to false did not make any difference. Any other idea?

Stefan

-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mgrigo...@apache.org] 
Gesendet: Freitag, 25. Februar 2011 10:55
An: users@wicket.apache.org
Betreff: Re: Session size with ModalWindow

I have experienced memory problems before with Page backed ModalWindow, so I'd 
recommend Panel backed.
About versioning see Component.setVersioned(false).

On Fri, Feb 25, 2011 at 11:45 AM, Stefan Lindner wrote:

> We have a modal window (not matter Panel oder Page as content) which 
> holds a lot of AjaxLinks. Each time an AjaxLink is clicked the session 
> grows. Is there a way to suppress the versioning of the session and 
> page? It's the PageMap that is growing.
>
> The ModalWindow does not hold any explicit reference to a page oder 
> another component on the page.
>
> Stefan
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Session size with ModalWindow

2011-02-25 Thread Martin Grigorov
I guess you have a cyclic reference somewhere...
You'll need to use memory analyzer to check which objects contribute to the
growing size.

See Eclipse Memory Analyzer (http://www.eclipse.org/mat/)
or jhat (comes with the JDK):

1. In jconsole -> call GC
2. jmap -dump:live,format=b,file=heap.bin PID
  (captures the initial state)
3. Click on any of the links to make the session grow
4. jmap -dump:live,format=b,file=heap2.bin PID
 (captures a state with memory leak)

jhat -J-mx768m heap.bin
  (to read and analyze the heap dump)


On Fri, Feb 25, 2011 at 12:09 PM, Stefan Lindner wrote:

> You're right, using a panel as modal window's content is a little bit
> better. The session grows slower but it grows infinitely.
> Setting setVersioned to false did not make any difference. Any other idea?
>
> Stefan
>
> -Ursprüngliche Nachricht-
> Von: Martin Grigorov [mailto:mgrigo...@apache.org]
> Gesendet: Freitag, 25. Februar 2011 10:55
> An: users@wicket.apache.org
> Betreff: Re: Session size with ModalWindow
>
> I have experienced memory problems before with Page backed ModalWindow, so
> I'd recommend Panel backed.
> About versioning see Component.setVersioned(false).
>
> On Fri, Feb 25, 2011 at 11:45 AM, Stefan Lindner  >wrote:
>
> > We have a modal window (not matter Panel oder Page as content) which
> > holds a lot of AjaxLinks. Each time an AjaxLink is clicked the session
> > grows. Is there a way to suppress the versioning of the session and
> > page? It's the PageMap that is growing.
> >
> > The ModalWindow does not hold any explicit reference to a page oder
> > another component on the page.
> >
> > Stefan
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>


AW: Session size with ModalWindow

2011-02-25 Thread Stefan Lindner
Sigh! Ok, thank you for the below example. I will dig into the memory pool.

Stefan

-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mgrigo...@apache.org] 
Gesendet: Freitag, 25. Februar 2011 11:20
An: users@wicket.apache.org
Betreff: Re: Session size with ModalWindow

I guess you have a cyclic reference somewhere...
You'll need to use memory analyzer to check which objects contribute to the 
growing size.

See Eclipse Memory Analyzer (http://www.eclipse.org/mat/) or jhat (comes with 
the JDK):

1. In jconsole -> call GC
2. jmap -dump:live,format=b,file=heap.bin PID
  (captures the initial state)
3. Click on any of the links to make the session grow 4. jmap 
-dump:live,format=b,file=heap2.bin PID
 (captures a state with memory leak)

jhat -J-mx768m heap.bin
  (to read and analyze the heap dump)


On Fri, Feb 25, 2011 at 12:09 PM, Stefan Lindner wrote:

> You're right, using a panel as modal window's content is a little bit 
> better. The session grows slower but it grows infinitely.
> Setting setVersioned to false did not make any difference. Any other idea?
>
> Stefan
>
> -Ursprüngliche Nachricht-
> Von: Martin Grigorov [mailto:mgrigo...@apache.org]
> Gesendet: Freitag, 25. Februar 2011 10:55
> An: users@wicket.apache.org
> Betreff: Re: Session size with ModalWindow
>
> I have experienced memory problems before with Page backed 
> ModalWindow, so I'd recommend Panel backed.
> About versioning see Component.setVersioned(false).
>
> On Fri, Feb 25, 2011 at 11:45 AM, Stefan Lindner  >wrote:
>
> > We have a modal window (not matter Panel oder Page as content) which 
> > holds a lot of AjaxLinks. Each time an AjaxLink is clicked the 
> > session grows. Is there a way to suppress the versioning of the 
> > session and page? It's the PageMap that is growing.
> >
> > The ModalWindow does not hold any explicit reference to a page oder 
> > another component on the page.
> >
> > Stefan
> >
> > 
> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>


Re: "(...) is managed by a different Object Manager"

2011-02-25 Thread hrbaer

Out of the frying pan into the fire :(

Given is a table with all KATALOG entities. Within each row there is a count
of the size of QUESTION, f.eg.: 
Row 1: "name of the KATALOG" - "katalog.getFragen().size()" -
"CREATE_EINTRAG-Link"
Row 2: "name of the KATALOG" - "katalog.getFragen().size()" -
"CREATE_EINTRAG-Link"
Row 3: "name of the KATALOG" - "katalog.getFragen().size()" -
"CREATE_EINTRAG-Link"

If I start the server I can add new KATALOG entities with an amount of
QUESTIONs. Everything is fine. But once I store a new EINTRAG to a selected
KATALOG the list of QUESTIONs of this KATALOG is empty. And further more if
I save a new KATALOG with e.g. 2 QUESTIONs they don't get displayed within
my overview. It's alwasy "0".

This is how I create a new EINTRAG:


Eintrag eintrag = new Eintrag();
eintrag.setKatalogId( selectedKatalog.getId() ); // I load the KATALOG by
the KATALOG-ID at the beginning of the constructor via PageParameter
eintrag.setVorname( (String) getModelObject().get( Constants.VORNAME ) );
eintrag.setNachname( (String) getModelObject().get( Constants.NACHNAME ) );
eintrag.setEmail( (String) getModelObject().get( Constants.EMAIL ) );
eintrag.setListFragen( selectedKatalog.getFragen());
return eintrag;


It seems like I remove the already stored list of QUESTIONs of the KATALOG
and add them to EINTRAG.
What am I doing wrong?

Thanks in advance.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/is-managed-by-a-different-Object-Manager-tp3322642p3324221.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



A quick start application with multiple pages and navigation

2011-02-25 Thread Asankha C. Perera

Hi

I am looking for a quick start Wicket example, that shows bread crumb 
navigation and a few pages.. Can someone point me to an example, or 
another open source project I could use as a reference


thanks
asankha

--
Asankha C. Perera
AdroitLogic, http://adroitlogic.org

http://esbmagic.blogspot.com





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: A quick start application with multiple pages and navigation

2011-02-25 Thread Martin Grigorov
Use breadcrumbs example from wicket-examples project
In action: http://wicketstuff.org/wicket14/breadcrumb/
Code: either browse with the
"Source code" link or download the whole project from
http://repo2.maven.org/maven2/org/apache/wicket/wicket-examples/1.4.16/

On Fri, Feb 25, 2011 at 1:59 PM, Asankha C. Perera wrote:

> Hi
>
> I am looking for a quick start Wicket example, that shows bread crumb
> navigation and a few pages.. Can someone point me to an example, or another
> open source project I could use as a reference
>
> thanks
> asankha
>
> --
> Asankha C. Perera
> AdroitLogic, http://adroitlogic.org
>
> http://esbmagic.blogspot.com
>
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Regarding editable datagrid

2011-02-25 Thread mnadeem


Here is an example of wicket Editable Grid,

https://github.com/mnadeem/EditableGridWicket_1_3
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Regarding-editable-datagrid-tp1856961p3324514.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Test

2011-02-25 Thread Jim Goodwin

In my case it turned out that (A) I was pasting in a snippet of XML;
(B) my mail client (Thunderbird ) decided therefore to send the
whole message as HTML; (C) apache's SpamAssassin has rules about
HTML and decided it was spam.

The fix (in TBird) was to edit the Contact record for 
users@wicket.apache.org.
There is a preference for plaintext/HTML. I had as usual left it at the 
default,

which lets TBird guess. Setting it to plaintext solved the problem.

(FWIW: Along the way I think I figured out also that the SpamAssassin rules
that Apache is using also award penalty points for email addresses that end
in digits, like mine or yours (Josh), as well as free email services like
gmail, and even my non-free ISP comcast, and email addresses with no
real username in brackets. It just didn't love me. But getting rid of the
HTML lowered my score enough to get through.)


On 2/25/2011 3:44 AM, Josh Kamau wrote:

I have been having the same problem for the last 2 weeks. Every time i send
a mail or a reply, i get a mail delivery failure.  Today it however seemed
to be working. I have been able to send a reply. If this gets through, i
will conclude that the issue has been resolved or resolved its self.

Josh.

On Fri, Feb 25, 2011 at 12:49 AM, Jim Goodwin  wrote:


Everything I send to this list is being bounced by a  spam-filter
at the list-serv end. Just testing a very simple text-only message.
Very sorry if this actually goes through, nothing else would


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



[announce] Wicket 1.5-rc2 is released!

2011-02-25 Thread Martin Grigorov
The Wicket Team is proud to introduce the second Release Candidate in
Wicket 1.5 series. It includes bug fixes and improvements reported against
1.5-RC1. See the changelog for full list.

More detailed migration notes are available on our [Migrate to 1.5
Wiki Page](https://cwiki.apache.org/WICKET/migration-to-wicket-15.html)

Release Artifacts:
* Subversion tag:
http://svn.apache.org/repos/asf/wicket/releases/wicket-1.5-rc2
* Changelog:
https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310561&version=12316059
* To use in Maven:

   org.apache.wicket
   wicket-core
   1.5-rc2

* Download the full distribution:
http://www.apache.org/dyn/closer.cgi/wicket/1.5-rc2 (including source)

The Wicket Team!


[announce] Wicket 1.4.16 is released!

2011-02-25 Thread Martin Grigorov
The Wicket Team is proud to release the sixteenth release of the Wicket
1.4.x series.
This is primarily a minor bugfix release.

Release Artifacts:
* Subversion tag:
http://svn.apache.org/repos/asf/wicket/releases/wicket-1.4.16
* Changelog:
https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12316020&styleName=Html&projectId=12310561
* To use in Maven:

   org.apache.wicket
   wicket
   1.4.16

* Download the full distribution:
http://www.apache.org/dyn/closer.cgi/wicket/1.4.16 (including source)

The Wicket Team!


NotSerializableException in Wicket 1.5

2011-02-25 Thread Zhubin Salehi

Hi,

Since I migrated to Wicket 1.5 I get exceptions like this in my log file:

2011-02-25 10:28:07,234 [http-8080-Processor21] ERROR
org.apache.wicket.util.lang.WicketObjects - Error serializing object class
com.route1.mobi.map3.web.pages.assemblage.FindHost [object=[Page class =
com.route1.mobi.map3.web.pages.assemblage.FindHost, id = 5, render count =
1]]
org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:
Unable to serialize class: $java.util.List$$EnhancerByCGLIB$$d1658214
Field hierarchy is:
  5 [class=com.route1.mobi.map3.web.pages.assemblage.FindHost, path=5]
private java.lang.Object org.apache.wicket.MarkupContainer.children
[class=[Ljava.lang.Object;]
  private java.lang.Object org.apache.wicket.MarkupContainer.children[6]
[class=com.route1.mobi.map3.web.pages.assemblage.FindHost$HostForm,
path=5:logicalEntityForm]
private java.lang.Object org.apache.wicket.MarkupContainer.children
[class=[Ljava.lang.Object;]
  private java.lang.Object
org.apache.wicket.MarkupContainer.children[0]
[class=org.apache.wicket.markup.html.WebMarkupContainer,
path=5:logicalEntityForm:mainTable]
private java.lang.Object
org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
  private java.lang.String
org.apache.wicket.markup.html.form.FormComponent.typeName[2]
[class=org.apache.wicket.markup.html.form.TextField,
path=5:logicalEntityForm:mainTable:name]
java.lang.Object org.apache.wicket.Component.data
[class=org.apache.wicket.model.PropertyModel]
  private java.lang.Object
org.apache.wicket.model.AbstractPropertyModel.target
[class=com.route1.mobi.dao.model.AssemblageItemSearchCriteria$DetailSearchCriteria]
private com.route1.mobi.model.DetailParam
com.route1.mobi.dao.model.AssemblageItemSearchCriteria$DetailSearchCriteria.detailParam
[class=com.route1.mobi.model.DetailParam]
  private java.util.List
com.route1.mobi.model.DetailParam.names
[class=$java.util.List$$EnhancerByCGLIB$$d1658214] <- field that is not
serializable
at
org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:387)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:366)
at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:647)
at
org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:570)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:366)
at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:647)
at
org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:570)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:366)
at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:647)
at
org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:570)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:366)
at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:647)
at
org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:570)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:366)
at
org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:432)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:366)
at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:647)
at
org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:570)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:366)
at
org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:432)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:366)
at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:647)
at
org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:570)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:366)
at
org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:432)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:366)
at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:647)
at
org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:570)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:366)
at
org.apache.wicket.util.io.SerializableChecker.write

Re: NotSerializableException in Wicket 1.5

2011-02-25 Thread Martin Grigorov
There are no changes in Wicket related to the serialization checks.
There were some improvements in latest 1.4.x and 1.5.x code.
>From which 1.4.x version exactly did you upgrade to 1.5 ?

About 'switch off' -
see getApplication().getPageManager().supportsVersioning().
Better see how to avoid serializing the DB content than switching off
serialization.

On Fri, Feb 25, 2011 at 5:30 PM, Zhubin Salehi  wrote:

>
> Hi,
>
> Since I migrated to Wicket 1.5 I get exceptions like this in my log file:
>
> 2011-02-25 10:28:07,234 [http-8080-Processor21] ERROR
> org.apache.wicket.util.lang.WicketObjects - Error serializing object class
> com.route1.mobi.map3.web.pages.assemblage.FindHost [object=[Page class =
> com.route1.mobi.map3.web.pages.assemblage.FindHost, id = 5, render count =
> 1]]
>
> org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:
> Unable to serialize class: $java.util.List$$EnhancerByCGLIB$$d1658214
> Field hierarchy is:
>  5 [class=com.route1.mobi.map3.web.pages.assemblage.FindHost, path=5]
>private java.lang.Object org.apache.wicket.MarkupContainer.children
> [class=[Ljava.lang.Object;]
>  private java.lang.Object org.apache.wicket.MarkupContainer.children[6]
> [class=com.route1.mobi.map3.web.pages.assemblage.FindHost$HostForm,
> path=5:logicalEntityForm]
>private java.lang.Object org.apache.wicket.MarkupContainer.children
> [class=[Ljava.lang.Object;]
>  private java.lang.Object
> org.apache.wicket.MarkupContainer.children[0]
> [class=org.apache.wicket.markup.html.WebMarkupContainer,
> path=5:logicalEntityForm:mainTable]
>private java.lang.Object
> org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
>  private java.lang.String
> org.apache.wicket.markup.html.form.FormComponent.typeName[2]
> [class=org.apache.wicket.markup.html.form.TextField,
> path=5:logicalEntityForm:mainTable:name]
>java.lang.Object org.apache.wicket.Component.data
> [class=org.apache.wicket.model.PropertyModel]
>  private java.lang.Object
> org.apache.wicket.model.AbstractPropertyModel.target
>
> [class=com.route1.mobi.dao.model.AssemblageItemSearchCriteria$DetailSearchCriteria]
>private com.route1.mobi.model.DetailParam
>
> com.route1.mobi.dao.model.AssemblageItemSearchCriteria$DetailSearchCriteria.detailParam
> [class=com.route1.mobi.model.DetailParam]
>  private java.util.List
> com.route1.mobi.model.DetailParam.names
> [class=$java.util.List$$EnhancerByCGLIB$$d1658214] <- field that is not
> serializable
>at
>
> org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:387)
>at
>
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:366)
>at
>
> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:647)
>at
>
> org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:570)
>at
>
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:366)
>at
>
> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:647)
>at
>
> org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:570)
>at
>
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:366)
>at
>
> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:647)
>at
>
> org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:570)
>at
>
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:366)
>at
>
> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:647)
>at
>
> org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:570)
>at
>
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:366)
>at
>
> org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:432)
>at
>
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:366)
>at
>
> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:647)
>at
>
> org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:570)
>at
>
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:366)
>at
>
> org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:432)
>at
>
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:366)
>at
>
> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:647)
>at
>
> org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:570)
>at
>
> org.apache.wicket.uti

Re: NotSerializableException in Wicket 1.5

2011-02-25 Thread Zhubin Salehi

Thanks for your quick reply. I used Wicket 1.4.15.

I think like you said I need to avoid serializing CGLIB objects. Is there
any specific way to do this?

Zhubin


Martin Grigorov-4 wrote:
> 
> There are no changes in Wicket related to the serialization checks.
> There were some improvements in latest 1.4.x and 1.5.x code.
> From which 1.4.x version exactly did you upgrade to 1.5 ?
> 
> About 'switch off' -
> see getApplication().getPageManager().supportsVersioning().
> Better see how to avoid serializing the DB content than switching off
> serialization.
> 

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/NotSerializableException-in-Wicket-1-5-tp3324650p3324703.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: NotSerializableException in Wicket 1.5

2011-02-25 Thread Martin Grigorov
Use dynamic model that returns the List when asked.
see LoadableDetachableModel

On Fri, Feb 25, 2011 at 5:49 PM, Zhubin Salehi  wrote:

>
> Thanks for your quick reply. I used Wicket 1.4.15.
>
> I think like you said I need to avoid serializing CGLIB objects. Is there
> any specific way to do this?
>
> Zhubin
>
>
> Martin Grigorov-4 wrote:
> >
> > There are no changes in Wicket related to the serialization checks.
> > There were some improvements in latest 1.4.x and 1.5.x code.
> > From which 1.4.x version exactly did you upgrade to 1.5 ?
> >
> > About 'switch off' -
> > see getApplication().getPageManager().supportsVersioning().
> > Better see how to avoid serializing the DB content than switching off
> > serialization.
> >
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/NotSerializableException-in-Wicket-1-5-tp3324650p3324703.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: NotSerializableException in Wicket 1.5

2011-02-25 Thread Pedro Santos
Text field "name" in "logicalEntityForm" has an PropertyModel targeting a
DetailSearchCriteria, this class has the field "detailParam" of type
DetailParam, and DetailParam has the field "names" of a not serializable
property type: List
A lot of List implementations are serializable, but the one at
the DetailParam is not.

On Fri, Feb 25, 2011 at 12:38 PM, Martin Grigorov wrote:

> There are no changes in Wicket related to the serialization checks.
> There were some improvements in latest 1.4.x and 1.5.x code.
> From which 1.4.x version exactly did you upgrade to 1.5 ?
>
> About 'switch off' -
> see getApplication().getPageManager().supportsVersioning().
> Better see how to avoid serializing the DB content than switching off
> serialization.
>
> On Fri, Feb 25, 2011 at 5:30 PM, Zhubin Salehi  wrote:
>
> >
> > Hi,
> >
> > Since I migrated to Wicket 1.5 I get exceptions like this in my log file:
> >
> > 2011-02-25 10:28:07,234 [http-8080-Processor21] ERROR
> > org.apache.wicket.util.lang.WicketObjects - Error serializing object
> class
> > com.route1.mobi.map3.web.pages.assemblage.FindHost [object=[Page class =
> > com.route1.mobi.map3.web.pages.assemblage.FindHost, id = 5, render count
> =
> > 1]]
> >
> >
> org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:
> > Unable to serialize class: $java.util.List$$EnhancerByCGLIB$$d1658214
> > Field hierarchy is:
> >  5 [class=com.route1.mobi.map3.web.pages.assemblage.FindHost, path=5]
> >private java.lang.Object org.apache.wicket.MarkupContainer.children
> > [class=[Ljava.lang.Object;]
> >  private java.lang.Object
> org.apache.wicket.MarkupContainer.children[6]
> > [class=com.route1.mobi.map3.web.pages.assemblage.FindHost$HostForm,
> > path=5:logicalEntityForm]
> >private java.lang.Object
> org.apache.wicket.MarkupContainer.children
> > [class=[Ljava.lang.Object;]
> >  private java.lang.Object
> > org.apache.wicket.MarkupContainer.children[0]
> > [class=org.apache.wicket.markup.html.WebMarkupContainer,
> > path=5:logicalEntityForm:mainTable]
> >private java.lang.Object
> > org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
> >  private java.lang.String
> > org.apache.wicket.markup.html.form.FormComponent.typeName[2]
> > [class=org.apache.wicket.markup.html.form.TextField,
> > path=5:logicalEntityForm:mainTable:name]
> >java.lang.Object org.apache.wicket.Component.data
> > [class=org.apache.wicket.model.PropertyModel]
> >  private java.lang.Object
> > org.apache.wicket.model.AbstractPropertyModel.target
> >
> >
> [class=com.route1.mobi.dao.model.AssemblageItemSearchCriteria$DetailSearchCriteria]
> >private com.route1.mobi.model.DetailParam
> >
> >
> com.route1.mobi.dao.model.AssemblageItemSearchCriteria$DetailSearchCriteria.detailParam
> > [class=com.route1.mobi.model.DetailParam]
> >  private java.util.List
> > com.route1.mobi.model.DetailParam.names
> > [class=$java.util.List$$EnhancerByCGLIB$$d1658214] <- field that is
> not
> > serializable
> >at
> >
> >
> org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:387)
> >at
> >
> >
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:366)
> >at
> >
> >
> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:647)
> >at
> >
> >
> org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:570)
> >at
> >
> >
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:366)
> >at
> >
> >
> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:647)
> >at
> >
> >
> org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:570)
> >at
> >
> >
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:366)
> >at
> >
> >
> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:647)
> >at
> >
> >
> org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:570)
> >at
> >
> >
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:366)
> >at
> >
> >
> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:647)
> >at
> >
> >
> org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:570)
> >at
> >
> >
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:366)
> >at
> >
> >
> org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:432)
> >at
> >
> >
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:366)
> >at
> >
> >
> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:647)
> >

Unable to find the markup for the component.

2011-02-25 Thread Loren Cole
I've got a situation where we're lifting a panel out of a page and
making it the content of a modal window, like so:
@Override
public void setPage(final WebPage page) {
Component panel;
if(page instanceof EmbeddedPage) {
logger.debug("embedded panel p..." + 
page.get("popcontainer:content"));
panel = page.get("popcontainer:content");
if(panel != null) {
this.setContent(panel);
}
}

We implemented a lot of modals using setPage, but had performance
issues and found that using panels fixed them, so it being close to a
release this is the solution we used.  Unfortunately we're now having
problems with feedback panels on those modals; we get the following
error when trying to update them:

WicketMessage: Unable to find the markup for the component. That may
be due to transparent containers or components implementing
IComponentResolver: [MarkupContainer [Component id = feedback]]

Does anyone have any advise on how to fix this?  I'm working on the
assumption that the code above is breaking the hierarchy, is there a
way to repair it?

Thanks,

Loren

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: NotSerializableException in Wicket 1.5

2011-02-25 Thread Zhubin Salehi


Pedro Santos wrote:
> 
> Text field "name" in "logicalEntityForm" has an PropertyModel targeting a
> DetailSearchCriteria, this class has the field "detailParam" of type
> DetailParam, and DetailParam has the field "names" of a not serializable
> property type: List
> A lot of List implementations are serializable, but the one at
> the DetailParam is not.
> 
That's right, because the list is lazily loaded from the database. I'm not
sure how to make Wicket not try to serialize those objects... 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/NotSerializableException-in-Wicket-1-5-tp3324650p3324902.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: NotSerializableException in Wicket 1.5

2011-02-25 Thread Pedro Santos
As Martin suggested, you can use an LoadableDetachableModel

On Fri, Feb 25, 2011 at 2:46 PM, Zhubin Salehi  wrote:

>
>
> Pedro Santos wrote:
> >
> > Text field "name" in "logicalEntityForm" has an PropertyModel targeting a
> > DetailSearchCriteria, this class has the field "detailParam" of type
> > DetailParam, and DetailParam has the field "names" of a not serializable
> > property type: List
> > A lot of List implementations are serializable, but the one at
> > the DetailParam is not.
> >
> That's right, because the list is lazily loaded from the database. I'm not
> sure how to make Wicket not try to serialize those objects...
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/NotSerializableException-in-Wicket-1-5-tp3324650p3324902.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Pedro Henrique Oliveira dos Santos


JasperReports Serialization error with JRDataSource

2011-02-25 Thread Bruno Borges
Hey all,

I'm trying to build a ResourceLink to a JRResource but there's a
Serialization exception going on.  Here is the snippet code:

final ServletContext context = ((WebApplication)
getApplication()).getServletContext();
final File reportFile = new
File(context.getRealPath("/reports/employeeReport.jasper"));

final Map parameters = new HashMap();
parameters.put("BaseDir", new File(context.getRealPath("/reports")));
JRResource pdfResource = new JRConcreteResource(reportFile, new
PdfResourceHandler()).setReportParameters(
parameters).setReportDataSource(new
JRBeanCollectionDataSource(service.listAll()));

add(new ResourceLink("linkToPdf", pdfResource));

The service variable is a @SpringBean.

Any idea anyone? (Eelco, specially... who wrote jasper integration on
wicketstuff)...

:-)

Best regards,

Bruno Borges
www.brunoborges.com.br
+55 21 76727099

"The glory of great men should always be
measured by the means they have used to
acquire it."
 - Francois de La Rochefoucauld


Re: JasperReports Serialization error with JRDataSource

2011-02-25 Thread Bruno Borges
By the way, this is the exception I'm getting:

[25/02/11 15:43:15:100 BRT] 0029 SystemOut O 2011-02-25 15:43:15,100
[WebContainer : 0] BSAD-ReportSampleWicket ERROR
org.apache.wicket.util.lang.Objects  - Error
serializing object class
br.com.bradseg.bsad.reportsamplewicket.relatorio.presentation.pages.Resultado
[object=[Page class =
br.com.bradseg.bsad.reportsamplewicket.relatorio.presentation.pages.Resultado,
id = 2, version = 0]]
org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:
Unable to serialize class:
net.sf.jasperreports.engine.data.JRBeanCollectionDataSource
Field hierarchy is:
  2
[class=br.com.bradseg.bsad.reportsamplewicket.relatorio.presentation.pages.Resultado,
path=2]
private java.lang.Object org.apache.wicket.MarkupContainer.children
[class=org.apache.wicket.markup.html.link.ResourceLink, path=2:linkToPdf]
  private final org.apache.wicket.Resource
org.apache.wicket.markup.html.link.ResourceLink.resource
[class=org.wicketstuff.jasperreports.JRConcreteResource]
private net.sf.jasperreports.engine.JRDataSource
org.wicketstuff.jasperreports.JRResource.reportDataSource
[class=net.sf.jasperreports.engine.data.JRBeanCollectionDataSource] <-
field that is not serializable
at
org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:372)
~[wicket-1.4.15.jar:1.4.15]
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:351)
~[wicket-1.4.15.jar:1.4.15]
at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:641)
~[wicket-1.4.15.jar:1.4.15]



Cheers,

Bruno Borges
www.brunoborges.com.br
+55 21 76727099

"The glory of great men should always be
measured by the means they have used to
acquire it."
 - Francois de La Rochefoucauld



On Fri, Feb 25, 2011 at 4:01 PM, Bruno Borges wrote:

> Hey all,
>
> I'm trying to build a ResourceLink to a JRResource but there's a
> Serialization exception going on.  Here is the snippet code:
>
> final ServletContext context = ((WebApplication)
> getApplication()).getServletContext();
>  final File reportFile = new
> File(context.getRealPath("/reports/employeeReport.jasper"));
>
> final Map parameters = new HashMap();
>  parameters.put("BaseDir", new File(context.getRealPath("/reports")));
> JRResource pdfResource = new JRConcreteResource(reportFile, new
> PdfResourceHandler()).setReportParameters(
>  parameters).setReportDataSource(new
> JRBeanCollectionDataSource(service.listAll()));
>
> add(new ResourceLink("linkToPdf", pdfResource));
>
> The service variable is a @SpringBean.
>
> Any idea anyone? (Eelco, specially... who wrote jasper integration on
> wicketstuff)...
>
> :-)
>
> Best regards,
>
> Bruno Borges
> www.brunoborges.com.br
> +55 21 76727099
>
> "The glory of great men should always be
> measured by the means they have used to
> acquire it."
>  - Francois de La Rochefoucauld
>
>


Re: Session optimization

2011-02-25 Thread Martin Makundi
FYI: 
http://stackoverflow.com/questions/4443345/maven-plugin-classloading/5121804#5121804

**
Martin

2011/2/25 Martin Makundi :
> FYI: 
> http://stackoverflow.com/questions/5092211/session-optimization-in-jetty-wicket
>
> **
> Martin
>
> 2011/2/23 Martin Makundi :
>> Hi!
>>
>> Is there a way to swap sessions onto disk with jetty if they are idle
>> for n.n. minutes?
>>
>> It is under investigation, but we suspect that we have many idle users
>> logged in with large session size. So, while they are doing nothing,
>> their session could be pushed onto disk.
>>
>> Is there a setting or utility or way to achieve this? We are using 
>> wicket+jetty.
>>
>> Simply shortening session destroy timeout is not an option.
>>
>> **
>> Martin
>>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: JasperReports Serialization error with JRDataSource

2011-02-25 Thread Gabriel Landon

That's how I use it not to have Serialisation problem :

JRResource resourcePDF = new
JRConcreteResource(reportFile, new PdfResourceHandler())
{
public JRDataSource getReportDataSource() {
//retrieve you data
//...
return new JRBeanCollectionDataSource(yourCollection);
}

   public Map getReportParameters() {
Map params = new HashMap();
//set your parameters
params.put("base_path",
WebApplication.get().getServletContext().getRealPath(""));
return params;
   }
};


Hope this help.
Gabriel.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/JasperReports-Serialization-error-with-JRDataSource-tp3325024p3325265.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org