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

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


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