XML dig sig error after upgrade to java7u25

后端 未结 6 683
隐瞒了意图╮
隐瞒了意图╮ 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:36

    i faced the same issue and also tracked it down to the code snippets mentioned by Cerber. I'm curious whether this is a bug or a change made on purpose.

    With the information given in this thread Java XML DOM: how are id Attributes special? i was able to get things back to work again.

    In a nutshell the 'ID' attribute has to be of type 'xs:ID' (and not e.g. 'xs:string') for the Dereferencer to find it. Also note that depending on your use of a DocumentBuilderFactory the XML schema must be set.

提交回复
热议问题