Why are there CORBA error messages -- COMM_FAILURE when using the orb obj?

Hi Guys,
I followed the tutorial http://download.oracle.com/javase/6/docs/technotes/guides/idl/GShome.html
compiled and run the code. Everything works fine however whenever I use the ORB orb object I get the following message
both in my Naming Service and the HelloServer output:
2010-12-10 12:35:46.505 FINE Transport to 127.0.1.1:44100: stream closed on read < 0
2010-12-10 12:35:46.506 FINE ServerGIOPConnection to 127.0.1.1:44100 (ec4a87): getMessage() -- COMM_FAILURE
2010-12-10 12:35:46.507 FINE ServerGIOPConnection to 127.0.1.1:44100 (ec4a87): streamClosed()
2010-12-10 12:35:46.508 FINE ServerGIOPConnection to 127.0.1.1:44100 (ec4a87): close()
Why is this happening?
I have also installed jacorb and added it to my class path and run the examples with:
jaco -Djacorb.config.dir=. -DORBid=HelloClient HelloServer
ns -Djacorb.naming.ior_filename=/home/zorg/Project/Java/CORBA/NameService/NS_Ref
jaco -Djacorb.config.dir=. -DORBid=HelloClient HelloClient
I have included the code from the tutorial for convinience:
// HelloServer.java
// Copyright and License
import HelloApp.*;
import org.omg.CosNaming.*;
import org.omg.CosNaming.NamingContextPackage.*;
import org.omg.CORBA.*;
import org.omg.PortableServer.*;
import org.omg.PortableServer.POA;
import java.util.Properties;
class HelloImpl extends HelloPOA {
  private ORB orb;
  public void setORB(ORB orb_val) {
    orb = orb_val;
  // implement sayHello() method
  public String sayHello() {
    return "\nHello world !!\n";
  // implement shutdown() method
  public void shutdown() {
    orb.shutdown(false);
public class HelloServer {
  public static void main(String args[]) {
    try{
      // create and initialize the ORB
      ORB orb = ORB.init(args, null);
      // get reference to rootpoa & activate the POAManager
      POA rootpoa = POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
      rootpoa.the_POAManager().activate();
      // create servant and register it with the ORB
      HelloImpl helloImpl = new HelloImpl();
      helloImpl.setORB(orb);
      // get object reference from the servant
      org.omg.CORBA.Object ref = rootpoa.servant_to_reference(helloImpl);
      Hello href = HelloHelper.narrow(ref);
      // get the root naming context
      org.omg.CORBA.Object objRef =
          orb.resolve_initial_references("NameService");
      // Use NamingContextExt which is part of the Interoperable
      // Naming Service (INS) specification.
      NamingContextExt ncRef = NamingContextExtHelper.narrow(objRef);
      // bind the Object Reference in Naming
      String name = "Hello";
      NameComponent path[] = ncRef.to_name( name );
      ncRef.rebind(path, href);
      System.out.println("HelloServer ready and waiting ...");
      // wait for invocations from clients
      orb.run();
      catch (Exception e) {
        System.err.println("ERROR: " + e);
        e.printStackTrace(System.out);
      System.out.println("HelloServer Exiting ...");
// Copyright and License
import HelloApp.*;
import org.omg.CosNaming.*;
import org.omg.CosNaming.NamingContextPackage.*;
import org.omg.CORBA.*;
public class HelloClient
  static Hello helloImpl;
  public static void main(String args[])
      try{
        // create and initialize the ORB
        ORB orb = ORB.init(args, null);
        // get the root naming context
        org.omg.CORBA.Object objRef =
            orb.resolve_initial_references("NameService");
        // Use NamingContextExt instead of NamingContext. This is
        // part of the Interoperable naming Service. 
        NamingContextExt ncRef = NamingContextExtHelper.narrow(objRef);
        // resolve the Object Reference in Naming
        String name = "Hello";
        helloImpl = HelloHelper.narrow(ncRef.resolve_str(name));
        System.out.println("Obtained a handle on server object: " + helloImpl);
        System.out.println(helloImpl.sayHello());
        helloImpl.shutdown();
        } catch (Exception e) {
          System.out.println("ERROR : " + e) ;
          e.printStackTrace(System.out);
}Edited by: 819887 on 10-Dec-2010 04:51
Edited by: 819887 on 10-Dec-2010 04:58

Figure out the actual problem is when the naming service is resolving the name on line:
helloImpl = HelloHelper.narrow(ncRef.resolve_str(name));

Similar Messages

  • I am getting error message A12E5 when installing the free 30 day trial for InDesign why?

    I am getting error message A12E5 when installing the free 30 day trial for inDesign...don't know why?

    don't know why?
    Neitehr do we. You are not offering any relevant technical info like what computer you are actually on or the exact error message.
    Mylenium

  • Why are some of my messages green when I send them and why are some blue?

    Why are some of my messages green when I send them from my iPhone and why are some blue?

    Blue messages are iMessages; green are regular sms.

  • Why are not  pop up  message window when message type I and W

    Hi All,
    I am working in BADI ( me_purchdoc_posted~posted) for t-code ME21N. Actually i want show material number, material description  and ABC indicator of material at saving point of PO if material is significant.
    code is properly working  but does not showing  error message window when I am using message type I  (information) or W (worming message) .
    if i am using message type E ( error message )then showing message window just link  Information message.
    So i can no understand why are not message window pop up  when i take message type I and W.
    my code is that
    method IF_EX_ME_PURCHDOC_POSTED~POSTED
    IF SY-TCODE EQ 'ME21N' OR SY-TCODE EQ'ME21'.
      DATA : wa LIKE LINE OF IM_EKPO.
      DATA : VAR_MAKTX TYPE MAKT-MAKTX.
      DATA : VAR_MAABC TYPE MARC-MAABC.
      DATA : P TYPE STRING.
      DATA : P1 TYPE STRING.
      LOOP AT IM_EKPO INTO wa.
        SELECT SINGLE MAABC FROM MARC INTO VAR_MAABC WHERE matnr EQ wa-matnr AND werks EQ wa-werks.
        SELECT SINGLE MAKTX FROM MAKT INTO VAR_MAKTX WHERE matnr EQ wa-matnr. " AND werks EQ wa-werks.
          IF VAR_MAABC EQ 'A'.
            P = 'is significant material'.
            CONCATENATE  WA-MATNR '(' VAR_MAKTX ')'  P INTO P1.
            MESSAGE P1 TYPE 'E'.
            EXIT.
            ENDIF.
      ENDLOOP.
    ENDIF.
    endmethod.
    guide me...............

    Hi vinod,
    thanks for reply......
    yes,  my  requirement is to show the popup window with  material number, material description and ABC indicator of material at saving point of PO if material is significant.
    I find Badi to transaction me21n at saving PO.  Badi ME_PROCESS_PO_CUST does not exist.
    so i am using Badi me_purchdoc_posted~posted.
    This Badi  ( me_purchdoc_posted~posted ) is properly working But showing message  "system error ( error in method po_post ) "
    when I am click on OK then automatic leave from transaction.
    guide me..........

  • Hi there , Why Do I Receive Error Code -1073807253 When Using VISA

    Error Code -1073807253

    Hi ahmed,
    you can attach picture directly in the forum...
    If you would use an error indicator you could read an explanation of the error. It's a "framing error", happening sometimes when using serial connections...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Why are there always 180 Free Apps when I choose "See All"?

    Surely new apps are added daily. Why are there never more than 180? Are there more, but I just don't know how to find them? I feel like I'm missing something here. (BTW - The same question applies to Paid Apps.)

    Well, no one really seems to have the answer to the essential question:
    "Are there only 180 apps in a category and is it going to stay that way? If there are more, where the heck are they?"
    I can't believe that 180 is the limit and we won't be seeing any more!

  • Why is there an error message when I try to update to ios 5.1 on my iPod touch?

    When I click "Install Now" it says "Verifying" then an error message pops up saying that there was an error updating and it dosent give me much more information.

    This indicates an issue with the network.
    Power cycle the ATV, router, and computer.

  • Why am I getting error message R6034 when I update iTunes on my PC?

    When trying to load iTunes update 11.1.4 on my Windows XP workstation, the installer generated an error message:
    Runtime Error
    Program:C:\Program Files\Common Fil....
    R6034
    An application mad an attempt to load the C runtime library incorrectly.
    Please contact the application support team for more information
    ITunes is now disabled on the workstation. I have tried downloading the update frorm the website with the same resulting error message
    ITunes is disabled and will not function on my workstation...this is frustrating as a long time iTunes client.

    goddesslileth,
    Could you provide the specific model you are referring to with this question?
    Typically, a low memory message is given when applications running have used up all the available memory that is installed in the system. There are a couple ways around this:
    Add additional memory to your system to the maximum amount it will support (if possible).
    Ensure that all other applications or installed programs you are not using are not running in the background. Background applications or installed programs tend to continue to use memory to keep themselves up to date, for example, a web browser constantly updating it's page(s) for the most up to date information.

  • Why do I get error message HDCP when I try to stream?

    when try to stream a rented movie from iTunes I get error message with HDCP?

    OK, I`m a PC user, not MAC (but I have an IPhone 5 and Ipod Touch). I am using a Hewlett Packard HP Z 800 Professional workstation with 32 GB of RAM. My graphic card is NVIDIA GTX 670, the "monitor"" is a brand new SONY Bravia Full HD Televison set, connected by HDMI cable, 1.4  HDMI standard. Because the Iphone is new, I happened to browse the Itunes Shop and purchased the first episodes of the NIKKITA series. Runs perfectly. Yesterday I therefore invested into a larger bibliotheque of movies and single episodes of series.  Not ONE single item is running on any of my 5 computers. (All run Windows 7 64 Bit and the newest Itunes version is installed).
    Because I always was a PC User, in principal pay for downloads but also in principle boycot DRM disabled items for the very same reason I experience now (DRM is blocking the legal use, not the illegally downloaded and  cracked  versions), I might have misunderstood the message circulating some time ago, APPLE aborting the "DRM abuse". Legally the situation is an "inverse ripping" situation. Not the mean illegal downloader of copyrighted material damages the poor starving author or movie industry, but the industry is damaging (or preventing) the use of perfectly legal purchased materials and sold non funtional material, which is against all laws in the world. I`ll  remember it when they againn complain of decreasing sales and the end of the world. For myself the solution is not to purchase ANY of those bogus video, music or software files until any disabling software codes or hardware features are removed. If APPLE wants to do me a favor they could indicate if video files are HDCP -impaired or not or contain any other uninvited "user" of my property. (Of course my equipment would be HDCP ready. However I am not.)

  • Hp10b11+ calculator error message "running" when using INPUT and Shifted AMORT keys- why?

    above describes the issue. Any ideas why? I've tried resetting methods, batteries removed,etc.

    Thanks, Yes I understand that the calculator message "running" should be a brief event. It's definitely not. Many minutes can go by and no change.  And the display does not show what my course manual states should be coming up.
    Its a mortgage calc. using the following sequence:
    KEYS USED:                                        DISPLAY:
    6 I/YR                                         6              
    12  shift P/YR                          12
    60000 PV                                  60,000
    240 N                                          240
    0 FV                                             0
    PMT                                           -429.858635087
    then rounding payment up:
    429.86 +/- PMT                      -429.86
    N                                                    239.998529245
    36INPUT shift AMORT          PER 36-36                     *This is what is supposed to display, but this is where "running"
                                                                                                        displays and does not solve.  I left the calc. alone for a very long time.
    So I have removed both batteries, and tried to run different clearing options that the manual outlines. Nothing is mentioned about the functon of the INPUT key or what to do with this error. The calculator had done numerous other functions without a problem, so I am wondering if there is some value stored that creates a long running calculation, or if there is indeed a glitch with the actual calculator that presents itself with these calculations. 

  • Why I am receiving error message A12E5 when trying to download Illustrator?

    I have had a trial version last year and had no problem downloading. Now I just purchased and can't download because or error message A12E5

    Lauried42330756 which operating system are you using?  You can find more details regarding the uninstall process for Mac or Windows at Install and update apps - https://helpx.adobe.com/creative-cloud/help/install-apps.html.

  • Why are there gaps in sustained notes when I join regions of my tracks?

    When I edit my tracks to solve my latency issues, I usually have about 50 different regions on a track, so I usually use the "Join" command.  I have been surprised to find that many of these joined regions will leave an unexpected gap where there was no splice at all.  THere could be about 7 notes in a row on a region, and for some strange reason a long sustained note in the middle will go from sounding exactly as I played it to having a gap just from joining a bunch of regions.  I have been solving it by joining a few gaps at a time, but all of the double checking to be sure that something didn't get left out has really taken up a chunk of time.  Does anyone have this issue or know about it, and what I can do to deal with it?  Well, I am dealing with it fine, I guess - I am looking for something more reliable.
    Thanks!
    Erik Jurado

    It's a good idea and it almost had me fooled. However, with the slider all the way to the left i-tunes still places a small crossfade in there.
    There's two issues to solve for true gapless playback:
    -Player gap. The crossfade being set to zero in iTunes actually solves this one, or so close that I can't tell the difference.
    -Encoder gap. MP3 and AAC encoders only work by using "frames". Every "frame" is 1150 samples long. Since tracks are not always even multiples of 1150 samples, blank space is added to the end to fill it out. Unless the encoder accounts for this and puts something in the container format to specify where the end of the song really is, there's a gap there on playback. iTunes encoder does not account for this. Nero's AAC encoder does put gapless info into the MPEG 4 file, and LAME (MP3 encoder) does put gapless info into the LAME tag, but iTunes playback engine doesn't read this information or use it.
    That encoder gap is what you're hearing with the crossfade at zero. It's very small, but still there. Until Apple actually adds gapless support, there's no fix for this.

  • Why does LabVIEW8 popup error message after i use Visual Source Safe as its sourc control?

    i'm trying LabVIEW8.0 trial version now. and i set Visual Source Safe as its sourc control, just setting like following picture.
    but since then, LabVIEW8 always popups error message dialogue even when it starts up.
    it confuses me, for it runs well while i use LabVIEW6.1 before.
    following is some message dailogue.
    帖子被longzhi在04-03-2006 07:36 AM时编辑过了
    Too much works make Longzhi a Tom.
    Thanks god, the weekend is coming.
    And my lovers are always here with me.
    Anything better? ^_^
    Attachments:
    bug20060403_002.JPG ‏70 KB
    VSSConfig.JPG ‏82 KB
    bug20060403_001.JPG ‏33 KB

    hi, smercurio…
    i've tried your way. but it doesn't work. :-(
    but your idea helps me. i've tried some times and it's OK now.  thank you. :-)
    here are my steps. ( is it right? )
    1. start LabVIEW.
    2. Tools >> Options >> Source Control.  select source control provider name as my microsoft VSS.  no error message.
    3. Then set my source control as None. a warning dialogue popup, "You have selected not to use any source control provider". Yes to continue.
    4. exit LabVIEW
    5. edit LabVIEW.INI. delete the part of source control. ( like the attached picture).
    6. Start LabVIEW. and reset the source control as normal.
      Bingo! it's OK. :-)
    帖子被longzhi在04-03-2006 08:39 PM时编辑过了
    Too much works make Longzhi a Tom.
    Thanks god, the weekend is coming.
    And my lovers are always here with me.
    Anything better? ^_^
    Attachments:
    BugFix20060404_001.JPG ‏88 KB

  • Error message appears when using compressor

    What means this error message (it's in a French version of Compressor 4) : "Failure : Quicktime error : - 50" ?

    Hi Thot, just trawling these forums looking for some info.. I noticed this.... yeah the QT error -50 comes up.. cant find a specific reason. I had this has with a job I submitted via FCPX ti Compressor.app via "send to compressor". I recall a thread somewhere in these forums that this error was a result of genuine Quicktime error whilst performing work on one or more effects in FCPX.
    So I simply went in and redid the effects in FCPs. It was something simple like a cross dissolves.
    In any case if you are gettingt this error from a comperssor submittion of SHARE from FCPX and you see it in compressor., it might be worth do a trial and error on your FCPX storyline.
    Simply make a few test projects and try to narrow down withe effect is causing this issue.
    worth a look
    w
    Hong Kong

  • Why are so many wireless clients seen when using airport utility?

    When I open up the Airport Utility, I can see upwards of a dozen "wireless clients" connected to each of the two Airport Extremes that I have on my network. Some of these are known computers and iOS devices, but many of them have names that are IP addresses (like 10..0.0.3) or hexadecimal numbers (like 9C:FE:94:4B:75:FE). Not sure what these are. Can they slow down the network?

    Take a few moments and count up the total number of wireless devices that you have.
    In addition to computers, be sure to include printers, iPhones, iPads, Apple TVs, other Airport routers, other mobile devices, baby monitors, thermostats, etc......anything that uses a wireless signal from your network.
    Some devices will be displayed by their name, others by assigned IP address and others by their MAC Address with 12 characters and colons.
    Every device that is connected to your network uses up a certain amount of bandwidth, so the more devices that you have connected at one time, the slower the network will operate. 
    Unless you are lucky enough to have a very fast Internet connection plan with your provider, you may likely notice that browsing, email and other activities on the the wireless slow down when multiple devices are using the Internet, or you are copying files from one device to another over the network.
    When you are ready, open AirPort Utility. Hold down the option key while you double click on your AirPort icon.
    A window displaying wireless clients will be displayed. Compare the total of devices to your count. If you see more devices than you have, you may have an unwanted guest on your network. Change your wireless network password immediately.
    Another thing that you can do is power off all of the wireless devices and then start them up one at a time while you are checking AirPort Utility.

Maybe you are looking for

  • Printing Proofs in Lightroom

    I'm using Lightroom for management of my digital images, and wish that Adobe would provide a way for additional output methods from the Print tab. I recently had to output a large amount of proofs, and was able to successfully build the proofs in lig

  • How to remove indents from XML?

    I have a xml like this: <?xml version="1.0" encoding="UTF-8"?> <view>      <help>           <block>No.1</block>           <device>USB</device>      </help>      </view> How could I output the xml to : <?xml version="1.0" encoding="UTF-8"?><view><help

  • On Business Intelligence Prompt

    Hi All, This is very critical in this project. Could you please help me out. Problem: I have a report where one of the column is Fiscal Year. There is a Fiscal Year prompt where I am using "between" operator to select between 2006 and 2010 year. That

  • Command link action

    I am using a commandlink with an action that returns a value for navigation. The action fires every other time I click the link. Here is my tag: <h:commandLink id="customer" action="#{navigateBean.customerSelected}" target="content"> <f:verbatim> <P>

  • On my Mac Book Pro My password at the start up is not working on restart

    Hi My password at the start up is not working on restart But if i close the cover and re-open it he ask for my password