When I try to run EJBclient on remote system I get the following exception

Hi all,
I try to run EJB's sample,system is Windows XP,J2SDK1.3.1,J2EE1.3,code is:
Properties env = System.getProperties();
env.putContext.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
env.put(Context.PROVIDER_URL, "iiop://ysmlj:1050");
env.setProperty("org.omg.CORBA.ORBInitialHost","ysmlj");
Context initial = new InitialContext();
Object objref = initial.lookup("HelloWorld1");
HelloWorldHome home = (HelloWorldHome)PortableRemoteObject.narrow(objref, HelloWorldHome.class);
HelloWorld helloWorld = home.create();
helloWorld.sayHello();
But on remote system run this Client,I get exception is
org.omg.CORBA.COMM_FAILURE: minor code: 1398079490 completed: No
at com.sun.corba.se.internal.iiop.IIOPConnection.writeLock(IIOPConnectio
n.java:919)
at com.sun.corba.se.internal.iiop.IIOPConnection.send(IIOPConnection.jav
a:980)
at com.sun.corba.se.internal.iiop.IIOPOutputStream.invoke(IIOPOutputStre
am.java:76)
at com.sun.corba.se.internal.iiop.ClientRequestImpl.invoke(ClientRequest
Impl.java:91)
at com.sun.corba.se.internal.corba.ClientDelegate.invoke(ClientDelegate.
java:158)
at com.sun.corba.se.internal.corba.ClientDelegate.invoke(ClientDelegate.
java:198)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:459)
at org.omg.CosNaming._NamingContextExtStub.resolve(_NamingContextExtStub
.java:393)
at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:368)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:417)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:395)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at MyStandAloneClient.main(MyStandAloneClient.java:27)
Please help me how to do! My E-mail is: [email protected]
Thank you!!

This minor code error may due to different version of JVM in your server and clients. I had same error when i change client JVM version with server version i could solve the problem..
          properties.put(javax.naming.Context.PROVIDER_URL,"iiop://server:1050");
          properties.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.cosnaming.CNCtxFactory");
          InitialContext ic = new InitialContext(properties);
          Object objref = ic.lookup("lookup name");

Similar Messages

  • I updated my Itunes to the latest version(11.1.4) and it isn't running on my laptop. The current OS is a W7 ultimate 64bits, when i try to run it, opens a message box with the following error message: error 7 (windows error 1114) . What should I do?

    I updated my Itunes to the latest version(11.1.4) and it isn't running on my laptop. The current OS is a W7 ultimate 64bits, when i try to run it, opens a message box with the following error message: error 7 (windows error 1114) . What should I do?

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • When I try to sync my ipad using itunes I get the following message. This iPad cannot be synced. You do not have enough access privileges for this operation. Any ideas how this can be resolved?

    When I try to sync my ipad using itunes I get the following message. This iPad cannot be synced. You do not have enough access privileges for this operation. Any ideas how this can be resolved?

    See if the user tip helps: https://discussions.apple.com/docs/DOC-6562

  • When I try to install itunes 10.5.2, I get the following error message "The installer has insufficient privileges to modify this file c\progamfiles\itunes\itunes.exe and won't install. help

    When I try to install itunes 10.5.2, I get the following error message "The installer has insufficient privileges to modify this file c\progamfiles\itunes\itunes.exe and won't install. help

    Okay ... so it's not one of the cases of bodged up ACLs on the Apple folder in Common Files. (That's been underlying a few of the recalcitrant E7W5s.
    Just in case, let's try the fixit from the following document:
    Fix problems with programs that can't be installed or uninstalled

  • When I try to eject my ipod after sync I get the following message:"The iPod cannot be restored because it contains files that are in use by another application.". I tried to restore but it doesn't work and I get the same message

    When I try to eject my ipod after sync I get the following message:The iPod cannot be restored because it contains files that are in use by another application.". I tried to restore but it doesn't work and I get the same message

    Go to your computer's System Tray and try ejecting.  If you can't eject, there is an application that is trying to access your iPod.
    Go to http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx and download ProcessExplorer.
    Go to http://support.microsoft.com/kb/555665 and follow the instructions under Resolution.
    Note that this is a good, general process any time you can't access any file.
    In my case an update to RealPlayer installed a program called RecordingManager that was accessing my iPod.

  • When I try to enter a new calendar entry I get the following message: "This calendar was created by mail, you can't add events to a mail calendar" what does it mean? I never had this message before.

    When I try to enter a new calendar entry I get the following message: "This calendar was created by mail, you can't add events to a mail calendar" what does it mean? I never had this message before.

    Check which calendar you are trying it put this event on, then put it on the correct one.

  • When I try to install extensions into Dreamweaver CC, I get the following dialogue box in the Extens

    When I try to install extensions into Dreamweaver CC, I get the following dialogue box in the Extension Manager CC:
    "Failed to update database. The extension will not be installed."
    What may the problem be?

    Good day to all,
    The problem that we were having was caused by a case difference between two folders, like Carl pointed out. The line that created the issue was written like this:
    <file source="File1.htm" destination="$dreamweaver/Configuration/Shared/MyExtensions"  />
    <file source="File2.htm" destination="$dreamweaver/Configuration/Shared/myExtensions"  />
    The correct folder was with an upper case ("MyExtensions").
    The extensions are now installing correctly however it seems to take significantly longer to install than on previous versions of EM (even previous version of EM CC). Has anyone been experiencing the same long install time? This only happens on Windows OS. On Mac the extension is installed pretty fast.
    Any idea how I could lower the install time? We do have a long list of files. Maybe try to use only folders instead of individual files?
    Cheers,
    Andrei

  • When I try to open up a PDF document, i get the following error message: "There was an error opening this document. The network path was not found" AArrgh please help as I need to open up my documents. Thanks.

    When I open up a PDF Document all i get is an error message saying: "There was an error opening this document. The network path was not found" I dont know how to fix this, so looking for some advice please, as I really need o open up my documents.
    Thank for any help.

    The documents I’m trying to read are already saved on my computer, under various different headings, I know that we have a server, so I only assume these documents are saved on here, as I said before I’m not good with all this techno stuff. I do my work each week ( on a payroll system) and save the documents for each company, they automatically go to the correct place. I never request for them to be saved in a certain place ( well not that I’m aware of) . I then on occasions need to open up this information, it is then that I can’t read or open the documents. We do have a tech help, but they are off sick until the 5th Jan, hence me trying to work out if I can fix this problem through this help site. Its ADOBE Reader that I’m trying to use.

  • When I try to add on and add-on I get the following message..."(add-on name) could not be installed because FireFox could not modify the needed file"; What is wrong?

    Third party cookies are allowed; I click install when I get a message about an untrusted author;

    That probably means that the extension lacks the required <nowiki><em:unpack>true</em:unpack></nowiki> line in the file install.rdf to make sure that the file gets unpacked after installing.
    *https://developer.mozilla.org/En/Updating_extensions_for_Firefox_4.0#XPI_unpacking
    Firefox 4 and later no longer unpacks an extension automatically, but renames the XPI file to the ID of the extension and copies that file to the extensions folder in the Firefox Profile Folder.
    Try to set the Boolean pref <b>extensions.alwaysUnpack</b> to <i>true</i> on the <b>about:config</b> page.
    *http://kb.mozillazine.org/about:config

  • Every time I try to install itunes on my PC I get the following message, and I can't seem to find a solution. Any help out there?? "There is a problem with this Windows Installer package. A program required for this install to complete could not be run."

    Every time I try to install itunes on my PC I get the following message, and I can't seem to find a solution. Any help out there?? "There is a problem with this Windows Installer package. A program required for this install to complete could not be run."

    Try the following user tip:
    "There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows

  • When I try to share a project to theater I get the message Your Theater could not be opened.There was a problem reading your movies from iCloud and the project does not share. Can anyone help?

    When I try to share a project to theater I get the message Your Theater could not be opened.There was a problem reading your movies from iCloud and the project does not share. Can anyone help?

    Set up iMovie Theater and iCloud
    In order to take full advantage of the capabilities of iMovie Theater, you must be signed in to iCloud. If you are signed in to iCloud, movies and trailers shared to iMovie Theater are automatically uploaded to iCloud. You can also turn off automatic uploading, and upload just the movies and trailers you want, or delete individual movies and trailers from iCloud. For more information about the Theater, see iMovie Theater overview.
    If you sign out of your iCloud account on your Mac, all iCloud movies disappear from the Theater, but they are not deleted; the movies reappear when you sign in again. If you ever run out of space in iCloud, an alert icon appears in the top-right corner of your movie, indicating that you can’t upload new movies. For more information, click the icon. After you upgrade your iCloud storage or clear space, your movies automatically appear in iCloud again.
    Hide
    Set up automatic iCloud uploading
    Choose Apple menu > System Preferences, and click iCloud.
    Make sure you’re signed in, and then select the Documents & Data checkbox.
    Click the Options button next to Documents & Data.
    Make sure the iMovie checkbox is selected.
    In iMovie, choose iMovie > Preferences.
    Select the “Automatically upload content to iCloud” checkbox.
    To turn off automatic uploading, deselect the checkbox.

  • When i try to send email from my ipad i get the message The recipient "£)()&&£)" was rejected by the server. This has only just started to happen and I don't know why. Please help. I have tried lots of things now and cannot solve it.

    When i try to send email from my ipad i get the message The recipient "£)()&amp;&amp;£)" was rejected by the server. This has only just started to happen and I don't know why. Please can someone help. I have tried lots of things now and cannot solve it.

    "Your email account" means to tap on the name of your email account. Whatever it is listed as in the settings.
    In my mail settings, one of my email accounts is a Comcast account. I tap on the Comcast name and it brings up this window.
    Then I tap on the arrow under the Outgoing mail server smtp setting to get to the next window.
    In the resulting window, I then tap on the arrow next to the smtp server under the Primary Server setting.
    That brings up this window in which I check to make sure that my user name and password have been entered correctly. If those items are missing, enter them in the appropriate fields and then tap done.

  • TS4020 I live in a house with multiple iCloud users.  When they try to turn on "Find my computer"  they get the message that they will have to disable my "find my computer" setting in order to enable theirs.  How can they all be enabled at the same time?

    I live in a house with multiple iCloud users.  When they try to turn on "Find my computer"  they get the message that they will have to disable my "find my computer" setting in order to enable theirs.  How can they all be enabled at the same time?

    Try this support document for information on how to contact Apple and account security. Apple ID: Contacting Apple for help with Apple ID account security

  • When I try to open a file with TextEdit, I get the spinning beachball and the file takes almost a minute to open.

    When I try to open a file with TextEdit, I get the spinning beachball and the file takes almost a minute to open. When I just start TextEdit everything is fine. Also when I log on with another account TextEdit works like a charm, even when opening an existing file.
    What I have done so far:
    checked permissions in Disk Utility
    validated all fonts
    deleted all canon printer drivers
    deleted all preferences
    Nothing has helped. Mail shows the same behavior as TextEdit. What else can I do? Any help would be greatly appreciated.

    drwx------  2 admin  staff  -     68 29 Jan 12:16 Library/Caches/com.apple.AddressBook
    drwxr-xr-x  3 admin  staff  -    102 30 Jan 21:36 Library/Caches/com.apple.AddressBookSourceSync
    drwxr-xr-x  4 admin  staff  -    136 29 Jan 11:09 Library/Caches/com.apple.DictionaryServices
    drwxr-xr-x  3 admin  staff  -    102 30 Jan 17:21 Library/Caches/com.apple.DiskUtility
    drwxr-xr-x  3 admin  staff  -    102 29 Jan 11:19 Library/Caches/com.apple.FontBook
    drwxr-xr-x  3 admin  staff  -    102 29 Jan 11:54 Library/Caches/com.apple.KeyboardSetupAssistant
    drwxr-xr-x  3 admin  staff  -    102  2 Feb 07:41 Library/Caches/com.apple.PubSubAgent
    drwxr-xr-x  3 admin  staff  -    102  2 Feb 07:56 Library/Caches/com.apple.QuickLookDaemon
    drwxr-xr-x  5 admin  staff  -    170  2 Feb 07:41 Library/Caches/com.apple.Safari
    drwxr-xr-x  3 admin  staff  -    102 31 Jan 14:45 Library/Caches/com.apple.ScreenSharing
    drwxr-xr-x  3 admin  staff  -    102  2 Feb 03:40 Library/Caches/com.apple.SoftwareUpdate
    drwxr-xr-x  3 admin  staff  -    102 29 Jan 11:34 Library/Caches/com.apple.Terminal
    drwxr-xr-x  3 admin  staff  -    102  1 Feb 18:48 Library/Caches/com.apple.calculator
    drwxr-xr-x  3 admin  staff  -    102 29 Jan 11:10 Library/Caches/com.apple.finder
    drwxr-xr-x  5 admin  staff  -    170  1 Feb 23:41 Library/Caches/com.apple.helpd
    drwx------  3 admin  staff  -    102 29 Jan 11:27 Library/Caches/com.apple.iChat
    drwxr-xr-x  2 admin  staff  -     68 30 Jan 18:21 Library/Caches/com.apple.iLifeMediaBrowser
    drwxr-xr-x  4 admin  staff  -    136 30 Jan 18:21 Library/Caches/com.apple.iMovieApp
    drwxr-xr-x  6 admin  staff  -    204  1 Feb 23:19 Library/Caches/com.apple.iTunes
    drwxr-xr-x  7 admin  staff  -    238 30 Jan 18:22 Library/Caches/com.apple.idvd
    drwxr-xr-x  3 admin  staff  -    102  1 Feb 23:36 Library/Caches/com.apple.imagent
    drwxr-xr-x  3 admin  staff  -    102  1 Feb 18:13 Library/Caches/com.apple.installer
    drwxr-xr-x  3 admin  staff  -    102 29 Jan 14:36 Library/Caches/com.apple.loginwindow
    drwxr-xr-x  5 admin  staff  -    170  1 Feb 23:38 Library/Caches/com.apple.mail
    -rw-r--r--  1 admin  staff  -  17096  1 Feb 23:29 Library/Caches/com.apple.nsservicescache.plist
    -rw-r--r--  1 admin  staff  - 170969  1 Feb 23:30 Library/Caches/com.apple.preferencepanes.cache
    -rw-r--r--  1 admin  staff  - 106496  1 Feb 23:30 Library/Caches/com.apple.preferencepanes.searchindexcache
    drwxr-xr-x  3 admin  staff  -    102 31 Jan 16:03 Library/Caches/com.apple.safaridavclient
    drwxr-xr-x  5 admin  staff  -    170  1 Feb 20:03 Library/Caches/com.apple.storeagent
    drwxr-xr-x  3 admin  staff  -    102  2 Feb 07:38 Library/Caches/com.apple.syncdefaultsd
    drwxr-xr-x  4 admin  staff  -    136 31 Jan 16:03 Library/Caches/com.apple.systempreferences
    drwxr-xr-x  3 admin  staff  -    102 29 Jan 11:15 Library/Caches/com.apple.systemuiserver

  • Currently I have 10 bookmark folders, but when I try to bookmark a new webpage, I only get the option of 5 of them. Is there anything I can do to make them all visible?

    Currently I have 10 bookmark folders, but when I try to bookmark a new webpage, I only get the option of 5 of them. Is there anything I can do to make them all visible? I am now having to bookmark it to the "bookmark menu" and then manually moving it to the folder I want cause it is not being displayed.

    No there is no arrow besides any of the folders (I do not have any sub-folders); I do have a "choose..." option, but that does not work either in showing all of the folders.

Maybe you are looking for

  • Help needed with Java 1.4 and xml Runtime problem

    I am working on a java 1.3 and JAXP1.1 written code. Now I want to compile and run it using J2SE 1.4. Here are the import statements from the existing code. import org.xml.sax.*; import org.xml.sax.helpers.DefaultHandler; import org.xml.sax.Locator;

  • HT3775 how do i open mpeg movies on my imac?  trying to upload from my sony camcorder.

    how do i open mpeg files with my imac?  trying to upload from a sony camcorder. Quick Time won't play it?

  • Tax Form SUI - Field 'Unit/Location/Plant Code'

    Hi All Can some one clarify, Which field in T5UTV points to 'Unit/Location/Plant Code' in the UI reports? As we see, we have 3 options in table T5UTV; Field – Worksite (WKSIT) Field - Reporting unit no. (REPUN) Field - NC9901 establishment or  NC9901

  • Intercompany Goods Moment Account Determination Question

    Hi, I'm wondering how to meet a business requirement relating to intercompany FI postings. We use the NB stock transport order to transfer materials between plants in different company codes. For this order type, SAP uses movement type 643 for the sh

  • ORA-29902 after restoring the database

    Hello friends, Our database crashed 2 weeks ago and we had rman backups and I restore backups and it fixed. ORACLE version:  11.2.0.3.0, OS: Win server 2008 But now when we want to run our old quires which were working without problem before get exce