Can anyone tell why i'm getting this error?? org.omg.CORBA.DATA_CONVERSION
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Harvinder_Thakur
Posted On:   Thursday, May 5, 2005 02:01 AM

I'm using jdk 1.4.1_02 ORB at the client side, Visibroker ORB at the Server Side. This code was working fine earlier... Suddenly I've started getting this error... The exception stack trace is as follows: org.omg.CORBA.DATA_CONVERSION: minor code: 1398079491 completed: No at com.sun.corba.se.internal.corba.ORB.string_to_object(Unknown Source) at D03Client.clsD03Client.getSmServiceManager(clsD03Client.java:233) at D03Client.clsD03Client.connectToServer(clsD03Client.java:1096) at D03Client.clsD03ClientPool.populatePool(clsD03ClientPool.java:40) at D03Client.clsD03ClientPool. (clsD03ClientPool.java:68) at Call_Corba.main(Call_Corba.java:43)    More>>

I'm using jdk 1.4.1_02 ORB at the client side,
Visibroker ORB at the Server Side.


This code was working fine earlier...
Suddenly I've started getting this error...


The exception stack trace is as follows:
org.omg.CORBA.DATA_CONVERSION: minor code: 1398079491 completed: No
at com.sun.corba.se.internal.corba.ORB.string_to_object(Unknown Source)
at D03Client.clsD03Client.getSmServiceManager(clsD03Client.java:233)
at D03Client.clsD03Client.connectToServer(clsD03Client.java:1096)
at D03Client.clsD03ClientPool.populatePool(clsD03ClientPool.java:40)
at D03Client.clsD03ClientPool. (clsD03ClientPool.java:68)
at Call_Corba.main(Call_Corba.java:43)


The code of the function which causes this error is as follows:

			

private ICorbaSmServiceManager getSmServiceManager(
String[] args,
String myUID,
String myPWD,
String myNameService )
{
ICorbaSMAF_ManagerFactory iCorbaSMAF_ManagerFactory = null;
ICorbaSmServiceManager theCorbaSmServiceManager = null;
try
{
// Initialize the ORB.
//
myOrb = org.omg.CORBA.ORB.init( args, null );
// Resolve the reference to the naming service where the SMAF CORBA server is registered.
String nameServiceString = "";

try
{
nameServiceString = myNameService;

if (nameServiceString.length() == 0)
{
System.out.println("NameServiceString not
found, creating here");
nameServiceString = new String( "corbaloc::10.10.11.77:2061/NameService" );
}
System.out.println("NameServiceString : " + nameServiceString);
}
catch (Throwable e)
{
nameServiceString = new String( "corbaloc::10.10.11.77:2061/NameService" );
}
org.omg.CORBA.Object rootObj = null;
NamingContext root = null;
// transform the textual representation of the name service URL into a reference
//

rootObj = myOrb.string_to_object( nameServiceString );

// Contact the name service
//

root = NamingContextHelper.narrow(rootObj);
// Step 1: contact the SMAF authentication server.
// The authentication server is the only SMAF CORBA object that is registeed at the
// name service.
// The symbolic name of the authentication server is given by the
// repository id of ICorbaSMAF_Authentication which is returned by
// ICorbaSMAF_AuthenticationHelper.id().
//
NameComponent nc[] = {new NameComponent(ICorbaSMAF_AuthenticationHelper.id(),"")};

org.omg.CORBA.Object authServerObj = root.resolve(nc);

// Contact the authentication server
//
ICorbaSMAF_Authentication authServer = ICorbaSMAF_AuthenticationHelper.narrow(
authServerObj );
// Step 2: authenticate the user
// The result of the authentication procedure is a textual reference to the
// SMAF_ManagerFactory.
//

String smaf_ManagerFactoryIOR = authServer.authenticate(myUID,myPWD);

System.out.println("Authenticate returned : " + smaf_ManagerFactoryIOR);
// Step 3: Contact the SMAF_ManagerFactory
//
iCorbaSMAF_ManagerFactory = ICorbaSMAF_ManagerFactoryHelper.narrow(
myOrb.string_to_object(smaf_ManagerFactoryIOR) );
// Step 4: Get a reference to the SmServiceManager
//
String corbaSmServiceManagerIOR = "";
corbaSmServiceManagerIOR = iCorbaSMAF_ManagerFactory.getServiceManager();
// Step 5: Contact the SmServiceManager
//
theCorbaSmServiceManager = ICorbaSmServiceManagerHelper.narrow(
myOrb.string_to_object(corbaSmServiceManagerIOR) );
}
catch (CorbaSmafException e)
{
isConnected = false;
handleException( e, "Exception in getSmServiceManager" );
}
catch (Throwable e)
{
//myCorbaSmServiceManager = getSmServiceManager(args, UserID, Pwd, IiopURL);
isConnected = false;
handleException( e, "Exception in getSmServiceManager" );
}
// Return the SmServiceManager interface reference
//
return theCorbaSmServiceManager;
}


thanks.    <<Less
About | Sitemap | Contact