You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by "yang chuan ying (JIRA)" <ju...@ws.apache.org> on 2007/04/24 05:47:15 UTC

[jira] Commented: (JUDDI-91) Name space issue reported in jboss-4.0.4.GA

    [ https://issues.apache.org/jira/browse/JUDDI-91?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12491124 ] 

yang chuan ying commented on JUDDI-91:
--------------------------------------

Hi,

Is there a patch available for Juddi.jar?? or we are required to manually change the source code ourself?

Thanks for the effort!

regards,
ycy

> Name space issue reported in jboss-4.0.4.GA
> -------------------------------------------
>
>                 Key: JUDDI-91
>                 URL: https://issues.apache.org/jira/browse/JUDDI-91
>             Project: jUDDI
>          Issue Type: Bug
>    Affects Versions: 0.9rc4
>         Environment: jboss-4.0.4.GA
>            Reporter: Kurt Stam
>         Assigned To: Steve Viens
>         Attachments: juddi-90-91-patch.txt
>
>
> Jboss-4.0.4.GA explitcitly adds the namespace attributes to the DOM object, which happens returning the juddi result using soap, when calling 
> soapRes.getSOAPBody().addDocument(document);
> This sometimes results in:
> 09:42:24,265 INFO  [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)] Started in 28s:672ms
> 09:43:58,531 INFO  [STDOUT] 2006-09-25 09:43:58,531 [http-localhost%2F127.0.0.1-8080-1] INFO  org.apache.juddi.util.Loader  - Using the Context ClassLoader
> 09:43:58,546 INFO  [STDOUT] 2006-09-25 09:43:58,546 [http-localhost%2F127.0.0.1-8080-1] INFO  org.apache.juddi.util.jdbc.ConnectionManager  - Not using Datasource as juddi.isUseDataSource=false
> 09:43:59,093 INFO  [STDOUT] 2006-09-25 09:43:59,093 [http-localhost%2F127.0.0.1-8080-1] ERROR org.apache.juddi.registry.AbstractService  - NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
> org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
> 	at org.apache.xerces.dom.AttrNSImpl.setName(Unknown Source)
> 	at org.apache.xerces.dom.AttrNSImpl.<init>(Unknown Source)
> 	at org.apache.xerces.dom.CoreDocumentImpl.createAttributeNS(Unknown Source)
> 	at org.apache.xerces.dom.ElementImpl.setAttributeNS(Unknown Source)
> 	at org.jboss.ws.soap.SOAPElementImpl.setAttributeNS(SOAPElementImpl.java:616)
> 	at org.jboss.util.xml.DOMUtils.copyAttributes(DOMUtils.java:315)
> 	at org.jboss.ws.soap.SOAPFactoryImpl.createElement(SOAPFactoryImpl.java:81)
> ..etc (see also: http://jira.jboss.com/jira/browse/JBWS-1206)
> It turns out that this is not a jboss issue, but rather a juddi issue. In some of the org.apache.juddi.handler.*.marshal functions, juddi is actually still  setting the xmlns attribute.
> When I comment out the following lines as such:
> $ grep -r 'element.setAttribute("xmlns",' *
> AssertionStatusReportHandler.java:    //element.setAttribute("xmlns",namespace);
> AuthTokenHandler.java:    //element.setAttribute("xmlns",namespace);
> BindingDetailHandler.java:    //element.setAttribute("xmlns",namespace);
> BusinessDetailExtHandler.java:    //element.setAttribute("xmlns",namespace);
> BusinessDetailHandler.java:    //element.setAttribute("xmlns",namespace);
> BusinessListHandler.java:    //element.setAttribute("xmlns",namespace);
> DispositionReportHandler.java:    //element.setAttribute("xmlns",namespace);
> PublisherAssertionsHandler.java:    //element.setAttribute("xmlns",namespace);
> PublisherDetailHandler.java:    //element.setAttribute("xmlns",namespace);
> PublisherListHandler.java:    //element.setAttribute("xmlns",namespace);
> RegisteredInfoHandler.java:    //element.setAttribute("xmlns",namespace);
> RelatedBusinessesListHandler.java:    //element.setAttribute("xmlns",namespace);
> ServiceDetailHandler.java:    //element.setAttribute("xmlns",namespace);
> TModelDetailHandler.java:    //element.setAttribute("xmlns",namespace);
> TModelListHandler.java:    //element.setAttribute("xmlns",namespace);
> then everything works.
> Note that this analysis is based on the codebase after applying the juddi-embedded-patch.txt. (issue juddi-90)
> If you want to fix 0.9rc4 you will probably need to comment out the following lines:
> $ grep -r 'element.setAttribute("xmlns",' *
> AssertionStatusReportHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V1_NAMESPACE);
> AssertionStatusReportHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
> AssertionStatusReportHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V3_NAMESPACE);
> AssertionStatusReportHandler.java:      element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
> AuthTokenHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V1_NAMESPACE);
> AuthTokenHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
> AuthTokenHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V3_NAMESPACE);
> AuthTokenHandler.java:      element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
> BindingDetailHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V1_NAMESPACE);
> BindingDetailHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
> BindingDetailHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V3_NAMESPACE);
> BindingDetailHandler.java:      element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
> BusinessDetailExtHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V1_NAMESPACE);
> BusinessDetailExtHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
> BusinessDetailExtHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V3_NAMESPACE);
> BusinessDetailExtHandler.java:      element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
> BusinessDetailHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V1_NAMESPACE);
> BusinessDetailHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
> BusinessDetailHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V3_NAMESPACE);
> BusinessDetailHandler.java:      element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
> BusinessListHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V1_NAMESPACE);
> BusinessListHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
> BusinessListHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V3_NAMESPACE);
> BusinessListHandler.java:      element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
> DispositionReportHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V1_NAMESPACE);
> DispositionReportHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
> DispositionReportHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V3_NAMESPACE);
> PublisherAssertionsHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V1_NAMESPACE);
> PublisherAssertionsHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
> PublisherAssertionsHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V3_NAMESPACE);
> PublisherAssertionsHandler.java:      element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
> PublisherDetailHandler.java:      element.setAttribute("xmlns",IRegistry.JUDDI_V1_NAMESPACE);
> PublisherListHandler.java:      element.setAttribute("xmlns",IRegistry.JUDDI_V1_NAMESPACE);
> PublisherListHandler.java:      element.setAttribute("xmlns",IRegistry.JUDDI_V1_NAMESPACE);
> RegisteredInfoHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V1_NAMESPACE);
> RegisteredInfoHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
> RegisteredInfoHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V3_NAMESPACE);
> RegisteredInfoHandler.java:      element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
> RelatedBusinessesListHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V1_NAMESPACE);
> RelatedBusinessesListHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
> RelatedBusinessesListHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V3_NAMESPACE);
> RelatedBusinessesListHandler.java:      element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
> ServiceDetailHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V1_NAMESPACE);
> ServiceDetailHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
> ServiceDetailHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V3_NAMESPACE);
> ServiceDetailHandler.java:      element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
> ServiceListHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V1_NAMESPACE);
> ServiceListHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
> ServiceListHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V3_NAMESPACE);
> ServiceListHandler.java:      element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
> TModelDetailHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V1_NAMESPACE);
> TModelDetailHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
> TModelDetailHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V3_NAMESPACE);
> TModelDetailHandler.java:      element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
> TModelListHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V1_NAMESPACE);
> TModelListHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
> TModelListHandler.java:        element.setAttribute("xmlns",IRegistry.UDDI_V3_NAMESPACE);
> TModelListHandler.java:      element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);

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


---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-dev-help@ws.apache.org