comm failure

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ladybug00
    New Member
    • Oct 2011
    • 1

    comm failure

    Hi,

    I always receive this warning even if I wrapped my code in try-catch block,

    WARNING: "IOP0041020 1: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT ;

    generated after this call: org.omg.CORBA.O bject objRef = orb.resolve_ini tial_references ("NameService") ;

    I would like to catch it so that stacktraces would not be shown to the user.

    sample trace:
    Oct 24, 2011 9:44:38 AM com.sun.corba.s e.impl.transpor t.SocketOrChann elConnectio
    nImpl <init>
    WARNING: "IOP0041020 1: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT ; hostname: 10.29.8.102; port: 2099"
    org.omg.CORBA.C OMM_FAILURE: vmcid: SUN minor code: 201 completed: No at com.sun.corba.s e.impl.logging. ORBUtilSystemEx ception.connect Failure(Unknown Source)at com.sun.corba.s e.impl.logging. ORBUtilSystemEx ception.connect Failure(Unknown Source) at com.sun.corba.s e.impl.transpor t.SocketOrChann elConnectionImp l.<init>(Unknow n Source) at com.sun.corba.s e.impl.transpor t.SocketOrChann elConnectionImp l.<init>(Unknow n Source) at com.sun.corba.s e.impl.transpor t.SocketOrChann elContactInfoIm pl.createConnec tion(Unknown Source)

    Thanks in advance :)
  • rotaryfreak
    New Member
    • Oct 2008
    • 74

    #2
    if your stacktrace is being shown to the user, you probably have a try-catch block which looks like this:

    Code:
    try{
      something
    }
    catch(SomeException e){
      e.printStackTrace();
    }
    if that is the case, simply remove the e.printStackTra ce() method and replace with some other error-catching code. It may be helpful if you post the actual code which is giving you this error to further analyze what is going on

    Comment

    Working...