Problem with UnicastRemoteObject.exportObject(this);
I have created four classes for my RMI program
1>hellointerface
2>helloserver
3>register
4>helloclient
hellointerface has only one Abstract Method
public String sayhello()throws java.rmi.RemoteException;
The problem is with my helloserverclass. my helloserver class needs to extend UnicastRemoteObject however i want to do it by using
UnicastRemoteObject.exportObject(this);
There is no problem with the coplilation of code of this class.
classregister is what getting effected if i use exportObject(this)function.
the problem is the command prompt where i run java register
appers like this
Object created
Object ready for use
and than the register stop running .The same console is ready for
running other Program where as in the case of Rmi the class that register the object using rebind() method must keep on running in the dos prompt
my register class looks something like this
try
helloserver object=new helloserver()
System.out.println("Object created");
Naming.rebind("/helloserver",object);
System.out.println("Object ready for use");
my server side code is something like this
public class helloserver implements hellointerface
public helloserver throws java.rmi.RemoteException
UnicastRemoteObject.exportObject(this);
//and the only method defined is as follows
public String sayhello()throws java.rmi.RemoteException
return "Thank u for reading this the current System time is "+new Date();
the client side is having a Applet which display this Message
I know this is a simple program but plz help me out
Thank u
I am sorry but I do not understand your question.
I do not know if the problem is my lack of experience with RMI or an language problem or both. I would advise just being a bit patient though.
I posted a link to this question in the appropriate forum so that sooner rather than later an expert on the subject can give you some help.
Link to post linking to this post is here http://forum.java.sun.com/thread.jspa?threadID=644531&messageID=3797293
Have a happy day.
Similar Messages
-
hi i am having a problem with itunes on this computer every time the computer comes on i get a notification which says"the program cant start because MSVCR80.dll is missing from your computer,try reinstalling the program to fix this problem" but when i click on ok it just keeps popping up 4-5 time and then gone.and i cant dopwnload the itunes again.help
You need to work through the user tip: https://discussions.apple.com/docs/DOC-6562
-
My Ipod Classic wont charge or turn on. Ive never had a problem with it before this.
OK so long story short, I went to listen to my ipod this morning before school and it wouldnt turn on.
I thought it might have died and didnt really think anything of it. When I was done with school i went to go turn it on again, still nothing.
Now itunes doesnt register its even plugged in. I've never had a problem with it so im really frustrated it was fine less then 24 hours ago and now it wont even turn on. Its not even that old I think its two years old maybe three.
I've tried diffrent computers and different chargers still nothing.
PLEASE HELP!
i love my ipod and im way bummed its not working.
thanks!Try the 5's... Reset / Retry / Restart / Reinstall / Restore > iPod classic Troubleshooting Assistant
I think its two years old maybe three.
I've tried diffrent computers and different chargers still nothing.
If nothing helped, might be time for a new battery > Apple - Support - Service Answer Center -
Problem with validation - can this be fixed?
Hello I used an online tutorial to create an "express CSS
menu" the menu looks really good but it does not validate and in
IE7-Vista every page you try to access prompts an error that says
"Problems with this webpage may prevent it from displaying
properly.... error object expected..."
Is there anyway for me to fix this and keep this menu??
here is the link:
http://122.252.5.31/~lisa927/index.html
I did validate the menu example I used before I began but did
not realize the example used doctype html 4.01 and I am using xhtml
1.0, if I try to change my doctype to html 4.01 I get all sorts of
errors so my question is can i make this menu validate in xhtml
1.0???
shontelle> <script type="text/javascript"
src="p7exp/p7exp.js"></script>
>
That would be correct assuming the file is IN THE TEMPLATES
FOLDER. It
should not be.
All links in the TEMPLATE file *should* be one of three kinds
1. Relative to the template file, e.g.,
<a href="../ (meaning that you must go up one level from
the template folder
to reach the root of the site, hence all other files, since
none of them
should be in the templates folder)
2. Relative to the site root, e.g.,
<a href="/ (meaning that one would begin looking for the
linked file at the
root of the site and follow the pathing from that point)
3. Absolute, e.g.,
<a href="
http:// (meaning that the link is to a page
external to the site).
If you are seeing any other kind of link, then it hasn't been
made properly.
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
==================
"shonts" <[email protected]> wrote in
message
news:g16sce$a2k$[email protected]..
> HI something very strange going on.
>
> the code in my template reads : <link
href="../truestyles.css"
> rel="stylesheet" type="text/css" media="screen" />
> <script type="text/javascript"
src="p7exp/p7exp.js"></script>
>
> but when all the child pages created from the template
the code appears
> <link href="truestyles.css" rel="stylesheet"
type="text/css"
> media="screen" />
> <script type="text/javascript"
src="Templates/p7exp/p7exp.js"></script>
> <!--[if lte IE 7]>
> <style>
>
> The file "templates" is added there is nothing in my
templates folder but
> templates.
>
> if you access
http://122.252.5.31/~lisa927/p7exp/p7exp.js
where the
> template
> tells you to you will see the file has been uploaded.
>
> any ideas why the "template" is being added to the code
on child pages??
> -
Hello i am implementing a listener and i try to invoke the listener=this as planned. I am having problems because my method is static and it is so because i need to call that method in my main!
<code>
public static void add2hash(String url,ComObject com)
com= new ComObject(urlPool);
i++;
cl = Hashtest;// what to do with this?<-- PROBLEM!!!!
//new ComObject(); this?
co.addComListener(cl);
System.out.println("Let's start!\n ComObject Listening to itself: ");
String host=str2host(url);
ht.put(host,co);
//co.checkStatus();
//return co.getIs();
</code>RE: tschodt
I'll start with a comment of agreement :)
You are having problems because you have yet to grasp the concept of OO.An insightful comment, this seems apparent. :)
BTW, this has nothing to do with native methods, snip
Well... just a minor point... but it would appear his code is dealing with some Win32 natives, either from JacobGen or J-Integra, since he is using a ComObject object (I could be way off base as I don't see any import statements.) Maybe follow-up questions in this thread could be relating to the API functionality of some of the classes he's using? :)
RE: original poster
If you do want to call this directly from main, take note of the name of the class in which this is defined. Then import the package and class into the class containing your main method (if your main isn't in the same package as the class containing add2hash). Then call OtherClass.add2hash(); from main.
On another note, in order for us to understand your comment indicating a problem with the ComObject assignment, we'd need to know where you got that object -- maybe show us your import statements? :)
Regards,
Sean
/watchlists topic -
Hello, Its Omar...
Yesterday I was able to login at my site with the InBrowser, but not today, what can I do?
I dont know if this is a general problem, or something like that, let me know.
Thanks a lot
www.prueba.bridgestudiogdl.comThis appears when I try to log, I dont know whats happening, everything is correct in my Muse File, its checked the Enable INBROWSE EDITING, what could be the mistake??, the server? If so, what I have to ask to my host provider... Thanks!
-
Problem with option: enable this distribution point for prestaged content
Hi, for past few days I have been focused on application deployment with SCCM 2012 R2 (I am learning SCCM 2012 R2 reading books, watching video trainings . . .). Having followed allong book Mastering System Center 2012 R2 Configuration Manager I also did
deployment of Microsoft Office 2013, Adobe Reader 11, Foxit Reader 4.2 and Notepad ++ to test collection containing one Windows 7 computer. In one of examples prestaged content file is created for Foxit Reader application. In order to do so, if I am
right, option Enable this distribution point for prestaged content
has to be checked on distribution point and I did that.
Problem is that I noticed deployment of any application to test collection failed every time - system waits for prestaged content file if this option is selected. Then I have to delete deployment of given application, application itself, deselect option
Enable this distribution point for prestaged content and create app, distribute it to DP and deploy to test collection - then everything works well.
To make things worse, having deselect option Enable this distribution point for prestaged content (I did it yesterday and I checked that several times) this morning I checked again and this option is selected again. What might be the cause
of this behaviour? I expected this option to be deselected - this is weird to say at least.
When you enable the option "Enable this distribution
point for prestaged content" on a DP, it causes newly created applications/packages to default to "Manually copy the content in this package to the distribution point"... This would then cause the deployments on the clients to remain
at 'waiting for content' - unless if you manually prestage the content, as this option requires it.
If you enable the option "Enable this distribution
point for prestaged content" on the DP, but want to automatically have CM distribute the content, then configure the app/package to do so,
before distributing the content: Distribution Settings tab > Prestaged distribution point settings > Automatically download content when packages are assign to distribution points. -
Is there a problem with MSN website this date (08/12/11)?
I cannot get into MSN website. Firefox states "taking too long to download," then just stops. Wondered if the site is undergoing some problem.
Duplicate. Please continue here: https://support.mozilla.com/en-US/questions/860766
Requesting that this thread be locked. -
Problems with searching in this forum
Is anyone else finding that the searching in this forum is no longer bringing back the same information that it used to? The problem seems to have started in the last few days. Any advice would be appreciated. I hope Sun fixes this!
It looks like they are redesigning the search and they have a link to the beta version on the page. I tried it but it doesn't search just the forum we're in like the current search used to do. I don't like the new search page at all!
I told them that on their feedback link also. -
Problem with App catalog this action could not be completed
I have not been able to use App catalog since a few days.
I am in UK on O2 network using US unlocked Pre2. It was possible to use App catalog and install free apps only. Now App catalog always load with error: " this action could not be completed, please try again later".
Post relates to: Pre 2 p102una (Unlocked NA)@ rufat_j and @alfagtv100:
Could please send me a private message containing the palm profile account, IMEI, serial #, carrier used, and country for those phones. This information can be found in the device info app.
Please also tell me if you do have any homebrew applications installed or not, apps installed from other sources than the app catalog. This can greatly help. -
What do I do?
Look at iOS Troubleshooting Wi-Fi networks and connections http://support.apple.com/kb/TS1398
iPad: Issues connecting to Wi-Fi networks http://support.apple.com/kb/ts3304
Additional things to try.
Try this first. Turn Off your iPad. Then turn Off (disconnect power cord) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
Change the channel on your wireless router. Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
How to Quickly Fix iPad 3 Wi-Fi Reception Problems
http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
If none of the above suggestions work, look at this link.
iPad Wi-Fi Problems: Comprehensive List of Fixes
http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
Fix iPad Wifi Connection and Signal Issues http://www.youtube.com/watch?v=uwWtIG5jUxE
Cheers, Tom -
Mail on Maverick is very problematic since latest upgrade. One day it works other day it doesn't, especially with gmail. I don't change any settings but one day it will work and the other it will not. What give? All updates are installed....
Hi Paweltu!
Here’s an article that will help you troubleshoot this issue with your Mail program:
OS X Mail: Troubleshooting sending and receiving email messages
http://support.apple.com/kb/ts3276
Take care, and thanks for visiting the Apple Support Communities.
-Braden -
if anyone knows anything about this, please help!
Hello Giggles36468,
Thank you for using Apple Support Communities.
For more information, take a look at:
iTunes Store: See your purchase history and web order numbers
http://support.apple.com/kb/HT2727
To see a purchase's details, click the arrow to the left of the order date. Your most recent purchases are first.
The web order number appears under the date of each transaction.
Have a nice day,
Mario -
My Ipad4 has been having a problem when I close apps. The contrast of the screen has been fluctuating. Any tips?
Not normal. Take it to an Apple Store for evaluation.
Make a Genius Bar Reservation
http://www.apple.com/retail/geniusbar/
Cheers, Tom -
I bought two $50.00 ITunes cards and a 15.00 because.the 100.00 wouldnt work. I still can't use my cards.
You are right, but how could i send it to Apple? when the phone company first replaced my iphone they had in stock alots of iphones and they just sent mine back to Apple and gave me a new one, so all i did is to give them my phone, but now how could i sent it to Apple? and i cant send it by myself, and the store wont do that, its a lost for them.. so sending it to Apple wasnt an option from the begining.
and for the record, i dont think the store where i bought it is an authorized shop.. its just a store who boughts phone's from Apple in a low price and sells it in much more money..
Maybe you are looking for
-
The title says it all, I'm trying to unlock my iphone to get to my apn settings, been working on this for months with all these people telling me how easy it is. HaHa, please help me
-
Windows 7 hangs from boot menu
Hi, my Windows 7 partition refuses to start from boot menu, system just hangs and does nothing. I've not made any changes to the disk layout, only thing I can think of is the upgrade to 10.9.4 which probably changed the recovery partition. History: -
-
Is it possible to copy all the channel strip info to another Logic project?
Hi I'm trying to combine two projects so that I can crossfade from one to another yet still have full mix control. I've figured out how to copy the audio files (drag and drop), and that's brilliant, but I'd like to keep all my channel info without ha
-
I've created an application object and Associated a user to it. I've also added to the "Rights to Files and Folders" tab a directory where I want the user of the object, access to a certain folder where the .fil files are at. Full rights given (SRWCE
-
Wireless Adapter (WUSB54G) Driver Issues
My wireless adapter doesn't automatically connect to the internet. I went under devices and found that it was there but listed as unspecified. I right clicked and troubleshoot'd, but it only claimed to have reinstalled the drivers because there was n