This topic is READ ONLY
wolfbuda (1) [Avatar] Offline
#1
Hi!
I'm new here!

I have a PB NVO and I deployed it on jaguar server. One method that have only one argument work fine, but the others that have more than one not. Has some explication for this?

I invoke the method like that:


serveraddr = "iiop://ibm:9000";
var myqry = java.CreateComponent("db_site/db_app_web", serveraddr , "", "");
if (site.GetErrorInfo( )!="") {
psDocument.Write("error" + site.GetErrorInfo( ));
}else{
// import the javawrappers ssc file
import ( site.GetRootDocument().location + "/JavaWrappers.ssc" );

msgholder_cod=null;

// create the holder which will be used to get a string INOUT variable
msgholder_cod = java.CreateObject("org.omg.CORBA.ShortHolder", 12401 );
if ( msgholder_cod == null ){
psDocument.Write ("Holder not instanciated ...
" + site.GetErrorInfo());
return ;
}
rs_query=myqry.add_sub_pa(msgholder_cod); //THE ERROR APEARS HERE!

if (site.GetErrorInfo( )!=""){
psDocument.Write("error" + site.GetErrorInfo( )) ;
}else{
if (rs_query==1){
psDocument.Write("ok!");
}else{
psDocument.Write("error");
}
}