You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Aaron Mulder (JIRA)" <de...@geronimo.apache.org> on 2005/07/08 17:34:09 UTC

[jira] Created: (GERONIMO-727) Problem determining attribute type in GBeanInstance.getAttribute

Problem determining attribute type in GBeanInstance.getAttribute
----------------------------------------------------------------

         Key: GERONIMO-727
         URL: http://issues.apache.org/jira/browse/GERONIMO-727
     Project: Geronimo
        Type: Bug
  Components: kernel  
    Versions: 1.0-M3    
    Reporter: Aaron Mulder


If the Jetty port is taken (by a separate Tomcat instance) there is a series of exceptions generated during startup.  Some of these are:

java.net.BindException: Address already in use

Exception occured while attempting to fully start: objectName=geronimo.server:J2EEApplication=null,J2EEModule=org/apache/geronimo/Server,J2EEServer=geronimo,j2eeType=GBean,name=JettyWebConnector
java.lang.IllegalStateException: Cannot transition to running state from failed

java.lang.IllegalStateException: Attribute is not persistent Attribute Name: address, Type: class java.net.InetSocketAddress, GBeanInstance: Jetty Connector HTTP
        at org.apache.geronimo.gbean.runtime.GBeanAttribute.getPersistentValue(GBeanAttribute.java:324)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.getAttribute(GBeanInstance.java:627)
        at org.apache.geronimo.kernel.basic.BasicKernel.getAttribute(BasicKernel.java:163)
        at org.apache.geronimo.system.main.ProgressBarStartupMonitor.wrapUp(ProgressBarStartupMonitor.java:175)

The last one is the one that concerns me here.  The attribute in question is JettyConnector.getAddress, which is clearly not persistent (there's no setter, and the declaration in the GBeanInfo says it's not persistent).  However, the logic in GBeanInstance.getAttribute:627 seems to conclude that an attribute is persistent based on the state of the GBean not based on the characteristics of the attribute itself -- I'm not sure what's going on here.

-- 
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


[jira] Updated: (GERONIMO-727) Problem determining attribute type in GBeanInstance.getAttribute

Posted by "Aaron Mulder (JIRA)" <de...@geronimo.apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-727?page=all ]

Aaron Mulder updated GERONIMO-727:
----------------------------------

    Description: 
If the Jetty port is taken (by a separate Tomcat instance) there is a series of exceptions generated during startup.  Some of these are:

java.net.BindException: Address already in use

Exception occured while attempting to fully start: objectName=geronimo.server:J2EEApplication=null,J2EEModule=org/apache/geronimo/
Server,J2EEServer=geronimo,j2eeType=GBean,name=JettyWebConnector
java.lang.IllegalStateException: Cannot transition to running state from failed

java.lang.IllegalStateException: Attribute is not persistent Attribute Name: address, Type: class java.net.InetSocketAddress, GBeanInstance: Jetty Connector HTTP
        at org.apache.geronimo.gbean.runtime.GBeanAttribute.getPersistentValue(GBeanAttribute.java:324)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.getAttribute(GBeanInstance.java:627)
        at org.apache.geronimo.kernel.basic.BasicKernel.getAttribute(BasicKernel.java:163)
        at org.apache.geronimo.system.main.ProgressBarStartupMonitor.wrapUp(ProgressBarStartupMonitor.java:175)

The last one is the one that concerns me here.  The attribute in question is JettyConnector.getAddress, which is clearly not persistent (there's no setter, and the declaration in the GBeanInfo says it's not persistent).  However, the logic in GBeanInstance.getAttribute:627 seems to conclude that an attribute is persistent based on the state of the GBean not based on the characteristics of the attribute itself -- I'm not sure what's going on here.

  was:
If the Jetty port is taken (by a separate Tomcat instance) there is a series of exceptions generated during startup.  Some of these are:

java.net.BindException: Address already in use

Exception occured while attempting to fully start: objectName=geronimo.server:J2EEApplication=null,J2EEModule=org/apache/geronimo/Server,J2EEServer=geronimo,j2eeType=GBean,name=JettyWebConnector
java.lang.IllegalStateException: Cannot transition to running state from failed

java.lang.IllegalStateException: Attribute is not persistent Attribute Name: address, Type: class java.net.InetSocketAddress, GBeanInstance: Jetty Connector HTTP
        at org.apache.geronimo.gbean.runtime.GBeanAttribute.getPersistentValue(GBeanAttribute.java:324)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.getAttribute(GBeanInstance.java:627)
        at org.apache.geronimo.kernel.basic.BasicKernel.getAttribute(BasicKernel.java:163)
        at org.apache.geronimo.system.main.ProgressBarStartupMonitor.wrapUp(ProgressBarStartupMonitor.java:175)

The last one is the one that concerns me here.  The attribute in question is JettyConnector.getAddress, which is clearly not persistent (there's no setter, and the declaration in the GBeanInfo says it's not persistent).  However, the logic in GBeanInstance.getAttribute:627 seems to conclude that an attribute is persistent based on the state of the GBean not based on the characteristics of the attribute itself -- I'm not sure what's going on here.


> Problem determining attribute type in GBeanInstance.getAttribute
> ----------------------------------------------------------------
>
>          Key: GERONIMO-727
>          URL: http://issues.apache.org/jira/browse/GERONIMO-727
>      Project: Geronimo
>         Type: Bug
>   Components: kernel
>     Versions: 1.0-M3
>     Reporter: Aaron Mulder

>
> If the Jetty port is taken (by a separate Tomcat instance) there is a series of exceptions generated during startup.  Some of these are:
> java.net.BindException: Address already in use
> Exception occured while attempting to fully start: objectName=geronimo.server:J2EEApplication=null,J2EEModule=org/apache/geronimo/
> Server,J2EEServer=geronimo,j2eeType=GBean,name=JettyWebConnector
> java.lang.IllegalStateException: Cannot transition to running state from failed
> java.lang.IllegalStateException: Attribute is not persistent Attribute Name: address, Type: class java.net.InetSocketAddress, GBeanInstance: Jetty Connector HTTP
>         at org.apache.geronimo.gbean.runtime.GBeanAttribute.getPersistentValue(GBeanAttribute.java:324)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.getAttribute(GBeanInstance.java:627)
>         at org.apache.geronimo.kernel.basic.BasicKernel.getAttribute(BasicKernel.java:163)
>         at org.apache.geronimo.system.main.ProgressBarStartupMonitor.wrapUp(ProgressBarStartupMonitor.java:175)
> The last one is the one that concerns me here.  The attribute in question is JettyConnector.getAddress, which is clearly not persistent (there's no setter, and the declaration in the GBeanInfo says it's not persistent).  However, the logic in GBeanInstance.getAttribute:627 seems to conclude that an attribute is persistent based on the state of the GBean not based on the characteristics of the attribute itself -- I'm not sure what's going on here.

-- 
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


Re: [jira] Commented: (GERONIMO-727) Problem determining attribute type in GBeanInstance.getAttribute

Posted by Dain Sundstrom <da...@iq80.com>.
+1

IIRC this message is in GBeanAttribute.

-dain

On Jul 8, 2005, at 9:03 AM, Aaron Mulder wrote:

>     Well, wouldn't it be better to throw an exception saying "GBean is
> not running, attribute foo is not available" rather than "attribute  
> foo is
> not persistent"?
>
> Thanks,
>     Aaron
>
> On Fri, 8 Jul 2005, Jeremy Boynes (JIRA) wrote:
>
>>     [ http://issues.apache.org/jira/browse/GERONIMO-727? 
>> page=comments#action_12315318 ]
>>
>> Jeremy Boynes commented on GERONIMO-727:
>> ----------------------------------------
>>
>> You are attempting to get the attribute's value and the bean is  
>> offline so there is no target to access; the framework will try  
>> and return the offline value which needs to be persistent.
>>
>> This is separate from the first issue which does appear to be a  
>> problem with the lifecycle.
>>
>>
>>> Problem determining attribute type in GBeanInstance.getAttribute
>>> ----------------------------------------------------------------
>>>
>>>          Key: GERONIMO-727
>>>          URL: http://issues.apache.org/jira/browse/GERONIMO-727
>>>      Project: Geronimo
>>>         Type: Bug
>>>   Components: kernel
>>>     Versions: 1.0-M3
>>>     Reporter: Aaron Mulder
>>>
>>
>>
>>>
>>> If the Jetty port is taken (by a separate Tomcat instance) there  
>>> is a series of exceptions generated during startup.  Some of  
>>> these are:
>>> java.net.BindException: Address already in use
>>> Exception occured while attempting to fully start:  
>>> objectName=geronimo.server:J2EEApplication=null,J2EEModule=org/ 
>>> apache/geronimo/
>>> Server,J2EEServer=geronimo,j2eeType=GBean,name=JettyWebConnector
>>> java.lang.IllegalStateException: Cannot transition to running  
>>> state from failed
>>> java.lang.IllegalStateException: Attribute is not persistent  
>>> Attribute Name: address, Type: class java.net.InetSocketAddress,  
>>> GBeanInstance: Jetty Connector HTTP
>>>         at  
>>> org.apache.geronimo.gbean.runtime.GBeanAttribute.getPersistentValue( 
>>> GBeanAttribute.java:324)
>>>         at  
>>> org.apache.geronimo.gbean.runtime.GBeanInstance.getAttribute 
>>> (GBeanInstance.java:627)
>>>         at  
>>> org.apache.geronimo.kernel.basic.BasicKernel.getAttribute 
>>> (BasicKernel.java:163)
>>>         at  
>>> org.apache.geronimo.system.main.ProgressBarStartupMonitor.wrapUp 
>>> (ProgressBarStartupMonitor.java:175)
>>> The last one is the one that concerns me here.  The attribute in  
>>> question is JettyConnector.getAddress, which is clearly not  
>>> persistent (there's no setter, and the declaration in the  
>>> GBeanInfo says it's not persistent).  However, the logic in  
>>> GBeanInstance.getAttribute:627 seems to conclude that an  
>>> attribute is persistent based on the state of the GBean not based  
>>> on the characteristics of the attribute itself -- I'm not sure  
>>> what's going on here.
>>>
>>
>> -- 
>> 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
>>
>>
>


Re: [jira] Commented: (GERONIMO-727) Problem determining attribute type in GBeanInstance.getAttribute

Posted by Aaron Mulder <am...@alumni.princeton.edu>.
	Well, wouldn't it be better to throw an exception saying "GBean is
not running, attribute foo is not available" rather than "attribute foo is
not persistent"?

Thanks,
	Aaron

On Fri, 8 Jul 2005, Jeremy Boynes (JIRA) wrote:
>     [ http://issues.apache.org/jira/browse/GERONIMO-727?page=comments#action_12315318 ] 
> 
> Jeremy Boynes commented on GERONIMO-727:
> ----------------------------------------
> 
> You are attempting to get the attribute's value and the bean is offline so there is no target to access; the framework will try and return the offline value which needs to be persistent.
> 
> This is separate from the first issue which does appear to be a problem with the lifecycle.
> 
> > Problem determining attribute type in GBeanInstance.getAttribute
> > ----------------------------------------------------------------
> >
> >          Key: GERONIMO-727
> >          URL: http://issues.apache.org/jira/browse/GERONIMO-727
> >      Project: Geronimo
> >         Type: Bug
> >   Components: kernel
> >     Versions: 1.0-M3
> >     Reporter: Aaron Mulder
> 
> >
> > If the Jetty port is taken (by a separate Tomcat instance) there is a series of exceptions generated during startup.  Some of these are:
> > java.net.BindException: Address already in use
> > Exception occured while attempting to fully start: objectName=geronimo.server:J2EEApplication=null,J2EEModule=org/apache/geronimo/
> > Server,J2EEServer=geronimo,j2eeType=GBean,name=JettyWebConnector
> > java.lang.IllegalStateException: Cannot transition to running state from failed
> > java.lang.IllegalStateException: Attribute is not persistent Attribute Name: address, Type: class java.net.InetSocketAddress, GBeanInstance: Jetty Connector HTTP
> >         at org.apache.geronimo.gbean.runtime.GBeanAttribute.getPersistentValue(GBeanAttribute.java:324)
> >         at org.apache.geronimo.gbean.runtime.GBeanInstance.getAttribute(GBeanInstance.java:627)
> >         at org.apache.geronimo.kernel.basic.BasicKernel.getAttribute(BasicKernel.java:163)
> >         at org.apache.geronimo.system.main.ProgressBarStartupMonitor.wrapUp(ProgressBarStartupMonitor.java:175)
> > The last one is the one that concerns me here.  The attribute in question is JettyConnector.getAddress, which is clearly not persistent (there's no setter, and the declaration in the GBeanInfo says it's not persistent).  However, the logic in GBeanInstance.getAttribute:627 seems to conclude that an attribute is persistent based on the state of the GBean not based on the characteristics of the attribute itself -- I'm not sure what's going on here.
> 
> -- 
> 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
> 
> 

[jira] Commented: (GERONIMO-727) Problem determining attribute type in GBeanInstance.getAttribute

Posted by "Jeremy Boynes (JIRA)" <de...@geronimo.apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMO-727?page=comments#action_12315318 ] 

Jeremy Boynes commented on GERONIMO-727:
----------------------------------------

You are attempting to get the attribute's value and the bean is offline so there is no target to access; the framework will try and return the offline value which needs to be persistent.

This is separate from the first issue which does appear to be a problem with the lifecycle.

> Problem determining attribute type in GBeanInstance.getAttribute
> ----------------------------------------------------------------
>
>          Key: GERONIMO-727
>          URL: http://issues.apache.org/jira/browse/GERONIMO-727
>      Project: Geronimo
>         Type: Bug
>   Components: kernel
>     Versions: 1.0-M3
>     Reporter: Aaron Mulder

>
> If the Jetty port is taken (by a separate Tomcat instance) there is a series of exceptions generated during startup.  Some of these are:
> java.net.BindException: Address already in use
> Exception occured while attempting to fully start: objectName=geronimo.server:J2EEApplication=null,J2EEModule=org/apache/geronimo/
> Server,J2EEServer=geronimo,j2eeType=GBean,name=JettyWebConnector
> java.lang.IllegalStateException: Cannot transition to running state from failed
> java.lang.IllegalStateException: Attribute is not persistent Attribute Name: address, Type: class java.net.InetSocketAddress, GBeanInstance: Jetty Connector HTTP
>         at org.apache.geronimo.gbean.runtime.GBeanAttribute.getPersistentValue(GBeanAttribute.java:324)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.getAttribute(GBeanInstance.java:627)
>         at org.apache.geronimo.kernel.basic.BasicKernel.getAttribute(BasicKernel.java:163)
>         at org.apache.geronimo.system.main.ProgressBarStartupMonitor.wrapUp(ProgressBarStartupMonitor.java:175)
> The last one is the one that concerns me here.  The attribute in question is JettyConnector.getAddress, which is clearly not persistent (there's no setter, and the declaration in the GBeanInfo says it's not persistent).  However, the logic in GBeanInstance.getAttribute:627 seems to conclude that an attribute is persistent based on the state of the GBean not based on the characteristics of the attribute itself -- I'm not sure what's going on here.

-- 
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


[jira] Closed: (GERONIMO-727) Problem determining attribute type in GBeanInstance.getAttribute

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-727?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vamsavardhana Reddy closed GERONIMO-727.
----------------------------------------


> Problem determining attribute type in GBeanInstance.getAttribute
> ----------------------------------------------------------------
>
>                 Key: GERONIMO-727
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-727
>             Project: Geronimo
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.0-M3
>            Reporter: Aaron Mulder
>         Assigned To: Aaron Mulder
>             Fix For: 1.0-M5
>
>
> If the Jetty port is taken (by a separate Tomcat instance) there is a series of exceptions generated during startup.  Some of these are:
> java.net.BindException: Address already in use
> Exception occured while attempting to fully start: objectName=geronimo.server:J2EEApplication=null,J2EEModule=org/apache/geronimo/
> Server,J2EEServer=geronimo,j2eeType=GBean,name=JettyWebConnector
> java.lang.IllegalStateException: Cannot transition to running state from failed
> java.lang.IllegalStateException: Attribute is not persistent Attribute Name: address, Type: class java.net.InetSocketAddress, GBeanInstance: Jetty Connector HTTP
>         at org.apache.geronimo.gbean.runtime.GBeanAttribute.getPersistentValue(GBeanAttribute.java:324)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.getAttribute(GBeanInstance.java:627)
>         at org.apache.geronimo.kernel.basic.BasicKernel.getAttribute(BasicKernel.java:163)
>         at org.apache.geronimo.system.main.ProgressBarStartupMonitor.wrapUp(ProgressBarStartupMonitor.java:175)
> The last one is the one that concerns me here.  The attribute in question is JettyConnector.getAddress, which is clearly not persistent (there's no setter, and the declaration in the GBeanInfo says it's not persistent).  However, the logic in GBeanInstance.getAttribute:627 seems to conclude that an attribute is persistent based on the state of the GBean not based on the characteristics of the attribute itself -- I'm not sure what's going on here.

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

        

[jira] Resolved: (GERONIMO-727) Problem determining attribute type in GBeanInstance.getAttribute

Posted by "Aaron Mulder (JIRA)" <de...@geronimo.apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-727?page=all ]
     
Aaron Mulder resolved GERONIMO-727:
-----------------------------------

    Fix Version: 1.0-M5
     Resolution: Fixed
      Assign To: Aaron Mulder

Same behavior, but better message.

> Problem determining attribute type in GBeanInstance.getAttribute
> ----------------------------------------------------------------
>
>          Key: GERONIMO-727
>          URL: http://issues.apache.org/jira/browse/GERONIMO-727
>      Project: Geronimo
>         Type: Bug
>   Components: kernel
>     Versions: 1.0-M3
>     Reporter: Aaron Mulder
>     Assignee: Aaron Mulder
>      Fix For: 1.0-M5

>
> If the Jetty port is taken (by a separate Tomcat instance) there is a series of exceptions generated during startup.  Some of these are:
> java.net.BindException: Address already in use
> Exception occured while attempting to fully start: objectName=geronimo.server:J2EEApplication=null,J2EEModule=org/apache/geronimo/
> Server,J2EEServer=geronimo,j2eeType=GBean,name=JettyWebConnector
> java.lang.IllegalStateException: Cannot transition to running state from failed
> java.lang.IllegalStateException: Attribute is not persistent Attribute Name: address, Type: class java.net.InetSocketAddress, GBeanInstance: Jetty Connector HTTP
>         at org.apache.geronimo.gbean.runtime.GBeanAttribute.getPersistentValue(GBeanAttribute.java:324)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.getAttribute(GBeanInstance.java:627)
>         at org.apache.geronimo.kernel.basic.BasicKernel.getAttribute(BasicKernel.java:163)
>         at org.apache.geronimo.system.main.ProgressBarStartupMonitor.wrapUp(ProgressBarStartupMonitor.java:175)
> The last one is the one that concerns me here.  The attribute in question is JettyConnector.getAddress, which is clearly not persistent (there's no setter, and the declaration in the GBeanInfo says it's not persistent).  However, the logic in GBeanInstance.getAttribute:627 seems to conclude that an attribute is persistent based on the state of the GBean not based on the characteristics of the attribute itself -- I'm not sure what's going on here.

-- 
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