[CONTROLLER-3] Several Java exceptions are thrown when the controller starts. This doesn't seem to affect correct functioning of controller though Created: 27/Mar/13  Updated: 19/Oct/17  Resolved: 05/May/15

Status: Resolved
Project: controller
Component/s: adsal
Affects Version/s: 0.4.0
Fix Version/s: None

Type: Bug
Reporter: Youcef Laribi Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


Attachments: Text File run.log    
External issue ID: 5
Priority: Normal

 Description   

Several exceptions of this nature:
com.sun.jersey.api.container.ContainerException: No WebApplication provider is present

are thrown when the controller starts (see attached log for details).



 Comments   
Comment by Youcef Laribi [ 27/Mar/13 ]

Attachment run.log has been added with description: Messages from the console after starting the controller

Comment by Madhu Venugopal [ 02/Apr/13 ]

These exceptions are harmless in nature.

OpenDaylight uses Jersey framework to support JAX-RS compliant Northbound API.
OSGi makes sure the dependent modules are loaded first and before moving a module
into RESOLVED state. But the module implementation can result in one bundle become
ACTIVE before the other. This can be resolved properly by having these sequentialized
by monitoring the service bringup order.
In this case, com.sun.jersey.spi.container expects the jersey-server and core to be active too soon causing the exceptions as seen in this bug.
But, as per OSGi specification, any bundle can be independently shutdown and restored and the dependent bundles must be robust in handling this. Fortunately, the jersey and dependent framework bundles handles this scenario properly and hence this exception is just informational and has no impact on the running system.

Having said that, experimenting with startlevel infact solves this problem and
the exception is not seen any more.
https://git.opendaylight.org/gerrit/#/c/94/

Comment by Madhu Venugopal [ 03/Apr/13 ]

https://git.opendaylight.org/gerrit/#/c/94/

Comment by Carol Sanders [ 05/May/15 ]

This bug is part of the project to Move all ADSAL associated component bugs to ADSAL.

Generated at Wed Feb 07 19:51:56 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.