IllegalStateException thrown on startup due to OsgiManager trying to unregister
a not yet registered resource
-------------------------------------------------------------------------------------------------------------
Key: FELIX-913
URL: https://issues.apache.org/jira/browse/FELIX-913
Project: Felix
Issue Type: Bug
Components: Web Console
Affects Versions: webconsole-1.2.2
Environment: org.eclipse.osgi_3.4.2.R34x_v20080826-1230
org.eclipse.equinox.cm_1.0.0.v20080509-1800
org.ops4j.pax.web.service_0.5.1
org.apache.felix.webconsole_1.2.2
Reporter: Dieter Wimberger
Priority: Blocker
ERROR root -
ResourceModel{id=org.ops4j.pax.web.service.internal.model.ResourceModel-3,urlPatterns=[/system/console/res/*],alias=/system/console/res,servlet=org.ops4j.pax.web.service.internal.resourceserv...@1bcb7c74,initParams={},context=ContextModel{,id=org.ops4j.pax.web.service.internal.model.ContextModel-1,name=,httpcontext=org.apache.felix.webconsole.internal.servlet.osgimanagerhttpcont...@1d489e0e,contextParams={}}}
was not found
java.lang.IllegalStateException:
ResourceModel{id=org.ops4j.pax.web.service.internal.model.ResourceModel-3,urlPatterns=[/system/console/res/*],alias=/system/console/res,servlet=org.ops4j.pax.web.service.internal.resourceserv...@1bcb7c74,initParams={},context=ContextModel{,id=org.ops4j.pax.web.service.internal.model.ContextModel-1,name=,httpcontext=org.apache.felix.webconsole.internal.servlet.osgimanagerhttpcont...@1d489e0e,contextParams={}}}
was not found
at
org.ops4j.pax.web.service.internal.JettyServerImpl.removeServlet(JettyServerImpl.java:217)
at
org.ops4j.pax.web.service.internal.ServerControllerImpl$Started.removeServlet(ServerControllerImpl.java:219)
at
org.ops4j.pax.web.service.internal.ServerControllerImpl.removeServlet(ServerControllerImpl.java:95)
at
org.ops4j.pax.web.service.internal.HttpServiceStarted.unregister(HttpServiceStarted.java:230)
at
org.ops4j.pax.web.service.internal.HttpServiceProxy.unregister(HttpServiceProxy.java:69)
at
org.apache.felix.webconsole.internal.servlet.OsgiManager.unbindHttpService(OsgiManager.java:594)
at
org.apache.felix.webconsole.internal.servlet.OsgiManager.updateConfiguration(OsgiManager.java:720)
at
org.apache.felix.webconsole.internal.servlet.ConfigurationListener.updated(ConfigurationListener.java:57)
Thrown on a clean startup; subsequently the webconsole is completely broken.
Probably the environment plays a role in this issue, nonetheless, the
OsgiManager should probably never try to unregister something it didn't
register in first place.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.