Error flushing page

2009-09-11 Thread Anton Komratov
I’m using wicket-1.4.rc4 with Geronimo 2.1.4 (tomcat 6, java ee 5) and
have got the following exception:

2009-09-11 10:10:44,212 ERROR [DiskPageStore] Error flushing page
java.lang.RuntimeException: java.io.FileNotFoundException:
/usr/local/geronimo-tomcat6-javaee5-2.1.4/var/catalina/work/depost/Main-filestore/CDBF71162CAA988157064CA98A5D1CEA/pm-null
(Too many open files)
  at 
org.apache.wicket.protocol.http.pagestore.FileChannelPool.newFileChannel(FileChannelPool.java:103)
  at 
org.apache.wicket.protocol.http.pagestore.FileChannelPool.getFileChannel(FileChannelPool.java:170)
  at 
org.apache.wicket.protocol.http.pagestore.DiskPageStore$SessionEntry.savePage(DiskPageStore.java:241)
  at 
org.apache.wicket.protocol.http.pagestore.DiskPageStore.flushPagesToSaveList(DiskPageStore.java:898)
  at 
org.apache.wicket.protocol.http.pagestore.DiskPageStore$PageSavingThread.run(DiskPageStore.java:970)
  at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.FileNotFoundException:
/usr/local/geronimo-tomcat6-javaee5-2.1.4/var/catalina/work/depost/Main-filestore/CDBF71162CAA988157064CA98A5D1CEA/pm-null
(Too many open files)
  at java.io.RandomAccessFile.open(Native Method)
  at java.io.RandomAccessFile.init(RandomAccessFile.java:212)
  at 
org.apache.wicket.protocol.http.pagestore.FileChannelPool.newFileChannel(FileChannelPool.java:98)
  ... 5 more


I did not find solutions in this forum. S-o-s. It happened in production system.

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



FeedbackIndicator doesn't work inside RefreshingView

2009-08-04 Thread Anton Komratov
I'm using RefreshingView to show and edit data. I put MinimumValidator to
the TextField in RefreshingView (in method populateItem()).Also I put
FeedbackIndicator for this TextField in RefreshingView (also in method
populateItem()).

MinimumValidator works fine - I'm getting error messages at the
FeedbackPanel. But FeedbackIndicator doesn't work - no any red asterics in
case of invalid value in TextField.
Others FeedbackIndicators at the same pages (for others TextFields outside
of the RefreshingView) work fine.

Any solutions? (I'm using wicket 1.4rc4).

/// Java code fragment:

@Override
*protected void populateItem(final Item item)* {
item.add(new Label(name));
item.add(new Label(surname));
item.add(new Label(city.name));

TextField tfam = new TextField(amount);
tfam.add(new MinimumValidator(1));
item.add(tfam);

*FormComponentFeedbackIndicator amountFlag =
new FormComponentFeedbackIndicator (amountFlag);*
* **amountFlag.setIndicatorFor(tfam);*
*item.add(amountFlag); * }
///

!--  Markup file code fragment   --

*tr wicket:id=simple*
td width=5*span wicket:id=amountFlag/span*/td
tdspan style=width:150px wicket:id=surname/spannbsp;/td
tdspan style=width:75px wicket:id=name/spannbsp;/td
tdspan style=width:75px wicket:id=city.name/spannbsp;/td
tdinput type=text wicket:id=amount style=width:30px
tabindex=3/input/td
*/tr*