Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Jaguar Client Problem

6 posts in General Discussion (old) Last posting was on 2000-02-22 17:48:15.0Z
Stephen Barrett Posted on 2000-02-21 20:17:19.0Z
Newsgroups: sybase.public.easerver
From: "Stephen Barrett" <smb@mindspring.com>
Subject: Jaguar Client Problem
Date: Mon, 21 Feb 2000 15:17:19 -0500
Lines: 211
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
NNTP-Posting-Host: smtp.revsysinc.com 38.177.238.2
Message-ID: <347_99yvnjKf$GA.298@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28272
Article PK: 160315

All,

We are trying to get a demo going for some bigwigs so we can do a proof of
concept. I am responsible for the Jaguar server side and a business partner
is responsible for the client side. I wrote the server component using PB.
Our partner is trying to write the client in Java, which I know only a
little bit about. I generated the Java proxy stub for the component I
created and sent to our partner along with the Jaguar client. Our partners
wrote the code attached at bottom taking it directly from the Tutorial
provided with Jaguar and modifying it with our package information. Note,
the ip address information has been changed for this posting. They say
everything is compiling just fine. When they try to run the applet, they
get the following error message.


org.omg.CORBA.BAD_OPERATION: The delegate has not been set! minor code: 0
completed: No
at org.omg.CORBA.portable.ObjectImpl._get_delegate(ObjectImp.java:42)
at
org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:55)
at publish.init(publish:56)
at sun.applet.AppletPanel.run(AppletPanel.java:344)
at java.lang.Thread.run(Thread.java:484)


Any help would be greatly appreciated. I am under the gun to get things
done as usual. Could anyone responding also respond to my email address
(smb@revsysinc.com)..

Thanks in advance.
//////////////////////////////////////////

import COM.activesw.aweb.client.*;

import SessionManager.*;

import org.omg.CORBA.*;

import org.omg.CosNaming.*;

import RevenueSystems.*;

// CORBA CosNaming interfaces

import org.omg.CosNaming.NamingContextPackage.*;



// CosNaming user exceptions

import java.applet.*;

import java.awt.*;

public class publish extends Applet

{

static String brokerHost = "ricks2300";

static String brokerName = "Emv";

static String clientGroup = "ComApp";

Button connect;

TextField result_text;

TextField stat1;

TextField stat2;

TextField stat3;

RevenueSystems.n_jag_renewal renew=null;

public void init()

{

int counter=2;

BrokerClient activeC;

stat1=new TextField(" ");

stat2=new TextField(" ");

stat3=new TextField(" ");

stat1.setText("Sason");

this.add(stat1);

this.add(stat2);

this.add(stat3);

// activeConn();

try

{

// Initialize the CORBA client-side ORB and

// obtain a stub for the Jaguar component instance.

System.out.println("... Creating Jaguar session.");

stat1.setText("Creating Jaguar session");

// Initialize the ORB. Note that the org.omg.CORBA.ORBClass

// property must be set in applet parameters.

java.util.Properties props = new java.util.Properties();


props.put("org.omg.CORBA.ORBClass","com.sybase.CORBA.ORB");


// Assume the download host is a Jaguar name

// server using the default IIOP port number

props.put("com.sybase.CORBA.NameServiceURL","iiop://111.222.333.444:9000");

ORB orb = ORB.init(this, props);

NamingContext nc = null;

org.omg.CORBA.Object objRef = null;

objRef = orb.resolve_initial_references("NameService");

nc = NamingContextHelper.narrow(objRef);

System.out.println("... Creating component instance.");

stat2.setText("Creating component instance");

NameComponent compNc[] = { new NameComponent("RevenueSystems/n_jag_renewal",
"") };

Factory compFactory = FactoryHelper.narrow ( nc.resolve(compNc) );

renew =
RevenueSystems.n_jag_renewalHelper.narrow(compFactory.create("jagadmin",
"") );

// Create a stub object instance for the

}

catch (NotFound nfe)

{

// This can happen if you have installed

// the tutorial component under a different

// package or component name in Jaguar Manager.

System.out.println("Error: Component not found. Check the package and
component "

+ "name in Jaguar Manager.\n");

System.out.println("NotFound exception details:\n");

nfe.printStackTrace();

}

catch (org.omg.CORBA.UserException ue)

{

// Check for other CosNaming exceptions

System.out.println("CORBA CosNaming exception:\n");

stat2.setText("Error1");

ue.printStackTrace();

}

catch (org.omg.CORBA.SystemException se)

{

System.out.println("Received CORBA system exception while instantiating
component:\n");

se.printStackTrace();

}

}



}

////////////////////////////////////


Dave Wolf [Sybase] Posted on 2000-02-22 02:08:56.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Jaguar Client Problem
Date: Mon, 21 Feb 2000 21:08:56 -0500
Lines: 228
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 158.159.8.19
Message-ID: <347_sJyjLpNf$GA.65@forums.sybase.com>
References: <347_99yvnjKf$GA.298@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28241
Article PK: 160288

Please have them either

1) Use a Java1 VM instead of Java2 or
2) Use the SessionManager API instead of CosNaming.

Dave Wolf
Internet Applications Division

Stephen Barrett <smb@mindspring.com> wrote in message
news:99yvnjKf$GA.298@forums.sybase.com...
> All,
>
> We are trying to get a demo going for some bigwigs so we can do a proof of
> concept. I am responsible for the Jaguar server side and a business
partner
> is responsible for the client side. I wrote the server component using
PB.
> Our partner is trying to write the client in Java, which I know only a
> little bit about. I generated the Java proxy stub for the component I
> created and sent to our partner along with the Jaguar client. Our
partners
> wrote the code attached at bottom taking it directly from the Tutorial
> provided with Jaguar and modifying it with our package information. Note,
> the ip address information has been changed for this posting. They say
> everything is compiling just fine. When they try to run the applet, they
> get the following error message.
>
>
> org.omg.CORBA.BAD_OPERATION: The delegate has not been set! minor code: 0
> completed: No
> at org.omg.CORBA.portable.ObjectImpl._get_delegate(ObjectImp.java:42)
> at
> org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:55)
> at publish.init(publish:56)
> at sun.applet.AppletPanel.run(AppletPanel.java:344)
> at java.lang.Thread.run(Thread.java:484)
>
>
> Any help would be greatly appreciated. I am under the gun to get things
> done as usual. Could anyone responding also respond to my email address
> (smb@revsysinc.com)..
>
> Thanks in advance.
> //////////////////////////////////////////
>
> import COM.activesw.aweb.client.*;
>
> import SessionManager.*;
>
> import org.omg.CORBA.*;
>
> import org.omg.CosNaming.*;
>
> import RevenueSystems.*;
>
> // CORBA CosNaming interfaces
>
> import org.omg.CosNaming.NamingContextPackage.*;
>
>
>
> // CosNaming user exceptions
>
> import java.applet.*;
>
> import java.awt.*;
>
> public class publish extends Applet
>
> {
>
> static String brokerHost = "ricks2300";
>
> static String brokerName = "Emv";
>
> static String clientGroup = "ComApp";
>
> Button connect;
>
> TextField result_text;
>
> TextField stat1;
>
> TextField stat2;
>
> TextField stat3;
>
> RevenueSystems.n_jag_renewal renew=null;
>
> public void init()
>
> {
>
> int counter=2;
>
> BrokerClient activeC;
>
> stat1=new TextField(" ");
>
> stat2=new TextField(" ");
>
> stat3=new TextField(" ");
>
> stat1.setText("Sason");
>
> this.add(stat1);
>
> this.add(stat2);
>
> this.add(stat3);
>
> // activeConn();
>
> try
>
> {
>
> // Initialize the CORBA client-side ORB and
>
> // obtain a stub for the Jaguar component instance.
>
> System.out.println("... Creating Jaguar session.");
>
> stat1.setText("Creating Jaguar session");
>
> // Initialize the ORB. Note that the org.omg.CORBA.ORBClass
>
> // property must be set in applet parameters.
>
> java.util.Properties props = new java.util.Properties();
>
>
> props.put("org.omg.CORBA.ORBClass","com.sybase.CORBA.ORB");
>
>
> // Assume the download host is a Jaguar name
>
> // server using the default IIOP port number
>
>
props.put("com.sybase.CORBA.NameServiceURL","iiop://111.222.333.444:9000");
>
> ORB orb = ORB.init(this, props);
>
> NamingContext nc = null;
>
> org.omg.CORBA.Object objRef = null;
>
> objRef = orb.resolve_initial_references("NameService");
>
> nc = NamingContextHelper.narrow(objRef);
>
> System.out.println("... Creating component instance.");
>
> stat2.setText("Creating component instance");
>
> NameComponent compNc[] = { new
NameComponent("RevenueSystems/n_jag_renewal",
> "") };
>
> Factory compFactory = FactoryHelper.narrow ( nc.resolve(compNc) );
>
> renew =
> RevenueSystems.n_jag_renewalHelper.narrow(compFactory.create("jagadmin",
> "") );
>
> // Create a stub object instance for the
>
> }
>
> catch (NotFound nfe)
>
> {
>
> // This can happen if you have installed
>
> // the tutorial component under a different
>
> // package or component name in Jaguar Manager.
>
> System.out.println("Error: Component not found. Check the package and
> component "
>
> + "name in Jaguar Manager.\n");
>
> System.out.println("NotFound exception details:\n");
>
> nfe.printStackTrace();
>
> }
>
> catch (org.omg.CORBA.UserException ue)
>
> {
>
> // Check for other CosNaming exceptions
>
> System.out.println("CORBA CosNaming exception:\n");
>
> stat2.setText("Error1");
>
> ue.printStackTrace();
>
> }
>
> catch (org.omg.CORBA.SystemException se)
>
> {
>
> System.out.println("Received CORBA system exception while instantiating
> component:\n");
>
> se.printStackTrace();
>
> }
>
> }
>
>
>
> }
>
> ////////////////////////////////////
>
>
>


Stephen Barrett Posted on 2000-02-22 16:07:36.0Z
Newsgroups: sybase.public.easerver
From: "Stephen Barrett" <smb@mindspring.com>
Subject: Re: Jaguar Client Problem
Date: Tue, 22 Feb 2000 11:07:36 -0500
Lines: 246
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
NNTP-Posting-Host: smtp.revsysinc.com 38.177.238.2
Message-ID: <347_z7jUz8Uf$GA.251@forums.sybase.com>
References: <347_99yvnjKf$GA.298@forums.sybase.com> <347_sJyjLpNf$GA.65@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28186
Article PK: 160066

They are using Sun's JDK 1.1 and are using Applet viewer to try and run it.
They tried to use the SessionManager API prior to using the CosNaming but
had no luck. Do you know if Sun's JDK 1.1 uses a Java1 VM?

TIA,
Stephen

"Dave Wolf [Sybase]" <dwolf@sybase.com> wrote in message
news:sJyjLpNf$GA.65@forums.sybase.com...
> Please have them either
>
> 1) Use a Java1 VM instead of Java2 or
> 2) Use the SessionManager API instead of CosNaming.
>
> Dave Wolf
> Internet Applications Division
>
> Stephen Barrett <smb@mindspring.com> wrote in message
> news:99yvnjKf$GA.298@forums.sybase.com...
> > All,
> >
> > We are trying to get a demo going for some bigwigs so we can do a proof
of
> > concept. I am responsible for the Jaguar server side and a business
> partner
> > is responsible for the client side. I wrote the server component using
> PB.
> > Our partner is trying to write the client in Java, which I know only a
> > little bit about. I generated the Java proxy stub for the component I
> > created and sent to our partner along with the Jaguar client. Our
> partners
> > wrote the code attached at bottom taking it directly from the Tutorial
> > provided with Jaguar and modifying it with our package information.
Note,
> > the ip address information has been changed for this posting. They say
> > everything is compiling just fine. When they try to run the applet,
they
> > get the following error message.
> >
> >
> > org.omg.CORBA.BAD_OPERATION: The delegate has not been set! minor code:
0
> > completed: No
> > at
org.omg.CORBA.portable.ObjectImpl._get_delegate(ObjectImp.java:42)
> > at
> >
org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:55)
> > at publish.init(publish:56)
> > at sun.applet.AppletPanel.run(AppletPanel.java:344)
> > at java.lang.Thread.run(Thread.java:484)
> >
> >
> > Any help would be greatly appreciated. I am under the gun to get things
> > done as usual. Could anyone responding also respond to my email address
> > (smb@revsysinc.com)..
> >
> > Thanks in advance.
> > //////////////////////////////////////////
> >
> > import COM.activesw.aweb.client.*;
> >
> > import SessionManager.*;
> >
> > import org.omg.CORBA.*;
> >
> > import org.omg.CosNaming.*;
> >
> > import RevenueSystems.*;
> >
> > // CORBA CosNaming interfaces
> >
> > import org.omg.CosNaming.NamingContextPackage.*;
> >
> >
> >
> > // CosNaming user exceptions
> >
> > import java.applet.*;
> >
> > import java.awt.*;
> >
> > public class publish extends Applet
> >
> > {
> >
> > static String brokerHost = "ricks2300";
> >
> > static String brokerName = "Emv";
> >
> > static String clientGroup = "ComApp";
> >
> > Button connect;
> >
> > TextField result_text;
> >
> > TextField stat1;
> >
> > TextField stat2;
> >
> > TextField stat3;
> >
> > RevenueSystems.n_jag_renewal renew=null;
> >
> > public void init()
> >
> > {
> >
> > int counter=2;
> >
> > BrokerClient activeC;
> >
> > stat1=new TextField(" ");
> >
> > stat2=new TextField(" ");
> >
> > stat3=new TextField(" ");
> >
> > stat1.setText("Sason");
> >
> > this.add(stat1);
> >
> > this.add(stat2);
> >
> > this.add(stat3);
> >
> > // activeConn();
> >
> > try
> >
> > {
> >
> > // Initialize the CORBA client-side ORB and
> >
> > // obtain a stub for the Jaguar component instance.
> >
> > System.out.println("... Creating Jaguar session.");
> >
> > stat1.setText("Creating Jaguar session");
> >
> > // Initialize the ORB. Note that the org.omg.CORBA.ORBClass
> >
> > // property must be set in applet parameters.
> >
> > java.util.Properties props = new java.util.Properties();
> >
> >
> > props.put("org.omg.CORBA.ORBClass","com.sybase.CORBA.ORB");
> >
> >
> > // Assume the download host is a Jaguar name
> >
> > // server using the default IIOP port number
> >
> >
>
props.put("com.sybase.CORBA.NameServiceURL","iiop://111.222.333.444:9000");
> >
> > ORB orb = ORB.init(this, props);
> >
> > NamingContext nc = null;
> >
> > org.omg.CORBA.Object objRef = null;
> >
> > objRef = orb.resolve_initial_references("NameService");
> >
> > nc = NamingContextHelper.narrow(objRef);
> >
> > System.out.println("... Creating component instance.");
> >
> > stat2.setText("Creating component instance");
> >
> > NameComponent compNc[] = { new
> NameComponent("RevenueSystems/n_jag_renewal",
> > "") };
> >
> > Factory compFactory = FactoryHelper.narrow ( nc.resolve(compNc) );
> >
> > renew =
> > RevenueSystems.n_jag_renewalHelper.narrow(compFactory.create("jagadmin",
> > "") );
> >
> > // Create a stub object instance for the
> >
> > }
> >
> > catch (NotFound nfe)
> >
> > {
> >
> > // This can happen if you have installed
> >
> > // the tutorial component under a different
> >
> > // package or component name in Jaguar Manager.
> >
> > System.out.println("Error: Component not found. Check the package and
> > component "
> >
> > + "name in Jaguar Manager.\n");
> >
> > System.out.println("NotFound exception details:\n");
> >
> > nfe.printStackTrace();
> >
> > }
> >
> > catch (org.omg.CORBA.UserException ue)
> >
> > {
> >
> > // Check for other CosNaming exceptions
> >
> > System.out.println("CORBA CosNaming exception:\n");
> >
> > stat2.setText("Error1");
> >
> > ue.printStackTrace();
> >
> > }
> >
> > catch (org.omg.CORBA.SystemException se)
> >
> > {
> >
> > System.out.println("Received CORBA system exception while instantiating
> > component:\n");
> >
> > se.printStackTrace();
> >
> > }
> >
> > }
> >
> >
> >
> > }
> >
> > ////////////////////////////////////
> >
> >
> >
>
>


Dave Wolf [Sybase] Posted on 2000-02-22 16:09:31.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Jaguar Client Problem
Date: Tue, 22 Feb 2000 11:09:31 -0500
Lines: 269
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: dwolf-nt.sybase.com 157.133.41.127
Message-ID: <347_URE43#Uf$GA.202@forums.sybase.com>
References: <347_99yvnjKf$GA.298@forums.sybase.com> <347_sJyjLpNf$GA.65@forums.sybase.com> <347_z7jUz8Uf$GA.251@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28185
Article PK: 160065

They cant be using Java1 and seeing the error below. That only can occur
when the Java2 VM is run and it loads the Java2 rt.jar. Please have them
double check their VM. Again, this error cant normally happen with
SessionManager since it doesnt reference CosNaming at all and this is only
related to CosNaming.

Dave Wolf
Internet Applications Division

Stephen Barrett <smb@mindspring.com> wrote in message
news:z7jUz8Uf$GA.251@forums.sybase.com...
> They are using Sun's JDK 1.1 and are using Applet viewer to try and run
it.
> They tried to use the SessionManager API prior to using the CosNaming but
> had no luck. Do you know if Sun's JDK 1.1 uses a Java1 VM?
>
> TIA,
> Stephen
>
> "Dave Wolf [Sybase]" <dwolf@sybase.com> wrote in message
> news:sJyjLpNf$GA.65@forums.sybase.com...
> > Please have them either
> >
> > 1) Use a Java1 VM instead of Java2 or
> > 2) Use the SessionManager API instead of CosNaming.
> >
> > Dave Wolf
> > Internet Applications Division
> >
> > Stephen Barrett <smb@mindspring.com> wrote in message
> > news:99yvnjKf$GA.298@forums.sybase.com...
> > > All,
> > >
> > > We are trying to get a demo going for some bigwigs so we can do a
proof
> of
> > > concept. I am responsible for the Jaguar server side and a business
> > partner
> > > is responsible for the client side. I wrote the server component
using
> > PB.
> > > Our partner is trying to write the client in Java, which I know only a
> > > little bit about. I generated the Java proxy stub for the component I
> > > created and sent to our partner along with the Jaguar client. Our
> > partners
> > > wrote the code attached at bottom taking it directly from the Tutorial
> > > provided with Jaguar and modifying it with our package information.
> Note,
> > > the ip address information has been changed for this posting. They
say
> > > everything is compiling just fine. When they try to run the applet,
> they
> > > get the following error message.
> > >
> > >
> > > org.omg.CORBA.BAD_OPERATION: The delegate has not been set! minor
code:
> 0
> > > completed: No
> > > at
> org.omg.CORBA.portable.ObjectImpl._get_delegate(ObjectImp.java:42)
> > > at
> > >
> org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:55)
> > > at publish.init(publish:56)
> > > at sun.applet.AppletPanel.run(AppletPanel.java:344)
> > > at java.lang.Thread.run(Thread.java:484)
> > >
> > >
> > > Any help would be greatly appreciated. I am under the gun to get
things
> > > done as usual. Could anyone responding also respond to my email
address
> > > (smb@revsysinc.com)..
> > >
> > > Thanks in advance.
> > > //////////////////////////////////////////
> > >
> > > import COM.activesw.aweb.client.*;
> > >
> > > import SessionManager.*;
> > >
> > > import org.omg.CORBA.*;
> > >
> > > import org.omg.CosNaming.*;
> > >
> > > import RevenueSystems.*;
> > >
> > > // CORBA CosNaming interfaces
> > >
> > > import org.omg.CosNaming.NamingContextPackage.*;
> > >
> > >
> > >
> > > // CosNaming user exceptions
> > >
> > > import java.applet.*;
> > >
> > > import java.awt.*;
> > >
> > > public class publish extends Applet
> > >
> > > {
> > >
> > > static String brokerHost = "ricks2300";
> > >
> > > static String brokerName = "Emv";
> > >
> > > static String clientGroup = "ComApp";
> > >
> > > Button connect;
> > >
> > > TextField result_text;
> > >
> > > TextField stat1;
> > >
> > > TextField stat2;
> > >
> > > TextField stat3;
> > >
> > > RevenueSystems.n_jag_renewal renew=null;
> > >
> > > public void init()
> > >
> > > {
> > >
> > > int counter=2;
> > >
> > > BrokerClient activeC;
> > >
> > > stat1=new TextField(" ");
> > >
> > > stat2=new TextField(" ");
> > >
> > > stat3=new TextField(" ");
> > >
> > > stat1.setText("Sason");
> > >
> > > this.add(stat1);
> > >
> > > this.add(stat2);
> > >
> > > this.add(stat3);
> > >
> > > // activeConn();
> > >
> > > try
> > >
> > > {
> > >
> > > // Initialize the CORBA client-side ORB and
> > >
> > > // obtain a stub for the Jaguar component instance.
> > >
> > > System.out.println("... Creating Jaguar session.");
> > >
> > > stat1.setText("Creating Jaguar session");
> > >
> > > // Initialize the ORB. Note that the org.omg.CORBA.ORBClass
> > >
> > > // property must be set in applet parameters.
> > >
> > > java.util.Properties props = new java.util.Properties();
> > >
> > >
> > > props.put("org.omg.CORBA.ORBClass","com.sybase.CORBA.ORB");
> > >
> > >
> > > // Assume the download host is a Jaguar name
> > >
> > > // server using the default IIOP port number
> > >
> > >
> >
>
props.put("com.sybase.CORBA.NameServiceURL","iiop://111.222.333.444:9000");
> > >
> > > ORB orb = ORB.init(this, props);
> > >
> > > NamingContext nc = null;
> > >
> > > org.omg.CORBA.Object objRef = null;
> > >
> > > objRef = orb.resolve_initial_references("NameService");
> > >
> > > nc = NamingContextHelper.narrow(objRef);
> > >
> > > System.out.println("... Creating component instance.");
> > >
> > > stat2.setText("Creating component instance");
> > >
> > > NameComponent compNc[] = { new
> > NameComponent("RevenueSystems/n_jag_renewal",
> > > "") };
> > >
> > > Factory compFactory = FactoryHelper.narrow ( nc.resolve(compNc) );
> > >
> > > renew =
> > >
RevenueSystems.n_jag_renewalHelper.narrow(compFactory.create("jagadmin",
> > > "") );
> > >
> > > // Create a stub object instance for the
> > >
> > > }
> > >
> > > catch (NotFound nfe)
> > >
> > > {
> > >
> > > // This can happen if you have installed
> > >
> > > // the tutorial component under a different
> > >
> > > // package or component name in Jaguar Manager.
> > >
> > > System.out.println("Error: Component not found. Check the package and
> > > component "
> > >
> > > + "name in Jaguar Manager.\n");
> > >
> > > System.out.println("NotFound exception details:\n");
> > >
> > > nfe.printStackTrace();
> > >
> > > }
> > >
> > > catch (org.omg.CORBA.UserException ue)
> > >
> > > {
> > >
> > > // Check for other CosNaming exceptions
> > >
> > > System.out.println("CORBA CosNaming exception:\n");
> > >
> > > stat2.setText("Error1");
> > >
> > > ue.printStackTrace();
> > >
> > > }
> > >
> > > catch (org.omg.CORBA.SystemException se)
> > >
> > > {
> > >
> > > System.out.println("Received CORBA system exception while
instantiating
> > > component:\n");
> > >
> > > se.printStackTrace();
> > >
> > > }
> > >
> > > }
> > >
> > >
> > >
> > > }
> > >
> > > ////////////////////////////////////
> > >
> > >
> > >
> >
> >
>
>


Stephen Barrett Posted on 2000-02-22 17:33:16.0Z
Newsgroups: sybase.public.easerver
From: "Stephen Barrett" <smb@mindspring.com>
Subject: Re: Jaguar Client Problem
Date: Tue, 22 Feb 2000 12:33:16 -0500
Lines: 286
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
NNTP-Posting-Host: smtp.revsysinc.com 38.177.238.2
Message-ID: <347_lwEvrsVf$GA.201@forums.sybase.com>
References: <347_99yvnjKf$GA.298@forums.sybase.com> <347_sJyjLpNf$GA.65@forums.sybase.com> <347_z7jUz8Uf$GA.251@forums.sybase.com> <347_URE43#Uf$GA.202@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28168
Article PK: 160047

Hmm.. Do you know where we can get a Java1 VM that would be compatible with
the 1.1 JDK or a JDK version that we can use for this? Thanks for all your
help.

Stephen

"Dave Wolf [Sybase]" <dwolf@sybase.com> wrote in message
news:URE43#Uf$GA.202@forums.sybase.com...
> They cant be using Java1 and seeing the error below. That only can occur
> when the Java2 VM is run and it loads the Java2 rt.jar. Please have them
> double check their VM. Again, this error cant normally happen with
> SessionManager since it doesnt reference CosNaming at all and this is only
> related to CosNaming.
>
> Dave Wolf
> Internet Applications Division
>
> Stephen Barrett <smb@mindspring.com> wrote in message
> news:z7jUz8Uf$GA.251@forums.sybase.com...
> > They are using Sun's JDK 1.1 and are using Applet viewer to try and run
> it.
> > They tried to use the SessionManager API prior to using the CosNaming
but
> > had no luck. Do you know if Sun's JDK 1.1 uses a Java1 VM?
> >
> > TIA,
> > Stephen
> >
> > "Dave Wolf [Sybase]" <dwolf@sybase.com> wrote in message
> > news:sJyjLpNf$GA.65@forums.sybase.com...
> > > Please have them either
> > >
> > > 1) Use a Java1 VM instead of Java2 or
> > > 2) Use the SessionManager API instead of CosNaming.
> > >
> > > Dave Wolf
> > > Internet Applications Division
> > >
> > > Stephen Barrett <smb@mindspring.com> wrote in message
> > > news:99yvnjKf$GA.298@forums.sybase.com...
> > > > All,
> > > >
> > > > We are trying to get a demo going for some bigwigs so we can do a
> proof
> > of
> > > > concept. I am responsible for the Jaguar server side and a business
> > > partner
> > > > is responsible for the client side. I wrote the server component
> using
> > > PB.
> > > > Our partner is trying to write the client in Java, which I know only
a
> > > > little bit about. I generated the Java proxy stub for the component
I
> > > > created and sent to our partner along with the Jaguar client. Our
> > > partners
> > > > wrote the code attached at bottom taking it directly from the
Tutorial
> > > > provided with Jaguar and modifying it with our package information.
> > Note,
> > > > the ip address information has been changed for this posting. They
> say
> > > > everything is compiling just fine. When they try to run the applet,
> > they
> > > > get the following error message.
> > > >
> > > >
> > > > org.omg.CORBA.BAD_OPERATION: The delegate has not been set! minor
> code:
> > 0
> > > > completed: No
> > > > at
> > org.omg.CORBA.portable.ObjectImpl._get_delegate(ObjectImp.java:42)
> > > > at
> > > >
> >
org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:55)
> > > > at publish.init(publish:56)
> > > > at sun.applet.AppletPanel.run(AppletPanel.java:344)
> > > > at java.lang.Thread.run(Thread.java:484)
> > > >
> > > >
> > > > Any help would be greatly appreciated. I am under the gun to get
> things
> > > > done as usual. Could anyone responding also respond to my email
> address
> > > > (smb@revsysinc.com)..
> > > >
> > > > Thanks in advance.
> > > > //////////////////////////////////////////
> > > >
> > > > import COM.activesw.aweb.client.*;
> > > >
> > > > import SessionManager.*;
> > > >
> > > > import org.omg.CORBA.*;
> > > >
> > > > import org.omg.CosNaming.*;
> > > >
> > > > import RevenueSystems.*;
> > > >
> > > > // CORBA CosNaming interfaces
> > > >
> > > > import org.omg.CosNaming.NamingContextPackage.*;
> > > >
> > > >
> > > >
> > > > // CosNaming user exceptions
> > > >
> > > > import java.applet.*;
> > > >
> > > > import java.awt.*;
> > > >
> > > > public class publish extends Applet
> > > >
> > > > {
> > > >
> > > > static String brokerHost = "ricks2300";
> > > >
> > > > static String brokerName = "Emv";
> > > >
> > > > static String clientGroup = "ComApp";
> > > >
> > > > Button connect;
> > > >
> > > > TextField result_text;
> > > >
> > > > TextField stat1;
> > > >
> > > > TextField stat2;
> > > >
> > > > TextField stat3;
> > > >
> > > > RevenueSystems.n_jag_renewal renew=null;
> > > >
> > > > public void init()
> > > >
> > > > {
> > > >
> > > > int counter=2;
> > > >
> > > > BrokerClient activeC;
> > > >
> > > > stat1=new TextField(" ");
> > > >
> > > > stat2=new TextField(" ");
> > > >
> > > > stat3=new TextField(" ");
> > > >
> > > > stat1.setText("Sason");
> > > >
> > > > this.add(stat1);
> > > >
> > > > this.add(stat2);
> > > >
> > > > this.add(stat3);
> > > >
> > > > // activeConn();
> > > >
> > > > try
> > > >
> > > > {
> > > >
> > > > // Initialize the CORBA client-side ORB and
> > > >
> > > > // obtain a stub for the Jaguar component instance.
> > > >
> > > > System.out.println("... Creating Jaguar session.");
> > > >
> > > > stat1.setText("Creating Jaguar session");
> > > >
> > > > // Initialize the ORB. Note that the org.omg.CORBA.ORBClass
> > > >
> > > > // property must be set in applet parameters.
> > > >
> > > > java.util.Properties props = new java.util.Properties();
> > > >
> > > >
> > > > props.put("org.omg.CORBA.ORBClass","com.sybase.CORBA.ORB");
> > > >
> > > >
> > > > // Assume the download host is a Jaguar name
> > > >
> > > > // server using the default IIOP port number
> > > >
> > > >
> > >
> >
>
props.put("com.sybase.CORBA.NameServiceURL","iiop://111.222.333.444:9000");
> > > >
> > > > ORB orb = ORB.init(this, props);
> > > >
> > > > NamingContext nc = null;
> > > >
> > > > org.omg.CORBA.Object objRef = null;
> > > >
> > > > objRef = orb.resolve_initial_references("NameService");
> > > >
> > > > nc = NamingContextHelper.narrow(objRef);
> > > >
> > > > System.out.println("... Creating component instance.");
> > > >
> > > > stat2.setText("Creating component instance");
> > > >
> > > > NameComponent compNc[] = { new
> > > NameComponent("RevenueSystems/n_jag_renewal",
> > > > "") };
> > > >
> > > > Factory compFactory = FactoryHelper.narrow ( nc.resolve(compNc) );
> > > >
> > > > renew =
> > > >
> RevenueSystems.n_jag_renewalHelper.narrow(compFactory.create("jagadmin",
> > > > "") );
> > > >
> > > > // Create a stub object instance for the
> > > >
> > > > }
> > > >
> > > > catch (NotFound nfe)
> > > >
> > > > {
> > > >
> > > > // This can happen if you have installed
> > > >
> > > > // the tutorial component under a different
> > > >
> > > > // package or component name in Jaguar Manager.
> > > >
> > > > System.out.println("Error: Component not found. Check the package
and
> > > > component "
> > > >
> > > > + "name in Jaguar Manager.\n");
> > > >
> > > > System.out.println("NotFound exception details:\n");
> > > >
> > > > nfe.printStackTrace();
> > > >
> > > > }
> > > >
> > > > catch (org.omg.CORBA.UserException ue)
> > > >
> > > > {
> > > >
> > > > // Check for other CosNaming exceptions
> > > >
> > > > System.out.println("CORBA CosNaming exception:\n");
> > > >
> > > > stat2.setText("Error1");
> > > >
> > > > ue.printStackTrace();
> > > >
> > > > }
> > > >
> > > > catch (org.omg.CORBA.SystemException se)
> > > >
> > > > {
> > > >
> > > > System.out.println("Received CORBA system exception while
> instantiating
> > > > component:\n");
> > > >
> > > > se.printStackTrace();
> > > >
> > > > }
> > > >
> > > > }
> > > >
> > > >
> > > >
> > > > }
> > > >
> > > > ////////////////////////////////////
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Dave Wolf [Sybase] Posted on 2000-02-22 17:48:15.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Jaguar Client Problem
Date: Tue, 22 Feb 2000 12:48:15 -0500
Lines: 308
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: dwolf-nt.sybase.com 157.133.41.127
Message-ID: <347_ouBLD2Vf$GA.201@forums.sybase.com>
References: <347_99yvnjKf$GA.298@forums.sybase.com> <347_sJyjLpNf$GA.65@forums.sybase.com> <347_z7jUz8Uf$GA.251@forums.sybase.com> <347_URE43#Uf$GA.202@forums.sybase.com> <347_lwEvrsVf$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28165
Article PK: 160045

If they do java -version what do they see?

Dave Wolf
Internet Applications Division

Stephen Barrett <smb@mindspring.com> wrote in message
news:lwEvrsVf$GA.201@forums.sybase.com...
> Hmm.. Do you know where we can get a Java1 VM that would be compatible
with
> the 1.1 JDK or a JDK version that we can use for this? Thanks for all
your
> help.
>
> Stephen
>
> "Dave Wolf [Sybase]" <dwolf@sybase.com> wrote in message
> news:URE43#Uf$GA.202@forums.sybase.com...
> > They cant be using Java1 and seeing the error below. That only can
occur
> > when the Java2 VM is run and it loads the Java2 rt.jar. Please have
them
> > double check their VM. Again, this error cant normally happen with
> > SessionManager since it doesnt reference CosNaming at all and this is
only
> > related to CosNaming.
> >
> > Dave Wolf
> > Internet Applications Division
> >
> > Stephen Barrett <smb@mindspring.com> wrote in message
> > news:z7jUz8Uf$GA.251@forums.sybase.com...
> > > They are using Sun's JDK 1.1 and are using Applet viewer to try and
run
> > it.
> > > They tried to use the SessionManager API prior to using the CosNaming
> but
> > > had no luck. Do you know if Sun's JDK 1.1 uses a Java1 VM?
> > >
> > > TIA,
> > > Stephen
> > >
> > > "Dave Wolf [Sybase]" <dwolf@sybase.com> wrote in message
> > > news:sJyjLpNf$GA.65@forums.sybase.com...
> > > > Please have them either
> > > >
> > > > 1) Use a Java1 VM instead of Java2 or
> > > > 2) Use the SessionManager API instead of CosNaming.
> > > >
> > > > Dave Wolf
> > > > Internet Applications Division
> > > >
> > > > Stephen Barrett <smb@mindspring.com> wrote in message
> > > > news:99yvnjKf$GA.298@forums.sybase.com...
> > > > > All,
> > > > >
> > > > > We are trying to get a demo going for some bigwigs so we can do a
> > proof
> > > of
> > > > > concept. I am responsible for the Jaguar server side and a
business
> > > > partner
> > > > > is responsible for the client side. I wrote the server component
> > using
> > > > PB.
> > > > > Our partner is trying to write the client in Java, which I know
only
> a
> > > > > little bit about. I generated the Java proxy stub for the
component
> I
> > > > > created and sent to our partner along with the Jaguar client. Our
> > > > partners
> > > > > wrote the code attached at bottom taking it directly from the
> Tutorial
> > > > > provided with Jaguar and modifying it with our package
information.
> > > Note,
> > > > > the ip address information has been changed for this posting.
They
> > say
> > > > > everything is compiling just fine. When they try to run the
applet,
> > > they
> > > > > get the following error message.
> > > > >
> > > > >
> > > > > org.omg.CORBA.BAD_OPERATION: The delegate has not been set! minor
> > code:
> > > 0
> > > > > completed: No
> > > > > at
> > > org.omg.CORBA.portable.ObjectImpl._get_delegate(ObjectImp.java:42)
> > > > > at
> > > > >
> > >
> org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:55)
> > > > > at publish.init(publish:56)
> > > > > at sun.applet.AppletPanel.run(AppletPanel.java:344)
> > > > > at java.lang.Thread.run(Thread.java:484)
> > > > >
> > > > >
> > > > > Any help would be greatly appreciated. I am under the gun to get
> > things
> > > > > done as usual. Could anyone responding also respond to my email
> > address
> > > > > (smb@revsysinc.com)..
> > > > >
> > > > > Thanks in advance.
> > > > > //////////////////////////////////////////
> > > > >
> > > > > import COM.activesw.aweb.client.*;
> > > > >
> > > > > import SessionManager.*;
> > > > >
> > > > > import org.omg.CORBA.*;
> > > > >
> > > > > import org.omg.CosNaming.*;
> > > > >
> > > > > import RevenueSystems.*;
> > > > >
> > > > > // CORBA CosNaming interfaces
> > > > >
> > > > > import org.omg.CosNaming.NamingContextPackage.*;
> > > > >
> > > > >
> > > > >
> > > > > // CosNaming user exceptions
> > > > >
> > > > > import java.applet.*;
> > > > >
> > > > > import java.awt.*;
> > > > >
> > > > > public class publish extends Applet
> > > > >
> > > > > {
> > > > >
> > > > > static String brokerHost = "ricks2300";
> > > > >
> > > > > static String brokerName = "Emv";
> > > > >
> > > > > static String clientGroup = "ComApp";
> > > > >
> > > > > Button connect;
> > > > >
> > > > > TextField result_text;
> > > > >
> > > > > TextField stat1;
> > > > >
> > > > > TextField stat2;
> > > > >
> > > > > TextField stat3;
> > > > >
> > > > > RevenueSystems.n_jag_renewal renew=null;
> > > > >
> > > > > public void init()
> > > > >
> > > > > {
> > > > >
> > > > > int counter=2;
> > > > >
> > > > > BrokerClient activeC;
> > > > >
> > > > > stat1=new TextField(" ");
> > > > >
> > > > > stat2=new TextField(" ");
> > > > >
> > > > > stat3=new TextField(" ");
> > > > >
> > > > > stat1.setText("Sason");
> > > > >
> > > > > this.add(stat1);
> > > > >
> > > > > this.add(stat2);
> > > > >
> > > > > this.add(stat3);
> > > > >
> > > > > // activeConn();
> > > > >
> > > > > try
> > > > >
> > > > > {
> > > > >
> > > > > // Initialize the CORBA client-side ORB and
> > > > >
> > > > > // obtain a stub for the Jaguar component instance.
> > > > >
> > > > > System.out.println("... Creating Jaguar session.");
> > > > >
> > > > > stat1.setText("Creating Jaguar session");
> > > > >
> > > > > // Initialize the ORB. Note that the org.omg.CORBA.ORBClass
> > > > >
> > > > > // property must be set in applet parameters.
> > > > >
> > > > > java.util.Properties props = new java.util.Properties();
> > > > >
> > > > >
> > > > > props.put("org.omg.CORBA.ORBClass","com.sybase.CORBA.ORB");
> > > > >
> > > > >
> > > > > // Assume the download host is a Jaguar name
> > > > >
> > > > > // server using the default IIOP port number
> > > > >
> > > > >
> > > >
> > >
> >
>
props.put("com.sybase.CORBA.NameServiceURL","iiop://111.222.333.444:9000");
> > > > >
> > > > > ORB orb = ORB.init(this, props);
> > > > >
> > > > > NamingContext nc = null;
> > > > >
> > > > > org.omg.CORBA.Object objRef = null;
> > > > >
> > > > > objRef = orb.resolve_initial_references("NameService");
> > > > >
> > > > > nc = NamingContextHelper.narrow(objRef);
> > > > >
> > > > > System.out.println("... Creating component instance.");
> > > > >
> > > > > stat2.setText("Creating component instance");
> > > > >
> > > > > NameComponent compNc[] = { new
> > > > NameComponent("RevenueSystems/n_jag_renewal",
> > > > > "") };
> > > > >
> > > > > Factory compFactory = FactoryHelper.narrow ( nc.resolve(compNc) );
> > > > >
> > > > > renew =
> > > > >
> > RevenueSystems.n_jag_renewalHelper.narrow(compFactory.create("jagadmin",
> > > > > "") );
> > > > >
> > > > > // Create a stub object instance for the
> > > > >
> > > > > }
> > > > >
> > > > > catch (NotFound nfe)
> > > > >
> > > > > {
> > > > >
> > > > > // This can happen if you have installed
> > > > >
> > > > > // the tutorial component under a different
> > > > >
> > > > > // package or component name in Jaguar Manager.
> > > > >
> > > > > System.out.println("Error: Component not found. Check the package
> and
> > > > > component "
> > > > >
> > > > > + "name in Jaguar Manager.\n");
> > > > >
> > > > > System.out.println("NotFound exception details:\n");
> > > > >
> > > > > nfe.printStackTrace();
> > > > >
> > > > > }
> > > > >
> > > > > catch (org.omg.CORBA.UserException ue)
> > > > >
> > > > > {
> > > > >
> > > > > // Check for other CosNaming exceptions
> > > > >
> > > > > System.out.println("CORBA CosNaming exception:\n");
> > > > >
> > > > > stat2.setText("Error1");
> > > > >
> > > > > ue.printStackTrace();
> > > > >
> > > > > }
> > > > >
> > > > > catch (org.omg.CORBA.SystemException se)
> > > > >
> > > > > {
> > > > >
> > > > > System.out.println("Received CORBA system exception while
> > instantiating
> > > > > component:\n");
> > > > >
> > > > > se.printStackTrace();
> > > > >
> > > > > }
> > > > >
> > > > > }
> > > > >
> > > > >
> > > > >
> > > > > }
> > > > >
> > > > > ////////////////////////////////////
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>