You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2012/09/25 23:44:07 UTC

[jira] [Updated] (OWB-694) Misleading exception message "Wrong termination object"

     [ https://issues.apache.org/jira/browse/OWB-694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Struberg updated OWB-694:
------------------------------

    Fix Version/s: 1.1.6
    
> Misleading exception message "Wrong termination object"
> -------------------------------------------------------
>
>                 Key: OWB-694
>                 URL: https://issues.apache.org/jira/browse/OWB-694
>             Project: OpenWebBeans
>          Issue Type: Bug
>    Affects Versions: 1.1.5
>            Reporter: Harald Wellmann
>            Assignee: Mark Struberg
>            Priority: Trivial
>             Fix For: 1.1.6
>
>
> While creating a customized {{WebBeansContext}} using a custom {{SingletonService}}, I hit the following exception:
> {noformat}
> Caused by: org.apache.webbeans.exception.WebBeansException: Wrong termination object.
> 	at org.apache.webbeans.web.lifecycle.WebContainerLifecycle.getServletContext(WebContainerLifecycle.java:225) ~[openwebbeans-web-1.1.5.jar:1.1.5]
> 	at org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:89) ~[openwebbeans-web-1.1.5.jar:1.1.5]
> 	at org.ops4j.pax.cdi.openwebbeans.impl.OpenWebBeansCdiContainer$1.call(OpenWebBeansCdiContainer.java:128) ~[classes/:na]
> {noformat}
> I believe this is trying to tell me that the argument to {{lifecycle.startApplication(obj)}} should be a ServletContext (it is currently null in my case).
> But what is a "termination object" in {{startApplication()}} - maybe this exception string belongs to {{stopApplication()}}?
> In any case, a message like "expected an instance of Foo" would be more helpful than "wrong object".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira