jxta Helloworld 运行出错
public void startJXTA() {
PeerGroup pg = null;
try {
// 创建并加入默认的 PeerGroup(netPeerGroup)
pg =PeerGroupFactory.newNetPeerGroup();
}catch (PeerGroupException e) {
// 输出netPeerGroup初始化失败的信息并且退出
System.out.println("fatal error : group creation failure");
e.printStackTrace();
System.exit(1);
}catch(Exception e1){
System.out.println("error!");
}
error信息:java.io.IOException: Not a PrintableString or IA5String
Exception in thread "main" java.lang.InternalError: java.io.IOException: Not a PrintableString or IA5String
at COM.claymoresystems.cert.X509Name.rawNameToName(X509Name.java:274)
at COM.claymoresystems.cert.X509Name.
at COM.claymoresystems.cert.X509Cert.
at COM.claymoresystems.cert.CertContext.addRoot(CertContext.java:98)
at COM.claymoresystems.cert.CertVerify.loadRoots(CertVerify.java:32)
at COM.claymoresystems.cert.CertVerify.main(CertVerify.java:49)
at net.jxta.impl.endpoint.tls.JTlsUtil.verifySignedCert(JTlsUtil.java:559)
at net.jxta.impl.endpoint.tls.TlsConfig.allPCEChildrenExist(TlsConfig.java:375)
at net.jxta.impl.endpoint.tls.TlsConfig.willConfigureTls(TlsConfig.java:88)
at net.jxta.impl.peergroup.Configurator.fixAdvertisement(Configurator.java:986)
at net.jxta.impl.peergroup.Configurator.
at net.jxta.impl.peergroup.Platform.init(Platform.java:257)
at net.jxta.peergroup.PeerGroupFactory.newPlatform(PeerGroupFactory.java:220)
at net.jxta.peergroup.PeerGroupFactory.newNetPeerGroup(PeerGroupFactory.java:299)
at h1_1.HelloJXTA.startJXTA(HelloJXTA.java:27)
at h1_1.HelloJXTA.main(HelloJXTA.java:15)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论