XML dig sig error after upgrade to java7u25

后端 未结 6 653
隐瞒了意图╮
隐瞒了意图╮ 2020-12-14 02:08

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         


        
6条回答
  •  囚心锁ツ
    2020-12-14 02:46

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

提交回复
热议问题