Re: FileNotFoundException

2021-05-18 Thread Martin Grigorov
On Tue, May 18, 2021, 17:27 Eric Hamel  wrote:

> Martin,
>
> ViewerControls is a serializable class (pojo). I see it’s being referenced
> in a PackageResourceReference inside a behavior for loading different css
> files based on properties inside ViewerControls.


Does it fail occasionally or always?
Maybe it breaks for some of the properties?!
Show us the related code!


>
> If this is the culprit, I’m not sure how I would go about to solving this.
>
> —
> Eric Hamel
> Senior Project Manager
> Albany Information Technology Group
> C. 518-698-4503
>
> > On May 18, 2021, at 9:38 AM, Martin Grigorov 
> wrote:
> >
> > Hi,
> >
> > See inline!
> >
> >> On Tue, May 18, 2021 at 4:02 PM Eric Hamel 
> wrote:
> >>
> >> Good morning,
> >>
> >> For the last month I’ve been struggling to find the root cause of the
> >> following exception. It is polluting our logs and I’m just not
> >> understanding what’s happening here.
> >>
> >> We’re on Wicket 6.24.0
> >>
> >> Any help would be appreciated.
> >>
> >> Thank you
> >>
> >> E com.ibm.ws.webcontainer.filter.FilterInstanceWrapper doFilter
> SRVE8109W:
> >> Uncaught exception thrown by filter wicket:
> java.io.FileNotFoundException:
> >> SRVE0190E: File not found:
> >>
> /wicket/resource/gov.osc.ouf.web.components.viewer.controls.ViewerControls
> >>
> >>   at
> >>
> >>
> com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor._processEDR(DefaultExtensionProcessor.java:976)
> >>
> >>   at
> >>
> >>
> com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.processEDR(DefaultExtensionProcessor.java:957)
> >>
> >>   at
> >>
> >>
> com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:485)
> >>
> >>   at
> >>
> >>
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:136)
> >>
> >>   at
> >>
> >>
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:97)
> >>
> >>   at
> >>
> >>
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:267)
> >>
> >
> >
> https://github.com/apache/wicket/blob/rel/wicket-6.24.0/wicket-core/src/main/java/org/apache/wicket/protocol/http/WicketFilter.java#L267
> > - here we see that Wicket didn't process the request and let the next
> > Servlet Filter to do it, namely
> > com.ibm.ws.webcontainer.filter.WebAppFilterChain
> > Later it fails with "File not found".
> >
> > The question is why Wicket didn't handle the request to
> /wicket/resource/...
> > Wicket produces such urls for ResourceReferences like JavaScript and CSS,
> > but "gov.osc.ouf.web.components.viewer.controls.ViewerControls" has no
> > extension ...
> > You need to find out where this resource reference is contributed to the
> > page and why its url looks incomplete.
> >
> >
> >>
> >>   at
> >>
> >>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
> >
> >
> >>   at
> >>
> >>
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
> >>
> >>   at
> >>
> >>
> com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
> >>
> >>   at
> >>
> >>
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
> >>
> >>   at
> >>
> >>
> com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:967)
> >>
> >>   at
> >>
> >>
> com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1107)
> >>
> >>   at
> >> com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3980)
> >>
> >>   at
> >> com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
> >>
> >>   at
> >>
> com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1016)
> >>
> >>   at
> >>
> >>
> com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)
> >>
> >>   at
> >>
> com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)
> >>
> >>   at
> >>
> >>
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:463)
> >>
> >>   at
> >>
> >>
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:530)
> >>
> >>   at
> >>
> >>
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:316)
> >>
> >>   at
> >>
> >>
> com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)
> >>
> >>   at
> >>
> >>
> com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
> >>
> >>   at
> >>
> >>
> com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
> >>
> >>  

Re: FileNotFoundException

2021-05-18 Thread Eric Hamel
Martin,

ViewerControls is a serializable class (pojo). I see it’s being referenced in a 
PackageResourceReference inside a behavior for loading different css files 
based on properties inside ViewerControls. 

If this is the culprit, I’m not sure how I would go about to solving this. 

—
Eric Hamel
Senior Project Manager
Albany Information Technology Group
C. 518-698-4503

> On May 18, 2021, at 9:38 AM, Martin Grigorov  wrote:
> 
> Hi,
> 
> See inline!
> 
>> On Tue, May 18, 2021 at 4:02 PM Eric Hamel  wrote:
>> 
>> Good morning,
>> 
>> For the last month I’ve been struggling to find the root cause of the
>> following exception. It is polluting our logs and I’m just not
>> understanding what’s happening here.
>> 
>> We’re on Wicket 6.24.0
>> 
>> Any help would be appreciated.
>> 
>> Thank you
>> 
>> E com.ibm.ws.webcontainer.filter.FilterInstanceWrapper doFilter SRVE8109W:
>> Uncaught exception thrown by filter wicket: java.io.FileNotFoundException:
>> SRVE0190E: File not found:
>> /wicket/resource/gov.osc.ouf.web.components.viewer.controls.ViewerControls
>> 
>>   at
>> 
>> com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor._processEDR(DefaultExtensionProcessor.java:976)
>> 
>>   at
>> 
>> com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.processEDR(DefaultExtensionProcessor.java:957)
>> 
>>   at
>> 
>> com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:485)
>> 
>>   at
>> 
>> com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:136)
>> 
>>   at
>> 
>> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:97)
>> 
>>   at
>> 
>> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:267)
>> 
> 
> https://github.com/apache/wicket/blob/rel/wicket-6.24.0/wicket-core/src/main/java/org/apache/wicket/protocol/http/WicketFilter.java#L267
> - here we see that Wicket didn't process the request and let the next
> Servlet Filter to do it, namely
> com.ibm.ws.webcontainer.filter.WebAppFilterChain
> Later it fails with "File not found".
> 
> The question is why Wicket didn't handle the request to /wicket/resource/...
> Wicket produces such urls for ResourceReferences like JavaScript and CSS,
> but "gov.osc.ouf.web.components.viewer.controls.ViewerControls" has no
> extension ...
> You need to find out where this resource reference is contributed to the
> page and why its url looks incomplete.
> 
> 
>> 
>>   at
>> 
>> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
> 
> 
>>   at
>> 
>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
>> 
>>   at
>> 
>> com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
>> 
>>   at
>> 
>> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
>> 
>>   at
>> 
>> com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:967)
>> 
>>   at
>> 
>> com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1107)
>> 
>>   at
>> com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3980)
>> 
>>   at
>> com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
>> 
>>   at
>> com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1016)
>> 
>>   at
>> 
>> com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)
>> 
>>   at
>> com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)
>> 
>>   at
>> 
>> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:463)
>> 
>>   at
>> 
>> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:530)
>> 
>>   at
>> 
>> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:316)
>> 
>>   at
>> 
>> com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)
>> 
>>   at
>> 
>> com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
>> 
>>   at
>> 
>> com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
>> 
>>   at
>> 
>> com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
>> 
>>   at
>> com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
>> 
>>   at
>> com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
>> 
>>   at
>> 
>> com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
>> 
>>   at
>> com.ibm.io.asyn

Re: FileNotFoundException

2021-05-18 Thread Martin Grigorov
Hi,

See inline!

On Tue, May 18, 2021 at 4:02 PM Eric Hamel  wrote:

> Good morning,
>
> For the last month I’ve been struggling to find the root cause of the
> following exception. It is polluting our logs and I’m just not
> understanding what’s happening here.
>
> We’re on Wicket 6.24.0
>
> Any help would be appreciated.
>
> Thank you
>
> E com.ibm.ws.webcontainer.filter.FilterInstanceWrapper doFilter SRVE8109W:
> Uncaught exception thrown by filter wicket: java.io.FileNotFoundException:
> SRVE0190E: File not found:
> /wicket/resource/gov.osc.ouf.web.components.viewer.controls.ViewerControls
>
>at
>
> com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor._processEDR(DefaultExtensionProcessor.java:976)
>
>at
>
> com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.processEDR(DefaultExtensionProcessor.java:957)
>
>at
>
> com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:485)
>
>at
>
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:136)
>
>at
>
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:97)
>
>at
>
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:267)
>

https://github.com/apache/wicket/blob/rel/wicket-6.24.0/wicket-core/src/main/java/org/apache/wicket/protocol/http/WicketFilter.java#L267
- here we see that Wicket didn't process the request and let the next
Servlet Filter to do it, namely
com.ibm.ws.webcontainer.filter.WebAppFilterChain
Later it fails with "File not found".

The question is why Wicket didn't handle the request to /wicket/resource/...
Wicket produces such urls for ResourceReferences like JavaScript and CSS,
but "gov.osc.ouf.web.components.viewer.controls.ViewerControls" has no
extension ...
You need to find out where this resource reference is contributed to the
page and why its url looks incomplete.


>
>at
>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)


>at
>
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
>
>at
>
> com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
>
>at
>
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
>
>at
>
> com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:967)
>
>at
>
> com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1107)
>
>at
> com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3980)
>
>at
> com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
>
>at
> com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1016)
>
>at
>
> com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)
>
>at
> com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)
>
>at
>
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:463)
>
>at
>
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:530)
>
>at
>
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:316)
>
>at
>
> com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)
>
>at
>
> com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
>
>at
>
> com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
>
>at
>
> com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
>
>at
> com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
>
>at
> com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
>
>at
>
> com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
>
>at
> com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
>
>at
> com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1892)
>


FileNotFoundException

2021-05-18 Thread Eric Hamel
Good morning,

For the last month I’ve been struggling to find the root cause of the
following exception. It is polluting our logs and I’m just not
understanding what’s happening here.

We’re on Wicket 6.24.0

Any help would be appreciated.

Thank you

E com.ibm.ws.webcontainer.filter.FilterInstanceWrapper doFilter SRVE8109W:
Uncaught exception thrown by filter wicket: java.io.FileNotFoundException:
SRVE0190E: File not found:
/wicket/resource/gov.osc.ouf.web.components.viewer.controls.ViewerControls

   at
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor._processEDR(DefaultExtensionProcessor.java:976)

   at
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.processEDR(DefaultExtensionProcessor.java:957)

   at
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:485)

   at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:136)

   at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:97)

   at
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:267)

   at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)

   at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)

   at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)

   at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)

   at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:967)

   at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1107)

   at
com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3980)

   at
com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)

   at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1016)

   at
com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)

   at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)

   at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:463)

   at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:530)

   at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:316)

   at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)

   at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)

   at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)

   at
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)

   at
com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)

   at
com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)

   at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)

   at
com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)

   at
com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1892)


Re: FileNotFoundException when saving page to disk

2017-09-05 Thread Martin Grigorov
Hi,

Recently another user complained with the same problem: http://markmail.org/
message/j7wcf6yididd6gpo
I think it is related to
https://issues.apache.org/jira/browse/WICKET-6356
https://issues.apache.org/jira/browse/WICKET-6387
https://issues.apache.org/jira/browse/WICKET-6457

If you upgrade to 7.8.0 then this issue will be fixed but a new one will
come (WICKET-6457).
7.8.1 with a fix should be released soon!

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Tue, Sep 5, 2017 at 5:00 PM, Marieke Vandamme 
wrote:

> Hi,
>
> This morning we release a new version of our website, and start getting
> strange exceptions in the logfile.
> *2017-09-05 15:49:06 ERROR DiskDataStore:438 -
> /run/jetty/aaa/bbb.dir/cccFilter-filestore/6809/6405/11rhtvk
> khzsiqk1jcfde055w23b/data
> (No such file or directory)*
> *java.io.FileNotFoundException:
> /run/jetty/aaa/bbb.dir/cccFilter-filestore/6809/6405/11rhtvk
> khzsiqk1jcfde055w23b/data
> (No such file or directory)*
> *at java.io.RandomAccessFile.open(Native Method)*
> *at java.io.RandomAccessFile.(RandomAccessFile.java:243)*
> *at
> org.apache.wicket.pageStore.DiskDataStore$SessionEntry.getFi
> leChannel(DiskDataStore.java:432)*
> *at
> org.apache.wicket.pageStore.DiskDataStore$SessionEntry.saveP
> age(DiskDataStore.java:350)*
> *at
> org.apache.wicket.pageStore.DiskDataStore.storeData(DiskData
> Store.java:188)*
> *at
> org.apache.wicket.pageStore.AsynchronousDataStore$PageSaving
> Runnable.run(AsynchronousDataStore.java:355)*
> *at java.lang.Thread.run(Thread.java:745)*
>
> - With the previous version, wicket-7.6.0 we didn't have this problem. The
> new version we are using is wicket-7.7.0.
> - it can't really be related to filesystem permissions, because this error
> only occurs once in a while.
> - We don't know if it's related, but we also experience some strange
> behavior with some ajax calls. Also, this behavior only happens once in a
> while. The ajax call returns
> *Ajax-Location:../PageExpired.html*
> But the session isn't expired !
>
> Anyone has any clue? Thanks in advance ! Kind Regards, Marieke
>
> --
>
>
>  DISCLAIMER 
>
> http://www.tvh.com/glob/en/email-disclaimer
>
> "This message is delivered to all addressees subject to the conditions
> set forth in the attached disclaimer, which is an integral part of this
> message."
>


FileNotFoundException when saving page to disk

2017-09-05 Thread Marieke Vandamme
Hi,

This morning we release a new version of our website, and start getting
strange exceptions in the logfile.
*2017-09-05 15:49:06 ERROR DiskDataStore:438 -
/run/jetty/aaa/bbb.dir/cccFilter-filestore/6809/6405/11rhtvkkhzsiqk1jcfde055w23b/data
(No such file or directory)*
*java.io.FileNotFoundException:
/run/jetty/aaa/bbb.dir/cccFilter-filestore/6809/6405/11rhtvkkhzsiqk1jcfde055w23b/data
(No such file or directory)*
*at java.io.RandomAccessFile.open(Native Method)*
*at java.io.RandomAccessFile.(RandomAccessFile.java:243)*
*at
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.getFileChannel(DiskDataStore.java:432)*
*at
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.savePage(DiskDataStore.java:350)*
*at
org.apache.wicket.pageStore.DiskDataStore.storeData(DiskDataStore.java:188)*
*at
org.apache.wicket.pageStore.AsynchronousDataStore$PageSavingRunnable.run(AsynchronousDataStore.java:355)*
*at java.lang.Thread.run(Thread.java:745)*

- With the previous version, wicket-7.6.0 we didn't have this problem. The
new version we are using is wicket-7.7.0.
- it can't really be related to filesystem permissions, because this error
only occurs once in a while.
- We don't know if it's related, but we also experience some strange
behavior with some ajax calls. Also, this behavior only happens once in a
while. The ajax call returns
*Ajax-Location:../PageExpired.html*
But the session isn't expired !

Anyone has any clue? Thanks in advance ! Kind Regards, Marieke

-- 


 DISCLAIMER 

http://www.tvh.com/glob/en/email-disclaimer

"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message."


Re: DiskPageStore - Error FileNotFoundException

2011-03-05 Thread Igor Vaynberg
something else, other then wicket, may be eating up your filehandles.
just because wicket gets the exception doesnt mean its causing it. ask
your admin to list the files that are held open to see what they are.
and, yes, also upgrade to latest ver.

-igor

On Fri, Mar 4, 2011 at 7:53 AM, Jeffrey Schneller
 wrote:
> Hi...  my site in production has been running and after our latest code
> change we started to get the error below after a few days.  It appears
> it is something to do with wicket's PageMap.  In the past this error
> would come up after weeks or months of the app running [we were
> re-starting tomcat fairly regularly back then].  The sys-admin of the
> box said he increased the open file limit from 1024 to 65535 per the
> following thread
> [http://osdir.com/ml/users-wicket.apache.org/2009-09/msg00674.html ].
> However this seems like a hack and not solving the underlying problem.
> In fact we got the exception thrown even quicker after the file limit
> change was made.
>
>
>
> We are running wicket 1.4.3 [yes, it is an outdated version and moving
> to 1.4.16 *may* solve the problem.]
>
>
>
> Any ideas?  What can we be doing wrong?
>
>
>
>
>
> 2011-03-03 15:42:26,681 | [] | ERROR (DiskPageStore.java:930) Error
> flushing page
>
> java.lang.RuntimeException: java.io.FileNotFoundException:
> /usr/share/apache-tomcat-6.0.20/work/Catalina/localhost/_/wicket-spring-
> hibernate-filestore/7815/9545/64D2A385CF347B9FF9074C8345CA99FB/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.sav
> ePage(DiskPageStore.java:241)
>
>        at
> org.apache.wicket.protocol.http.pagestore.DiskPageStore.flushPagesToSave
> List(DiskPageStore.java:924)
>
>        at
> org.apache.wicket.protocol.http.pagestore.DiskPageStore$PageSavingThread
> .run(DiskPageStore.java:996)
>
>        at java.lang.Thread.run(Thread.java:619)
>
> Caused by: java.io.FileNotFoundException:
> /usr/share/apache-tomcat-6.0.20/work/Catalina/localhost/_/wicket-spring-
> hibernate-filestore/7815/9545/64D2A385CF347B9FF9074C8345CA99FB/pm-null
> (Too many open files)
>
>        at java.io.RandomAccessFile.open(Native Method)
>
>        at java.io.RandomAccessFile.(RandomAccessFile.java:212)
>
>        at
> org.apache.wicket.protocol.http.pagestore.FileChannelPool.newFileChannel
> (FileChannelPool.java:98)
>
>        ... 5 more
>
>
>
>
>
>
>
>

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



DiskPageStore - Error FileNotFoundException

2011-03-04 Thread Jeffrey Schneller
Hi...  my site in production has been running and after our latest code
change we started to get the error below after a few days.  It appears
it is something to do with wicket's PageMap.  In the past this error
would come up after weeks or months of the app running [we were
re-starting tomcat fairly regularly back then].  The sys-admin of the
box said he increased the open file limit from 1024 to 65535 per the
following thread
[http://osdir.com/ml/users-wicket.apache.org/2009-09/msg00674.html ].
However this seems like a hack and not solving the underlying problem.
In fact we got the exception thrown even quicker after the file limit
change was made.

 

We are running wicket 1.4.3 [yes, it is an outdated version and moving
to 1.4.16 *may* solve the problem.]

 

Any ideas?  What can we be doing wrong?

 

 

2011-03-03 15:42:26,681 | [] | ERROR (DiskPageStore.java:930) Error
flushing page

java.lang.RuntimeException: java.io.FileNotFoundException:
/usr/share/apache-tomcat-6.0.20/work/Catalina/localhost/_/wicket-spring-
hibernate-filestore/7815/9545/64D2A385CF347B9FF9074C8345CA99FB/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.sav
ePage(DiskPageStore.java:241)

at
org.apache.wicket.protocol.http.pagestore.DiskPageStore.flushPagesToSave
List(DiskPageStore.java:924)

at
org.apache.wicket.protocol.http.pagestore.DiskPageStore$PageSavingThread
.run(DiskPageStore.java:996)

at java.lang.Thread.run(Thread.java:619)

Caused by: java.io.FileNotFoundException:
/usr/share/apache-tomcat-6.0.20/work/Catalina/localhost/_/wicket-spring-
hibernate-filestore/7815/9545/64D2A385CF347B9FF9074C8345CA99FB/pm-null
(Too many open files)

at java.io.RandomAccessFile.open(Native Method)

at java.io.RandomAccessFile.(RandomAccessFile.java:212)

at
org.apache.wicket.protocol.http.pagestore.FileChannelPool.newFileChannel
(FileChannelPool.java:98)

... 5 more

 

 

 



Re: DiskPageStore - FileNotFoundException

2010-07-06 Thread FarhanS

I just noticed the same error in our production, did you find out what was
the cause of the problem?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DiskPageStore-FileNotFoundException-tp1867585p2280260.html
Sent from the Wicket - User 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: WicketServlet-filestore and FileNotFoundException

2010-04-23 Thread shetc

What a coincidence -- I was just talking about that issue yesterday. Sorry,
haven't had a chance to
conduct the next experiment with 2 nodes in a cluster. We have a new app
coming out in a couple
of months and I want to make this issue part of the performance testing.
I'll update this thread
when I do that.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WicketServlet-filestore-and-FileNotFoundException-tp1878047p2062550.html
Sent from the Wicket - User 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: WicketServlet-filestore and FileNotFoundException

2010-04-23 Thread Jesper Tejlgaard

Hi Steve

Did you ever find out if the Cluster setup provoked the problem?

Best regards,
Jesper
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WicketServlet-filestore-and-FileNotFoundException-tp1878047p2062342.html
Sent from the Wicket - User 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: Newbie-Problem: Wicket/Maven/Jetty: FileNotFoundException?

2009-05-15 Thread Erik van Oosten

Note that this is a maven problem.
Apparently maven does not use the correct 'home' directory. You can 
override the home directory set by setting an environment variable. I 
think its called M2_REPO.


Regards,
   Erik.


Henrik schreef:

I am very new to the Java-World and want to make a web project using
Java/Maven2/Wicket.

I tried to install Wicket with these instructions:
http://cwiki.apache.org/WICKET/windows-guide-to-installing-wicket-on-eclipse-with-maven.html

Everything went fine up to the point of running a project. I tried
Wicket version 1.4 rc4 and 1.3.6.
Trying to reach localhost:8080 displays an 503-Error...

The console told me the following:

INFO  - log- Logging to
org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via
org.mortbay.log.Slf4jLog
  

STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP


INFO  - log- jetty-6.1.4
INFO  - log- NO JSP Support for /, did not
find org.apache.jasper.servlet.JspServlet
WARN  - log- Failed startup of context
org.mortbay.jetty.webapp.webappcont...@137c60d{/,src/main/webapp}
java.io.FileNotFoundException:
\\ROSSV01\ROSSV01\Users\mypersonalusername\.m2\repository\log4j\log4j\1.2.14\log4j-1.2.14.jar
(Access denied)
   at java.util.zip.ZipFile.open(Native Method)
   at java.util.zip.ZipFile.(ZipFile.java:114)
   at java.util.jar.JarFile.(JarFile.java:133)
[...]


ROSSV01 is the name of the networkserver where my userdata is stored.
I have no clue
why Maven(?) chose that directory... However the URL is false:

Right URL:
\\ROSSV01\Users\mypersonalusername\.m2\...

Wrong URL:
\\ROSSV01\ROSSV01\Users\mypersonalusername\.m2\...

So I'm pretty stuck here. Is it a Wicket error? Is it a Maven error?
Jetty error? Where could I change the URL using eclipse?
Right now I am pretty confused here...

Would be great if somebody can help me out...

-
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



Newbie-Problem: Wicket/Maven/Jetty: FileNotFoundException?

2009-05-14 Thread Henrik
I am very new to the Java-World and want to make a web project using
Java/Maven2/Wicket.

I tried to install Wicket with these instructions:
http://cwiki.apache.org/WICKET/windows-guide-to-installing-wicket-on-eclipse-with-maven.html

Everything went fine up to the point of running a project. I tried
Wicket version 1.4 rc4 and 1.3.6.
Trying to reach localhost:8080 displays an 503-Error...

The console told me the following:

INFO  - log- Logging to
org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via
org.mortbay.log.Slf4jLog
>>> STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP
INFO  - log- jetty-6.1.4
INFO  - log- NO JSP Support for /, did not
find org.apache.jasper.servlet.JspServlet
WARN  - log- Failed startup of context
org.mortbay.jetty.webapp.webappcont...@137c60d{/,src/main/webapp}
java.io.FileNotFoundException:
\\ROSSV01\ROSSV01\Users\mypersonalusername\.m2\repository\log4j\log4j\1.2.14\log4j-1.2.14.jar
(Access denied)
   at java.util.zip.ZipFile.open(Native Method)
   at java.util.zip.ZipFile.(ZipFile.java:114)
   at java.util.jar.JarFile.(JarFile.java:133)
[...]


ROSSV01 is the name of the networkserver where my userdata is stored.
I have no clue
why Maven(?) chose that directory... However the URL is false:

Right URL:
\\ROSSV01\Users\mypersonalusername\.m2\...

Wrong URL:
\\ROSSV01\ROSSV01\Users\mypersonalusername\.m2\...

So I'm pretty stuck here. Is it a Wicket error? Is it a Maven error?
Jetty error? Where could I change the URL using eclipse?
Right now I am pretty confused here...

Would be great if somebody can help me out...

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



RE: FileUploadFile FileNotFoundException (Wicket 1.3.5)

2009-05-14 Thread Stefan Droog
Martijn,

Thanks for your quick answer. I missed some crucial parts ;)

Folder flr = new Folder("d:\\testUpload");
File file = new File(flr, upload.getClientFileName());
... 
file.createNewFile();
upload.writeTo(file);
...

Now it is working properly.

Stefan

-Original Message-
From: Martijn Dashorst [mailto:martijn.dasho...@gmail.com] 
Sent: Thursday, May 14, 2009 10:59 AM
To: users@wicket.apache.org
Subject: Re: FileUploadFile FileNotFoundException (Wicket 1.3.5)

Why are you looking up the client filename? Do you have access the the
remote computer your user is on?

Martijn

On Thu, May 14, 2009 at 10:53 AM, Stefan Droog  wrote:
> Hi all,
>
> Currently I want to upload a file via FileUploadField. However when I select 
> a file and press upload I get a FileNotFoundException (System cannot find the 
> file specified).  File.getCanonicalPath and file.getAbsolutePath both returns 
> the wrong location.
>
> Somebody a clue why?
>
> Regards,
> Stefan
>
> Java:
>
> final FileUploadField fileUploadField = new FileUploadField("fileInput2");
>
>                                Form form = new Form("ajax-simpleUpload2"){
>
>                                                private static final long 
> serialVersionUID = -2623469756422643826L;
>
>                                               �...@override
>                                                protected void onSubmit() {
>                                                                final 
> FileUpload upload = fileUploadField.getFileUpload();
>
>                                                                File file = 
> new File(upload.getClientFileName());
>
>                                                                try {
>                                                                               
>  file.getCanonicalPath(); //Returns wrong path
>                                                                               
>  file.getAbsolutePath(); //Returns wrong path
>                                                                               
>  InputStream in = new FileInputStream(file);
>                                                                } catch 
> (FileNotFoundException e) {
>                                                                               
>  e.printStackTrace();
>                                                                } catch 
> (IOException e) {
>                                                                               
>  e.printStackTrace();
>                                                                }
>
>                                                                
> super.onSubmit();
>                                                }};
>                                form.setMultiPart(true);
>
>                                form.add(fileUploadField);
>        add(form);
>
>
> HTML:
>
>                                
>                                                
>                                                                Upload 
> form
>                                                
>                                                 for="upload">File
>                                                 id="upload" type="file"/>
>                                                
>                                                 value="Upload!"/>
>                                                
>                                
>
>
>
>
> 
> The information contained in this communication is confidential, intended 
> solely for the use of the individual or entity to whom it is addressed and 
> may be legally privileged and protected by professional secrecy. Access to 
> this message by anyone else is unauthorized. If you are not the intended 
> recipient, any disclosure, copying, or distribution of the message, or any 
> action or omission taken by you in reliance on it is prohibited and may be 
> unlawful. Please immediately contact the sender if you have received this 
> message in error. This email does not constitute any commitment from Cordys 
> Holding BV or any of its subsidiaries except when expressly agreed in a 
> written agreement between the intended recipient and Cordys Holding BV or its 
> subsidiaries. Cordys is neither liable for the proper and complete 
> transmission of the information contained in this communication nor for any 
> delay in its receipt. Cordys does not guarantee that the integrity of this 
> communication has been maintained nor that the communication is free of 
> viruses, interc

Re: FileUploadFile FileNotFoundException (Wicket 1.3.5)

2009-05-14 Thread Martijn Dashorst
Why are you looking up the client filename? Do you have access the the
remote computer your user is on?

Martijn

On Thu, May 14, 2009 at 10:53 AM, Stefan Droog  wrote:
> Hi all,
>
> Currently I want to upload a file via FileUploadField. However when I select 
> a file and press upload I get a FileNotFoundException (System cannot find the 
> file specified).  File.getCanonicalPath and file.getAbsolutePath both returns 
> the wrong location.
>
> Somebody a clue why?
>
> Regards,
> Stefan
>
> Java:
>
> final FileUploadField fileUploadField = new FileUploadField("fileInput2");
>
>                                Form form = new Form("ajax-simpleUpload2"){
>
>                                                private static final long 
> serialVersionUID = -2623469756422643826L;
>
>                                               �...@override
>                                                protected void onSubmit() {
>                                                                final 
> FileUpload upload = fileUploadField.getFileUpload();
>
>                                                                File file = 
> new File(upload.getClientFileName());
>
>                                                                try {
>                                                                               
>  file.getCanonicalPath(); //Returns wrong path
>                                                                               
>  file.getAbsolutePath(); //Returns wrong path
>                                                                               
>  InputStream in = new FileInputStream(file);
>                                                                } catch 
> (FileNotFoundException e) {
>                                                                               
>  e.printStackTrace();
>                                                                } catch 
> (IOException e) {
>                                                                               
>  e.printStackTrace();
>                                                                }
>
>                                                                
> super.onSubmit();
>                                                }};
>                                form.setMultiPart(true);
>
>                                form.add(fileUploadField);
>        add(form);
>
>
> HTML:
>
>                                
>                                                
>                                                                Upload 
> form
>                                                
>                                                 for="upload">File
>                                                 id="upload" type="file"/>
>                                                
>                                                 value="Upload!"/>
>                                                
>                                
>
>
>
>
> 
> The information contained in this communication is confidential, intended 
> solely for the use of the individual or entity to whom it is addressed and 
> may be legally privileged and protected by professional secrecy. Access to 
> this message by anyone else is unauthorized. If you are not the intended 
> recipient, any disclosure, copying, or distribution of the message, or any 
> action or omission taken by you in reliance on it is prohibited and may be 
> unlawful. Please immediately contact the sender if you have received this 
> message in error. This email does not constitute any commitment from Cordys 
> Holding BV or any of its subsidiaries except when expressly agreed in a 
> written agreement between the intended recipient and Cordys Holding BV or its 
> subsidiaries. Cordys is neither liable for the proper and complete 
> transmission of the information contained in this communication nor for any 
> delay in its receipt. Cordys does not guarantee that the integrity of this 
> communication has been maintained nor that the communication is free of 
> viruses, interceptions or interference. If you are not the intended recipient 
> of this communication please return the communication to the sender and 
> delete and destroy all copies.
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



FileUploadFile FileNotFoundException (Wicket 1.3.5)

2009-05-14 Thread Stefan Droog
Hi all,

Currently I want to upload a file via FileUploadField. However when I select a 
file and press upload I get a FileNotFoundException (System cannot find the 
file specified).  File.getCanonicalPath and file.getAbsolutePath both returns 
the wrong location.

Somebody a clue why?

Regards,
Stefan

Java:

final FileUploadField fileUploadField = new FileUploadField("fileInput2");

Form form = new Form("ajax-simpleUpload2"){

private static final long 
serialVersionUID = -2623469756422643826L;

@Override
protected void onSubmit() {
final 
FileUpload upload = fileUploadField.getFileUpload();

File file = new 
File(upload.getClientFileName());

try {

file.getCanonicalPath(); //Returns wrong path

file.getAbsolutePath(); //Returns wrong path

InputStream in = new FileInputStream(file);
    } catch 
(FileNotFoundException e) {

e.printStackTrace();
} catch 
(IOException e) {

e.printStackTrace();
}


super.onSubmit();
}};
form.setMultiPart(true);

form.add(fileUploadField);
add(form);


HTML:



Upload 
form

File










The information contained in this communication is confidential, intended 
solely for the use of the individual or entity to whom it is addressed and may 
be legally privileged and protected by professional secrecy. Access to this 
message by anyone else is unauthorized. If you are not the intended recipient, 
any disclosure, copying, or distribution of the message, or any action or 
omission taken by you in reliance on it is prohibited and may be unlawful. 
Please immediately contact the sender if you have received this message in 
error. This email does not constitute any commitment from Cordys Holding BV or 
any of its subsidiaries except when expressly agreed in a written agreement 
between the intended recipient and Cordys Holding BV or its subsidiaries. 
Cordys is neither liable for the proper and complete transmission of the 
information contained in this communication nor for any delay in its receipt. 
Cordys does not guarantee that the integrity of this communication has been 
maintained nor that the communication is free of viruses, interceptions or 
interference. If you are not the intended recipient of this communication 
please return the communication to the sender and delete and destroy all copies.


Re: WicketServlet-filestore and FileNotFoundException

2009-02-11 Thread shetc

Hi Matej,

Thanks for responding!

I spent more time looking into this issue. I have checked into 2
environments so far including:
1) WebSphere 6.1 running as my local host on my laptop and 2) as a single
node within
our development environment. In both cases, Wicket works correctly creating
and deleting
folders/files from the file store -- this includes cleaning up after session
expiration. Meanwhile,
our production system still leaves files behind in the file store. The
production system
consists of a cluster of 2 WebSphere nodes. I plan to test this 2 node setup
in our QA system
to see if clustering is a factor or not. 

Steve
-- 
View this message in context: 
http://www.nabble.com/WicketServlet-filestore-and-FileNotFoundException-tp21955499p21963872.html
Sent from the Wicket - User 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: WicketServlet-filestore and FileNotFoundException

2009-02-11 Thread Matej Knopp
Hi,

do you actually have leaking files in the store? Because this looks
like wicket tries to create file in folder that has already been
removed. How often do you get these? Is it reproduceable?

-Matej

On Wed, Feb 11, 2009 at 3:05 PM, shetc  wrote:
>
> Hi All,
>
> I know this issue was discussed in some depth in:
>
> http://www.nabble.com/How-To-Change-Page-Store-Size-in-DiskPageStore--td13638411.html#a13644332
> How To Change Page Store Size in DiskPageStore?
>
> but I'm still not clear as to the best practice. I have a Wicket-based
> application that was
> recently launched into production. It is based on v1.3.5 of Wicket and
> operates within
> WebSphere 6.1 on an AIX o/s. It is regularly throwing a
> FileNotFoundException; an
> example is shown at the bottom of this message.
>
> Based on the above DiskPageStore post, I am assuming that the available file
> handles
> are being used as expired sessions are not being cleaned up properly in the
> file store
> -- is that correct? If so, is the recommended best practice to create a cron
> job to clean
> up 'old' folders in the file store?
>
> Thanks,
> Steve
>
>
> [2/11/09 8:04:46:867 EST] 0076 SystemOut O 08:04:46,867 ERROR
> DiskPageStore:424 - Failed to make directory
> /opt/IBM/WebSphere/mastodon/profiles/prd1.
> node2/temp/prd1.node2/prd1.node2.eob/eob/EobWeb.war/WicketServlet-filestore/GPfJlRcX_H4dda4AdcVtmHU
> [2/11/09 8:04:46:867 EST] 0076 SystemOut O 08:04:46,867 ERROR
> DiskPageStore:901 - Error flushing page
> java.lang.RuntimeException: java.io.FileNotFoundException:
> /opt/IBM/WebSphere/mastodon/profiles/prd1.node2/temp/prd1.node2/prd1.node2.eob/eob/EobWeb.war/Wick
> etServlet-filestore/GPfJlRcX_H4dda4AdcVtmHU/pm-null (No such file or
> directory)
>at
> org.apache.wicket.protocol.http.pagestore.FileChannelPool.newFileChannel(FileChannelPool.java:104)
>at
> org.apache.wicket.protocol.http.pagestore.FileChannelPool.getFileChannel(FileChannelPool.java:171)
>at
> org.apache.wicket.protocol.http.pagestore.DiskPageStore$SessionEntry.savePage(DiskPageStore.java:241)
>at
> org.apache.wicket.protocol.http.pagestore.DiskPageStore.flushPagesToSaveList(DiskPageStore.java:895)
>at
> org.apache.wicket.protocol.http.pagestore.DiskPageStore$PageSavingThread.run(DiskPageStore.java:965)
>at java.lang.Thread.run(Thread.java:810)
> Caused by: java.io.FileNotFoundException:
> /opt/IBM/WebSphere/mastodon/profiles/prd1.node2/temp/prd1.node2/prd1.node2.eob/eob/EobWeb.war/WicketServlet-filesto
> re/GPfJlRcX_H4dda4AdcVtmHU/pm-null (No such file or directory)
>at java.io.RandomAccessFile.open(Native Method)
>at java.io.RandomAccessFile.(RandomAccessFile.java:243)
>at
> org.apache.wicket.protocol.http.pagestore.FileChannelPool.newFileChannel(FileChannelPool.java:99)
>... 5 more
>
>
>
> --
> View this message in context: 
> http://www.nabble.com/WicketServlet-filestore-and-FileNotFoundException-tp21955499p21955499.html
> Sent from the Wicket - User 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
>
>

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



WicketServlet-filestore and FileNotFoundException

2009-02-11 Thread shetc

Hi All,

I know this issue was discussed in some depth in:

http://www.nabble.com/How-To-Change-Page-Store-Size-in-DiskPageStore--td13638411.html#a13644332
How To Change Page Store Size in DiskPageStore? 

but I'm still not clear as to the best practice. I have a Wicket-based
application that was
recently launched into production. It is based on v1.3.5 of Wicket and
operates within
WebSphere 6.1 on an AIX o/s. It is regularly throwing a
FileNotFoundException; an
example is shown at the bottom of this message.

Based on the above DiskPageStore post, I am assuming that the available file
handles 
are being used as expired sessions are not being cleaned up properly in the
file store
-- is that correct? If so, is the recommended best practice to create a cron
job to clean
up 'old' folders in the file store?

Thanks,
Steve


[2/11/09 8:04:46:867 EST] 0076 SystemOut O 08:04:46,867 ERROR
DiskPageStore:424 - Failed to make directory
/opt/IBM/WebSphere/mastodon/profiles/prd1.
node2/temp/prd1.node2/prd1.node2.eob/eob/EobWeb.war/WicketServlet-filestore/GPfJlRcX_H4dda4AdcVtmHU
[2/11/09 8:04:46:867 EST] 0076 SystemOut O 08:04:46,867 ERROR
DiskPageStore:901 - Error flushing page
java.lang.RuntimeException: java.io.FileNotFoundException:
/opt/IBM/WebSphere/mastodon/profiles/prd1.node2/temp/prd1.node2/prd1.node2.eob/eob/EobWeb.war/Wick
etServlet-filestore/GPfJlRcX_H4dda4AdcVtmHU/pm-null (No such file or
directory)
at
org.apache.wicket.protocol.http.pagestore.FileChannelPool.newFileChannel(FileChannelPool.java:104)
at
org.apache.wicket.protocol.http.pagestore.FileChannelPool.getFileChannel(FileChannelPool.java:171)
at
org.apache.wicket.protocol.http.pagestore.DiskPageStore$SessionEntry.savePage(DiskPageStore.java:241)
at
org.apache.wicket.protocol.http.pagestore.DiskPageStore.flushPagesToSaveList(DiskPageStore.java:895)
at
org.apache.wicket.protocol.http.pagestore.DiskPageStore$PageSavingThread.run(DiskPageStore.java:965)
at java.lang.Thread.run(Thread.java:810)
Caused by: java.io.FileNotFoundException:
/opt/IBM/WebSphere/mastodon/profiles/prd1.node2/temp/prd1.node2/prd1.node2.eob/eob/EobWeb.war/WicketServlet-filesto
re/GPfJlRcX_H4dda4AdcVtmHU/pm-null (No such file or directory)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.(RandomAccessFile.java:243)
at
org.apache.wicket.protocol.http.pagestore.FileChannelPool.newFileChannel(FileChannelPool.java:99)
... 5 more



-- 
View this message in context: 
http://www.nabble.com/WicketServlet-filestore-and-FileNotFoundException-tp21955499p21955499.html
Sent from the Wicket - User 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



DiskPageStore - FileNotFoundException

2008-08-04 Thread Jan Kriesten


Hi,

with the current 1.3-Snapshot, I encounter problems with DiskPageStore:

---8<---
09:30:43.151 ERROR [.wicket.protocol.http.pagestore.DiskPageStore] - Error 
flushing page
java.lang.RuntimeException: java.io.FileNotFoundException: 
/usr/local/www/services/local.silberlicht.de/html/WEB-INF/tmp/Silberlicht

-filestore/abcgm_hyTIaiqgnqDNmUr/pm-null (No such file or directory)
at 
org.apache.wicket.protocol.http.pagestore.FileChannelPool.newFileChannel(FileChannelPool.java:104)
at 
org.apache.wicket.protocol.http.pagestore.FileChannelPool.getFileChannel(FileChannelPool.java:171)
at 
org.apache.wicket.protocol.http.pagestore.DiskPageStore$SessionEntry.savePage(DiskPageStore.java:241)
at 
org.apache.wicket.protocol.http.pagestore.DiskPageStore.flushPagesToSaveList(DiskPageStore.java:891)
at 
org.apache.wicket.protocol.http.pagestore.DiskPageStore$PageSavingThread.run(DiskPageStore.java:961)

at java.lang.Thread.run(Thread.java:613)
Caused by: java.io.FileNotFoundException: 
/usr/local/www/services/local.silberlicht.de/html/WEB-INF/tmp/Silberlicht-filestore/abcgm_

hyTIaiqgnqDNmUr/pm-null (No such file or directory)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.(RandomAccessFile.java:212)
at 
org.apache.wicket.protocol.http.pagestore.FileChannelPool.newFileChannel(FileChannelPool.java:99)

... 5 common frames omitted
---8<---

The path 
/usr/local/www/services/local.silberlicht.de/html/WEB-INF/tmp/Silberlicht
-filestore/ actually exists and has the proper rights - so creation of temporary 
directories/files should be possible (actually, the directory was created by the 
wicket app).


Is this a bug I should report to JIRA? Anyone else seeing this?

Best regards, --- Jan.




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