Skip to main content

java.lang.NoSuchMethodError: org.bouncycastle.jce.X509Principal.getEncoded(

1 reply [Last post]
si_srex
Offline
Joined: 2005-09-23
Points: 0

Hallo..., I newbe in JXTA and JXTACMS project.
Yesterday I tried to execute ShareDemo.bat from jxta-cms-src-2.3.5.zip that I was download.
And than after setup JXTA configuration, I got this message on my command prompt :

java.lang.NoSuchMethodError: org.bouncycastle.jce.X509Principal.getEncoded()[B
at net.jxta.impl.membership.pse.PSEUtils.genCert(PSEUtils.java:327)
at net.jxta.impl.peergroup.ConfigDialog.saveValues(ConfigDialog.java:2159)
at net.jxta.impl.peergroup.ConfigDialog.access$700(ConfigDialog.java:130)
at net.jxta.impl.peergroup.ConfigDialog$3.actionPerformed(ConfigDialog.java:1680)
at java.awt.Button.processActionEvent(Unknown Source)
at java.awt.Button.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "main" net.jxta.exception.JxtaError: Canceled during configuration
at net.jxta.impl.peergroup.ConfigDialog.untilDone(ConfigDialog.java:1741)
at net.jxta.impl.peergroup.DefaultConfigurator.getPlatformConfig(DefaultConfigurator.java:133)
at net.jxta.impl.peergroup.Platform.initFirst(Platform.java:191)
at net.jxta.impl.peergroup.GenericPeerGroup.init(GenericPeerGroup.java:876)
at net.jxta.peergroup.PeerGroupFactory.newPlatform(PeerGroupFactory.java:401)
at net.jxta.peergroup.PeerGroupFactory.newNetPeerGroup(PeerGroupFactory.java:464)
at net.jxta.test.ShareDemo.startJxta(ShareDemo.java:114)
at net.jxta.test.ShareDemo.(ShareDemo.java:99)
at net.jxta.test.ShareDemo.main(ShareDemo.java:95)

Could someone tell me what happen ? Do I forgot something ?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
si_srex
Offline
Joined: 2005-09-23
Points: 0

I alredy know the answer....
This message because I use "netPeerGroup.startApp(null);" at startJxta().

Hehe...