Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Urgent:RMI: exceptions

Reply
Thread Tools

Urgent:RMI: exceptions

 
 
Eric
Guest
Posts: n/a
 
      07-14-2003
Hi veryone,

I've tried with this problem and no issue, any help will be very
welcome

when i run my RMI server Application it gives me an
NoClassDefFoundError
exception and a pupop says: could not find main class , programm will
exit .I'm sure about the setup of my classpath and the defition of my
main method , i know taht this exception is thrown when the V machine
or a classloader tries to load in the definition of a class and no
definition of the class could be found so is it possible that the
problem is about loding my stub class???
this is the the stub class generated code:
/************************************************** ****************/
// JBuilder API Decompiler stub source generated from class file
// Jul 14, 2003
// -- implementation of methods is not available

package appserv;

// Imports
import java.lang.String;
import java.rmi.server.RemoteStub;
import java.lang.Class;
import java.rmi.server.RemoteRef;
import appserv.inServeur;
import java.lang.reflect.Method;
import java.rmi.RemoteException;
import java.rmi.Remote;

public final class Serveur_Stub extends RemoteStub implements
inServeur, Remote {

// Fields
private static final long serialVersionUID = 2L;
private static Method $method_sayhello_0;
static Class class$appserv$inServeur;

// Constructors
public Serveur_Stub(RemoteRef p0) { }

// Methods
public void sayhello() throws RemoteException { }
static Class class$(String p0) { }
static { }
}

/************************************************** ********************/

in fact, this probLem disseaper when i omit the setup of the code base
prority and the setup of the classpath in jbuilder5( iding windows
2000): this is the setup for the VM in jbuilder

-Djava.rmi.server.codebase=file:C:\Documents and
Settings\Administrator\Desktop\Appserv\classes\
-Djava.security.policy=file:C:\Documents and
Settings\Administrator\Desktop\Appserv\rmi.policy

one's i Omit this 4 lines: i get this exception while running to
access denied (java.net.SocketPermission 192.168.0.110:1099
connect,resolve)
i' sure about my policy file ,I'm giving all premission for evryone.

freinds i'm trying with this for the last 12 hours at least i'm
thinking about firewall and stuff like that.

any kind of help i'll be gratfully.

Thanks in advance
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exceptions - How do you make it work like built-in exceptions? Lie Python 3 01-14-2008 06:45 PM
Exceptions + Performance on path without exceptions gratch06@gmail.com C++ 3 04-16-2007 08:52 PM
Checked exceptions vs unchecked exceptions Ahmed Moustafa Java 5 07-14-2004 01:46 PM
ImageList Errors - Exceptions and...need HELP Herr Lucifer ASP .Net 0 06-21-2004 10:21 AM
Custom exceptions -- inherit from exceptions.Exception? Paul Miller Python 3 11-12-2003 09:24 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57