You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2019/03/22 12:15:00 UTC

[jira] [Resolved] (SANTUARIO-427) org.w3c.dom.DOMException: NOT_FOUND_ERR: An attempt is made to reference a node in a context where it does not exist. at com.sun.org.apache.xerces.internal.dom.ElementImpl.setIdAttribute(Unknown Source)

     [ https://issues.apache.org/jira/browse/SANTUARIO-427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colm O hEigeartaigh resolved SANTUARIO-427.
-------------------------------------------
    Resolution: Won't Fix

Marking this as won't fix due to lack of reproducible information.

> org.w3c.dom.DOMException: NOT_FOUND_ERR: An attempt is made to reference a node in a context where it does not exist.  at com.sun.org.apache.xerces.internal.dom.ElementImpl.setIdAttribute(Unknown Source)
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SANTUARIO-427
>                 URL: https://issues.apache.org/jira/browse/SANTUARIO-427
>             Project: Santuario
>          Issue Type: Bug
>          Components: Java
>         Environment: JDK 1.8, xmlsec-2.x.jar
>            Reporter: sangeeta
>            Assignee: Colm O hEigeartaigh
>            Priority: Major
>
> Hi,
> I am calling a Webservice security API using openssoclientsdk.jar. and facing below error. Code is not working even if "Id" attribute is set after checking namespace.
> Error
> -------------
> org.w3c.dom.DOMException: NOT_FOUND_ERR: An attempt is made to reference a node in a context where it does not exist.
> 	at com.sun.org.apache.xerces.internal.dom.ElementImpl.setIdAttribute(Unknown Source)
> -----------------
> Code
> -----------------
>  if ((wsuNodes != null) && (wsuNodes.getLength() != 0)) {
>         for (int i = 0; i < wsuNodes.getLength(); ++i) {
>           Element elem = (Element)wsuNodes.item(i);
>           String id = elem.getAttributeNS("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd", "Id");
>           if ((id != null) && (id.length() != 0)) {
>             elem.setIdAttribute(id, true);
>           }
>         }
>       }
> ---------------------------------------------------------------



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)