我正在将一个系统从hibernate2迁移到hibernate 3,我得到了以下错误:
java.lang.IllegalAccessError: tried to access method com.sun.xml.bind.DatatypeConverterImpl.<init>()V from class com.sun.xml.bind.DefaultJAXBContextImpl
at com.sun.xml.bind.DefaultJAXBContextImpl.<init>(DefaultJAXBContextImpl.java:73)
at com.sun.xml.bind.ContextFactory.createContext(ContextFactory.java:39)我已经在hibernate迁移指南中搜索过了,在这个主题上没有找到任何东西。在谷歌上搜索也没什么用。这个错误已经困扰我一段时间了,我希望得到任何形式的帮助。
感谢您的关注。
发布于 2011-01-04 00:11:47
当您查看此处的代码时
http://www.docjar.com/html/api/com/sun/xml/internal/bind/DatatypeConverterImpl.java.html
您可以看到构造函数是受保护的,因此为了检索实例,您应该寻址theInstance (第62行),它具有公共访问权限。
https://stackoverflow.com/questions/4585959
复制相似问题