Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » HttpWhiteboardFailureException logged as debug in equinox
HttpWhiteboardFailureException logged as debug in equinox [message #1830954] Fri, 07 August 2020 09:10 Go to next message
Arnaud MERGEY is currently offline Arnaud MERGEYFriend
Messages: 243
Registered: March 2010
Location: France
Senior Member
Hello,

I had some issues to be able to register an http filter using whiteboard pattern.
My issue was caused by the fact that my filter was supposed to be registered for multiple context without using prototype scope for the service.

It took some time to understand the filter was not registerd because a multiple registration HttpWhiteboardFailureException was thown in
org.eclipse.equinox.http.servlet.internal.context.ContextController.addFilterRegistration(ServiceReference<Filter>).

The exception is catched in
org.eclipse.equinox.http.servlet.internal.customizer.ContextFilterTrackerCustomizer.addingService(ServiceReference<Filter>)
and logged in debug. Any reasons to log this in debug ? at least I would expect to have a warn or an info related to the failure, in my case it would have save me some time, and I think I am not the only one in that case.

Best,
Arnaud

[Updated on: Fri, 07 August 2020 09:13]

Report message to a moderator

Re: HttpWhiteboardFailureException logged as debug in equinox [message #1831014 is a reply to message #1830954] Sun, 09 August 2020 06:30 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
It looks like the behavior was changed not so long ago via this Bugzilla:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=544356

Specifically this part:

https://git.eclipse.org/c/equinox/rt.equinox.bundles.git/diff/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/customizer/ContextFilterTrackerCustomizer.java?id=13f073a0f979c092f3b36c6487b3ce8435df8555

No description is given for the general reasoning for this change. Perhaps you could ask on the Bugzilla for the reasoning.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: HttpWhiteboardFailureException logged as debug in equinox [message #1841002 is a reply to message #1831014] Fri, 30 April 2021 07:21 Go to previous message
Arnaud MERGEY is currently offline Arnaud MERGEYFriend
Messages: 243
Registered: March 2010
Location: France
Senior Member
So I have asked in the bug some time ago without any answer, but commenting a closed bug is probably not the right thing to do.
I will probably open a separate bug for this as it seems a bug to me
Previous Topic:[Http Service] Invalid session id change event
Next Topic:Resolved Bundle Problem
Goto Forum:
  


Current Time: Fri Apr 26 04:02:56 GMT 2024

Powered by FUDForum. Page generated in 0.04020 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top