RMI only for applets?3F

I have spent couple of days trying to make my client/server application to work. I use RMI and both sides are ready and do execute, but I can't make the client receive the Stub file. All I get is a ClassNotFoundException telling me that the "myproject.server.MyImpl_Stub.class" can't be found. What confuses me is that it is searched from the server (Amongst the other server classes!?), but I don't seem to be able to change (or point) the location where it should be looked for...
I just read that RMI is primarly for applets, and now I'm feeling a bit worried if I can't make my application work at all... This is (soon to be was) supposed to be my course project and I have worked pretty hard on this.
I really hope that the problem is only with setting the codebase. If so, I hope someone could tell me how to point the right place* from the server for the RmiRegistry -> client. I have also noticed that RMIClassLoader class is somehow related to this topic. Should it be used somewhere? How?
* If the path is for example: c:\java\my_project\server\
I do really appreciate all the help and advice I can get. Thank you in advance!
- Ville
do really appreciate all the help and advice I can get. Thank you in advance!
- Ville

Dude, why are you just copying other people's posts?

Similar Messages

  • RMI only for applets?

    I have spent couple of days trying to make my client/server application to work. I use RMI and both sides are ready and do execute, but I can't make the client receive the Stub file. All I get is a ClassNotFoundException telling me that the "myproject.server.MyImpl_Stub.class" can't be found. What confuses me is that it is searched from the server (Amongst the other server classes!?), but I don't seem to be able to change (or point) the location where it should be looked for...
    I just read that RMI is primarly for applets, and now I'm feeling a bit worried if I can't make my application work at all... This is (soon to be was) supposed to be my course project and I have worked pretty hard on this.
    I really hope that the problem is only with setting the codebase. If so, I hope someone could tell me how to point the right place* from the server for the RmiRegistry -> client. I have also noticed that RMIClassLoader class is somehow related to this topic. Should it be used somewhere? How?
    * If the path is for example: c:\java\my_project\server\ --> java.rmi.server.codebase=???
    I do really appreciate all the help and advice I can get. Thank you in advance!
    - Ville

    I have already read some tutorials. And I have understood that the client is the one which needs the stub(s), but the server is the one to provide it/them. Right? I'm not sure what you mean by starting the server separately with the stubs, but that is, what I think, I have done.
    I copied my server classes so that they where with client at corresponding place given by ClassNotFoundException. Now I got ClassCastException!? I think that this proves that the instance sent by rmiregistry is telling the client to ask for the stub from the wrong place.
    This is what I think how stubs are used and what they are...
    Server registers an remote object for rmiregistry with Naming.(re)bind(). Rmiregistry then gives an instance (of this objects stub) for the client when it does its Naming.lookup(). After that client requests the stub.class from given location (which is given by the servers codebase setting [only for applets??]), and then the stub.class is downloaded for the client. When this is done, the stub is used by the client to make calls for the servers remote object, to do what the client asks it to do (if allowed).
    Is this far from the truth?

  • Is this forum only for applet developers?

    Hi all,
    I wanted to know if this forum is only for the applet developers.
    If so can anyone please tell me where can I get answers for questions about adapting the JCVM to a smartcard OS?
    Thanks
    Priti

    That would involve dealing with the manufacturers since you are dealing with masks. I don't know of any mask engineers that are in here. I believe either Infinion or Philips provides a kit for masks development. Also check with IBM's JCOP, it's the mask commonly used on major vendor cards.

  • Question on "use java .... for [applet]" option in IE

    posted April 30, 2003 09:27 AM
    If a plug-in is installed, IE includes an option under the advanced tab, similar to this: "use Java 1.4.1_02 for [applet]"
    Im trying to understand exactly what this is. Sorry if what I'm saying is obvious... If your HTML has the [applet] tag rather than the [object] tag, IE will use the sun plug-in? If true, and since the [applet] tag does not automatically down load a plug-in, the client would have to have this plug-in already installed?
    Is is also true that this advanced option in IE does not have anything to do with an applet using the [OBJECT] tag. If the [object] tag is in the html, then the browser will always use the plug-in regardless of whether the IE option is checked?
    Thanks for your help! Soon I'll have this applet technology down, but still many questions...

    New versions of Internet Explorer will automatically grab the Java plugin specified to run applets that are coded on webpages using the <APPLET> tag. The plugin would have had to be pre-installed on the machine - as it will not automatically download the plugin to do this. Only the <Object> tag will do that.
    And yes...this only affects the <APPLET> tag. Any OBJECT tags you will encounter that require a specific JDK will still prompt you to download that if you don't have it and will use that version, regardless of whether that advanced option is selected.
    You can also do some configuation with newer plugins via the icon located in your Control Panel.
    Good luck with applets... just wait until you have to implement one for the Crackintosh. ;-)

  • Jini and Rmi utilisation for a particulary case..

    I have to write a application which is going to connect our server to different hospitals infromatque system.
    The application would provide a user interface in hospital side wich is going to make them able to send us a inventory file(fromated differently for each hospital with their own informatiqe system).
    The application have also to change the the file format befor stored in our data-base(each information have to go to different table)
    My supervisor ask me to look Jini and Rmi technologie for this application..
    So far i read some information about both technologie..but still i'm wondering my self is Jini or Rmi have a real use in this case.
    If your are masterd in those technologie and java networking device woud you help me up ?
    Could you tell me if those technologie have to be realy use in this case or there is other solution with java programming.
    Thank's
    Astiage Ghassemian

    Jini is a high level framework that a computer to easily locate a service provider in a network and get the service. So your case does not need such a framework because in your case, just like most of todays application, the service is provided only by your server and you know where it is and what it does. You just need something a one level lower than Jini that actually does the communication - RMI. Jini runs only top of any other lower level protocol including RMI. Detailed description of Jini:
    Jini technology is an architecture for the construction of systems from objects and networks. The Jini architecture lets programs use services in a network without knowing anything about the wire protocol that the service uses. One implementation of a service might be XML-based, and another RMI-based, and a third CORBA-based. The client is, in effect, taught by each service how to talk to it. A service is defined by its programming API, declared as a Java programming language interface.
    When a service is plugged into a network of Jini technology-enabled services and/or devices, it advertises itself by publishing a Java programming language object that implements the service API. This object's implementation can work in any way the service chooses. The client finds services by looking for an object that supports the API. When it gets the service's published object, it will download any code it needs in order to talk to the service, thereby learning how to talk to the particular service implementation via the API. The programmer who implements the service chooses how to translate an API request into bits on the wire using UPnP, RMI, CORBA, or a private protocol.
    In other words, the Jini architecture uses objects that move around the network to make each service, as well as the entire network of services, adaptable to new strategies over time.

  • Cannot enable TLSv1 only for 1.4.2 and beyond

    Hi,
    I have a webserver that talks TLSv1 only. When the JVM tries to download the jar files for an applet, the JVM only talks SSLv2. I tried to change the "deployment.properties" file to add "https.protocols=TLSv1", and also tried to add "-Dhttps.protocols=TLSv1" for launch parameters. But so far it only worked on one XP machine.
    I have JVM 1.4.2 and 1.5.0 on these machines.
    Also on Mac and Linux I tried similar things and none worked.
    This is a serious issue because some people may want to use TLSv1 only for their https server to enforce more security.
    Anyone has some suggestions? Thanks.
    Fred

    Check out the following thread for details on this issue.
    http://forum.java.sun.com/thread.jspa?forumID=60&threadID=612313

  • I have a game but it only for one apple id and one divece but someone i dont know id play that game and using my apple id and i want to know if u can block them from using ur apple id and also erase all the games they downlode with the apple id

    I have a game but it only for one apple id and one divece but someone i dont know id play that game and using my apple id and i want to know if u can block them from using ur apple id and also erase all the games they downlode with the apple id

    There probably is, but it requires that you be able to use punctuation and write in sentences so that we can understand exactly what you want.
    You can block others from using your Apple ID by changing your password.  There is no way to erase what was already downloaded on to someone else's device, for obvious reasons,

  • SRM Classic - Automatic PO creation in R/3 only for PReqs based on catalogs

    Dear Experts,
    in SRM 7.0 Classic Scenario, i am facing the following question w.r.t. automatic PO creation on the R/3 side:
    Is it possible to have automatic PO creation in R/3 only for those purchase requisition items, that are based on shopping cart items from a third party punch out catalog?
    The idea is, that the requisitioner on the SRM EBP side shops in a catalog. Once the the SC is approved and the purchase requisition is created in the R/3 system, automatically a PO should be created based on that PReq. This would save the time for the buyer, who do not need to pay attention to this document, because the purchase from the catalog guarantees the buyer, that the already pre-agreed conditions are getting applied.
    But PReqs that are based on Free Text shopping cart EBP items must not be taken into account for the automatic PO creation.
    Is there a way to distinguish between the catalo-based and the non-catalog based PReq positions?
    Thank you.

    Hello Ashutosh,
    thank you very much for that idea!
    I would have the following question w.r.t. to such configuration:
    If i configure that the PO creation for complete SC should happen for a certain purchasing group, would it be somehow possible to arrange that when a Catalog item is put into the shopping cart, that only that certain purchasing group gets defaultet? (the idea behind this is, to leave the free text shopping carts to already known purchasing groups and to keep the purchase requisition as the backend object for this configuration. And additionally to create new purchasing groups, that should be linked to the catalog purchases and to POs as the backend objects).
    Thanks again for the help!

  • Automatic PO creation - only for PRs based on catalog SRM/EBP items

    Dear Experts,
    i am facing the following question w.r.t. automatic PO creation:
    Is it possible to have automatic PO creation in R/3 only for those purchase requisition items, that are based on shopping cart/EBP/SRM items that are from a third party punch out catalog?
    The idea is, that the requisitioner on the SRM EBP side shops in a catalog. Once the the SC is approved and the purchase requisition is created in the R/3 system, automatically a PO should be created based on that PReq. This would save the time for the buyer, who do not need to pay attention to this document, because the purchase from the catalog guarantees the buyer, that the already pre-agreed conditions are getting applied.
    But PReqs that are based on Free Text shopping cart EBP items must not be taken into account for the automatic PO creation.
    Is there a way to distinguish between the catalog-based and the non-catalog based PReq positions?
    Thank you.

    Auto PO transaction ME59N comes with huge selection crieteria. If you can distinguish between catelog vs non catalog requisition then it very easy to set up variant to filter non catalog based requistion. you can also think about ehnacement of polulating text fields like Requisitioner or Requirement tracking number  with unque idetifier  in case of non catalog based PR then you can set variant to filter out those requistions..

  • My iPhone was stolen a few days ago. It appears to be offline on the Find My iPhone app. If the person who has it turns it on only for a brief moment and then turns it off immediately, will the location still be found? Once it returns to be

    My iPhone was stolen a few days ago. It appears to be offline on the Find My iPhone app. If the person who has it turns it on only for a brief moment and then turns it off immediately, will the location still be found? Once it returns to being offline will the location still be sent to me? And also, how can I retrieve my pictures from my iCloud?

    Anything is possible.

  • [CC] How to perform a script "foo_beforeSave.htm" only for specific site?

    Since a long time I use a script for automatic text replacements which perform with each save command.
    The script sits in that folder:
    C:\Users\myusername\AppData\Roaming\Adobe\Dreamweaver CC\de_DE\Configuration\Commands\foo_beforeSave.htm
    It works for all documents of all sites.
    The source code (the regex rule is just an example) of the script you find below.
    My question:
    I like to perform a script like this only for a specific site.
    I'm not a programmer. So I don't know where to place the script to reach that target. Or how I have to edit the source code of the script.
    Is there anybody who could help me with that please?
    I would appreciate it a lot. Thanks
    <!DOCTYPE HTML SYSTEM "-//Macromedia//DWExtension layout-engine 5.0//dialog">
    <!-- MENU-LOCATION=NONE -->
    <html>
    <head>
    <title></title>
    <script src="../Shared/Common/Scripts/dwscripts.js"></script>
    <script>
    function canAcceptCommand(){
        return true;
    function getFileName(url) {
      var index = url.lastIndexOf('/');
      if (index != -1) retVal = url.substring(index + 1);
      else retVal = url;
      return retVal;
    function runCmd(){
        var dom = dw.getDocumentDOM();
        dom.synchronizeDocument();
        var path = dw.getDocumentPath('document');
        if(getFileName(path) != 'foo_beforeSave.htm'){
            var docEl = dom.documentElement;
            var tempDoc = docEl.outerHTML;
            tempDoc = tempDoc.replace(/&bdquo;/g,'„');
            tempDoc = tempDoc.replace(/&#8222;/g,'„');
            tempDoc = tempDoc.replace(/&ldquo;/g,'“');
            tempDoc = tempDoc.replace(/&#8220;/g,'“');
            tempDoc = tempDoc.replace(/&rdquo;/g,'”');
            tempDoc = tempDoc.replace(/&#8221;/g,'”');
            docEl.outerHTML = tempDoc;
    </script>
    </head>
    <body onLoad="runCmd();">
    </body>
    </html>

    Well, the posted script is a full working one.
    I just search for a way to limit the range of the script to the actual site.
    Therefore it is unimportant, which regex is in the example.

  • SRM 4.0- How to set the default values for product type (01) only for SC

    The radio button “Service” should not be visible.
    Also for search help (e.g. search for internal products) where a search should only be possible for product type 01 (goods). The system should not display the product type and internally always search for goods only.
    How to set the default values for product type (01) only for SC
    We needs to use Search help BBPH_PRODUCT which having parameter PRODUCT_TYPE
    Here we can set defalut value 01 but it is not correct one since same search help is using several places.
    We need to limit the search help results only for SC.
    Kindly help out me ASAP.

    The easiest way to set defautl values is to edit the batch class.
    Goto the characteiristic and go to update values.
    In here you probably have something like 0 - 100 as a spec range.
    On the next line enter the default value within this range.  At the end of the line, click in the box in the column labelled "D".  This indicates the defautl value for the characteristic.
    If you need to you can do this in the material classification view as well.
    Just to be clear, these values will only show up in the batch record.  You can not have defautl values in resutls recording screens.
    FF

  • How to change the background color only for one HTML-Portlet?

    Hi all,
    I have created a HTML-Portlet in my root-page. The root page have a style: Main-Style.
    I want to change the background-color only for this one HTML-Portlet:
    <html>
    <header><title>Test</title></header>
    <body bgcolor="#999999">
    Test
    </body>
    </html>
    But this does not work...
    When I use the CSS, then it will change the background-color for the root-page too.
    Thans
    Leonid Pavlov

    could you try this
    <table bgcolor="#999999">
    <tr>
    <td>
    test
    </td>
    </tr>
    </table>
    I don't think you need <html><header><title>Test</title></header>
    <body></body></html> for your HTML-Portlet.

  • How do I keep a page as my home page when dragging icon to left of URL to house image & confirming that I want it as home page works only for current session, so when Firefox next opened, I end up with some stupid search page which McAfee doesn't like?

    A couple of days ago, I connected to the Internet as usual & opened Firefox, only to be greeted by an almost blank screen with a Google-type search box in the middle & this message from McAfee:
    "Your default search settings have changed. This may pose a security risk. Would you like to restore them to McAfee Secure Search to provide a safer searching experience?"
    instead of my usual home page (BT Yahoo). I naturally clicked on the "Yes" option in the message, but rather than restoring my BT Yahoo home page, all that did was to insert the McAfee logo to the left of the search box in the top right-hand corner of the screen. The first time it happened, I had to search for the BT Yahoo page & then followed the standard procedure for setting it again as my home page. It worked only for that session: each time I shut down Firefox or restarted my computer after that, all I got was the blank "search page" & restoring the previous session was the only way to get back to BY Yahoo. How on earth do I make the home page setting permanent?
    As far as I'm aware, I have done nothing to alter my search settings. However, I am anything but computer-literate, so I may have done/pressed something without realising it, but trying to understand what is now happening is far beyond my limited IT skills.

    See McAfee support to find out how to disable that McAfee feature - that isn't part of the normal Firefox installation.

  • Header Details to be Printed only for the line item details.

    Hi All,
    I have the following requirement.
    I have Page1 with the Logo, Header Window, Vendor Window, Send Invoice To, Delivere Invoice To and Main Window. Main Window Starts from the middle of the page. In the Page2 i have Logo, Header window and Main Window. In the Page3 i have only Main Window.
    In the Footer of the Main Window i have Placed the Terms and conditions which should always be Printed in the New Page. So in the footer i have given a command "Go to New Page " and given the page as Page3.
    The requirement is Logo,and Header Window should appear only for the Line items and not for the Terms and conditions.
    For the Page1 i have given the Next Page as Page2. Suppose if there is only one line item then it Prints in the first Page itslef and the control flows to the Page2 and since in the page2 i have given the condition for the Logo and header window to print only if line item is more than 1 and since Main Window is starting from the middle there is a blank Space appearing in the start of the page.
    The command i have given in the footer to trigger new page that is page3 is not getting triggered. If there are more than one line item then its printing the logo and header window and so there is no blank space appearing and it is working fine.
    Please let me know how to avoid this blank space and move my main window to the start of the Page if there is only one line item.
    Thank you.

    Dear Vasudha,
    I am a little bit confused regarding your query,
    "In the Footer of the Main Window i have Placed the Terms and conditions which should always be Printed in the New Page. So in the footer i have given a command "Go to New Page " and given the page as Page3. "
    When you say footer of main window does it mean , that you are using a table inside your main window and the command node your have inserted is in the footer of the table ?.I hope it is, because my suggestion is based on this assumption.
    Well my suggestion for your issue is,
    1.I  hope you are aware we can trigger a next page in two ways, one by setting the next page static attribute & second using  the command node which you have used.In your case you will have to use a combination of both.
    2.I feel your First page design is ok. Set its static next page attribute to PAGE2. Similarly set the static next page attribute for PAGE2 as PAGE2 itself. This should take care of your table which you have placed in the main window. If the table contains only one lineitem it will get over in the first page itself. If the lineitems are more in the table, it will automatically triggerPAGE2 (since static next page attribute for PAGE1 is PAGE2)  and the remaining line items will be displayed. Now no matter how many lineitems you have ,PAGE2 will be triggered repeatedly(since static next page for PAGE2 is PAGE2 itself) until the entire data in your table is displayed.
    In this way your requirement of printing the logo and header windows for the data lineitems only will be fulfilled.
    3.Now the last catch in your case is the printing of PAGE3(The terms and condition page) on an entirely new blank page.
       In the footer section of the table which you have used,  use a command node set to PAGE3.  After the command node and under the same  footer section now insert your terms and condition lineitem.
    Also Check the "at End of table" checkbox and uncheck " AT PAGE BREAK" under OUTPUT OPTIONS tab for the footer section.
    So now this footer section will be triggered only once after all the data in the table is displayed
    4. So now if there is only one lineitem, before the default second page is triggered the command node will trigger the PAGE3 and the terms and condition will be displayed.Else if there are more lineitems the page2 will be triggered again and again and finally when all the lineitems are over, the footer of the table will get triggered. So the command node will take you to the PAGE3 wherin the terms and condition will only be displayed.
    Hope this helps.
    Regards,
    Riju

Maybe you are looking for