jxta程序只能运行一次,以后运行必须删除pse后重新配置,否则就出错,怎么办?
代码:
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!");
}
出错:
java.io.IOException: Not a PrintableString or IA5String
at cryptix.asn1.encoding.DER.decode(DER.java:430)
at cryptix.asn1.encoding.BaseCoder.visitInternal(BaseCoder.java:326)
at cryptix.asn1.encoding.BaseCoder.decode(BaseCoder.java:423)
at cryptix.asn1.encoding.BaseCoder.visitInternal(BaseCoder.java:287)
at cryptix.asn1.encoding.BaseCoder.decode(BaseCoder.java:412)
at cryptix.asn1.encoding.BaseCoder.visitInternal(BaseCoder.java:284)
at cryptix.asn1.encoding.BaseCoder.visit(BaseCoder.java:146)
at cryptix.asn1.lang.ASNType.jjtAccept(ASNType.java:17)
at cryptix.asn1.lang.SimpleNode.childrenAccept(SimpleNode.java:192)
at cryptix.asn1.encoding.DER.decodeSequence(DER.java:550)
at cryptix.asn1.encoding.DER.decode(DER.java:338)
at cryptix.asn1.encoding.BaseCoder.visitInternal(BaseCoder.java:308)
at cryptix.asn1.encoding.BaseCoder.decode(BaseCoder.java:423)
at cryptix.asn1.encoding.BaseCoder.visitInternal(BaseCoder.java:287)
at cryptix.asn1.encoding.BaseCoder.decode(BaseCoder.java:412)
at cryptix.asn1.encoding.BaseCoder.visitInternal(BaseCoder.java:284)
at cryptix.asn1.encoding.BaseCoder.visit(BaseCoder.java:146)
at cryptix.asn1.lang.ASNType.jjtAccept(ASNType.java:17)
at cryptix.asn1.lang.SimpleNode.childrenAccept(SimpleNode.java:192)
at cryptix.asn1.encoding.DER.decodeSet(DER.java:585)
at cryptix.asn1.encoding.DER.decode(DER.java:368)
at cryptix.asn1.encoding.BaseCoder.visitInternal(BaseCoder.java:317)
at cryptix.asn1.encoding.BaseCoder.decode(BaseCoder.java:423)
at cryptix.asn1.encoding.BaseCoder.visitInternal(BaseCoder.java:287)
at cryptix.asn1.encoding.BaseCoder.decode(BaseCoder.java:412)
at cryptix.asn1.encoding.BaseCoder.visitInternal(BaseCoder.java:284)
at cryptix.asn1.encoding.BaseCoder.visit(BaseCoder.java:146)
at cryptix.asn1.lang.ASNType.jjtAccept(ASNType.java:17)
at cryptix.asn1.lang.SimpleNode.childrenAccept(SimpleNode.java:192)
at cryptix.asn1.encoding.DER.decodeSequence(DER.java:550)
at cryptix.asn1.encoding.DER.decode(DER.java:348)
at cryptix.asn1.encoding.BaseCoder.visitInternal(BaseCoder.java:311)
at cryptix.asn1.encoding.BaseCoder.visit(BaseCoder.java:186)
at cryptix.asn1.lang.ASNSequenceOf.jjtAccept(ASNSequenceOf.java:17)
at cryptix.asn1.lang.SimpleNode.accept(SimpleNode.java:359)
at COM.claymoresystems.cert.X509Name.rawNameToName(X509Name.java:241)
at COM.claymoresystems.cert.X509Name.<init>(X509Name.java:88)
at COM.claymoresystems.cert.X509Cert.<init>(X509Cert.java:172)
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.<init>(Configurator.java:116)
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)
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.<init>(X509Name.java:88)
at COM.claymoresystems.cert.X509Cert.<init>(X509Cert.java:172)
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.<init>(Configurator.java:116)
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论