jxta程序只能运行一次,以后运行必须删除pse后重新配置,否则就出错,怎么办?

发布于 2022-08-28 12:01:56 字数 5291 浏览 26 评论 0

代码:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文