geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rakesh Midha (JIRA)" <j...@apache.org>
Subject [jira] Commented: (GERONIMO-2598) Deploy tool prints useless message if configuration start fails
Date Mon, 27 Nov 2006 13:06:22 GMT
    [ http://issues.apache.org/jira/browse/GERONIMO-2598?page=comments#action_12453584 ] 
            
Rakesh Midha commented on GERONIMO-2598:
----------------------------------------


This is happening because In GBeanInstance state all the exceptions are ignired 
	    if (t instanceof Exception) {
                // ignore - we only rethrow errors
                return;
            }

This sounds wrong when ConfigurationUtil expects Failure reason from getStateReason()

Changed GBeanInstanceState class to set stateReason, also adde public setStateReason() method
in GBeanInstance. I know StateReason is depricated feature hence no setStateReason method,
but till the time configurationutil and other getStateReason usage is removed i think it make
sense to have setStateReason method also.

After applying the patch I got following message from deploy tool

finally

    Error: Operation failed: start of
    default/MyPhonebookBean_openejb_artifactId/1.0/car failed

        Unknown start exception

        Configuration default/MyPhonebookBean_openejb_artifactId/1.0/car
    failed to start due to the following reasons:

      The service
    EJBModule=default/MyPhonebookBean_openejb_artifactId/1.0/car,J2EEApplication
=null,j2eeType=EntityBean,name=MyPhonebookBean
    did not start because Missing accessor for field name on class MyPhonebookBean


> Deploy tool prints useless message if configuration start fails
> ---------------------------------------------------------------
>
>                 Key: GERONIMO-2598
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2598
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 2.0
>         Environment: Windows XP, should be valid for all platforms
>            Reporter: Rakesh Midha
>         Assigned To: Rakesh Midha
>             Fix For: 2.0
>
>
> If you are using deploy tool, and you try to deploy or start an application which fails
for start, you always get
>         Unknown start exception
>         Configuration default/MyPhonebookBean_openejb_artifactId/1.0/car
>     failed to start due to the following reasons:
>       The service
>     EJBModule=default/MyPhonebookBean_openejb_artifactId/1.0/car,J2EEApplication
> =null,j2eeType=EntityBean,name=MyPhonebookBean
>     did not start for an unknown reason
> In the big stack trace on server side, the deep down you see an actual error message
:
>            java.lang.IllegalArgumentException:  Missing accessor for field name on class
MyPhonebookBean
> The actual error message should be passed to deploy tool and should be printed

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message