You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Josh Cummings (JIRA)" <ji...@apache.org> on 2010/04/05 21:54:27 UTC

[jira] Created: (CXF-2752) Regression - CXF Client Spring Context Fails

Regression - CXF Client Spring Context Fails
--------------------------------------------

                 Key: CXF-2752
                 URL: https://issues.apache.org/jira/browse/CXF-2752
             Project: CXF
          Issue Type: Bug
          Components: JAX-RS, JAX-WS Runtime
    Affects Versions: 2.2.7
            Reporter: Josh Cummings


In upgrading to 2.2.7, we found that our cxf client's spring configuration would fail on startup with a NAMESPACE_ERR thrown from the writer.

To reproduce, we simply include the following snippet in our client application context:

<bean id="client" factory-bean="clientFactory" factory-method="create" lazy-init="false"/>
	
<bean id="clientFactory" class="org.apache.cxf.jaxws.JaxWsClientFactoryBean" lazy-init="false">
	<property name="address" value="http://localhost:8180"/>
	<property name="serviceClass" value="org.my.project.MyService"/>
</bean>


It will fail when it tries to load cxf.xml using the ControlledValidationXmlBeanDefinitionReader.

It appears to occur because the namespace attributes are handed off by W3CDomStreamWriter.writeAttribute with a namespaceURI of null instead of their actual namespace.  It seems that either that method isn't the right place to handle namespace attributes, meaning changing something upstream, or that there is a bug in it.

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


[jira] Commented: (CXF-2752) Regression - CXF Client Spring Context Fails

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-2752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12854082#action_12854082 ] 

Daniel Kulp commented on CXF-2752:
----------------------------------


 I haven't been able to reproduce it by editing our simple samples.   Can you produce a test case that shows the issue?   Without a test case, I really cannot debug it.


> Regression - CXF Client Spring Context Fails
> --------------------------------------------
>
>                 Key: CXF-2752
>                 URL: https://issues.apache.org/jira/browse/CXF-2752
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS, JAX-WS Runtime
>    Affects Versions: 2.2.7
>            Reporter: Josh Cummings
>
> In upgrading to 2.2.7, we found that our cxf client's spring configuration would fail on startup with a NAMESPACE_ERR thrown from the writer.
> To reproduce, we simply include the following snippet in our client application context:
> <bean id="client" factory-bean="clientFactory" factory-method="create" lazy-init="false"/>
> 	
> <bean id="clientFactory" class="org.apache.cxf.jaxws.JaxWsClientFactoryBean" lazy-init="false">
> 	<property name="address" value="http://localhost:8180"/>
> 	<property name="serviceClass" value="org.my.project.MyService"/>
> </bean>
> It will fail when it tries to load cxf.xml using the ControlledValidationXmlBeanDefinitionReader.
> It appears to occur because the namespace attributes are handed off by W3CDomStreamWriter.writeAttribute with a namespaceURI of null instead of their actual namespace.  It seems that either that method isn't the right place to handle namespace attributes, meaning changing something upstream, or that there is a bug in it.

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


[jira] Commented: (CXF-2752) Regression - CXF Client Spring Context Fails

Posted by "Josh Cummings (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-2752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12855440#action_12855440 ] 

Josh Cummings commented on CXF-2752:
------------------------------------

Okay.  I'm glad were on the same page.  I'll get you an example shortly.

> Regression - CXF Client Spring Context Fails
> --------------------------------------------
>
>                 Key: CXF-2752
>                 URL: https://issues.apache.org/jira/browse/CXF-2752
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS, JAX-WS Runtime
>    Affects Versions: 2.2.7
>            Reporter: Josh Cummings
>
> In upgrading to 2.2.7, we found that our cxf client's spring configuration would fail on startup with a NAMESPACE_ERR thrown from the writer.
> To reproduce, we simply include the following snippet in our client application context:
> <bean id="client" factory-bean="clientFactory" factory-method="create" lazy-init="false"/>
> 	
> <bean id="clientFactory" class="org.apache.cxf.jaxws.JaxWsClientFactoryBean" lazy-init="false">
> 	<property name="address" value="http://localhost:8180"/>
> 	<property name="serviceClass" value="org.my.project.MyService"/>
> </bean>
> It will fail when it tries to load cxf.xml using the ControlledValidationXmlBeanDefinitionReader.
> It appears to occur because the namespace attributes are handed off by W3CDomStreamWriter.writeAttribute with a namespaceURI of null instead of their actual namespace.  It seems that either that method isn't the right place to handle namespace attributes, meaning changing something upstream, or that there is a bug in it.

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


[jira] Resolved: (CXF-2752) Regression - CXF Client Spring Context Fails

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

Daniel Kulp resolved CXF-2752.
------------------------------

    Fix Version/s: 2.2.8
       Resolution: Fixed

> Regression - CXF Client Spring Context Fails
> --------------------------------------------
>
>                 Key: CXF-2752
>                 URL: https://issues.apache.org/jira/browse/CXF-2752
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS, JAX-WS Runtime
>    Affects Versions: 2.2.7
>            Reporter: Josh Cummings
>            Assignee: Daniel Kulp
>             Fix For: 2.2.8
>
>         Attachments: example.tar
>
>
> In upgrading to 2.2.7, we found that our cxf client's spring configuration would fail on startup with a NAMESPACE_ERR thrown from the writer.
> To reproduce, we simply include the following snippet in our client application context:
> <bean id="client" factory-bean="clientFactory" factory-method="create" lazy-init="false"/>
> 	
> <bean id="clientFactory" class="org.apache.cxf.jaxws.JaxWsClientFactoryBean" lazy-init="false">
> 	<property name="address" value="http://localhost:8180"/>
> 	<property name="serviceClass" value="org.my.project.MyService"/>
> </bean>
> It will fail when it tries to load cxf.xml using the ControlledValidationXmlBeanDefinitionReader.
> It appears to occur because the namespace attributes are handed off by W3CDomStreamWriter.writeAttribute with a namespaceURI of null instead of their actual namespace.  It seems that either that method isn't the right place to handle namespace attributes, meaning changing something upstream, or that there is a bug in it.

-- 
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] Assigned: (CXF-2752) Regression - CXF Client Spring Context Fails

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

Daniel Kulp reassigned CXF-2752:
--------------------------------

    Assignee: Daniel Kulp

> Regression - CXF Client Spring Context Fails
> --------------------------------------------
>
>                 Key: CXF-2752
>                 URL: https://issues.apache.org/jira/browse/CXF-2752
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS, JAX-WS Runtime
>    Affects Versions: 2.2.7
>            Reporter: Josh Cummings
>            Assignee: Daniel Kulp
>         Attachments: example.tar
>
>
> In upgrading to 2.2.7, we found that our cxf client's spring configuration would fail on startup with a NAMESPACE_ERR thrown from the writer.
> To reproduce, we simply include the following snippet in our client application context:
> <bean id="client" factory-bean="clientFactory" factory-method="create" lazy-init="false"/>
> 	
> <bean id="clientFactory" class="org.apache.cxf.jaxws.JaxWsClientFactoryBean" lazy-init="false">
> 	<property name="address" value="http://localhost:8180"/>
> 	<property name="serviceClass" value="org.my.project.MyService"/>
> </bean>
> It will fail when it tries to load cxf.xml using the ControlledValidationXmlBeanDefinitionReader.
> It appears to occur because the namespace attributes are handed off by W3CDomStreamWriter.writeAttribute with a namespaceURI of null instead of their actual namespace.  It seems that either that method isn't the right place to handle namespace attributes, meaning changing something upstream, or that there is a bug in it.

-- 
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] Commented: (CXF-2752) Regression - CXF Client Spring Context Fails

Posted by "Josh Cummings (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-2752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12855427#action_12855427 ] 

Josh Cummings commented on CXF-2752:
------------------------------------

It's looks like we may have found it.

I haven't dug very deep, but we were excluding wstx-asl in our pom in order to trim dependencies.  This worked fine in past versions, but it looks like we need to remove the exclusion to upgrade.

Sorry for the false alarm--thanks for looking into it all the same.

> Regression - CXF Client Spring Context Fails
> --------------------------------------------
>
>                 Key: CXF-2752
>                 URL: https://issues.apache.org/jira/browse/CXF-2752
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS, JAX-WS Runtime
>    Affects Versions: 2.2.7
>            Reporter: Josh Cummings
>
> In upgrading to 2.2.7, we found that our cxf client's spring configuration would fail on startup with a NAMESPACE_ERR thrown from the writer.
> To reproduce, we simply include the following snippet in our client application context:
> <bean id="client" factory-bean="clientFactory" factory-method="create" lazy-init="false"/>
> 	
> <bean id="clientFactory" class="org.apache.cxf.jaxws.JaxWsClientFactoryBean" lazy-init="false">
> 	<property name="address" value="http://localhost:8180"/>
> 	<property name="serviceClass" value="org.my.project.MyService"/>
> </bean>
> It will fail when it tries to load cxf.xml using the ControlledValidationXmlBeanDefinitionReader.
> It appears to occur because the namespace attributes are handed off by W3CDomStreamWriter.writeAttribute with a namespaceURI of null instead of their actual namespace.  It seems that either that method isn't the right place to handle namespace attributes, meaning changing something upstream, or that there is a bug in it.

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


[jira] Commented: (CXF-2752) Regression - CXF Client Spring Context Fails

Posted by "Josh Cummings (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-2752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12855436#action_12855436 ] 

Josh Cummings commented on CXF-2752:
------------------------------------

We would prefer to allow our users to depend on woodstox for performances gains, though, at their discretion.

Is the dependency on woodstox intentional? It appears that in past versions, CXF wasn't functionality dependent on woodstox. Would it be possible to return to that?

> Regression - CXF Client Spring Context Fails
> --------------------------------------------
>
>                 Key: CXF-2752
>                 URL: https://issues.apache.org/jira/browse/CXF-2752
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS, JAX-WS Runtime
>    Affects Versions: 2.2.7
>            Reporter: Josh Cummings
>
> In upgrading to 2.2.7, we found that our cxf client's spring configuration would fail on startup with a NAMESPACE_ERR thrown from the writer.
> To reproduce, we simply include the following snippet in our client application context:
> <bean id="client" factory-bean="clientFactory" factory-method="create" lazy-init="false"/>
> 	
> <bean id="clientFactory" class="org.apache.cxf.jaxws.JaxWsClientFactoryBean" lazy-init="false">
> 	<property name="address" value="http://localhost:8180"/>
> 	<property name="serviceClass" value="org.my.project.MyService"/>
> </bean>
> It will fail when it tries to load cxf.xml using the ControlledValidationXmlBeanDefinitionReader.
> It appears to occur because the namespace attributes are handed off by W3CDomStreamWriter.writeAttribute with a namespaceURI of null instead of their actual namespace.  It seems that either that method isn't the right place to handle namespace attributes, meaning changing something upstream, or that there is a bug in it.

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


[jira] Commented: (CXF-2752) Regression - CXF Client Spring Context Fails

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-2752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12855431#action_12855431 ] 

Daniel Kulp commented on CXF-2752:
----------------------------------


Josh,

Adding woodstox back in kind of hides the problem.   It really should work with other stax parsers as well.   I've removed woodstox for our samples as well, but still couldn't reproduce it.  If I could get a reproducible test case that I could debug with the other parsers, we can probably fix it and not require woodstox.

That said, using woodstox is still a good idea.  Woodstox is a LOT faster than the parser built into the JDK.

 

> Regression - CXF Client Spring Context Fails
> --------------------------------------------
>
>                 Key: CXF-2752
>                 URL: https://issues.apache.org/jira/browse/CXF-2752
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS, JAX-WS Runtime
>    Affects Versions: 2.2.7
>            Reporter: Josh Cummings
>
> In upgrading to 2.2.7, we found that our cxf client's spring configuration would fail on startup with a NAMESPACE_ERR thrown from the writer.
> To reproduce, we simply include the following snippet in our client application context:
> <bean id="client" factory-bean="clientFactory" factory-method="create" lazy-init="false"/>
> 	
> <bean id="clientFactory" class="org.apache.cxf.jaxws.JaxWsClientFactoryBean" lazy-init="false">
> 	<property name="address" value="http://localhost:8180"/>
> 	<property name="serviceClass" value="org.my.project.MyService"/>
> </bean>
> It will fail when it tries to load cxf.xml using the ControlledValidationXmlBeanDefinitionReader.
> It appears to occur because the namespace attributes are handed off by W3CDomStreamWriter.writeAttribute with a namespaceURI of null instead of their actual namespace.  It seems that either that method isn't the right place to handle namespace attributes, meaning changing something upstream, or that there is a bug in it.

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


[jira] Updated: (CXF-2752) Regression - CXF Client Spring Context Fails

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

Josh Cummings updated CXF-2752:
-------------------------------

    Attachment: example.tar

I've attached an example project.  You can just do a mvn install from the command line.

> Regression - CXF Client Spring Context Fails
> --------------------------------------------
>
>                 Key: CXF-2752
>                 URL: https://issues.apache.org/jira/browse/CXF-2752
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS, JAX-WS Runtime
>    Affects Versions: 2.2.7
>            Reporter: Josh Cummings
>         Attachments: example.tar
>
>
> In upgrading to 2.2.7, we found that our cxf client's spring configuration would fail on startup with a NAMESPACE_ERR thrown from the writer.
> To reproduce, we simply include the following snippet in our client application context:
> <bean id="client" factory-bean="clientFactory" factory-method="create" lazy-init="false"/>
> 	
> <bean id="clientFactory" class="org.apache.cxf.jaxws.JaxWsClientFactoryBean" lazy-init="false">
> 	<property name="address" value="http://localhost:8180"/>
> 	<property name="serviceClass" value="org.my.project.MyService"/>
> </bean>
> It will fail when it tries to load cxf.xml using the ControlledValidationXmlBeanDefinitionReader.
> It appears to occur because the namespace attributes are handed off by W3CDomStreamWriter.writeAttribute with a namespaceURI of null instead of their actual namespace.  It seems that either that method isn't the right place to handle namespace attributes, meaning changing something upstream, or that there is a bug in it.

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