Solved

some help about netpeergroup

Posted on 2004-08-31
10
202 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Tomcat: Unable to run tomcat service. 2 29
runtime exception 2 50
Java: The Public Class Main 4 45
Html split(text) 2 28
In this post we will learn different types of Android Layout and some basics of an Android App.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
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…

756 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