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.

Java CORBA client error:BAD_OPERATION: The delegate has not been set.

6 posts in General Discussion (old) Last posting was on 2000-05-31 00:33:55.0Z
DJG Posted on 2000-03-01 00:00:21.0Z
Newsgroups: sybase.public.easerver
From: "DJG" <djg@synteleos.com>
Subject: Java CORBA client error:BAD_OPERATION: The delegate has not been set.
Date: Tue, 29 Feb 2000 16:00:21 -0800
Lines: 69
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: 64.14.6.155
Message-ID: <347_h0SN5Oxg$GA.295@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27465
Article PK: 158860

Hi,

I have a problem running a simple Java CORBA client program(ClientTest.java)
listed below:

import java.util.*;
import SessionManager.*;
import org.omg.CORBA.*;
import org.omg.CosNaming.*;
import org.omg.CosNaming.NamingContextPackage.*;
import Ourserverobjects.*; //

public class ClientTest extends java.lang.Object {
public static void main(String[] args) throws Exception

// Component stub instance
n_authentication _comp = null;
String ior = null;
Properties props = new Properties();

props.put("org.omg.CORBA.ORBClass", "com.sybase.CORBA.ORB");
props.put("com.sybase.CORBA.NameServiceURL", "iiop://localhost:9000/");

System.out.println("Initializing ORB object.");
ORB orb = ORB.init(args, props);

System.out.println("Initializing NamingContext.");
NamingContext nc = null;
org.omg.CORBA.Object objRef = null;
try {
objRef = orb.resolve_initial_references( "NameService");
System.out.println("Narrow NamingContext.");
nc = NamingContextHelper.narrow(objRef); // run time error here...
}
catch (org.omg.CORBA.ORBPackage.InvalidName ine)


nc = null;
}
catch (org.omg.CORBA.SystemException se) {
// Catch-all clause for any CORBA system
// exception that was not explicitly caught
// above. Report the error but don't bother
// retrying.
System.out.println("CORBA NamingServer error:" + se.toString());
}


/// more stuff to go here...

}
-----------------------------------------------------------------------
running the above code produces the following output...

Initializing ORB object.
Initializing NamingContext.
Narrow NamingContext.
CORBA NamingServer error:org.omg.CORBA.BAD_OPERATION: The delegate has not
been
set! minor code: 0 completed: No
Error: Could not instantiate CORBA naming context.
-----------------------------------------------------------------------
Jaguar CTS is running on the local host, and "Enable as a Name Serv" is
checked on the
Server Properties:Jaguar dialog. The InitialContext is blank, and the
Naming server strategy
is set to Transient. Any suggestions?


Dave Wolf [Sybase] Posted on 2000-03-01 05:43:48.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Java CORBA client error:BAD_OPERATION: The delegate has not been set.
Date: Wed, 1 Mar 2000 00:43:48 -0500
Lines: 81
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: PPPa8-ResaleDialinx80013-4R7207.saturn.bbn.com 4.54.159.69
Message-ID: <347_hb#hmG0g$GA.295@forums.sybase.com>
References: <347_h0SN5Oxg$GA.295@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27449
Article PK: 158844

This is a known issure with the Java2 VM and is being fixed.

Use Java1 instead

Dave Wolf
Internet Applications Division

"DJG" <djg@synteleos.com> wrote in message
news:h0SN5Oxg$GA.295@forums.sybase.com...
> Hi,
>
> I have a problem running a simple Java CORBA client
program(ClientTest.java)
> listed below:
>
> import java.util.*;
> import SessionManager.*;
> import org.omg.CORBA.*;
> import org.omg.CosNaming.*;
> import org.omg.CosNaming.NamingContextPackage.*;
> import Ourserverobjects.*; //
>
> public class ClientTest extends java.lang.Object {
> public static void main(String[] args) throws Exception
>
> // Component stub instance
> n_authentication _comp = null;
> String ior = null;
> Properties props = new Properties();
>
> props.put("org.omg.CORBA.ORBClass", "com.sybase.CORBA.ORB");
> props.put("com.sybase.CORBA.NameServiceURL", "iiop://localhost:9000/");
>
> System.out.println("Initializing ORB object.");
> ORB orb = ORB.init(args, props);
>
> System.out.println("Initializing NamingContext.");
> NamingContext nc = null;
> org.omg.CORBA.Object objRef = null;
> try {
> objRef = orb.resolve_initial_references( "NameService");
> System.out.println("Narrow NamingContext.");
> nc = NamingContextHelper.narrow(objRef); // run time error here...
> }
> catch (org.omg.CORBA.ORBPackage.InvalidName ine)
>
>
> nc = null;
> }
> catch (org.omg.CORBA.SystemException se) {
> // Catch-all clause for any CORBA system
> // exception that was not explicitly caught
> // above. Report the error but don't bother
> // retrying.
> System.out.println("CORBA NamingServer error:" + se.toString());
> }
>
>
> /// more stuff to go here...
>
> }
> -----------------------------------------------------------------------
> running the above code produces the following output...
>
> Initializing ORB object.
> Initializing NamingContext.
> Narrow NamingContext.
> CORBA NamingServer error:org.omg.CORBA.BAD_OPERATION: The delegate has not
> been
> set! minor code: 0 completed: No
> Error: Could not instantiate CORBA naming context.
> -----------------------------------------------------------------------
> Jaguar CTS is running on the local host, and "Enable as a Name Serv" is
> checked on the
> Server Properties:Jaguar dialog. The InitialContext is blank, and the
> Naming server strategy
> is set to Transient. Any suggestions?
>
>


jhe Posted on 2000-05-31 00:33:55.0Z
Newsgroups: sybase.public.easerver
From: "jhe" <jhe@eoriginal.com>
Subject: Re: Java CORBA client error:BAD_OPERATION: The delegate has not been set.
Date: Tue, 30 May 2000 17:33:55 -0700
Lines: 100
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: mail.eoriginal.com 38.203.126.226
Message-ID: <347_fmp$F$ny$GA.204@forums.sybase.com>
References: <347_h0SN5Oxg$GA.295@forums.sybase.com> <347_hb#hmG0g$GA.295@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:20382
Article PK: 149698

Hello Dave,

I am using a client with JNDI under Java 1.2 to access my EJB components in
EAS and I am getting the same error THE DELEGATE HAS NOT BEEN SET. I
believe this is a known bug to Sybase. What's latest status on this issue?
Will the latest patch from Sybase fix this problem or I will have to wait
for Java 1.3 VM? Thanks!

Jun

P.S. I'd rather not use Corba naming services to access my EJB as a
workaround.

"Dave Wolf [Sybase]" <dwolf@sybase.com> wrote in message
news:hb#hmG0g$GA.295@forums.sybase.com...
> This is a known issure with the Java2 VM and is being fixed.
>
> Use Java1 instead
>
> Dave Wolf
> Internet Applications Division
>
> "DJG" <djg@synteleos.com> wrote in message
> news:h0SN5Oxg$GA.295@forums.sybase.com...
> > Hi,
> >
> > I have a problem running a simple Java CORBA client
> program(ClientTest.java)
> > listed below:
> >
> > import java.util.*;
> > import SessionManager.*;
> > import org.omg.CORBA.*;
> > import org.omg.CosNaming.*;
> > import org.omg.CosNaming.NamingContextPackage.*;
> > import Ourserverobjects.*; //
> >
> > public class ClientTest extends java.lang.Object {
> > public static void main(String[] args) throws Exception
> >
> > // Component stub instance
> > n_authentication _comp = null;
> > String ior = null;
> > Properties props = new Properties();
> >
> > props.put("org.omg.CORBA.ORBClass", "com.sybase.CORBA.ORB");
> > props.put("com.sybase.CORBA.NameServiceURL", "iiop://localhost:9000/");
> >
> > System.out.println("Initializing ORB object.");
> > ORB orb = ORB.init(args, props);
> >
> > System.out.println("Initializing NamingContext.");
> > NamingContext nc = null;
> > org.omg.CORBA.Object objRef = null;
> > try {
> > objRef = orb.resolve_initial_references( "NameService");
> > System.out.println("Narrow NamingContext.");
> > nc = NamingContextHelper.narrow(objRef); // run time error here...
> > }
> > catch (org.omg.CORBA.ORBPackage.InvalidName ine)
> >
> >
> > nc = null;
> > }
> > catch (org.omg.CORBA.SystemException se) {
> > // Catch-all clause for any CORBA system
> > // exception that was not explicitly caught
> > // above. Report the error but don't bother
> > // retrying.
> > System.out.println("CORBA NamingServer error:" + se.toString());
> > }
> >
> >
> > /// more stuff to go here...
> >
> > }
> > -----------------------------------------------------------------------
> > running the above code produces the following output...
> >
> > Initializing ORB object.
> > Initializing NamingContext.
> > Narrow NamingContext.
> > CORBA NamingServer error:org.omg.CORBA.BAD_OPERATION: The delegate has
not
> > been
> > set! minor code: 0 completed: No
> > Error: Could not instantiate CORBA naming context.
> > -----------------------------------------------------------------------
> > Jaguar CTS is running on the local host, and "Enable as a Name Serv" is
> > checked on the
> > Server Properties:Jaguar dialog. The InitialContext is blank, and the
> > Naming server strategy
> > is set to Transient. Any suggestions?
> >
> >
>
>


Dave Wolf [Sybase] Posted on 2000-05-30 21:42:53.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Java CORBA client error:BAD_OPERATION: The delegate has not been set.
Date: Tue, 30 May 2000 17:42:53 -0400
Lines: 116
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: 158.159.8.35
Message-ID: <347_Qg67hDoy$GA.203@forums.sybase.com>
References: <347_h0SN5Oxg$GA.295@forums.sybase.com> <347_hb#hmG0g$GA.295@forums.sybase.com> <347_fmp$F$ny$GA.204@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:20381
Article PK: 149697

Please get the most recent ebf.

Dave Wolf
Internet Applications Division

"jhe" <jhe@eoriginal.com> wrote in message
news:fmp$F$ny$GA.204@forums.sybase.com...
> Hello Dave,
>
> I am using a client with JNDI under Java 1.2 to access my EJB components
in
> EAS and I am getting the same error THE DELEGATE HAS NOT BEEN SET. I
> believe this is a known bug to Sybase. What's latest status on this
issue?
> Will the latest patch from Sybase fix this problem or I will have to wait
> for Java 1.3 VM? Thanks!
>
> Jun
>
> P.S. I'd rather not use Corba naming services to access my EJB as a
> workaround.
>
>
> "Dave Wolf [Sybase]" <dwolf@sybase.com> wrote in message
> news:hb#hmG0g$GA.295@forums.sybase.com...
> > This is a known issure with the Java2 VM and is being fixed.
> >
> > Use Java1 instead
> >
> > Dave Wolf
> > Internet Applications Division
> >
> > "DJG" <djg@synteleos.com> wrote in message
> > news:h0SN5Oxg$GA.295@forums.sybase.com...
> > > Hi,
> > >
> > > I have a problem running a simple Java CORBA client
> > program(ClientTest.java)
> > > listed below:
> > >
> > > import java.util.*;
> > > import SessionManager.*;
> > > import org.omg.CORBA.*;
> > > import org.omg.CosNaming.*;
> > > import org.omg.CosNaming.NamingContextPackage.*;
> > > import Ourserverobjects.*; //
> > >
> > > public class ClientTest extends java.lang.Object {
> > > public static void main(String[] args) throws Exception
> > >
> > > // Component stub instance
> > > n_authentication _comp = null;
> > > String ior = null;
> > > Properties props = new Properties();
> > >
> > > props.put("org.omg.CORBA.ORBClass", "com.sybase.CORBA.ORB");
> > > props.put("com.sybase.CORBA.NameServiceURL",
"iiop://localhost:9000/");
> > >
> > > System.out.println("Initializing ORB object.");
> > > ORB orb = ORB.init(args, props);
> > >
> > > System.out.println("Initializing NamingContext.");
> > > NamingContext nc = null;
> > > org.omg.CORBA.Object objRef = null;
> > > try {
> > > objRef = orb.resolve_initial_references( "NameService");
> > > System.out.println("Narrow NamingContext.");
> > > nc = NamingContextHelper.narrow(objRef); // run time error here...
> > > }
> > > catch (org.omg.CORBA.ORBPackage.InvalidName ine)
> > >
> > >
> > > nc = null;
> > > }
> > > catch (org.omg.CORBA.SystemException se) {
> > > // Catch-all clause for any CORBA system
> > > // exception that was not explicitly caught
> > > // above. Report the error but don't bother
> > > // retrying.
> > > System.out.println("CORBA NamingServer error:" + se.toString());
> > > }
> > >
> > >
> > > /// more stuff to go here...
> > >
> > > }
> >
> -----------------------------------------------------------------------
> > > running the above code produces the following output...
> > >
> > > Initializing ORB object.
> > > Initializing NamingContext.
> > > Narrow NamingContext.
> > > CORBA NamingServer error:org.omg.CORBA.BAD_OPERATION: The delegate has
> not
> > > been
> > > set! minor code: 0 completed: No
> > > Error: Could not instantiate CORBA naming context.
> >
> -----------------------------------------------------------------------
> > > Jaguar CTS is running on the local host, and "Enable as a Name Serv"
is
> > > checked on the
> > > Server Properties:Jaguar dialog. The InitialContext is blank, and
the
> > > Naming server strategy
> > > is set to Transient. Any suggestions?
> > >
> > >
> >
> >
>
>


John Childs Posted on 2000-03-01 15:39:18.0Z
Newsgroups: sybase.public.easerver
From: "John Childs" <john.childs@sybase.com>
Subject: Re: Java CORBA client error:BAD_OPERATION: The delegate has not been set.
Organization: Sybase
X-Newsreader: Microsoft Internet News 4.70.1161
Date: Wed, 01 Mar 2000 10:39:18 -0500
Lines: 89
NNTP-Posting-Host: childs-pc.sybase.com 172.31.141.190
Message-ID: <347_01bf8393$a6774a10$be8d1fac@childs-pc>
References: <347_h0SN5Oxg$GA.295@forums.sybase.com> <347_hb#hmG0g$GA.295@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27428
Article PK: 158826

Dave is correct, a problem with the same error message is being fixed, but
I don't think it will be fixed for the example below.

The example below uses the org.omg.CosNaming classes directly rather than
using
SessionManager (not recommended). We can't work generically (in Java2)
with the example below unless we force our classes to be in front of Sun's
(which isn't always possible on the client side (i.e. Java Plug In). The
issue which is being addressed is with javax Naming.

In fact if you use SessionManager you should not get the problem below
(unless you call toString() or hashCode() ) on your CORBA Object.

FYI

--
John Childs
Sybase
---
Please keep questions to the newsgroups. Bugs should be
reported to technical support.
---

Dave Wolf [Sybase] <dwolf@sybase.com> wrote in article
<hb#hmG0g$GA.295@forums.sybase.com>...
> This is a known issure with the Java2 VM and is being fixed.
>
> Use Java1 instead
>
> Dave Wolf
> Internet Applications Division
>
> "DJG" <djg@synteleos.com> wrote in message
> news:h0SN5Oxg$GA.295@forums.sybase.com...
> > Hi,
> >
> > I have a problem running a simple Java CORBA client
> program(ClientTest.java)
> > listed below:
> >
> > import java.util.*;
> > import SessionManager.*;
> > import org.omg.CORBA.*;
> > import org.omg.CosNaming.*;
> > import org.omg.CosNaming.NamingContextPackage.*;
> > import Ourserverobjects.*; //
> >
> > public class ClientTest extends java.lang.Object {
> > public static void main(String[] args) throws Exception
> >
> > // Component stub instance
> > n_authentication _comp = null;
> > String ior = null;
> > Properties props = new Properties();
> >
> > props.put("org.omg.CORBA.ORBClass", "com.sybase.CORBA.ORB");
> > props.put("com.sybase.CORBA.NameServiceURL",
"iiop://localhost:9000/");
> >
> > System.out.println("Initializing ORB object.");
> > ORB orb = ORB.init(args, props);
> >
> > System.out.println("Initializing NamingContext.");
> > NamingContext nc = null;
> > org.omg.CORBA.Object objRef = null;
> > try {
> > objRef = orb.resolve_initial_references( "NameService");
> > System.out.println("Narrow NamingContext.");
> > nc = NamingContextHelper.narrow(objRef); // run time error here...
> > }
> > catch (org.omg.CORBA.ORBPackage.InvalidName ine)
> >
> >
> > nc = null;
> > }
> > catch (org.omg.CORBA.SystemException se) {
> > // Catch-all clause for any CORBA system
> > // exception that was not explicitly caught
> > // above. Report the error but don't bother
> > // retrying.
> > System.out.println("CORBA NamingServer error:" + se.toString());
> > }
> >
> >
> > /// more stuff to go here...
> >
> > }
> > -----------------------------------------------------------------------
> > running the above code produces the following output...
> >
> > Initializing ORB object.
> > Initializing NamingContext.
> > Narrow NamingContext.
> > CORBA NamingServer error:org.omg.CORBA.BAD_OPERATION: The delegate has
not
> > been
> > set! minor code: 0 completed: No
> > Error: Could not instantiate CORBA naming context.
> > -----------------------------------------------------------------------
> > Jaguar CTS is running on the local host, and "Enable as a Name Serv" is
> > checked on the
> > Server Properties:Jaguar dialog. The InitialContext is blank, and the
> > Naming server strategy
> > is set to Transient. Any suggestions?
> >
> >
>
>
>


Dave Wolf [Sybase] Posted on 2000-03-02 13:21:03.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Java CORBA client error:BAD_OPERATION: The delegate has not been set.
Date: Thu, 2 Mar 2000 08:21:03 -0500
Lines: 122
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: PPPa10-ResaleAnnapolis1-1R7308.saturn.bbn.com 4.48.176.71
Message-ID: <347_Hpr5wqEh$GA.201@forums.sybase.com>
References: <347_h0SN5Oxg$GA.295@forums.sybase.com> <347_hb#hmG0g$GA.295@forums.sybase.com> <347_01bf8393$a6774a10$be8d1fac@childs-pc>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27349
Article PK: 158760

Ack, right. I didnt notice the CORBA::CosNaming calls. Thanks John.

Dave Wolf
Internet Applications Division

"John Childs" <john.childs@sybase.com> wrote in message
news:01bf8393$a6774a10$be8d1fac@childs-pc...
> Dave is correct, a problem with the same error message is being fixed, but
> I don't think it will be fixed for the example below.
>
> The example below uses the org.omg.CosNaming classes directly rather than
> using
> SessionManager (not recommended). We can't work generically (in Java2)
> with the example below unless we force our classes to be in front of Sun's
> (which isn't always possible on the client side (i.e. Java Plug In). The
> issue which is being addressed is with javax Naming.
>
> In fact if you use SessionManager you should not get the problem below
> (unless you call toString() or hashCode() ) on your CORBA Object.
>
> FYI
>
> --
> John Childs
> Sybase
> ---
> Please keep questions to the newsgroups. Bugs should be
> reported to technical support.
> ---
>
> Dave Wolf [Sybase] <dwolf@sybase.com> wrote in article
> <hb#hmG0g$GA.295@forums.sybase.com>...
> > This is a known issure with the Java2 VM and is being fixed.
> >
> > Use Java1 instead
> >
> > Dave Wolf
> > Internet Applications Division
> >
> > "DJG" <djg@synteleos.com> wrote in message
> > news:h0SN5Oxg$GA.295@forums.sybase.com...
> > > Hi,
> > >
> > > I have a problem running a simple Java CORBA client
> > program(ClientTest.java)
> > > listed below:
> > >
> > > import java.util.*;
> > > import SessionManager.*;
> > > import org.omg.CORBA.*;
> > > import org.omg.CosNaming.*;
> > > import org.omg.CosNaming.NamingContextPackage.*;
> > > import Ourserverobjects.*; //
> > >
> > > public class ClientTest extends java.lang.Object {
> > > public static void main(String[] args) throws Exception
> > >
> > > // Component stub instance
> > > n_authentication _comp = null;
> > > String ior = null;
> > > Properties props = new Properties();
> > >
> > > props.put("org.omg.CORBA.ORBClass", "com.sybase.CORBA.ORB");
> > > props.put("com.sybase.CORBA.NameServiceURL",
> "iiop://localhost:9000/");
> > >
> > > System.out.println("Initializing ORB object.");
> > > ORB orb = ORB.init(args, props);
> > >
> > > System.out.println("Initializing NamingContext.");
> > > NamingContext nc = null;
> > > org.omg.CORBA.Object objRef = null;
> > > try {
> > > objRef = orb.resolve_initial_references( "NameService");
> > > System.out.println("Narrow NamingContext.");
> > > nc = NamingContextHelper.narrow(objRef); // run time error here...
> > > }
> > > catch (org.omg.CORBA.ORBPackage.InvalidName ine)
> > >
> > >
> > > nc = null;
> > > }
> > > catch (org.omg.CORBA.SystemException se) {
> > > // Catch-all clause for any CORBA system
> > > // exception that was not explicitly caught
> > > // above. Report the error but don't bother
> > > // retrying.
> > > System.out.println("CORBA NamingServer error:" + se.toString());
> > > }
> > >
> > >
> > > /// more stuff to go here...
> > >
> > > }
> >
> -----------------------------------------------------------------------
> > > running the above code produces the following output...
> > >
> > > Initializing ORB object.
> > > Initializing NamingContext.
> > > Narrow NamingContext.
> > > CORBA NamingServer error:org.omg.CORBA.BAD_OPERATION: The delegate has
> not
> > > been
> > > set! minor code: 0 completed: No
> > > Error: Could not instantiate CORBA naming context.
> >
> -----------------------------------------------------------------------
> > > Jaguar CTS is running on the local host, and "Enable as a Name Serv"
is
> > > checked on the
> > > Server Properties:Jaguar dialog. The InitialContext is blank, and
the
> > > Naming server strategy
> > > is set to Transient. Any suggestions?
> > >
> > >
> >
> >
> >