More Stub/unmarshalling errors - please help

Dear all,
I'm having great trouble getting an RMI application application to work.
Basically, I have the RMI server on a Sun, and the client on a W2k machine. I compile the stuff on the Sun machine as normal, use rmic etc.
In a new shell window, I type "rmiregistry".
Then in another new shell, I type
"java -Djava.rmi.server.codebase=http://joint-elt/ -Djava.security.policy=permit eltServersideConnection"
(joint-elt has the IP address 10.16.58.7, and the permit file simply grants access to everyone). My generated Stub.class is in the htdocs directory of my apache server (running on port 80), and can be downloaded using a web browser, ftp etc., by typing http://10.16.58.7/ in IExplorer etc.
On my client machine, if I type "java rmiserver 10.16.58.7" (where I have the target IP address as an input argument, and rmiserver is the connecting application), I get:
"error unmarshalling return: nested exception is:
java.lang.ClassNotFoundException: eltServersideConnection_Stub (no security manager: RMI class loader disabled)"
If I have the stub file in the same directory on my client machine, then this will work, as it doesn't have to download it from the server.
I also get the same problem if I specify port numbers 80, 2001 (rmi port) in the URLs above.
In my server side implementation, I create a new RMISecurityManager(),
so what is going on?
Thanks for all your help
Paul

OK...here goes....first of all, I've done a printenv on my server machine and I can't find any reference to the CLASSPATH. Hmm.
The Sun machine has an interface to a graphics routine that we
use, and we are trying to control it remotely, hence the use of RMI.
Right, on the Sun, this is what I do:
create a policy file in the directory (open access):
javac *.java
rmic eltServerSiceConnection (this is the server side class that contains main(), sets up the SecurityManager, and implements the interface class)
copy the generated eltServersideConnection_Stub.class into the root directory of my webserver (apache, listening on port 80).
Start httpd if not running already.
cd into the source/compiled file directory
run rmiregistry
open another shell and cd into this directory:
run
java -Djava.rmi.server.codebase=http://joint-elt:80/ -Djava.security.policy=permit -Djava.security.manager eltServersideConnection
(I don't bother with -cp as I don't have a classpath set up)
(joint-elt is the name of the server, IP is 10.16.58.7)
I get the message that eltServersideConnection is bound in the registry.
Now, on the CLIENT machine, I do the following:
javac *.java (including the interface file, which is common to both server and client)
create a security policy file (again, allow access to all).
run the following:
java -Djava.security.policy=permit -Djava.security.manager rmiserver2 10.16.58.7
(where rmiserver2 is my client side code and I specify the IP address of the target machine as an argument).
And then I get the access denied message!
ArgggggGGGGgGgghhhhhh!

Similar Messages

  • More functional program error-please help help

    Hi
    how do I install acrobat when both acrobat pro 8 and 9 say that there is a more functional program installed ....does anyone know how to solve this without reinstalling my whole system for operating system up.
    there must be some very clever acrobat users that have solved this
    regards
    Ross

    Hi Mike,
    thanks for attemting to resolve this perpexing bug from adobe.
    I dont think deactivation was an issue because I I hadnt activated it.
    I have cs4 master collection installed and have been trying again with adobe 8 and abobe 9 pro ext but no success.
    I also tried uninstalling aver adobe product and then using an uninstalled to remove anything it could find the microsoft installer cleanup ....the problem with the microsoft one is it want to go to work on office 2007 and surely abobe is an add on to office not the other way round.
    Ross

  • Windows - No Disk Error - Please help!

    Windows - No Disk Error - Please help!
    Hi,
    I have the following set up:
    * Lenovo T-61p
    * Windows XP Pro, SP 3
    * HP Photosmart 8250 printer (with nothing plugged into the various card readers, and USB slot in the printer)
    I am getting the following error:
    Windows - No Disk
    Exception Processing Message 0xc0000013 Parameters 0x75CE023C
    0x84C40C84 0x75CE023C
    I have done a lof experimenting and thru process of  elimination, and believe I have determined that this only happens when the HP Photosmart 8250 printer is plugged in to the USB slot of the computer.
    I can stop it from happening by safely removing hardware, and removing the drive that the 8250 creates on your computer when you plug it in.  In my case, this is drive E.  I'm guessing if there was something in the the various card readers, and USB slot in the printer, that's what those would be, but I don't those use those functions of the printer.
    I understand there is more at work than simply the printer, because I did not used to get this error, so some software changed as well, that is scanning all ports, and finding a drive that has no disk, and producing the error.
    A simple google search finds a lot people all over the world having this problem, and are solving it in different ways, because the suspected source is different: Norton, HP, etc.
    I have tried everything I have read, and the only thing that works was my own idea, of manually safely removing the drive the printer creates each time I plug in the printer.
    Anyone every any better, more permanent solutions?  Or know what the real root of the problem is?  What is scanning all the drives and being showing an error message because it found an empty drive?
    Thanks and Happy Holidays/New Year!

    I've been getting the same error on my 4G nano for the past week. I've had my nano for about a month and the first few weeks were fine. Tried it on 2 different computers (Vista and XP) and same problem. Tried it on a 3rd (XP) and it started ok. Problem started coming back after a day.
    I was able to find a quick fix though. I noticed that sometimes the message says something like "iexplore.exe... no disk..." even if I don't even use IE. What I do is end iexplore.exe on task manager before running iTunes and syncing my nano. I don't get the error whenever I do this, but one drawback is that the contents of my nano suddenly pops up in a window - even when disk use is not enabled.
    I've reset/restored my nano dozens and dozens of times to make sure it's clean. Leads me to believe it's a driver issue. Either that or I have a friggin malware problem I can't seem to find.
    I'll be posting updates every now and then. I'm no expert so I'm hoping an Apple expert also steps in to give some input.

  • My ipod generation 5 will not come out of recovery mode. i was simply updating my software and this happened. it will not let me restore it comes up with and error. please help, thanks.

    my ipod generation 5 will not come out of recovery mode. i was simply updating my software and this happened. it will not let me restore it comes up with and error. please help, thanks.

    Hey erinoneill24,
    Thanks for using Apple Support Communities.
    Sounds like you can't update your device. You don't mention an error that it gives you. Take a look at both of these articles to troubleshoot.
    iPod displays "Use iTunes to restore" message
    http://support.apple.com/kb/ts1441?viewlocale=it_it
    If you can't update or restore your iOS device
    http://support.apple.com/kb/HT1808?viewlocale=de_DE_1
    If you started your device in recovery mode by mistake, restart it to exit recovery mode. Or you can just wait—after 15 minutes the device will exit recovery mode by itself.
    Have a nice day,
    Mario

  • I cannot use iCloud on Windows 7, as it won't recognize my apple ID when i try to sign in to icloud it i get error saying "you can't sign in because of a server error (please help some one)

    I cannot use iCloud on Windows 7, as it won't recognize my apple ID when i try to sign in to icloud it i get error saying "you can't sign in because of a server error (please help some one)

    Although your message isn't mentioned in the symptoms, let's try the following document with that one:
    Apple software on Windows: May see performance issues and blank iTunes Store

  • I was updating software and suddenly my IPHONE  started asking for I tunes on mobile screen ,  how can  i  get by screen back or How i can restore without loosing data , I m more worried about data , Please help in resolutio

    i was updating software and suddenly my IPHONE  started asking for I tunes on mobile screen ,  how can  i  get by screen back or How i can restore without loosing data , I m more worried about data , Please help in resolutio

    What exactly are you seeing on the phone's screen ? If the iTunes icon and cable then the phone is in recovery mode, in which case it's too late to take a new backup or to copy any content off the phone - you will have to connect the phone to your computer's iTunes and reset it back to factory defaults, after which you can restore to the last backup that you took or just resync your content to it

  • I upload my iPhone 4s and it went to recovery mode i have tried to exit recovery mode by pressing the home  and the power bottom but it doesn't work what more can i do please help me

    i upload my iPhone 4s and it went to recovery mode i have tried to exit recovery mode by pressing the home  and the power bottom but it doesn't work what more can i do please help me

    http://support.apple.com/kb/ht1808

  • HT201442 I did this but still i am getting the same error , please help me .

    I did this but still i am getting the same error , please help me .
    <Email Edited by Host>

    Look at http://support.apple.com/kb/ts4451
     Cheers, Tom

  • I am not able to update my iphone 4 ,when ever i tried to update it its show 1309 error...and at times 9006 error ,please help me ..

    i am not able to update my iphone 4 ,when ever i tried to update it its show 1309 error...and at times 9006 error ,please help me ..

    Hey alkarim2008,
    If you are having an issue with being unable to update or restore your iPhone, I would suggest that you troubleshoot using the steps in this article - 
    Resolve iOS update and restore errors in iTunes - Apple Support
    Thanks for using Apple Support Communities.
    Happy computing,
    Brett L 

  • My iphone won't pass the connect to itunes. when i try to restore is says that there is an error. please help!

    hi my iphone is broken. it won't pass the connect to itunes. when i try to restore is says that there is an error. please help!
    thanks,
    jg2013
    <Subject Edited by Host>

    Hello, 02633. 
    Thank you for visiting Apple Support Communities. 
    If your iPhone is disabled, you will need to process the steps in the article below.
    iOS: Forgotten passcode or device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    Cheers,
    Jason H.

  • HT4623 I have updated my iphone with the current software but it is showing you need to connect to  of itunes to activate your phone, when i did that it is continuously showing an error.please help me to get through.

    I have updated my iphone with the current software but it is showing you need to connect to  of itunes to activate your phone, when i did that it is continuously showing an error.please help me to get through.
    Kindly Activate my phone.

    Rajan Gupta wrote:
    ...it is continuously showing an error.
    See here  >  http://support.apple.com/kb/TS3424
    Also see this discussion.
    https://discussions.apple.com/message/21189708

  • I need the drivers for earl 2011 macbook pro 13 inch i7 4 gigs for windows 7 64 bits i tried downloading with bootcamp butt it never completes allways ends up with an error please help

    i need the drivers for earl 2011 macbook pro 13 inch i7 4 gigs for windows 7 64 bits i tried downloading with bootcamp butt it never completes allways ends up with an error please help if any one has the drivers or knows were i can download them

    Doug...
    If you don't have it for reference, the manual might come in handy > US/Boot_Camp_Install-Setup.pdf
    After it loads, Command + F to find information regarding the drivers.

  • HT201210 hi i just bought my new iPhone 4s yesterday and when u opened it was not updated so when i tried SO MANY TIMES to update it on the devise and on my new mac it said that there was a unknown error please help me :)

    hi i just bought my new iPhone 4s yesterday and when u opened it was not updated so when i tried SO MANY TIMES to update it on the devise and on my new mac it said that there was a unknown error please help me

    Please tell us what kind of computer you have, what operating system and what version of iTunes. Not just "the latest version of iTunes", the exact version number.

  • I can't download the apple ios 5 for the ipad. after downloading around 10 % an error no. 3259 occurs. it's a network error. please help . it's urgent. i am having apple ipad 2 3G wifi

    i can't download the apple ios 5 for the ipad. after downloading around 10 % an error no. 3259 occurs. it's a network error. please help . it's urgent. i am having apple ipad 2 3G wifi.

    i switched off all the security settings and all the firewalls.
    i m unable to install any of the app on the ipad
    so i saw the apple support and it said to update the older version of my ipad.
    and niether am i able to download the update nor am i able to download any app and install it in my ipad2
    i also tried to download an .ipsw file (ios5 update) from torrentz bt i am also unable to install from that as itunes rjects that file and gives an error. and also tries to delete that file. plz anyone help urgently.

  • I have update my 3g software to 4.21 but its not working when it come to restoring firmware its show a error please help me out

    i have update my 3g software to 4.21 but its not working when it come to restoring firmware its show a error please help me out

    That error shows up when a phone is jailbroken or you are trying to downgrade the iOS version. Neither of which is supported by apple.

Maybe you are looking for

  • "getting a javascript error while validating a JSP"

    Hi folks, Someone help me out with this problem. I am getting a javascript validation error when I am trying to validate a JSP. if(eval("document.frmAdminSowAssignValues.chkSowEmployee"+i).checked) If I try to load a JSP page on a browser, it is givi

  • How do I delete a signature in Acrobat XI? Form section doesn't show

    I am trying to delete a signature and it appears from other posts that this is done throug the "Forms" section under Tools. However, under Tools the only options are Export PDF, Create PDF, Send Files, and Create Files. I thought the initial problem

  • Alternative approach to tree business model

    Hi JHS Team, When generating tree-forms with JHeadstart, we need two VO instances in the model for each node we want to present: one for rendering the Tree and another to show on the form, after the user selects a node. I understand that this is nece

  • Multi language Support - JDeveloper 11.1.1.0.0

    Hello everyone, We have an application developed using Rich ADF Faces(JDeveloper 11.1.1.0.0). We have to do a POC in order to support multi language in the input text labels for the JSF Screens. Any ideas please?

  • Contact Center anywhere When running the TCPIPBUS in debug mode

    hi all, i am not able to make the outbound call,through cca interface is there any way how i can debug to make the outbound call. wen i keep th etcpipbus in debug mode "it's not showing any erors " http://www.onsip.com/onsip-articles/what-is-my-sip-a