Good old ClassNotFoundException _Stub

Hi all,
Once upon a time many moons ago, i could get this stuff to work, now I'm failing miserably .. must be getting old.
Right, I have very simple interface and implementation code as follows:
// Interface
import java.rmi.*;
public interface PerfectTimeI extends Remote
long getPerfectTime() throws RemoteException;
// Implementation
import java.net.*;
import java.rmi.*;
import java.rmi.registry.*;
import java.rmi.server.*;
public class PerfectTime extends UnicastRemoteObject implements PerfectTimeI
public PerfectTime() throws RemoteException {
super();
public long getPerfectTime() throws RemoteException {
return System.currentTimeMillis();
public static void main (String args[]) {
System.setSecurityManager(new RMISecurityManager());
try {
PerfectTime pt = new PerfectTime();
Naming.bind("PerfectTime", pt);
} catch (Exception ex) {
System.err.println("\nException occurred.");
ex.printStackTrace();
System.exit(1);
System.out.println("PerfectTime ... ready.");
I have both source files stored in the same dir and generate the PerfectTime_Stub by using...
rmic -v1.2 PerfectTime
This creates PerfectTime_Stub in C:\code\java\rmitest
CLASSPATH=.;C:\java\code\rmitest (where files are stored)
PerfectTime.policy contains:
grant {
permission java.net.SocketPermission "*:1024-65535", "connect,accept";
permission java.net.SocketPermission "*:80", "connect";
From here I execute rmiregistry:
C:\java\code\rmitest>start rmiregistry
and the application:
C:\java\code\rmitest>java -Djava.security.policy=PerfectTime.policy -Djava.rmi.server.codebase=file:C:\java\code\rmitest PerfectTime
and I get the error:
java.rmi.ServerException: Server RemoteException; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
tion is:
java.lang.ClassNotFoundException: PerfectTime_Stub
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
RemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:350)
at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
at java.rmi.Naming.bind(Naming.java:111)
at PerfectTime.main(PerfectTime.java:31)
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested ex
ception is:
java.lang.ClassNotFoundException: PerfectTime_Stub
Caused by: java.lang.ClassNotFoundException: PerfectTime_Stub
I've tried various combinations of the java PerfectTime command but they all end result in the above error.
I think I'm missing something really obvious but can't seem to put my finger on it. Any ideas anyone ?
Cheers,
John

I am facing the same problem but am not satisfied with your explaination.
I have jdk1.3 and jdk1.4 installed on my system Windows2000 Professional
when I tried to run the application, it gave me same exception
then I added the following line to my code
System.setSecurityManager(new RMISecurityManager());
then it gave me exception
java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
I set this permission using policytool and it again started giving me the same ClassNotFoundException
Same application when I run on another system which is Windows2000 Professional upgraded from WINNT workstation, It runs perfect without any security or classnotfound exceptions..
Is this the bug in Windows2000 or java security model

Similar Messages

  • Reports 10g vs the good old days

    Having been running reports from forms since the good/old client-server days, reports 10g is both a blessing and a curse. While it's certainly nice not to have to install software on each and every client box, since reports are now kept in cache on the middle tier app server until the cache hits its max size limitation, other users can issue a ?getjobid=nnn and just fish around for reports that others have run. In the good old days, a user would run a report locally on their desktop, that could be printed, and no one else could look at it. Does anyone out there know how or if a report run on the app server can be run just for the user who has access to it, and not be available to anyone who is "fishing" with getjobid? I'd really like to specify, if I could that the report be cached for just a few minutes. Essentially most of our users generate reports only needed by them and they are very dynamic in nature, so storing them isn't really necessary. Any ideas out there?
    Thanks in advance.
    Phil McDermott
    University of Illinois

    Use the EXPIRATION parameter to specify how long a report is kept in the cache. See the online help.

  • Good Old Reliable BT-Poles

    A lot has to to be said for the good old BT-Poles. The one outside my house has stood there for longer than I care to remember.
    Through gales, severe snow storms, thunder-storms, torrential rain, heat-waves and the frequent visit from the local dogs
    I wish the same could be said about my back yard brick wall.
    Today both were hit by (not too hard) by a car which was trying to do a 3-point-turn.
    My wall collapsed - albeit in one piece.
    And the BT-Pole? It stood there, not even a tremor from it.
    They built them good in them days.
    . . . it must be remembered that the sea is a great breeder of friendship. Two men who have known each other for twenty years find that twenty days at sea bring them nearer than ever they were before, or else estrange them.

    one of my local ones has survived a hit from a truck it bend the traffic light pole but only a small dent in the pole

  • Good old days PS icon

    For anybody nostalgic for the good old PS eye, here's the classic eye icon circa PS 5, ready to be used (on Windows machines anyway, not sure about Mac). It's actually not that easy to find. I've had it hanging around for years.
    www.wildnorthwest.org/photoshop.ico

    Interesting, but this is the Lightroom Forum, not Photoshop, per se! Not exactly the correct forum for this!
    Don

  • Good old IE 6!!!

    Good old IE 6, still a solid 25% of people using it and still
    doing my head in!
    Could you take a look here in IE6:
    Website Here
    Problem is #sidebar1 is not floating correctly and pushing my
    #mainContent down the page.
    Can you help.
    Thanks,
    Richard

    Use a conditional comment to reduce the width of #mainContent
    by 3-5px...
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "RICH POW" <[email protected]> wrote in
    message
    news:gggtdn$5cq$[email protected]..
    > Good old IE 6, still a solid 25% of people using it and
    still doing my
    > head in!
    >
    > Could you take a look here in IE6:
    >
    >
    http://wilcox.shared.rylhost.net
    >
    > Problem is #sidebar1 is not floating correctly and
    pushing my #mainContent
    > down the page.
    >
    > Can you help.
    >
    > Thanks,
    > Richard
    >
    >

  • ES Repository vs. our good old Integration repository?

    As mentioned in my blog, I am posting a set of questions on ESR in this forum as an interesting way of sharing relevant information with the community. In the true spirit of forums, the one who answers the question is rewarded!
    What are the differences between the ES Repository and our good old Integration Repository?

    Hi,
    ok let me give it a try - I can list down some of the new features of ESR over the old IR :
    1) ESR has the ARIS for SAP Netweaver integrated where process component models can be developed
    2) We have Business Objects in ESR (which were not present in IR). These BO has CRUD operations called the core services combining which the compound services are modeled
    3) There is no more Message Interfaces but Service Interfaces only
    4) Unlike the Enterprise Services developed using the IR (NW 7.0) now Enterprise Service interfaces developed in ESR can have multiple operations.
    5) ESR has a UDDI registry provided by SAP where the Enterprise Services developed in ESR can be directly published.
    Thanks,
    Dipankar

  • I can't get rid of "my web search" while powered by google, it sux! I want good old google or google chrome

    When firefox opens up, the search window on the right has My Web Search within. often, when I want GOOGLE, I get this "My Web Search", 'powered by google. My searches are terrible...MyWebSearch gives me a lot of worthless [obviously] paid-for search results.
    I followed their instructions and deleted it by 'removing the program' in my control panel, etc., through the start menu. yet this lingers, and i can't find it anywhere in my computer memory to try to reemove it again.
    It sux!
    I want to use good old google!!
    Help me get rid of it!!

    hello hmsa76l79, please also go to firefox > addons > extensions & remove any suspicious entries (toolbars, things that you have not installed intentionally, etc).
    [[Remove a toolbar that has taken over your Firefox search or home page]]
    afterwards install the search reset addon - it will revert the most common customziations those adware programs do in firefox back to the default: https://addons.mozilla.org/firefox/addon/searchreset/

  • I would like to use SolidWorks on my good old MacBook Pro

    Hello,
    I would like to start using SolidWorks on my good old macbook pro. I understand I need to put a PC platform on my mac & use a bootcamp or parallels... But I cannot understand if after doing all that my macbook will be able to carry this software. here are my specs:
    MacBook Pro 17-inch Core 2 Duo, from 2006
    Processor: 2.33 GHz Intel Core 2 Duo
    Memory: 3GB 667 MHz DDR2 SDRAM
    Graphics: ATI Radeon X1600 256 MB
    Software: MacOS X Lion 10.7.3 (11D50)
    Can anyone please help or give me some advise?
    Anyone with experience with Solidworks & macs?
    Thanks
    Orit

    I had volume and volume control from my computer speakers through the keyboard,  but I didn't have volume from my headphones until I un muted them under sound

  • What useful features am I loosing keeping the good old IOS 6.13 on iPad 2?

    Guys, I'm quite confused to keep the good old 6.13 IOS for my iPad 2 or upgrade to 8.1?
    What I know;
    IOS 6.13;
    -looks better, faster, maybe gives longer battery life
    IOS 8.1;
    -new features, but what? I heard airdrop not even working on iPad 2.
    My second device is iPhone 6 with IOS 8.1. Are they doing something better together if both of them are on 8.1?

    Thanks for the input.

  • GOOD OLD DROID X WITH SOME NEW WALLPAPERS = TOTALLY KOOL

    Wallpapers from the New kid on block thats due out 11 11 11 the Razr.!  Looks totaly cool for an older phone an there Free to boot. Visit the App. >>> store for a look then Stick em on you phone then post on here what you think about them.

    Did you get a Droid X as a your Replacement Phone? An things that you have on you SD Card in your X that has a Dead Screen can be put in the one you got off Ebay Just remember to Un-Mount the Card them Mount the card but don't Format it as will still have your Stuff on it Now if you have your Contacts Set up with your Google Account they can be Transferred to the phone you Bought on Ebay. Once you put your Google Account in your New phone an once things are done you can have your local store Flash your old one. Flashing it will Factory Reset that old Phone.
    With your phone that has the dead Screen you might call Motorola an ask if you could send it in an have the Display replaced if the rest of the phone works good a new screen for it you would have a great back up Phone...

  • Good old MSI KT3 Ultra2CE motherboard questions

    Hello. I just found my old computer and want to upgrade the CPU and RAM. This is a very good internet-computer. My english is not that good since I am from Skandinavia. But here we go
    The motherboard is KT3 ULTRA 2CE (MS-6380E VER:1.0) with:
    -VIA KT266/333 chipset
    -BIOS 5.7
    -ATi Radeon 9200 SE grapics
    -AMD AthlonXP 2100+ cpu
    -1x512mb ram
    Can I fit the AMD AthlonXP 3000+ CPU without any problems? Is this the maximum CPU upgrade?
    Can I fit 3x 1GB DIMM DDR SDRAM PC2100 266fsb/266mhz LOW density 184pin NON ECC 2.5v CL3? Is 3x1GB the maximum Gigabyte RAM on this MB?
    Would be very nice if someone could answer me with 100% certainty. Dont want to spend money on items thats not going to work on this motherboard.
    Thanks

    Quote from: Bas on 31-December-09, 21:38:38
    http://www.via.com.tw/en/products/chipsets/legacy/kt333/
    It can handle upto 4GB memory, however, it won't support just any memory.
    You have to ask the memory manufacturer if it will work, as at the time of release of the chipset those large sticks where not on the market.
    Nor could MSI test anything above 512MB.
    So your only way of knowing is either asking VIA or the memory-manyfacturer, I doubt MSI will test it as it's a very old board.
    Thanks for you reply. So it's 100% certain that my MSI KT3 ULTRA2 can handle 3x1gb memory?
    I will ask the memory manufactor if he got any memory that is compitable with my via-chipset. Glad I only ordered 1 stick to test it out before ordering more.

  • The good old-style emicons back?

    Hello! 
    I want to get the old emicons back. I really have problems relating to the new ones. In particular the dancer and the ninja, as well as the (sweat) symbol. Can you not find a way to make it possible to choose the "classic" style emicons from the early versions?

    I would like to see more emicons I think weve used these ones enough ,bit more variety please apart from that keep up the good work

  • There should be a new System Update like good old Software Installer

    I believe that there was once a program called Software Installer that was replaced by System Update. I liked the old one because of its clear layout and information: There was a column with software installed, column with current version and column with most up-to-date version of the software.Then you had checkboxes to indicate which programs you want to be updated, check them and start the update and it worked fine. In fact Productivity center still uses similar dialog for installation
    What I don't like about System update:
    1. Half of the time the Package server is unavailable. Everybody who ever used System Update knows that.
    1a. While the package server is unavailable the packages (I mean software install files) are available through tthe software.
    2. Dowloading 400kb of update list (or whatever) takes forever. At least its the longest 400 kb I've seen on my internet connection. This is especially ridiculous when you can just go to support website and check the updates yourself in seconds. Why can't System Update just comunicate with the website. It serves the same purpose and?
    3. you can't use any of the information from the previous session: I have downloaded graphics driver and it is on the hardrive but it will install only after System update connects to database. I can install it manually but couldn't system update display it as some sort of avaible file?
    4. There are four tabs to display my 3 updates, couldn't it all fit in one window? Also I have to expand the view to see my current and up-to-date version of software. I just click to install and I never notice which version was installed actually. Later when having problems I can't tell which version of software I'm having problems with.
    5. Sometimes updates just dissapear. I once uninstalled Access Connections and since then System Update never showed it as an available update.
    The way I see it the System Update software should rewritten almost fully. There is no way that the software that is suppose to help you update the system is slower and less reliable than a user writing down the updates, downloading and installing them through the website.
    Having that said I'm not totally negative, for example it is a great  feature is that an update is unatended for a group of updates. Yet it seems that System Update is somehow on the worng track.
    T540 i7 4700MQ, GT 730M, 8GB RAM, Win7

    I believe that there was once a program called Software Installer that was replaced by System Update. I liked the old one because of its clear layout and information: There was a column with software installed, column with current version and column with most up-to-date version of the software.Then you had checkboxes to indicate which programs you want to be updated, check them and start the update and it worked fine. In fact Productivity center still uses similar dialog for installation
    What I don't like about System update:
    1. Half of the time the Package server is unavailable. Everybody who ever used System Update knows that.
    1a. While the package server is unavailable the packages (I mean software install files) are available through tthe software.
    2. Dowloading 400kb of update list (or whatever) takes forever. At least its the longest 400 kb I've seen on my internet connection. This is especially ridiculous when you can just go to support website and check the updates yourself in seconds. Why can't System Update just comunicate with the website. It serves the same purpose and?
    3. you can't use any of the information from the previous session: I have downloaded graphics driver and it is on the hardrive but it will install only after System update connects to database. I can install it manually but couldn't system update display it as some sort of avaible file?
    4. There are four tabs to display my 3 updates, couldn't it all fit in one window? Also I have to expand the view to see my current and up-to-date version of software. I just click to install and I never notice which version was installed actually. Later when having problems I can't tell which version of software I'm having problems with.
    5. Sometimes updates just dissapear. I once uninstalled Access Connections and since then System Update never showed it as an available update.
    The way I see it the System Update software should rewritten almost fully. There is no way that the software that is suppose to help you update the system is slower and less reliable than a user writing down the updates, downloading and installing them through the website.
    Having that said I'm not totally negative, for example it is a great  feature is that an update is unatended for a group of updates. Yet it seems that System Update is somehow on the worng track.
    T540 i7 4700MQ, GT 730M, 8GB RAM, Win7

  • Good old insufficient bandwidth

    i am going mad trying to figure out how to troubleshoot my "insufficient bandwidth to maintain the conference" problem. i have just moved from one side of north america to another, and i can no longer video chat with anyone using ichat, nor can i audio chat.
    i have been reading the forums and trying the different fixes, but it seems that the problem is slippery one with no one solution. here is my particular setup, and what i have tried:
    -powerbook g4 running 10.4.3
    -ichat av 3.1
    -isight
    -aliant dsl service with 1.5 mbps download (i've checked using dlsreports speed tests, and i get 1157 kbps down/339 kbps up)
    -comtrend ct-301 adsl modem (which is NOT configurable, according to my service provider)
    -airport express base station with airtunes as my wireless
    i've never had a problem using ichat until now, and only in this location. i know that the problem is specific to my isp, because i can use ichat audio/video just fine at work, in my old apartment (where i had cable internet), and at a friend's house (with dsl).
    -i have tried every streaming speed in quicktime.
    -my ichat bandwidth limit is set to none
    -i've tried changing the login port in ichat from 5190 to 443
    -i've tried plugging in directly to my dsl modem, rather than using airport
    -i have firewall off
    -my service provider tells me that they have custom built-modems that cannot be configured
    -i'm reading the forums for any clue
    -i cannot switch service providers, because cable internet is not supported in my building. besides, my property managers have a contract with aliant, such that only they can provide internet to my building
    what else can i try?
    thank you in advance for any help i can get.
    powerbook g4 Mac OS X (10.4.3)

    Hi,
    This is the first time I have posted to the forum, although I find myself looking for solutions here quite often.
    I am experiencing the same problem as the inital post, and use the same ISP, the same modem, as well as airport express. I have tried all the same solutions mentioned (disable firewall, plug-in directly to modem etc.) with no change in results.
    - I have an imac intel running 10.4.5 with ichat 3.1.2 and built in isight
    - speed test results were 831kbps download and 272 kbps upload
    I tried downloading IPNetMonitor X and scaned the ports as was suggested by Ralph Jones using the IP address of a buddy and received results which said no ports were blocked. I also successfully pinged the same buddy's IP address as suggested.
    Here is the weird twist: I have tested ichat with this same computer at my workplace. We use the same ISP, with airport extreme, and it worked perfectly on the first try. The only difference (apart from the modem model number) is the fact that our account at work is called "highspeed" whereas at home I have the upgraded service called "ultra highspeed". When I upgraded to ultra, I did not receive a new modem- all I had to do was change my user name setting and reset my modem.
    To further test my theory, I tried the ichat test again from two other locations, one using high speed and one using ultra, with the exact same results.
    While I had my father's computer, identical to mine, here at home, I was able to video chat and audio chat between the computers without using Bonjour.
    After a lengthy and frustrating discusssion with my ISP, they have told me that there is no difference with both services other than improved speeds, and that the problem is on my side of the modem, not theirs. I suggested that they send me a different brand of modem, but they don't seem to think it will make a difference.
    I am hoping that this new information might provide a clue, or that other users might be able to offer more suggestions I could try. I'd love to have specific questions to ask my ISP, with hopes that it might lead them to explore the right avenues to help me solve this problem.
    Thanks for any help!

  • Reconciliation Report - those good old days...

    In Oracle Designer/2000 Release 1.1 we had a very good utility, namely to make a Reconciliation Report, that contained all objects in the Designer Repository AND (!!!) in the database. So I was able to find out, which objects I don't have in my Repository, and vice versa(!). I'm looking for this feature in Release 6 - instead of the automatic Renconcile Report, by generating database generation.

    Very bright spammer. Selling logo creation services to Adobe Illustrator users.
    Is Teri too busy to visit? What happened to Bob Hill?

Maybe you are looking for