Activatable RMI - can not get to work

Hi
I am desperate to get activatable RMI to work. I tried the Sun tutorial example and even that I can not get to work.
I would really appreciate it if someone can highlight where my stupidity lies.
Here are my sources:
Remote Interface:
package compute;
public interface Compute extends java.rmi.Remote
void executeTask() throws java.rmi.RemoteException;
Client code:
package client;
import compute.*;
import java.rmi.*;
public class Client
public static void main(String[] args)
if (System.getSecurityManager()==null)
System.setSecurityManager(new RMISecurityManager());
try
Compute comp=(Compute) Naming.lookup("//"+args[0]+"/ComputeIT");
comp.executeTask();
System.out.println("returned");
catch (Exception e)
System.out.println("Exception caught!");
System.out.println(e.getMessage());
Server Implementation:
package actengine;
import compute.*;
import java.rmi.*;
import java.rmi.activation.*;
public class ActServerImp extends Activatable implements Compute
public ActServerImp(ActivationID id,
MarshalledObject mobj) throws RemoteException
super(id,0);
public void executeTask() throws RemoteException
return;
Server Setup program:
package actengine;
import compute.*;
import java.rmi.*;
import java.rmi.activation.*;
import java.util.Properties;
public class ActServerSetup
public static void main(String args[])
try
System.setSecurityManager(new RMISecurityManager());
Properties props=new Properties();
props.setProperty("java.security.policy",
"/u/pretora/java/rmi/actsrv/security.policy");
ActivationGroupDesc.CommandEnvironment ace = null;
ActivationGroupDesc agd=new ActivationGroupDesc(props,ace);
ActivationGroupID agi=ActivationGroup.getSystem().registerGroup(agd);
// ActivationGroup.createGroup(agi,agd,0);
String location="file:/u/pretora/java/rmi/actsrv/";
MarshalledObject data=null;
ActivationDesc ae=
new ActivationDesc(agi,"actengine.ActServerImp",location,data);
Compute cri=(Compute)Activatable.register(ae);
System.out.println("Remote reference obtained");
Naming.rebind("ComputeIT",cri);
System.out.println("Remote reference bound to registry");
// System.exit(0);
catch (Exception e)
System.out.println("ActServerSetup caught "+e);
e.printStackTrace(System.out);
If I run the lot (rmiregistry and rmid (with security pol!)) I get the following exception on the server side:
java.io.StreamCorruptedException: InputStream does not contain a serialized obje
.at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:855)
.at java.io.ObjectInputStream.<init>(ObjectInputStream.java:174)
.at sun.rmi.server.MarshalInputStream.<init>(MarshalInputStream.java:102)
.at sun.rmi.server.ActivationGroupInit.main(ActivationGroupInit.java:52)
the client side just times out:
failed to activate object; nested exception is:
java.rmi.activation.ActivationException: timeout creating child process
It does work if I uncomment the 2 commented lines in the server setup progam and let rmid use the setup program's JVM to instantiate the ActServerImp.
Any ideas much appreciated. Thanks

I finally found my problem. By changing the codebase string in ActServerSetup.java from file:/// to http:// URL, I was able to see in Apache HTTP server's log the 404 errors for my interface classes. The line that read
String location="file:/u/pretora/java/rmi/actsrv/";
had to be changed to
String location="file:///u/pretora/java/rmi/actsrv/ file:///u/pretora/java/rmi/common/";
Now I am all set.
thanks

Similar Messages

  • Hello, I use MAC AIR OSX 10.6.8 and have Adobe CS2, that I was using 2 years ago on my older computer. I stopped using it because it would close down in the middle of work. Now I would like to reinstall it on the MacAir but I can not get it working. It te

    Hello, I use MAC AIR OSX 10.6.8 and have Adobe CS2, that I was using 2 years ago on my older computer. I stopped using it because it would close down in the middle of work. Now I would like to reinstall it on the MacAir but I can not get it working. It tells Adobe doesnT support my System. But I can not update my old version or activate it. What can I do?

    The mac you want to install photoshop cs2 on is running mac os x 10.6.8 Snow Leopard?
    (photoshop cs2 won't run on intel macs with mac os x newer than snow leopard)
    Did you ever have cs2 installed on this particular computer before?
    If the problem is that you already installed cs2, but it won't activate, that's because adobe took the activation servers offline for some older adobe products such as cs2.
    You'll need to use the non activation version of cs2 from here and the supplied serial number:
    Activation server shut down for Creative Suite 2, Acrobat 7, and Macromedia products

  • Flex 4 - Can not get ADG working

    Hello,
    I have just downloaded flex 4 SDK (flex_sdk_4.0.0.14159_mpl) and Flash Builder 4.
    I have created a test prroject and can not get it working with Advanced Data Grids.
    Here is my set up:  Created Project called Test, this contains one MXML file that contains an Advanced Data Grid:
    <fx:Script>
            <![CDATA[
                import mx.collections.HierarchicalData;
                [Bindable] private var _test:HierarchicalData;
            ]]>
    </fx:Script>
    <mx:AdvancedDataGrid id="test" dataProvider="{_test}">
       <mx:columns>
           <mx:AdvancedDataGridColumn headerText="COL_A" />               
           <mx:AdvancedDataGridColumn headerText="COL_B" />               
           <mx:AdvancedDataGridColumn headerText="COL_C" />               
        </mx:columns>
    </mx:AdvancedDataGrid>
    This works Okay.  I then include a libary into the project, the libary, also built with the same SDK, contains a class that contains nothing but one single method that does nothing:
    <mx:Canvas xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx"
               width="100%" height="100%">
        <fx:Script>
            <![CDATA[
                import mx.controls.advancedDataGridClasses.AdvancedDataGridColumn;
                private function test(col:AdvancedDataGridColumn):void { }
            ]]>
        </fx:Script>
    </mx:Canvas>
    Launcing now causes the error
    TypeError: Error #1007: Instantiation attempted on a non-constructor.
        at mx.controls::AdvancedDataGridBaseEx/getSeparator()[E:\dev\4.0.0\frameworks\projects\datav isualization\src\mx\controls\AdvancedDataGridBaseEx.as:4618]
        at mx.controls::AdvancedDataGridBaseEx/createHeaderSeparators()[E:\dev\4.0.0\frameworks\proj ects\datavisualization\src\mx\controls\AdvancedDataGridBaseEx.as:4660]
        at mx.controls::AdvancedDataGrid/createHeaderSeparators()[E:\dev\4.0.0\frameworks\projects\d atavisualization\src\mx\controls\AdvancedDataGrid.as:2428]
        at mx.controls::AdvancedDataGridBaseEx/drawSeparators()[E:\dev\4.0.0\frameworks\projects\dat avisualization\src\mx\controls\AdvancedDataGridBaseEx.as:4574]
        at mx.controls::AdvancedDataGridBaseEx/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\ datavisualization\src\mx\controls\AdvancedDataGridBaseEx.as:2119]
        at mx.controls::AdvancedDataGrid/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\datavi sualization\src\mx\controls\AdvancedDataGrid.as:2899]
        at mx.controls.listClasses::AdvancedListBase/validateDisplayList()[E:\dev\4.0.0\frameworks\p rojects\datavisualization\src\mx\controls\listClasses\AdvancedListBase.as:3468]
        at mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framewo rk\src\mx\managers\LayoutManager.as:663]
        at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:718]
        at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1072]
    Removing the method in the libary project alivates the problem.  But I can not see why this is a problem in the first place!!??!?!?!?!?!?!?
    Can anyone help. this is really weird.

    I'm getting the same error. This is due to a bug in AdvancedDataGridBaseEx.  The offending code is:
                var headerSeparatorClass:Class =
                    getStyle("headerSeparatorSkin");
                sepSkin = new headerSeparatorClass();
    if getStyle returns null then you will be trying to instantiate  headerSeparatorClass is going to cause the "Instantiation attempted on a non-constructor" error.
    Apparently someone thought that the headerSeparatorSkin would never be null.

  • My printer is on line i just can not get it working on my laptop

    my printer is on line i just can not get it working on my laptop

    Hi @murphyett , 
    Thank you for visiting the HP Support Forums and Welcome. I have read about your HP Printer and not working Wirelessly. Here is a link to the HP Print and Scan Doctor. The HP Print and Scan Doctor will run a check on your system.
    What is the model of printer? I would be happy to assist if needed as there are many models of HP Printers I would need the model number. How Do I Find My Model Number or Product Number?
    Please respond with which Operating System you are running:
    Which Windows Operating System am I running?
    Please let me know.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Static NAT pass-through; can not get to work

    I am not having any luck getting a static NAT pass-through to work.
    BM3.8/NW6.5 all patched to the latest patches (no betas). IPFLT is NOT
    loaded.
    My internal network on one LAN all have 10.100.xxx.xxx private addresses.
    Dynamic NAT works great.
    I have secondary public IP addresses bound to my public NIC. Static NAT
    mapping between the secondary public IP addresses and the couple of
    individual private addresses work just fine. In other words, all has been
    working fine.
    I need to give one of those internal resources its public IP address
    (change it's private to its public).
    OK, I went into the NAT table and changed the proper public <-> private to
    public <-> public (identical addresses). I changed the internal computer
    to it's public address/mask with the same default gateway the server is
    using. The internal computer can now only ping itself; can't even ping
    it's default gateway. I did reinitialize, and also restarted. I can not
    get the pass-through connection to work.
    Any thoughts will be well received.
    Bob

    Robert,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • HT1420 how do i Deauthorize a computer that has had the hard drive lock up and can not get it working

    how do  i deauthorize a computer that has had the hard drive lock up and can not get it working

    You can only deauthorise individual computers directly on them. Otherwise if you've reached the 5 computer limit, then you should be able to log into your iTunes account and 'deauthorise all' (which you can only do once every 12 months) and you can then (re-)authorise up to 5 computers : authorising and deauthorising.

  • Can not get Netboot working across subnets

    On the same subnet all my images work correctly, but once I try to netboot form a different subnet it doesn't work anymore.  I am correctly using the bless command, and I have tried both specifying the server (to get the default image) and specifying the booter file (to get the specific image).  If I just use the --server option the log shows BSDP inform and BSDP ACK[LIST] but nothing after that... there is no select.  Again, on the same subnet it will use select and work normally.  If I use the --booter option then sometimes I can get the netboot to start but I get an error (for example, AST says there was a network error and NetInstalls do not start).
    I do know that this used to work, and in the process of changing computers and upgrading to Lion server it stopped working.  Any ideas?

    Depending on your network configuration it maybe that the simplest option is to multi-home your NetBoot server so it is visible on each subnet. Multiple servers is of course another option.
    However have a look at the information on the following links and see if any of it helps.
    http://macadmincorner.com/3-ways-to-netboot-across-subnets/
    http://afp548.com/forums/topic/netboot-across-subnets-intel/

  • Can not get relay working. Airport utility gets confused!

    I am trying to help my friend setup his two Airport Extremes, using one as a relay. I am not sure what the model numbers they are because I am back at my home right now and I do not have access to them. They are both white and they both have USB ports.
    I spent about four hours last night trying to set up one of the base stations as a relay with no success. I kept getting an error message (in the network system preferences control panel) on the one that I was trying to set up as a relay that said it could not connect to the internet because it was using a self-assigned IP address. I could not figure out where is was pulling the IP address from. It was in a range much different than what it should have been. I was expecting to see something in the range of 10.0.0.5 and it was using an IP address that began with 67.x.x.x. Any suggestions on how to resolve this problem?
    While I was trying to program the base stations I named them "Downstairs" and "Upstairs" so I could easily tell them apart. While trying to set up the relay it seemed like the Airport Admin Utility (version 4.2 under Panther) kept getting confused as to which one it was programing. I would change certain settings on one of the base stations and after quitting out of the utility and reopening it I would notice that the settings got applied to the wrong one. This happened numerous times and I can assure you that it was not a user error.
    Some basic questions about how the Airport relay works.
    When a relay is setup and working properly how does the network appear in the airport signal meter in the menu bar, do I see both airports or do I just see the main airport? If when the relay is setup properly you only see the main airport (instead of seeing the actual name of the relay airport in the menubar) how can you tell which airport you are actually connecting to?
    If you walk around the house with a laptop will the computer automatically connect to the strongest airport signal or will it lock into just one of them and stay there?

    Take a look at the diagram in this article:
    http://docs.info.apple.com/article.html?artnum=107454
    Note that Apple has specific terminology for base stations in a WDS setup:
    - a main base station. This is usually the one connected to the incoming broadband internet service
    - a remote base station. This wirelessly extends the range of either a main base station, or a relay base station.
    - a relay base station. This connects wirelessly to a main base station, and can itself have remote base stations associated with it.
    Your friend has two Airport Extremes. I suspect one is being used as the main base station. Therefore the second is being set up as a remote base station (NOT a relay) using Apple's terminology.
    What I suggest:
    1. unplug the second Base Station from power
    2. use the Airport Admin Utlity to view the configuration of the main base station. Under the Airport tab, make sure the box next to "create a closed network" is NOT checked. Under the Access Control tab, remove ALL entries. Under the WDS tab, remove ALL entries and uncheck all boxes. Update settings to the base station.
    3. do a hard reset of the second base station per:
    http://docs.info.apple.com/article.html?artnum=107451
    4. make sure both base stations and the Airport card equipped Mac being used to perform the configuration are all (for now) located in the same room.
    5. run the Airport Setup Assistant. Follow its guidance to configure the second base station as a new base station that "extends" the existing wireless network created by the main base station.
    That's it!
    In the most common setup, the remote base station will have the same wireless network name and will transmit on the same channel as the main base station. Under the Airport menu you will only ever see ONE wireless network. You can use a wireless network "sniffer" application - it will tell you that there are in fact two different access points and tell you which you are connected to. A WDS network is seamless - as you walk between base stations, the mobile computer will automatically associate with the base station from which it can get a reliable signal connection.

  • Flash player on a htc 8x . windows device can not get to work

    need help with installation. Some games I want to play for example on Facebook . Require adobe flashayer I go to download and nothing happens. On adobe site even again nothing happens . Tried to pull up device capatibility list for mobile devices didn't bring it up. Is there an app I can use I did not find anything that I could see for this in my market place
    can someone help.me out .

    Adobe stopped all development of Flash for Android devices in 2012. There are alternatives, but you'd have to check Android forums http://forums.androidcentral.com/google-nexus-7-tablet/225113-alternative-flash.html

  • How do I get to talk with someone?  You sold me a product I can not get to work and I want my money back!

    I have tried to contact customer support and have waited forever.  I am very frustrated and just ready to call it quits.

    This is a user to user forum.  We are customers just like you. You will need to contact Adobe for a refund if that is your desire:
    Contact | Adobe
    If you wish to describe your problem, maybe somebody here can offer a solution.

  • IVE PAY FOR MY PACKAGE BUT CAN NOT GET IT WORK

    IT KEEPS TELLING ME TO UPDATE

    Hi Valentine,
    Did you subscribe to one of the Acrobat online services? If so, have you tried signing in with your Adobe ID and password? That message can often mean that you just haven't signed in yet. (It can also mean that your subscription hasn't processed yet, so you may want to log in to www.adobe.com and look under My Subscriptions and Services. Make sure that the subscription you purchased is "Active."
    Please let us know how it goes.
    Best,
    Sara

  • Have Adobe's Digital Edition, now I wanted per bookcase the books in a list printing, but printing can not activate. I cannot get it working to someway to print lists. Please tell me what the cause is that this fails or what should I change to get the lis

    have Adobe's Digital Edition, now I wanted per bookcase the books in a list printing, but printing can not activate. I cannot get it working to someway to print lists. Please tell me what the cause is that this fails or what should I change to get the lists be printed

    Hello, Edward and thank you for your note.
    I read through the thread you mentioned and it seems that people are having a lot of problems with the iCloud clients, so we're not alone, but the unique issue in my case is the failing email address vs. the working perfectly email address.
    After reading your message tonight, I tried my setup again with the preferred Apple ID (the one without the "." between the names), and for the first time ever, IT WORKS. Mail app configured the servers both send and receive as p01-smtp.mail.me.com and p01-imap.mail.me.com. For the first time, I'm able to send and receive into the Mail app, create mailboxes, move messages into and out of mailboxes, keep Sent messages, etc.
    I had a 50-minute support chat with MobileMe support via ExpressLane on Monday afternoon. They couldn't resolve my issue but passed me on to escalation. I was told to expect to get an email from advanced support by this afternoon, but none has arrived. However, so far tonight -- and I will check again tomorrow several times before declaring victory -- it looks like something has been fixed on the Apple end to make things work.
    I will report back after I do some additional testing tomorrow to make sure the fix is real and is solid...and before I let my friend, the new Mac user, know the good news.
    Regards,
    Mike

  • Can not get Text-to-Speech to work

    I can not get Text-to-Speech to work. In "Settings", I can go into "Voice input & output", then to "Voice Output; Text-to-speech settings" and then to "Install voice data; Install the voice data required for speech synthesis" but it is "grayed out". I have downloaded Pico TTS several times and I have soft-reset and hard-reset the device several times. Still no text-to-speech
    Any thoughts on what I can do to get text to speech to work?

    posted11 wrote:
    Odd.... I tried both Vlingo and Handcent and neither of those did Text to speech either. Very odd. I am using same Bluetooth headset that worked on my other HTC device.
    Any other thoughts?
    Did you activate InCar in Vlingo?  I just checked this and it works for me.  Once you activate InCar, you should hear "Vlingo InCar".
    If Vlingo InCar doesn't work for you, have you considered getting another Bluetooth headset that has the ability to read texts to you, like the Blueant Q2?

  • I have a pioneer 50 inch plasma   I purchased new from the company back in 2005.   I tried to hook up an Apple Tv to the pioneer receiver that came with the TV.   I can not get it to work.   The receiver has two HDMI  inputs in the back.

    I have a pioneer 50 inch plasma + I purchased new from the company back in 2005.   I tried to hook up an Apple Tv to the pioneer receiver that came with the TV.   I can not get it to work.
    The receiver has two HDMI  inputs in the back.  However they say they are not for PC's.  Furthermore they must be set up by going to the home menu.    I tried everything, but I can not get the receiver to talk to the Apple TV. I even tried a connector that uses an HDMI to the Apple TV that has the other side of the cable as 5 RCA cables.  I could not get the receiver to see the Apple TV.   I have a newer TV in the house, it has no problem talking with the Apple TV.  But this older system seems to be handicapped in its ability to talk with the newer Apple TV system.
    My Email is [email protected] 
    Do you have any suggestions
    Thanks
    Bob

    I could not access the Apple TV on the television.   If I put the Apple TV directly into by TV, I have an external sound system (entertainment system), therefore I worry that I would by pass the audio.
    Thanks for taking your time to attempt to help!   Any more suggestions would be greatly appreciated.
    Bob

  • HT204053 I can not get my Icloud to work on my iphone and ipad since i set up my new email addy on Apple Icloud won't let me change it on those devices ...Plz Help Shey

    I can not get my Iphone or ipad to except the new email address that is now on Apple so nothing will back up or work on Icloud on those devices Thx plz help Sheyw

    With iCloud on the phone, you will need to remove the account, then add it back in with the new address.  It is a bit awkward, but the only way to change the AppleID for the iCloud account login is to delete the account then add it back with the new credentials.  You won't loose anything as the iCloud account is still the same one, you just need to re-associate the AppleID credentials for it on the iPhone.

Maybe you are looking for

  • Active Vendor list

    Dear Team, I need Vendor list who has done transaction from period - 2001 -2013 I know it can be achieved through table BSIK and BSAK tables but this table has lot of table and giving dump. Is there any other method to get the vendor list of has done

  • ICal attached file gone wrong

    I use file attachements a good bit in iCal, but recently, when I go to view them I get this: http://emberapp.com/radmacdaddy/images/screen-shot-2010-02-22-at-11-36-49-am Seems the links are messed up. What might correct this other than having to rebu

  • 4/14/2015 - Release - AIR 17 Runtime and SDK

    Today we're pleased to announce that the next version of AIR is available for immediate download.  AIR 17 adds both new features and important bug fixes for both desktop and mobile platforms! Below are some of the key features and benefits of AIR 17.

  • Oracle 11gR2 on Windows 2008 R2 - access denied error

    I just installed 11gR2 on a Windows 2008 R2. When I tried to unsecure the dbconsole I noticed that an "Access is denied" error is returned, so I am not able to use the stop/start/unsecure command from emctl. I am able to log in into the db and asm, b

  • Infopath Approval With Multiple Approvers

    I am interested in having multiple people approve forms.  The user will select the approvers using a people picker (tied to our active directory.)  I would like to know if it is possible to have the form be approved my multiple people at the same tim