Solved

some help about netpeergroup

Posted on 2004-08-31
10
203 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
JavaFX TableView not displaying correctly 3 149
Chrome and Firefox Java 5 88
Java: anonymous class 4 52
jmeter usage 4 59
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn different types of Android Layout and some basics of an Android App.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses

737 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