Solved

some help about netpeergroup

Posted on 2004-08-31
10
200 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

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
 

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Error trying to install RTMT Win7 5 60
print map entry 34 67
jdbc error in jsp application 20 44
How to convert from xls to xlsx using java 7 37
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

776 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