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.

Error Initializing ORB from applet

9 posts in General Discussion (old) Last posting was on 2000-03-10 19:17:47.0Z
Arthur Fitt Posted on 2000-03-07 22:45:54.0Z
Newsgroups: sybase.public.easerver
From: "Arthur Fitt" <arthur.fitt@netregulus.com>
Subject: Error Initializing ORB from applet
Date: Tue, 7 Mar 2000 15:45:54 -0700
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: 204.233.193.126
Message-ID: <347_Z6pcSeIi$GA.74@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26938
Article PK: 157888

I have an application/applet the is having problems initializing the ORB. It
works great as an application but, when I try to connect from a web browswer
I get the following error:

Exception occurred during event dispatching:

org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation
com.sybase.CORBA.ORB minor code: 0 completed: No
at org.omg.CORBA.ORB.create_impl(ORB.java:305)
at org.omg.CORBA.ORB.init(ORB.java:352)
at com.netregulus.client.ServerAccess.logon(ServerAccess.java:67)
....

My web server is MS Peer web server. I have copied all of the classes in the
Jaguar Programmers guide into the classpath of the web server. I had to add
the contents of CtsCompents also because of a class not found exception.
Line 67 (where the exception occurs is:

ORB orb = ORB.init(args, props)

The entire method is below:

public static void logon( String userName, String password, String url )
throws ServerAccessException
{
String args[] = null;
Properties props = new Properties();

// Initilized ORB
props.put("org.omg.CORBA.ORBClass","com.sybase.CORBA.ORB");
props.put("com.sybase.CORBA.RetryDelay", "1");
ORB orb = ORB.init(args, props);

try
{
Manager manager = ManagerHelper.narrow(orb.string_to_object(url));
session = manager.createSession(userName, password);
}
catch (org.omg.CORBA.COMM_FAILURE cf)
{
// The server is likely down or has run
// out of connections. You can retry the
// connection if desired.
// ... report the error ...
throw(new ServerAccessException(res.getString("serverDown")));
}
catch (org.omg.CORBA.NO_PERMISSION np)
{
// Tell the user they are not authorized
//...
throw(new ServerAccessException(res.getString("notAuthorized")));
}
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.
throw(new ServerAccessException(res.getString("uncaughtError")));
}
}


Thanks in advance,

Arthur Fitt
arthur.fitt@netregulus.com


Dave Wolf [Sybase] Posted on 2000-03-07 23:41:02.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Error Initializing ORB from applet
Date: Tue, 7 Mar 2000 18:41:02 -0500
Lines: 82
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: vpn-eme-060.sybase.com 130.214.8.60
Message-ID: <347_j#77t8Ii$GA.202@forums.sybase.com>
References: <347_Z6pcSeIi$GA.74@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26928
Article PK: 157884

Is com.sybase.CORBA.ORB in the browsers CODEBASE?

Dave Wolf
Internet Applications Division

"Arthur Fitt" <arthur.fitt@netregulus.com> wrote in message
news:Z6pcSeIi$GA.74@forums.sybase.com...
> I have an application/applet the is having problems initializing the ORB.
It
> works great as an application but, when I try to connect from a web
browswer
> I get the following error:
>
> Exception occurred during event dispatching:
>
> org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation
> com.sybase.CORBA.ORB minor code: 0 completed: No
> at org.omg.CORBA.ORB.create_impl(ORB.java:305)
> at org.omg.CORBA.ORB.init(ORB.java:352)
> at com.netregulus.client.ServerAccess.logon(ServerAccess.java:67)
> ....
>
> My web server is MS Peer web server. I have copied all of the classes in
the
> Jaguar Programmers guide into the classpath of the web server. I had to
add
> the contents of CtsCompents also because of a class not found exception.
> Line 67 (where the exception occurs is:
>
> ORB orb = ORB.init(args, props)
>
> The entire method is below:
>
> public static void logon( String userName, String password, String url )
> throws ServerAccessException
> {
> String args[] = null;
> Properties props = new Properties();
>
> // Initilized ORB
> props.put("org.omg.CORBA.ORBClass","com.sybase.CORBA.ORB");
> props.put("com.sybase.CORBA.RetryDelay", "1");
> ORB orb = ORB.init(args, props);
>
> try
> {
> Manager manager = ManagerHelper.narrow(orb.string_to_object(url));
> session = manager.createSession(userName, password);
> }
> catch (org.omg.CORBA.COMM_FAILURE cf)
> {
> // The server is likely down or has run
> // out of connections. You can retry the
> // connection if desired.
> // ... report the error ...
> throw(new ServerAccessException(res.getString("serverDown")));
> }
> catch (org.omg.CORBA.NO_PERMISSION np)
> {
> // Tell the user they are not authorized
> //...
> throw(new ServerAccessException(res.getString("notAuthorized")));
> }
> 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.
> throw(new ServerAccessException(res.getString("uncaughtError")));
> }
> }
>
>
> Thanks in advance,
>
> Arthur Fitt
> arthur.fitt@netregulus.com
>
>


Arthur Fitt Posted on 2000-03-08 23:12:54.0Z
Newsgroups: sybase.public.easerver
From: "Arthur Fitt" <arthur.fitt@netregulus.com>
Subject: Re: Error Initializing ORB from applet
Date: Wed, 8 Mar 2000 16:12:54 -0700
Lines: 99
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: 204.233.193.126
Message-ID: <347_0DMdCSVi$GA.202@forums.sybase.com>
References: <347_Z6pcSeIi$GA.74@forums.sybase.com> <347_j#77t8Ii$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:26847
Article PK: 157814

Actually,

The com.sybase.CORBA.ORB object is in the web servers codebase available to
the Browser for download but, not in the Browers code base directly.

Do I need to use a ClassLoader to load the class before call
ORB.init(...,...)?

Arthur

Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
news:j#77t8Ii$GA.202@forums.sybase.com...
> Is com.sybase.CORBA.ORB in the browsers CODEBASE?
>
> Dave Wolf
> Internet Applications Division
>
> "Arthur Fitt" <arthur.fitt@netregulus.com> wrote in message
> news:Z6pcSeIi$GA.74@forums.sybase.com...
> > I have an application/applet the is having problems initializing the
ORB.
> It
> > works great as an application but, when I try to connect from a web
> browswer
> > I get the following error:
> >
> > Exception occurred during event dispatching:
> >
> > org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation
> > com.sybase.CORBA.ORB minor code: 0 completed: No
> > at org.omg.CORBA.ORB.create_impl(ORB.java:305)
> > at org.omg.CORBA.ORB.init(ORB.java:352)
> > at com.netregulus.client.ServerAccess.logon(ServerAccess.java:67)
> > ....
> >
> > My web server is MS Peer web server. I have copied all of the classes in
> the
> > Jaguar Programmers guide into the classpath of the web server. I had to
> add
> > the contents of CtsCompents also because of a class not found exception.
> > Line 67 (where the exception occurs is:
> >
> > ORB orb = ORB.init(args, props)
> >
> > The entire method is below:
> >
> > public static void logon( String userName, String password, String
url )
> > throws ServerAccessException
> > {
> > String args[] = null;
> > Properties props = new Properties();
> >
> > // Initilized ORB
> > props.put("org.omg.CORBA.ORBClass","com.sybase.CORBA.ORB");
> > props.put("com.sybase.CORBA.RetryDelay", "1");
> > ORB orb = ORB.init(args, props);
> >
> > try
> > {
> > Manager manager = ManagerHelper.narrow(orb.string_to_object(url));
> > session = manager.createSession(userName, password);
> > }
> > catch (org.omg.CORBA.COMM_FAILURE cf)
> > {
> > // The server is likely down or has run
> > // out of connections. You can retry the
> > // connection if desired.
> > // ... report the error ...
> > throw(new ServerAccessException(res.getString("serverDown")));
> > }
> > catch (org.omg.CORBA.NO_PERMISSION np)
> > {
> > // Tell the user they are not authorized
> > //...
> > throw(new ServerAccessException(res.getString("notAuthorized")));
> > }
> > 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.
> > throw(new ServerAccessException(res.getString("uncaughtError")));
> > }
> > }
> >
> >
> > Thanks in advance,
> >
> > Arthur Fitt
> > arthur.fitt@netregulus.com
> >
> >
>
>


Dave Wolf [Sybase] Posted on 2000-03-09 03:20:38.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Error Initializing ORB from applet
Date: Wed, 8 Mar 2000 22:20:38 -0500
Lines: 115
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: vpn-eme-033.sybase.com 130.214.8.33
Message-ID: <347_$9XqFcXi$GA.202@forums.sybase.com>
References: <347_Z6pcSeIi$GA.74@forums.sybase.com> <347_j#77t8Ii$GA.202@forums.sybase.com> <347_0DMdCSVi$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:26836
Article PK: 154448

If you set org.omg.CORBA.ORBClass to com.sybase.CORBA.ORB in the
Properties() the ORB will dynamically load it.

Im not sure whats going on here.

Dave Wolf
Internet Applications Division

"Arthur Fitt" <arthur.fitt@netregulus.com> wrote in message
news:0DMdCSVi$GA.202@forums.sybase.com...
> Actually,
>
> The com.sybase.CORBA.ORB object is in the web servers codebase available
to
> the Browser for download but, not in the Browers code base directly.
>
> Do I need to use a ClassLoader to load the class before call
> ORB.init(...,...)?
>
> Arthur
>
>
> Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
> news:j#77t8Ii$GA.202@forums.sybase.com...
> > Is com.sybase.CORBA.ORB in the browsers CODEBASE?
> >
> > Dave Wolf
> > Internet Applications Division
> >
> > "Arthur Fitt" <arthur.fitt@netregulus.com> wrote in message
> > news:Z6pcSeIi$GA.74@forums.sybase.com...
> > > I have an application/applet the is having problems initializing the
> ORB.
> > It
> > > works great as an application but, when I try to connect from a web
> > browswer
> > > I get the following error:
> > >
> > > Exception occurred during event dispatching:
> > >
> > > org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation
> > > com.sybase.CORBA.ORB minor code: 0 completed: No
> > > at org.omg.CORBA.ORB.create_impl(ORB.java:305)
> > > at org.omg.CORBA.ORB.init(ORB.java:352)
> > > at com.netregulus.client.ServerAccess.logon(ServerAccess.java:67)
> > > ....
> > >
> > > My web server is MS Peer web server. I have copied all of the classes
in
> > the
> > > Jaguar Programmers guide into the classpath of the web server. I had
to
> > add
> > > the contents of CtsCompents also because of a class not found
exception.
> > > Line 67 (where the exception occurs is:
> > >
> > > ORB orb = ORB.init(args, props)
> > >
> > > The entire method is below:
> > >
> > > public static void logon( String userName, String password, String
> url )
> > > throws ServerAccessException
> > > {
> > > String args[] = null;
> > > Properties props = new Properties();
> > >
> > > // Initilized ORB
> > > props.put("org.omg.CORBA.ORBClass","com.sybase.CORBA.ORB");
> > > props.put("com.sybase.CORBA.RetryDelay", "1");
> > > ORB orb = ORB.init(args, props);
> > >
> > > try
> > > {
> > > Manager manager = ManagerHelper.narrow(orb.string_to_object(url));
> > > session = manager.createSession(userName, password);
> > > }
> > > catch (org.omg.CORBA.COMM_FAILURE cf)
> > > {
> > > // The server is likely down or has run
> > > // out of connections. You can retry the
> > > // connection if desired.
> > > // ... report the error ...
> > > throw(new ServerAccessException(res.getString("serverDown")));
> > > }
> > > catch (org.omg.CORBA.NO_PERMISSION np)
> > > {
> > > // Tell the user they are not authorized
> > > //...
> > > throw(new ServerAccessException(res.getString("notAuthorized")));
> > > }
> > > 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.
> > > throw(new ServerAccessException(res.getString("uncaughtError")));
> > > }
> > > }
> > >
> > >
> > > Thanks in advance,
> > >
> > > Arthur Fitt
> > > arthur.fitt@netregulus.com
> > >
> > >
> >
> >
>
>


Arthur Fitt Posted on 2000-03-10 18:53:56.0Z
Newsgroups: sybase.public.easerver
From: "Arthur Fitt" <arthur.fitt@netregulus.com>
Subject: Re: Error Initializing ORB from applet
Date: Fri, 10 Mar 2000 11:53:56 -0700
Lines: 133
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: 204.233.193.126
Message-ID: <347_9zQ$uKsi$GA.202@forums.sybase.com>
References: <347_Z6pcSeIi$GA.74@forums.sybase.com> <347_j#77t8Ii$GA.202@forums.sybase.com> <347_0DMdCSVi$GA.202@forums.sybase.com> <347_$9XqFcXi$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:26646
Article PK: 157650

I've tried calling the same method in two different places.

If I call it from the applet itself everything works fine.
If I call it from a dialog box that the applet creates the ORB will not
initialize.

So it seems that you can't initialize the ORB from a applet dialog but you
can from an application dialog.

Arthur

Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
news:$9XqFcXi$GA.202@forums.sybase.com...
> If you set org.omg.CORBA.ORBClass to com.sybase.CORBA.ORB in the
> Properties() the ORB will dynamically load it.
>
> Im not sure whats going on here.
>
> Dave Wolf
> Internet Applications Division
>
> "Arthur Fitt" <arthur.fitt@netregulus.com> wrote in message
> news:0DMdCSVi$GA.202@forums.sybase.com...
> > Actually,
> >
> > The com.sybase.CORBA.ORB object is in the web servers codebase available
> to
> > the Browser for download but, not in the Browers code base directly.
> >
> > Do I need to use a ClassLoader to load the class before call
> > ORB.init(...,...)?
> >
> > Arthur
> >
> >
> > Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
> > news:j#77t8Ii$GA.202@forums.sybase.com...
> > > Is com.sybase.CORBA.ORB in the browsers CODEBASE?
> > >
> > > Dave Wolf
> > > Internet Applications Division
> > >
> > > "Arthur Fitt" <arthur.fitt@netregulus.com> wrote in message
> > > news:Z6pcSeIi$GA.74@forums.sybase.com...
> > > > I have an application/applet the is having problems initializing the
> > ORB.
> > > It
> > > > works great as an application but, when I try to connect from a web
> > > browswer
> > > > I get the following error:
> > > >
> > > > Exception occurred during event dispatching:
> > > >
> > > > org.omg.CORBA.INITIALIZE: can't instantiate default ORB
implementation
> > > > com.sybase.CORBA.ORB minor code: 0 completed: No
> > > > at org.omg.CORBA.ORB.create_impl(ORB.java:305)
> > > > at org.omg.CORBA.ORB.init(ORB.java:352)
> > > > at com.netregulus.client.ServerAccess.logon(ServerAccess.java:67)
> > > > ....
> > > >
> > > > My web server is MS Peer web server. I have copied all of the
classes
> in
> > > the
> > > > Jaguar Programmers guide into the classpath of the web server. I had
> to
> > > add
> > > > the contents of CtsCompents also because of a class not found
> exception.
> > > > Line 67 (where the exception occurs is:
> > > >
> > > > ORB orb = ORB.init(args, props)
> > > >
> > > > The entire method is below:
> > > >
> > > > public static void logon( String userName, String password, String
> > url )
> > > > throws ServerAccessException
> > > > {
> > > > String args[] = null;
> > > > Properties props = new Properties();
> > > >
> > > > // Initilized ORB
> > > > props.put("org.omg.CORBA.ORBClass","com.sybase.CORBA.ORB");
> > > > props.put("com.sybase.CORBA.RetryDelay", "1");
> > > > ORB orb = ORB.init(args, props);
> > > >
> > > > try
> > > > {
> > > > Manager manager =
ManagerHelper.narrow(orb.string_to_object(url));
> > > > session = manager.createSession(userName, password);
> > > > }
> > > > catch (org.omg.CORBA.COMM_FAILURE cf)
> > > > {
> > > > // The server is likely down or has run
> > > > // out of connections. You can retry the
> > > > // connection if desired.
> > > > // ... report the error ...
> > > > throw(new ServerAccessException(res.getString("serverDown")));
> > > > }
> > > > catch (org.omg.CORBA.NO_PERMISSION np)
> > > > {
> > > > // Tell the user they are not authorized
> > > > //...
> > > > throw(new ServerAccessException(res.getString("notAuthorized")));
> > > > }
> > > > 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.
> > > > throw(new ServerAccessException(res.getString("uncaughtError")));
> > > > }
> > > > }
> > > >
> > > >
> > > > Thanks in advance,
> > > >
> > > > Arthur Fitt
> > > > arthur.fitt@netregulus.com
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Dave Wolf [Sybase] Posted on 2000-03-10 19:16:39.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Error Initializing ORB from applet
Date: Fri, 10 Mar 2000 14:16:39 -0500
Lines: 154
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: vpn-eme-053.sybase.com 130.214.8.53
Message-ID: <347_xKeSAXsi$GA.302@forums.sybase.com>
References: <347_Z6pcSeIi$GA.74@forums.sybase.com> <347_j#77t8Ii$GA.202@forums.sybase.com> <347_0DMdCSVi$GA.202@forums.sybase.com> <347_$9XqFcXi$GA.202@forums.sybase.com> <347_9zQ$uKsi$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:26642
Article PK: 157643

I be the issue is this.

ORB.init(Applet, Properties)

Since a Dialog is not a subclass of Applet but a subclass of Frame so it
dies?

Dave Wolf
Internet Applications Division

"Arthur Fitt" <arthur.fitt@netregulus.com> wrote in message
news:9zQ$uKsi$GA.202@forums.sybase.com...
> I've tried calling the same method in two different places.
>
> If I call it from the applet itself everything works fine.
> If I call it from a dialog box that the applet creates the ORB will not
> initialize.
>
> So it seems that you can't initialize the ORB from a applet dialog but you
> can from an application dialog.
>
> Arthur
>
> Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
> news:$9XqFcXi$GA.202@forums.sybase.com...
> > If you set org.omg.CORBA.ORBClass to com.sybase.CORBA.ORB in the
> > Properties() the ORB will dynamically load it.
> >
> > Im not sure whats going on here.
> >
> > Dave Wolf
> > Internet Applications Division
> >
> > "Arthur Fitt" <arthur.fitt@netregulus.com> wrote in message
> > news:0DMdCSVi$GA.202@forums.sybase.com...
> > > Actually,
> > >
> > > The com.sybase.CORBA.ORB object is in the web servers codebase
available
> > to
> > > the Browser for download but, not in the Browers code base directly.
> > >
> > > Do I need to use a ClassLoader to load the class before call
> > > ORB.init(...,...)?
> > >
> > > Arthur
> > >
> > >
> > > Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
> > > news:j#77t8Ii$GA.202@forums.sybase.com...
> > > > Is com.sybase.CORBA.ORB in the browsers CODEBASE?
> > > >
> > > > Dave Wolf
> > > > Internet Applications Division
> > > >
> > > > "Arthur Fitt" <arthur.fitt@netregulus.com> wrote in message
> > > > news:Z6pcSeIi$GA.74@forums.sybase.com...
> > > > > I have an application/applet the is having problems initializing
the
> > > ORB.
> > > > It
> > > > > works great as an application but, when I try to connect from a
web
> > > > browswer
> > > > > I get the following error:
> > > > >
> > > > > Exception occurred during event dispatching:
> > > > >
> > > > > org.omg.CORBA.INITIALIZE: can't instantiate default ORB
> implementation
> > > > > com.sybase.CORBA.ORB minor code: 0 completed: No
> > > > > at org.omg.CORBA.ORB.create_impl(ORB.java:305)
> > > > > at org.omg.CORBA.ORB.init(ORB.java:352)
> > > > > at com.netregulus.client.ServerAccess.logon(ServerAccess.java:67)
> > > > > ....
> > > > >
> > > > > My web server is MS Peer web server. I have copied all of the
> classes
> > in
> > > > the
> > > > > Jaguar Programmers guide into the classpath of the web server. I
had
> > to
> > > > add
> > > > > the contents of CtsCompents also because of a class not found
> > exception.
> > > > > Line 67 (where the exception occurs is:
> > > > >
> > > > > ORB orb = ORB.init(args, props)
> > > > >
> > > > > The entire method is below:
> > > > >
> > > > > public static void logon( String userName, String password,
String
> > > url )
> > > > > throws ServerAccessException
> > > > > {
> > > > > String args[] = null;
> > > > > Properties props = new Properties();
> > > > >
> > > > > // Initilized ORB
> > > > > props.put("org.omg.CORBA.ORBClass","com.sybase.CORBA.ORB");
> > > > > props.put("com.sybase.CORBA.RetryDelay", "1");
> > > > > ORB orb = ORB.init(args, props);
> > > > >
> > > > > try
> > > > > {
> > > > > Manager manager =
> ManagerHelper.narrow(orb.string_to_object(url));
> > > > > session = manager.createSession(userName, password);
> > > > > }
> > > > > catch (org.omg.CORBA.COMM_FAILURE cf)
> > > > > {
> > > > > // The server is likely down or has run
> > > > > // out of connections. You can retry the
> > > > > // connection if desired.
> > > > > // ... report the error ...
> > > > > throw(new ServerAccessException(res.getString("serverDown")));
> > > > > }
> > > > > catch (org.omg.CORBA.NO_PERMISSION np)
> > > > > {
> > > > > // Tell the user they are not authorized
> > > > > //...
> > > > > throw(new
ServerAccessException(res.getString("notAuthorized")));
> > > > > }
> > > > > 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.
> > > > > throw(new
ServerAccessException(res.getString("uncaughtError")));
> > > > > }
> > > > > }
> > > > >
> > > > >
> > > > > Thanks in advance,
> > > > >
> > > > > Arthur Fitt
> > > > > arthur.fitt@netregulus.com
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Dave Wolf [Sybase] Posted on 2000-03-10 19:17:47.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Error Initializing ORB from applet
Date: Fri, 10 Mar 2000 14:17:47 -0500
Lines: 171
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: vpn-eme-053.sybase.com 130.214.8.53
Message-ID: <347_yc7OoXsi$GA.251@forums.sybase.com>
References: <347_Z6pcSeIi$GA.74@forums.sybase.com> <347_j#77t8Ii$GA.202@forums.sybase.com> <347_0DMdCSVi$GA.202@forums.sybase.com> <347_$9XqFcXi$GA.202@forums.sybase.com> <347_9zQ$uKsi$GA.202@forums.sybase.com> <347_xKeSAXsi$GA.302@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26641
Article PK: 157642

Make the ORB an instance member and available from an accessor method. Have
your dialog box get the ORB from the Applet itself when it needs it

MyDialog mdg = new MyDialog(this);
mdg.setParent(this);
mdg.create();

Dave Wolf
Internet Applications Division

"Dave Wolf [Sybase]" <dwolf@sybase.com> wrote in message
news:xKeSAXsi$GA.302@forums.sybase.com...
> I be the issue is this.
>
> ORB.init(Applet, Properties)
>
> Since a Dialog is not a subclass of Applet but a subclass of Frame so it
> dies?
>
> Dave Wolf
> Internet Applications Division
>
> "Arthur Fitt" <arthur.fitt@netregulus.com> wrote in message
> news:9zQ$uKsi$GA.202@forums.sybase.com...
> > I've tried calling the same method in two different places.
> >
> > If I call it from the applet itself everything works fine.
> > If I call it from a dialog box that the applet creates the ORB will not
> > initialize.
> >
> > So it seems that you can't initialize the ORB from a applet dialog but
you
> > can from an application dialog.
> >
> > Arthur
> >
> > Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
> > news:$9XqFcXi$GA.202@forums.sybase.com...
> > > If you set org.omg.CORBA.ORBClass to com.sybase.CORBA.ORB in the
> > > Properties() the ORB will dynamically load it.
> > >
> > > Im not sure whats going on here.
> > >
> > > Dave Wolf
> > > Internet Applications Division
> > >
> > > "Arthur Fitt" <arthur.fitt@netregulus.com> wrote in message
> > > news:0DMdCSVi$GA.202@forums.sybase.com...
> > > > Actually,
> > > >
> > > > The com.sybase.CORBA.ORB object is in the web servers codebase
> available
> > > to
> > > > the Browser for download but, not in the Browers code base directly.
> > > >
> > > > Do I need to use a ClassLoader to load the class before call
> > > > ORB.init(...,...)?
> > > >
> > > > Arthur
> > > >
> > > >
> > > > Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
> > > > news:j#77t8Ii$GA.202@forums.sybase.com...
> > > > > Is com.sybase.CORBA.ORB in the browsers CODEBASE?
> > > > >
> > > > > Dave Wolf
> > > > > Internet Applications Division
> > > > >
> > > > > "Arthur Fitt" <arthur.fitt@netregulus.com> wrote in message
> > > > > news:Z6pcSeIi$GA.74@forums.sybase.com...
> > > > > > I have an application/applet the is having problems initializing
> the
> > > > ORB.
> > > > > It
> > > > > > works great as an application but, when I try to connect from a
> web
> > > > > browswer
> > > > > > I get the following error:
> > > > > >
> > > > > > Exception occurred during event dispatching:
> > > > > >
> > > > > > org.omg.CORBA.INITIALIZE: can't instantiate default ORB
> > implementation
> > > > > > com.sybase.CORBA.ORB minor code: 0 completed: No
> > > > > > at org.omg.CORBA.ORB.create_impl(ORB.java:305)
> > > > > > at org.omg.CORBA.ORB.init(ORB.java:352)
> > > > > > at
com.netregulus.client.ServerAccess.logon(ServerAccess.java:67)
> > > > > > ....
> > > > > >
> > > > > > My web server is MS Peer web server. I have copied all of the
> > classes
> > > in
> > > > > the
> > > > > > Jaguar Programmers guide into the classpath of the web server. I
> had
> > > to
> > > > > add
> > > > > > the contents of CtsCompents also because of a class not found
> > > exception.
> > > > > > Line 67 (where the exception occurs is:
> > > > > >
> > > > > > ORB orb = ORB.init(args, props)
> > > > > >
> > > > > > The entire method is below:
> > > > > >
> > > > > > public static void logon( String userName, String password,
> String
> > > > url )
> > > > > > throws ServerAccessException
> > > > > > {
> > > > > > String args[] = null;
> > > > > > Properties props = new Properties();
> > > > > >
> > > > > > // Initilized ORB
> > > > > > props.put("org.omg.CORBA.ORBClass","com.sybase.CORBA.ORB");
> > > > > > props.put("com.sybase.CORBA.RetryDelay", "1");
> > > > > > ORB orb = ORB.init(args, props);
> > > > > >
> > > > > > try
> > > > > > {
> > > > > > Manager manager =
> > ManagerHelper.narrow(orb.string_to_object(url));
> > > > > > session = manager.createSession(userName, password);
> > > > > > }
> > > > > > catch (org.omg.CORBA.COMM_FAILURE cf)
> > > > > > {
> > > > > > // The server is likely down or has run
> > > > > > // out of connections. You can retry the
> > > > > > // connection if desired.
> > > > > > // ... report the error ...
> > > > > > throw(new
ServerAccessException(res.getString("serverDown")));
> > > > > > }
> > > > > > catch (org.omg.CORBA.NO_PERMISSION np)
> > > > > > {
> > > > > > // Tell the user they are not authorized
> > > > > > //...
> > > > > > throw(new
> ServerAccessException(res.getString("notAuthorized")));
> > > > > > }
> > > > > > 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.
> > > > > > throw(new
> ServerAccessException(res.getString("uncaughtError")));
> > > > > > }
> > > > > > }
> > > > > >
> > > > > >
> > > > > > Thanks in advance,
> > > > > >
> > > > > > Arthur Fitt
> > > > > > arthur.fitt@netregulus.com
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Arthur Fitt Posted on 2000-03-08 14:08:05.0Z
Newsgroups: sybase.public.easerver
From: "Arthur Fitt" <arthur.fitt@netregulus.com>
Subject: Re: Error Initializing ORB from applet
Date: Wed, 8 Mar 2000 07:08:05 -0700
Lines: 92
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: 204.233.193.126
Message-ID: <347_QecKmhQi$GA.74@forums.sybase.com>
References: <347_Z6pcSeIi$GA.74@forums.sybase.com> <347_j#77t8Ii$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:26899
Article PK: 157858

Yes indeed it is.

Arthur

Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
news:j#77t8Ii$GA.202@forums.sybase.com...
> Is com.sybase.CORBA.ORB in the browsers CODEBASE?
>
> Dave Wolf
> Internet Applications Division
>
> "Arthur Fitt" <arthur.fitt@netregulus.com> wrote in message
> news:Z6pcSeIi$GA.74@forums.sybase.com...
> > I have an application/applet the is having problems initializing the
ORB.
> It
> > works great as an application but, when I try to connect from a web
> browswer
> > I get the following error:
> >
> > Exception occurred during event dispatching:
> >
> > org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation
> > com.sybase.CORBA.ORB minor code: 0 completed: No
> > at org.omg.CORBA.ORB.create_impl(ORB.java:305)
> > at org.omg.CORBA.ORB.init(ORB.java:352)
> > at com.netregulus.client.ServerAccess.logon(ServerAccess.java:67)
> > ....
> >
> > My web server is MS Peer web server. I have copied all of the classes in
> the
> > Jaguar Programmers guide into the classpath of the web server. I had to
> add
> > the contents of CtsCompents also because of a class not found exception.
> > Line 67 (where the exception occurs is:
> >
> > ORB orb = ORB.init(args, props)
> >
> > The entire method is below:
> >
> > public static void logon( String userName, String password, String
url )
> > throws ServerAccessException
> > {
> > String args[] = null;
> > Properties props = new Properties();
> >
> > // Initilized ORB
> > props.put("org.omg.CORBA.ORBClass","com.sybase.CORBA.ORB");
> > props.put("com.sybase.CORBA.RetryDelay", "1");
> > ORB orb = ORB.init(args, props);
> >
> > try
> > {
> > Manager manager = ManagerHelper.narrow(orb.string_to_object(url));
> > session = manager.createSession(userName, password);
> > }
> > catch (org.omg.CORBA.COMM_FAILURE cf)
> > {
> > // The server is likely down or has run
> > // out of connections. You can retry the
> > // connection if desired.
> > // ... report the error ...
> > throw(new ServerAccessException(res.getString("serverDown")));
> > }
> > catch (org.omg.CORBA.NO_PERMISSION np)
> > {
> > // Tell the user they are not authorized
> > //...
> > throw(new ServerAccessException(res.getString("notAuthorized")));
> > }
> > 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.
> > throw(new ServerAccessException(res.getString("uncaughtError")));
> > }
> > }
> >
> >
> > Thanks in advance,
> >
> > Arthur Fitt
> > arthur.fitt@netregulus.com
> >
> >
>
>


Arthur Fitt Posted on 2000-03-07 22:48:31.0Z
Newsgroups: sybase.public.easerver
From: "Arthur Fitt" <arthur.fitt@netregulus.com>
Subject: Re: Error Initializing ORB from applet
Date: Tue, 7 Mar 2000 15:48:31 -0700
Lines: 8
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: 204.233.193.126
Message-ID: <347_KmZ2vfIi$GA.201@forums.sybase.com>
References: <347_Z6pcSeIi$GA.74@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26937
Article PK: 157889

Additional information:

I am using the Sun Java 1.2.2 plug-in to run the applet with internet
explorer 5

Arthur