Restlet 2.1.RC1工作正常但升级到2.1.2给出:
WARN - Unable to unmarshal the XML representation
javax.xml.bind.JAXBException: Unable to create customized SAX source
- with linked exception:
[javax.xml.parsers.ParserConfigurationException: FEATURE_SECURE_PROCESSING: Cannot set the feature to false when security manager is present.]
at org.restlet.ext.jaxb.internal.Unmarshaller.unmarshal(Unmarshaller.java:201)
at org.restlet.ext.jaxb.JaxbRepresentation.getObject(JaxbRepresentation.java:417)
at org.restlet.ext.jaxb.JaxbConverter.toObject(JaxbConverter.java:172)
at org.restlet.service.ConverterService.toObject(ConverterService.java:170)
at org.restlet.resource.Resource.toObject(Resource.java:828)
at org.restlet.engine.resource.ClientInvocationHandler.invoke(ClientInvocationHandler.java:240)
at com.sun.proxy.$Proxy57.getServerInformation(Unknown Source)
我前几天承认我发布了一个非常similar question - 但在那一个我关注的问题
Restlet 2.1.2 + Java 1.6 作为Netbeans 7.x应用程序正常工作。
但是将java更改为Java 1.7会产生上述错误,所以我认为这个问题并不重复,因为我在这里专注于Restlet 2.1.RC1 ==> 2.1.2。
正如在其他问题中提到的,我怀疑this change是相关的。
答案 0 :(得分:0)
最终的解决方法是编写的代码黑客 https://stackoverflow.com/a/19230016/449347
查看https://github.com/restlet/restlet-framework-java/issues/785
中提出的错误