You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Oliver Wulff (JIRA)" <ji...@apache.org> on 2009/10/21 21:42:59 UTC

[jira] Created: (CXF-2489) Exceptions are not properly handled by Performance.Counter MBean

Exceptions are not properly handled by Performance.Counter MBean
----------------------------------------------------------------

                 Key: CXF-2489
                 URL: https://issues.apache.org/jira/browse/CXF-2489
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.2.4
            Reporter: Oliver Wulff


I've updated the ws-security\ut sample and added the management dependency in the pom and updated the wssec.xml for the server:

<bean id="org.apache.cxf.management.InstrumentationManager"
class="org.apache.cxf.management.jmx.InstrumentationManagerImpl">
<property name="bus" ref="cxf" />
<property name="enabled" value="true" />
<property name="threaded" value="false" />
<property name="daemon" value="false" />
<property name="JMXServiceURL" value="service:jmx:rmi:///jndi/rmi://localhost:9914/jmxrmi" />
</bean>

<!-- Wiring the counter repository --> 
<bean id="CounterRepository" class="org.apache.cxf.management.counters.CounterRepository">
<property name="bus" ref="cxf" />        
</bean>

Run the server with: mvn -Pserver
Run the client with: mvn -Pclient
8 invocations will occur.

Now, change the UTPasswordCallback.java of the client (done already in attachment)

    public UTPasswordCallback() {
        passwords.put("Alice", "ecilACHANGED");
        passwords.put("abcd", "dcbaCHANGED");
    }

and run the client again. There is no update in the Performance.Counter MBean.

I also noticed that the Performance.Counter MBean is not visible in the JConsole till the first request is processed.

When my first run is with invalid passwords, the Performance.Counter MBean is not added in the JConsole. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CXF-2489) Exceptions are not properly handled by Performance.Counter MBean

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

Oliver Wulff updated CXF-2489:
------------------------------

    Attachment: ut.zip

> Exceptions are not properly handled by Performance.Counter MBean
> ----------------------------------------------------------------
>
>                 Key: CXF-2489
>                 URL: https://issues.apache.org/jira/browse/CXF-2489
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.2.4
>            Reporter: Oliver Wulff
>         Attachments: ut.zip
>
>
> I've updated the ws-security\ut sample and added the management dependency in the pom and updated the wssec.xml for the server:
> <bean id="org.apache.cxf.management.InstrumentationManager"
> class="org.apache.cxf.management.jmx.InstrumentationManagerImpl">
> <property name="bus" ref="cxf" />
> <property name="enabled" value="true" />
> <property name="threaded" value="false" />
> <property name="daemon" value="false" />
> <property name="JMXServiceURL" value="service:jmx:rmi:///jndi/rmi://localhost:9914/jmxrmi" />
> </bean>
> <!-- Wiring the counter repository --> 
> <bean id="CounterRepository" class="org.apache.cxf.management.counters.CounterRepository">
> <property name="bus" ref="cxf" />        
> </bean>
> Run the server with: mvn -Pserver
> Run the client with: mvn -Pclient
> 8 invocations will occur.
> Now, change the UTPasswordCallback.java of the client (done already in attachment)
>     public UTPasswordCallback() {
>         passwords.put("Alice", "ecilACHANGED");
>         passwords.put("abcd", "dcbaCHANGED");
>     }
> and run the client again. There is no update in the Performance.Counter MBean.
> I also noticed that the Performance.Counter MBean is not visible in the JConsole till the first request is processed.
> When my first run is with invalid passwords, the Performance.Counter MBean is not added in the JConsole. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CXF-2489) Exceptions are not properly handled by Performance.Counter MBean

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

Daniel Kulp reassigned CXF-2489:
--------------------------------

    Assignee: Daniel Kulp

> Exceptions are not properly handled by Performance.Counter MBean
> ----------------------------------------------------------------
>
>                 Key: CXF-2489
>                 URL: https://issues.apache.org/jira/browse/CXF-2489
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.2.4
>            Reporter: Oliver Wulff
>            Assignee: Daniel Kulp
>         Attachments: ut.zip
>
>
> I've updated the ws-security\ut sample and added the management dependency in the pom and updated the wssec.xml for the server:
> <bean id="org.apache.cxf.management.InstrumentationManager"
> class="org.apache.cxf.management.jmx.InstrumentationManagerImpl">
> <property name="bus" ref="cxf" />
> <property name="enabled" value="true" />
> <property name="threaded" value="false" />
> <property name="daemon" value="false" />
> <property name="JMXServiceURL" value="service:jmx:rmi:///jndi/rmi://localhost:9914/jmxrmi" />
> </bean>
> <!-- Wiring the counter repository --> 
> <bean id="CounterRepository" class="org.apache.cxf.management.counters.CounterRepository">
> <property name="bus" ref="cxf" />        
> </bean>
> Run the server with: mvn -Pserver
> Run the client with: mvn -Pclient
> 8 invocations will occur.
> Now, change the UTPasswordCallback.java of the client (done already in attachment)
>     public UTPasswordCallback() {
>         passwords.put("Alice", "ecilACHANGED");
>         passwords.put("abcd", "dcbaCHANGED");
>     }
> and run the client again. There is no update in the Performance.Counter MBean.
> I also noticed that the Performance.Counter MBean is not visible in the JConsole till the first request is processed.
> When my first run is with invalid passwords, the Performance.Counter MBean is not added in the JConsole. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CXF-2489) Exceptions are not properly handled by Performance.Counter MBean

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

Daniel Kulp resolved CXF-2489.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.5


Thanks for the test case.   Debugging this test case revealed several other bugs as well related to decoupled ws-addressing and faults with security and management.   

> Exceptions are not properly handled by Performance.Counter MBean
> ----------------------------------------------------------------
>
>                 Key: CXF-2489
>                 URL: https://issues.apache.org/jira/browse/CXF-2489
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.2.4
>            Reporter: Oliver Wulff
>            Assignee: Daniel Kulp
>             Fix For: 2.2.5
>
>         Attachments: ut.zip
>
>
> I've updated the ws-security\ut sample and added the management dependency in the pom and updated the wssec.xml for the server:
> <bean id="org.apache.cxf.management.InstrumentationManager"
> class="org.apache.cxf.management.jmx.InstrumentationManagerImpl">
> <property name="bus" ref="cxf" />
> <property name="enabled" value="true" />
> <property name="threaded" value="false" />
> <property name="daemon" value="false" />
> <property name="JMXServiceURL" value="service:jmx:rmi:///jndi/rmi://localhost:9914/jmxrmi" />
> </bean>
> <!-- Wiring the counter repository --> 
> <bean id="CounterRepository" class="org.apache.cxf.management.counters.CounterRepository">
> <property name="bus" ref="cxf" />        
> </bean>
> Run the server with: mvn -Pserver
> Run the client with: mvn -Pclient
> 8 invocations will occur.
> Now, change the UTPasswordCallback.java of the client (done already in attachment)
>     public UTPasswordCallback() {
>         passwords.put("Alice", "ecilACHANGED");
>         passwords.put("abcd", "dcbaCHANGED");
>     }
> and run the client again. There is no update in the Performance.Counter MBean.
> I also noticed that the Performance.Counter MBean is not visible in the JConsole till the first request is processed.
> When my first run is with invalid passwords, the Performance.Counter MBean is not added in the JConsole. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.