felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dieter Wimberger (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-913) IllegalStateException thrown on startup due to OsgiManager trying to unregister a not yet registered resource
Date Wed, 04 Feb 2009 06:59:59 GMT

    [ https://issues.apache.org/jira/browse/FELIX-913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670262#action_12670262
] 

Dieter Wimberger commented on FELIX-913:
----------------------------------------

While the web-console is now working, the exception is still thrown and reported at WARN level
in the log:

2009-02-04 00:48:01,504 [ManagedService Update Queue] WARN  root  - unbindHttpService: Failed
unregistering Resources
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.ResourceServlet@7c271d34,initParams={},context=ContextModel{,id=org.ops4j.pax.web.service.internal.model.ContextModel-1,name=,httpContext=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@5fa52ad1,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:625)
	at org.apache.felix.webconsole.internal.servlet.OsgiManager.updateConfiguration(OsgiManager.java:765)
	at org.apache.felix.webconsole.internal.servlet.ConfigurationListener.updated(ConfigurationListener.java:57)








> 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
>            Assignee: Felix Meschberger
>            Priority: Blocker
>             Fix For: webconsole-1.2.4
>
>
> 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.ResourceServlet@1bcb7c74,initParams={},context=ContextModel{,id=org.ops4j.pax.web.service.internal.model.ContextModel-1,name=,httpContext=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@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.ResourceServlet@1bcb7c74,initParams={},context=ContextModel{,id=org.ops4j.pax.web.service.internal.model.ContextModel-1,name=,httpContext=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@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.


Mime
View raw message