Solved

some help about netpeergroup

Posted on 2004-08-31
10
197 Views
Last Modified: 2008-01-09
i am having problem when ever i connect to the netpeergroup, where my code is  suppose to bring me the configuration windows of user name seccure password i see bunch of errors and i am not able to view that window.
0
Comment
Question by:bkniazi
  • 5
  • 5
10 Comments
 
LVL 35

Expert Comment

by:girionis
ID: 11942899
What kind of errors?
0
 

Author Comment

by:bkniazi
ID: 11942956
talking some thing about log4ji appache expected and like them 3 or 4 more
0
 
LVL 35

Expert Comment

by:girionis
ID: 11943251
Can you post them? I can't help yo uunless you give me more info.
0
 

Author Comment

by:bkniazi
ID: 11943257
i think this will help you guys

java.lang.NoClassDefFoundError: org/apache/log4j/Priority

      at SimpleJxtaApp.startJxta(SimpleJxtaApp.java:91)

      at SimpleJxtaApp.main(SimpleJxtaApp.java:82)

line 91=  netPeerGroup = PeerGroupFactory.newNetPeerGroup();
line 82= myapp.startJxta();
0
 
LVL 35

Expert Comment

by:girionis
ID: 11943345
Ok can you tell me what your classpath is? And in what jar file the Priority file resides?
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:bkniazi
ID: 11943368
i am using jbulder and i am using jxta.jar which i have added in the required library
0
 
LVL 35

Expert Comment

by:girionis
ID: 11943407
I do no tthink the Priority class is in the jxta package, it clearly belongs to log4j. You need to put the jar file (or the parent folder) that contains the Priority file in your classpath. The problem is not with jxta but with the log4j.
0
 

Author Comment

by:bkniazi
ID: 11943448
i download some source code from the internet there seems nothing like log4j in there i can send you the link from where you can download the source code and view it you will see there is no such thing defined there.
http://platform.jxta.org/source/browse/platform/www/java/tutorial/examples/SimpleJxtaApp/
0
 

Author Comment

by:bkniazi
ID: 11943773
till know i was bit succedded but i got these after configuration
but after configuration

<INFO  2004-08-31 21:12:03,937 NullConfigurator::<init>:115> JXTA_HOME = E:\jxta\JxtaApplication\.jxta
<ERROR 2004-08-31 21:12:03,953 NullConfigurator::resetFromResource:228> PlatformConfig does not exist
<INFO  2004-08-31 21:12:03,953 NullConfigurator::resetFromResource:216> E:\jxta\JxtaApplication\.jxta\jxta.properties already exists
<WARN  2004-08-31 21:12:03,953 NullConfigurator::loadFrom:310> Platform Config not found : E:\jxta\JxtaApplication\.jxta\PlatformConfig
<INFO  2004-08-31 21:12:04,031 NullConfigurator::adjustLog4JPriority:347> Log4J logging preference not set, using defaults
<INFO  2004-08-31 21:12:04,046 DefaultConfigurator::fixAdvertisement:317> Reconfig requested - New PlatformConfig Advertisement
<INFO  2004-08-31 21:12:04,046 DefaultConfigurator::fixAdvertisement:382> Reconfig requested - http advertisement missing, making a new one.
<INFO  2004-08-31 21:12:04,046 DefaultConfigurator::fixAdvertisement:439> Reconfig requested - tcp advertisement missing, making a new one.
<INFO  2004-08-31 21:12:04,046 DefaultConfigurator::fixAdvertisement:521> Reconfig requested - PSE wanted config
java.lang.NoClassDefFoundError: org/bouncycastle/asn1/x509/X509Name

      at net.jxta.impl.peergroup.ConfigDialog.saveValues(ConfigDialog.java:2449)

      at net.jxta.impl.peergroup.ConfigDialog.access$000(ConfigDialog.java:138)

      at net.jxta.impl.peergroup.ConfigDialog$5.actionPerformed(ConfigDialog.java:1892)

      at java.awt.Button.processActionEvent(Button.java:382)

      at java.awt.Button.processEvent(Button.java:350)

      at java.awt.Component.dispatchEventImpl(Component.java:3615)

      at java.awt.Component.dispatchEvent(Component.java:3477)

      at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)

      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)

      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)

      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)

      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)

      at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

<FATAL 2004-08-31 21:13:24,437 PeerGroupFactory::newPlatform:374> Platform.init failed :
net.jxta.exception.JxtaError: Canceled during configuration

      at net.jxta.impl.peergroup.ConfigDialog.untilDone(ConfigDialog.java:1933)

      at net.jxta.impl.peergroup.DefaultConfigurator.<init>(DefaultConfigurator.java:127)

      at net.jxta.impl.peergroup.DefaultConfigurator.<init>(DefaultConfigurator.java:116)

      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

      at java.lang.reflect.Constructor.newInstance(Constructor.java:274)

      at java.lang.Class.newInstance0(Class.java:308)

      at java.lang.Class.newInstance(Class.java:261)

      at net.jxta.impl.peergroup.Platform.generateConfigAdvertisement(Platform.java:206)

      at net.jxta.impl.peergroup.Platform.initFirst(Platform.java:159)

      at net.jxta.impl.peergroup.GenericPeerGroup.init(GenericPeerGroup.java:799)

      at net.jxta.peergroup.PeerGroupFactory.newPlatform(PeerGroupFactory.java:369)

      at net.jxta.peergroup.PeerGroupFactory.newNetPeerGroup(PeerGroupFactory.java:420)

      at SimpleJxtaApp.startJxta(SimpleJxtaApp.java:91)

      at SimpleJxtaApp.main(SimpleJxtaApp.java:82)

net.jxta.exception.JxtaError: Platform.init failed

      at net.jxta.peergroup.PeerGroupFactory.newPlatform(PeerGroupFactory.java:376)

      at net.jxta.peergroup.PeerGroupFactory.newNetPeerGroup(PeerGroupFactory.java:420)

      at SimpleJxtaApp.startJxta(SimpleJxtaApp.java:91)

      at SimpleJxtaApp.main(SimpleJxtaApp.java:82)

Caused by: net.jxta.exception.JxtaError: Canceled during configuration

      at net.jxta.impl.peergroup.ConfigDialog.untilDone(ConfigDialog.java:1933)

      at net.jxta.impl.peergroup.DefaultConfigurator.<init>(DefaultConfigurator.java:127)

      at net.jxta.impl.peergroup.DefaultConfigurator.<init>(DefaultConfigurator.java:116)

      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

      at java.lang.reflect.Constructor.newInstance(Constructor.java:274)

      at java.lang.Class.newInstance0(Class.java:308)

      at java.lang.Class.newInstance(Class.java:261)

      at net.jxta.impl.peergroup.Platform.generateConfigAdvertisement(Platform.java:206)

      at net.jxta.impl.peergroup.Platform.initFirst(Platform.java:159)

      at net.jxta.impl.peergroup.GenericPeerGroup.init(GenericPeerGroup.java:799)

      at net.jxta.peergroup.PeerGroupFactory.newPlatform(PeerGroupFactory.java:369)

      ... 3 more

Exception in thread "main"
0
 
LVL 35

Accepted Solution

by:
girionis earned 500 total points
ID: 11943939
> java.lang.NoClassDefFoundError: org/bouncycastle/asn1/x509/X509Name

You are using the bouncycastle encryption. You need to put the jar file with the above class in the classpath. Can you tell me that classpath and the path of the bouncycastle jar file?
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
hash value 2 39
Spring Controller - inheritance in request parameter 3 38
countAbc challenge 9 50
maven project error 5 24
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now