Java Base64DecodingException:在使用xml安全库之前,必须正确初始化它

Java Base64DecodingException:在使用xml安全库之前,必须正确初始化它,java,Java,加密时出错: com.sun.org.apache.xml.internal.security.exceptions.Base64DecodingException: You must initialize the xml-security library correctly before you use it. Call the static method "com.sun.org.apache.xml.internal.security.Init.init();" to do that be

加密时出错:

com.sun.org.apache.xml.internal.security.exceptions.Base64DecodingException: You must initialize the xml-security library correctly before you use it. Call the static method "com.sun.org.apache.xml.internal.security.Init.init();" to do that before you use any functionality from that library.

请帮助我,我在我的加密代码中遇到了这个错误,我使用ibm集成工具,使用java进行加密

我不是java专家,我只懂一点java,请建议怎么做。@VaibhavBharati只需调用
com.sun.org.apache.xml.internal.security.Init.Init()
method as request?我尝试过,但我能够解密我加密的字符串,这是否有助于你???@VaibhavBharati尝试中建议的解决方案:可能重复我不是java专家,我只懂一点java,请提出建议。@VaibhavBharati只需根据请求调用
com.sun.org.apache.xml.internal.security.Init.Init()
方法即可。您好,我尝试过,但我能够解密我正在加密的字符串,这是否有助于您???@VaibhavBharati尝试以下建议的解决方案: