javax.xml.bind.DatatypeConverter.printBase64Binary("abc".getBytes())报NullPointerException异常

看https://developer.ibm.com/answers/questions/200553/jaxb-datatypeconverter-throws-nullpointerexception.html

This have been resolved by changing the 3rd party code to not use DatatypeConverter.,To correct this, we requested that a 3rd party API supplier change their code so that it does not use DatatypeConverter.


查确实是改过jdk。当时用weblogic时与与jdk1.7有兼容问题,在%JAVA_HOME%/jre/lib/endorsed下加了javax.xml.bind_2.1.1.jar之类文件覆盖系统的jar,直接删除就好了(不用weblogic了)。



版权声明:本文为superzlc原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。