I have a Java application for signing XML documents. After upgrading Java to the latest version (Java7u25) it stops working. I get the following error:
javax
I am facing the same issue only when ID is set with random UUID [guidForSignature ="_" + UUID.randomUUID().toString();
] and when there are concurrent requests triggered at run time(Java 1.8).
I have tried setting the ID attribute like below which didn't help me. However, setting the ID attribute to constant ID value for all the requests resolved the issue.
Element element1= doc.getDocumentElement().setIdAttribute("ID", true);
OR
Element e1 =(Element)doc.getElementsByTagName("Assertion").item(0);
e1.setIdAttribute("ID", true);