Sagewire Logo

java corba RSS Feed

Recent Posts View Recent Posts | View Archived Posts

Message from apm35
Most recent post: 10/16/2007
2 authors and 6 replies.

Orbix 3.0.1. Yes I know. please do not laugh. I am working on a project
where I have to find a way to move off these ancient products. I have
managed to move away from C++ onto JAVA but cannot change the CORBA
product in use at the moment. The Orbix setup includes OrbixWeb which
has always been used on the client side. I am now going to be using it
on the server side. So my question is: What are peoples experiences of
OrbixWeb compared to Orbix 3.0.1? I have found the C++ Orbix at that
ancient version to be quite buggy but I am hoping the OrbixWeb side is
more reliable. Certainly we seem to have far fewer problems on the
client side. Server-side problems include:

Hanging on a blocking socket write when sending an invocation of a one-
way (I know one-ways use TCP/IP, not UDP).

Occasional core dumps when dispatching callbacks (one-way methods on
client-side object reference). Stack trace shows it has blown up
inside Orbix.

efence errors when Orbix starts up. The error is from inside ORB_init.
This has prevented me from using efence to find any memory corruption
issues.

When the client goes away the C++ version seems to have trouble when
it tries to invoke a callback. The JAVA version just gets
COMMS_FAILURE immediately which is what I'd expect. This makes me
think OrbixWeb may be more reliable.

My impression is that OrbixWeb is a complete product on the side of
Orbix that just happened to get shipped together with the C++ Orbix. I
think this is read more about comparison of OrbixWeb and Orbix 3.0.1


Message from Andrea Venturoli
Most recent post: 9/18/2007
2 authors and 4 replies.

Hello.
I'm writing a client-server application using C++ w. omniORB on the
server and JacORB on the client side.
Everything works fine as long as I do not use SSL, but I can not get the
latter to work.

Here's my code fragment:

System.setProperty("jacorb.security.support_ssl","on");
System.setProperty("jacorb.ssl.server_socket_factory","orb.jacorb.security.ssl.sun_jsse.SSLServerSocketFactory");
System.setProperty("jacorb.ssl.socket_factory","orb.jacorb.security.ssl.sun_jsse.SSLSocketFactory");
System.setProperty("jacorb.security.keystore","/fullpath/keystore.jks");
System.setProperty("jacorb.security.keystore_password","keystorepass");
System.setProperty("jacorb.security.jsse.trustees_from_ks","true");
System.setProperty("jacorb.security.jsse.log.verbosity","4"); // *a)
System.setProperty("jacorb.security.ssl.client.required_options","60");
// *b)
System.setProperty("jacorb.security.ssl.client.supported_options","60");
// *b)
String args[]={"-ORBInitialPort","2809","-ORBInitialHost","127.0.0.1"};
JAVA.util.Properties props=new JAVA.util.Properties();
props.put("ORBInitRef.NameService","corbaloc:iiop:server_hostname:2809/NameService");
props.put("org.omg.CORBA.ORBClass","org.jacorb.orb.ORB");
props.put("org.omg.CORBA.ORBSingletonClass","org.jacorb.orb.ORBSingleton");
props.put("org.omg.PortableInterceptor.ORBInitializerClass.bidir_init","org.jacorb.orb.giop.BiDirConnectionInitializer");
//*c)
Orb=org.omg.CORBA.ORB.init(args,props);
org.omg.CosN read more about JacORB SSL woes


Message from Andrea Venturoli
Most recent post: 9/14/2007
2 authors and 3 replies.

Hello.
I'm developping a client-server application and I'll need to initiate
connections only from the client side.
I have tried setting up bidirectional operations, but failed to do so
until I switched to JacORB.
Does the standard JRE Sun ORB support this?
In case it does, is there any example/tutorial/how-to?

bye & Thanks
av. read more about Bidirectional GIOP


Message from apm35
Most recent post: 8/21/2007
2 authors and 3 replies.

I am working on a JAVA rewrite of a C++ CORBA server using Orbix. I am
using OrbixWeb. Clients have the ability to register and deregister
themselves but not using the kind of IDL interface you'd expect.
The IDL is legacy and cannot be changed. Instead of the register
method returning a token that is used in the deregister, a proprietary
extension of Orbix is used to identify the client. In the C++ version
of Orbix you can get the file descriptor for the underlying connection
to the client. In OrbixWeb you cannot (please correct me if I am wrong
about this). I tried to use the socket object instead with the code
below:

OrbCurrent orbCurrent = _OrbixWeb.Current();
Object socketRef = orbCurrent.get_socket();
Socket socket = (Socket)socketRef;

I then get the IP Address and port number from the socket and use
these as a form of client id. The trouble is, this doesn't always
work. Sometimes during testing when I have two clients I seem to get
getting the Socket object for the wrong client. It is as if
OrbixWeb.Current() sometimes returns the wrong value. Can anybody help
please?

Regards,

Andrew Marlow read more about Help rqd with OrbixWeb and OrbCurrent please


Message from _mario.lat
Most recent post: 8/15/2007
3 authors and 3 replies.

Hallo,
I'd like to learn to use Corba & JAVA.
How can I start?
where to find a good tutoria on line?
a book?
have you an advice?

Thank you in advance,
Mario. read more about help to get start: where find a good tutorial?


Message from Jason Stelzer
Most recent post: 8/14/2007
2 authors and 3 replies.

Hello, I'm rather new to corba so if this is a faq, I will happily go
read the relevant docs or url. I just need a nudge.

My situation is this. The company I'm at has a JAVA app running in
jboss that they need to integrate into a legacy distributed perl app. I
chose corba because this is going to be used in a performance critical
piece of code and web services simply have too much overhead. So at
this point I'm using jacorb on the JAVA side and omniORB on the C/perl
side.

Since I'm using jboss and the way they support corba is via annotations
in the JAVA class files combined with reflection at deployment time to
expose things, this means I need to generate IDL from the class files
then create C++ stub code. I have done this and have things working.

I have written a C++ library with C wrappers and a perl module in C to
use them. I have a fairly complicated data structure to return, so I
created a custom type but I have come into a minor bit of difficulty. I'm
not clear on how to map a 'traditional' pojo in corba. Something like:

public class Foo {
private String val;
public String getVal(){
return val;
}
public void setVal(String s){
val = s;
}
...
}

When I used idl generated by rmic for this type of bean, I'd get
back an object ref that'd consistently return an empty
CORBA::WStringValue object. After examining the objects in gdb, I'm
reasonably sure what is happening is that the 'private' string is not
being r read more about mapping JAVA => C++ objects


Message from Lukas Zapletal
Most recent post: 7/23/2007
2 authors and 2 replies.

Hello,

I am trying to connect to CORBA service with simple client and I am
getting

org.omg.CORBA.BAD_PARAM: vmcid: 0x0 minor code: 0 completed: No
at
com.pikeelectronic.calc.CORBAClient.CalculatorHelper.narrow(CalculatorHelper.JAVA:
60)
at com.pikeelectronic.calc.CORBAClient.Client.main(Client.JAVA:
23)

I am using JacORB on both client and server side. I use
corbaloc::localhost:40000/MyService. I googled that I need to run
Naming Service but it didn't help (I have tried the naming service
from the JacORB distribution).

Thanks for help

Lukas read more about Getting org.omg.CORBA.BAD_PARAM exception


Message from billdavidcn
Most recent post: 7/7/2007
3 authors and 5 replies.

If I have a method like this in my idl defined interface:
string echoString(in string mesg);

And if I call this method with a null parameter, ORB will fail in
serializing this parameter and report a org.omg.CORBA.BAD_PARAM.

But why CORBA has such a limitation? What's the history?
And how can I avoid this? Always check the parameter before CORBA
method invoke?

BTW:
My environment is JDK1.5 and the ORB is inline JAVA IDL.
The same thing happens in ORBACUS 4.3. read more about Why we can not provide a null parameter to method in CORBA?


Message from mwallis76
Most recent post: 7/1/2007
2 authors and 2 replies.

Hello,
I am using JBoss 4.0.5.GA (application server) to host several
EJBs (3.0), and have now run into a problem with trying to bridge
together a client / server architecture. I am on deck to develop a
server to manage multiple CORBA clients. Starting from a hand-crafted
IDL file, I am responsible for implementing / manaing the server-side
code while another developer works on the client side. I am using the
idlj compiler to generate the server-side files, along with rolling my
own server servant to handle the clients. Clients connect to the
server via a "subscribe" method and disconnect with an "unsubscribe"
method.

Now, I have been able to run this server side implementation by firing
up orbd in separate command window, followed by opening another
command window to start up the server. However, migrating such into
JBoss seems to be a daunting task. I have read over the JBoss
documentation on how CORBA/IIOP invokers can access EJBs, but how does
the EJB know to follow an IDL file? The CORBA clients are expecting a
server to implement the IDL file and now, JBoss is basically saying
dump the IDL file and just supply an EJB with the IIOP invoker
specified in the ejb-jar.xml file.

Backing up to the overall design, this JBoss server also acts a
message listener (using JMS). When messages arrive, the server should
enumerate over the current set of connect clients and invoke a
callback on them about the message that just arrived. I have bee read more about JBoss, EJB, JAVA Server, and C++ CORBA Clients


Message from ciaran.mchale
Most recent post: 3/1/2007
2 authors and 2 replies.

Hi folks,

I've some announcements to make.First, I've a personal web site: www.CiaranMcHale.com. Actually, I
have had this for a few months but I wanted to populate it with some
interesting, technical articles before announcing it.Second, an embarrassingly long time ago I started writing a book
called
"CORBA Explained Simply", and I've *finally* finished it. I am not
publishing the book in the traditional manner, but rather am making it
available free of charge from www.CiaranMcHale.com. Links on the home
page of my web site enable you to read the book online, or download it
as: a PDF file containing hypertext links for easy on-screen
navigation,
a "2-up" PDF file to save paper if you print it, or as a
zip/compressed-tar archive of HTML pages.

The copyright notice in the book says that you must not remove the
copyright notice but, aside from that, you can make copies of the
book,
give them away for free, sell them on eBay, and so on. Here's some
practical uses for this book:

- Download the book and keep it on your computer as a convenient
reference.

- If there are several people in your company who work with
CORBA then copy the book onto your company's intranet so your
colleagues can access the book easily.

- If you teach distributed systems in a university then give
your students a copy of the book.

- If your company has a CORBA training course that you teach to
customers then your training course probably has lots of read more about "CORBA Explained Simply" book available for free


Message from donalmurtagh
Most recent post: 1/25/2007
3 authors and 7 replies.

Hi,

I'm writing a JAVA CORBA client, using the Visibroker ORB. Sometimes
when I call methods on the remote object references I get the following
exception

org.omg.CORBA.OBJECT_NOT_EXIST: vmcid: OMG minor code: 0 completed:
No

Is there some way that I can check beforehand whether this exception
will be thrown, i.e. whether the remote object still exists? I thought
that I could do it like this:

if (myRef._non_existent()) {

// get a new myRef
}

myRef.doRemoteMethod();But I have found that _non_existent() throws exceptions. Is there a
better way to check for the state that causes an OBJECT_NOT_EXIST
exception?

Regards,
Dan read more about checking for org.omg.CORBA.OBJECT_NOT_EXIST


Message from donalmurtagh
Most recent post: 1/16/2007
3 authors and 3 replies.

Hi,

I'm using the Visibroker ORB. My scenario is as follows:

There are 2 CORBA services, mine and my customer's. My CORBA server is
hosting a single remote (servant) object. When my server starts it
calls a registration method on the client's service, and passes a
reference to my servant, so that it can be called back by my customer's
service.

My problem is as follows:

My customer is using NAT to access the machine that my service is
running on, but (presumably) the reference to my servant that is passed
contains the real IP of my machine, which my customer cannot access. Is
there any way that I can change the IP contained within the reference I
pass, so that it appears to come from the address that my customer
translates to my real address?

A solution that does not require me to use Borland's Gatekeeper product
would be preferable :)

Many thanks in advance,
Donal read more about network address translation


Message from donalmurtagh
Most recent post: 12/11/2006
2 authors and 2 replies.

Hi,

I'm running a Visbroker CORBA server which I can connect to just fine
when I start a client using Visibroker's "vbj" program. My
understanding is that this program calls JAVA, but first adds a *lot*
of properties (-D) to the command-line and libraries to the classpath.

However, if I try to access the same server from within a web
application (which is started by Tomcat), I get an exception:

org.omg.CORBA.BAD_PARAM: vmcid: 0x0 minor code: 0 completed: No
at
surePay.idl2JAVA.SMSSession.SessManagerHelper.bind(SessManagerHelper.JAVA:71)
at
surePay.idl2JAVA.SMSSession.SessManagerHelper.bind(SessManagerHelper.JAVA:62)

I'm using the same code in each case to connect to the server, so my
guess is that Tomcat does not have all the libraries (and/or properties)
it needs in order to connect, whereas these are automatically
configured when vbj is used.

Currently, the only Visibroker libraries I have got on Tomcat's classpath
are vbjclientorb.jar and vbjorb.jar. Any ideas what else I need in
order to fix this?

Thanks in Advance,
DM read more about Connecting to Visibroker server without vbj


Message from bbembi_de
Most recent post: 11/15/2006
2 authors and 4 replies.

Hello everyone,

I use IIOP.Net to communicate from JAVA with my .Net application.
This runs fine, but if I deactivate my LAN and WLAN adapter CORBA is
really pissed.
I get a MarshalException if I call a method after that. COMM_FAILURE
Minor Code 201.

I do not know what to do. Please help.

bye bembi read more about CORBA Exception after network adapter deactivation


Message from sharad.tcs
Most recent post: 11/14/2006
2 authors and 2 replies.

I am not able to have an end to end flow of how to proceed with the
CORBA installation on my windows XP. Kindly brief the steps and
hardware/softwares required for the same.

Thanking You

Sharad read more about How to install a CORBA environment


Message from srini.venigalla
Most recent post: 10/31/2006
3 authors and 3 replies.

Hello all,

I am using Orbix idlj compiler, it doesnot accept type ULongSeq or
UShortSeq.

Here are the error messages.

296:(semantic): Identifier `ULongSeq' not found
296:(semantic): Name doesn't denote a type
296:(semantic): Incomplete type definition
297:(semantic): Identifier `ULongSeq' not found
297:(semantic): Name doesn't denote a type
297:(semantic): Incomplete type definition
298:(semantic): Identifier `ULongSeq' not found
298:(semantic): Name doesn't denote a type
298:(semantic): Incomplete type definition
299:(semantic): Identifier `ULongSeq' not found
299:(semantic): Name doesn't denote a type
299:(semantic): Incomplete type definition

My compiler version is:
Orbix 3.3
Orbix JAVA IDL compiler version 3.3 Service Pack 5
Using MSVC++ 6.0 Service Pack 3
for JDK 1.1.x/1.2.x/1.3.x

My idl is:

void SetData(in XYZ::idlUserID uID,
inout CORBA::ULongSeq ADataSeq,
inout CORBA::ULongSeq BDataSeq,
inout CORBA::ULongSeq CDataSeq,
inout CORBA::ULongSeq DDataSeq)
raises (idlExcBadParameters, idlExcCmdFailed);

Thanks in advance. read more about Orbix idlj not compiling type ULongSeq, Help!


Message from donalmurtagh
Most recent post: 10/27/2006
2 authors and 5 replies.

Hi,

I'm having a problem with the valErrors out parameter in the following
IDL operation:

boolean submit(in SMSProvExt::WorkOrderData wo,
in boolean isNew,
out string woName,
out SMSProvExt::ValErrorList valErrors)
raises(ApplError);

On the client side, I pass in the following value:

ValErrorListHolder valErrors = new ValErrorListHolder();If the server implementation returns an empty list then everything
works fine:

public boolean submit(WorkOrderData wo, boolean isNew, StringHolder
woName, ValErrorListHolder valErrors) throws ApplError {

woName.value = "";

ValError[] errors = new ValError[0];
valErrors.value = errors;
return true;
}However if the server implementation return a non-empty list, for
example:

public boolean submit(WorkOrderData wo, boolean isNew, StringHolder
woName, ValErrorListHolder valErrors) throws ApplError {

woName.value = "";

ValError[] errors = new ValError[1];

errors[0] = new ValError();
errors[0].valErrNo = 23;
errors[0].valErrMsg = "Some error";

valErrors.value = errors;
return true;
}

Then when the client calls submit(), the following exception is thrown:org.omg.CORBA.BAD_PARAM: vmcid: 0x0 minor code: 0 completed: No
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConst read more about output parameter causing org.omg.CORBA.BAD_PARAM


Message from ian.a.desouza
Most recent post: 10/22/2006
2 authors and 2 replies.

Hi.

I was just wondering if anybody had any ideas on how to handle
reconnections to a Remote object, if the server bound object goes down,
then comes back up while the client stays up.

That is say:
1. The server comes up and bind the server object by name.
2. The client comes up and does a lookup of the bound object by name.
3. The server goes down.
4. The server comes up and reissues step 1.
5. The client makes a call to the object, resulting in an exception
because the remote is no longer valid.

Is there a way to check to see if the remote is valid or not before I
make the remote call?

Thanks for any advice?
- Ian read more about RMI reconnect


Message from michab66
Most recent post: 10/6/2006
2 authors and 2 replies.

We are currently migrating an application that uses CORBA to BEA
WebLogic 8.1 SP6. The surprising thing we are currently facing is that
we receive NO_IMPLEMENT exceptions whenever we try to transmit a null
reference.

The canonical example is that if we try to convert the literal null
reference, in CORBA also called OBJECT_NIL, into a reference,

org.omg.CORBA.Object nil =
orb.string_to_object( "IOR:00000000000000010000000000000000" );

then this also results in a NO_IMPLEMENT exception.

We Googled a lot, but could not find any relevant information, which is
also a surprise. If BEA had such a catastrophic defect, how can it be
that we are the only ones that experiencing it?

The question is whether we are doing something wrong? The code sample
above is simple enough to be sure that we make no coding error. Is
there any special property that explicitly needs to be set to activate
support for null references on BEA? The BEA docs simply state that
IIOP is supported.

Thanks for hints,
Michael. read more about Corba null references and BEA WebLogic


Message from HT
Most recent post: 9/26/2006
3 authors and 3 replies.

Hi there,

I've an issue. I work for a software development firm, who
recently; to cut 3rd party costs, removed Borland's CORBA ORB and
repalced it with Sun's.

Now I think we need to cut our loses, because the Sun's ORB
is....errr...very plain...and somewhat buggy.

Anyone have any suggestions?

Looking at the licenses, looks like GNU, GPL, LGPL are out. Appears
that only Apache and BSD/BST like licenses are acceptable.

Thanks for any help and suggestions. read more about ...looking for a stable and free CORBA ORB


Message from beyonddc.storage
Most recent post: 9/15/2006
2 authors and 2 replies.

Hi,

Anyone knows if VisiBroker implements Real-Time CORBA for RTSJ?

Thanks! read more about Does VisiBroker implements Real-Time CORBA for RTSJ?


Message from piltrafeta
Most recent post: 9/7/2006
2 authors and 2 replies.

I'm trying to send a struct defined by an IDL. What I do is:

rg.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
Any val = orb.create_any();

Property prop= new Property();
prop.pName="pName";
prop.pValue="pValue";
PropertyHelper.insert(val, prop);

Parameter[] params = new Parameter[1];
params[0] = new Parameter("prop", val);

BOMonitoringSet boMonitoringSet = (BOMonitoringSet)
BOMonitoringSetHelper.narrow (_msFactoryMgr.create("Property",
params));

Where _msFactoryMgr is a FactoryManager, a CORBA object, and PRoperty
is an structure defined in an IDL.
When I execute my code, I've got this error when I do the create:
[JAVA] JAVA.lang.NullPointerException
[JAVA] at
com.sun.corba.se.internal.corba.AnyImpl.write_value(AnyImpl.JAVA:581)
[JAVA] at
org.jacorb.orb.CDROutputStream.write_any(CDROutputStream.JAVA:602)
[JAVA] at
com.airbus.aspic.ParameterHelper.write(ParameterHelper.JAVA:46)
[JAVA] at
com.airbus.aspic.SequenceParametersHelper.write(SequenceParametersHelper.JAVA:55)
[JAVA] at
com.airbus.aspic._GenericFactoryStub.create(_GenericFactoryStub.JAVA:78)
[JAVA] at
com.airbus.framework.alf.FactoryManager.create(FactoryManager.JAVA:59)

I'm blocked.. help!
Thanks! read more about NullPointerException when sending a struct in an any object


Message from news.mch.sbs.de
Most recent post: 9/7/2006
2 authors and 2 replies.

Hello

We are planing to use Naming Service of Jacorb. We've a requirement to
persist the name service data. When we run the jacorb naming service with
the persist option and a timeout we are getting
"JAVA.lang.ObjectNotSerializable" exception for the avalon LoggerKit.

Any suggestion to overcome this problem could help us

Regards
Vinesh read more about Jacorb Persistence


Message from france.macchi
Most recent post: 7/5/2006
2 authors and 2 replies.

hi,
I've a problem with my server application. When the class runs it
generates this message:

ERROR: JAVA.lang.Security.Exception: ORBSingleton: access denied
JAVA.lang.Security.Exception: ORBSingleton: access denied
at com.sun.corba.se.impl.orb.ORBSingleton.connect (Unknown
Source)
at LoginServer.main(LoginServer.JAVA:31)

wrote in message the code with netbeans.
Can you help me to find the cause for this error please??????
Thank you. read more about ORBSingleton connect error


Message from jamesb457
Most recent post: 7/1/2006
2 authors and 2 replies.

I've an IDL looking something like this

module LMS
{

struct Alarm
{
string sensor;
string zone;
};

interface LMSIF
{
void raise_alarm(in Alarm aReading);
void send_alarm_to_rmc(in string alarm);
string test_case();
};
};

and a JAVA file looking something like:

class LMSServant extends _LMSIFImplBase
{
Alarm al;
//functions here
public LMSServ()
{
//this line causes the problem.
al.sensor = "Sensor 1";
}

}

The problem i'm having is when I try to modify or write to the Alarm
struct I get a NullPointerException every time.
Am I doing something wrong?

Do I need to define anything extra to get an IDL struct to work as a
JAVA class?
I tried redefining Alarm as a class with the same variables but this
caused all sorts of other errors..

Any help appreciated :) read more about Structs and null pointer exceptions


Message from yuval.steinberg
Most recent post: 6/12/2006
2 authors and 2 replies.

Hello,
The Jacorb 2.2.4 which can is downloaded from the Jacorb home page is
compiled with JAVA 1.5, and I wish to build it myself with JAVA 1.4.2.

I was running ant and got this error. Any ideas ? (I even tried to "ant
clean" first, but no success)

BUILD FAILED
/<directory>/JacORB-2.2.4/build.xml:52: The following error occurred
while executing this line:
JAVA.lang.IllegalAccessError: tried to access method
org.jacorb.idl.parser.init()V from class org.jacorb.idl.JacIDL read more about Jacorb 2.2.4 compilation


Message from yuval.steinberg
Most recent post: 6/7/2006
2 authors and 6 replies.

In Jacorb 1.3 I could read properties from the jacorb.properties file
by using:
org.jacorb.util.Environment.getProperty(propertyName);

I'm upgrading now to 2.2.4, but it does not work any more.
What should I use ? read more about Jacorb - reading properties


Message from yuval.steinberg
Most recent post: 5/31/2006
2 authors and 2 replies.

Hello,
We're currently using JacOrb version 1.3.30, and we wish to upgrade it
to the latest version (2.2.3).
Are there any reasons why not to do so ? Do you recommend using this
version ? read more about Upgrading JacOrb


Message from Jeffrey Spoon
Most recent post: 4/24/2006
2 authors and 2 replies.

Hello, I'm just checking I've used the right syntax for my jvmargs as
I'm having some problems (although this may be a config problem).

I'm running this command for an application:

JAVA -classpath C:\politse\J2EE.jar;C:\politse\appserv-rt.jar;
UberClient
-client jvmarg value = "-Dorg.omg.CORBA.ORBInitialHost=${192.168.1.1}"
jvmarg value = "-Dorg.omg.CORBA.ORBInitialPort=${3700}"

Is this the correct syntax (obviously it is not wrapped)?

The reason I ask is because I get a CORBA COMM FAILURE and it gives the
InitialHost as localhost and the port as 3700, even when I set the port
to another value, so I'm not sure if the jvmarg values are being used,
as it seems to default to those values. This even happens when the
server is off so I think it is a client problem, it seems to be ignoring
the jvmargs. Any ideas?

Cheers
--
Jeffrey Spoon read more about jvmargs (again)


Message from unixjedi
Most recent post: 3/16/2006
3 authors and 3 replies.

Is there a way to limit the ports that the CORBA is using? We are behind
firewalls using Tomcat 4.1.31

The ports are limited to a our vendor use of 18000,18010,18020,18030,18050
to 18053 and 14970 14980.these are what the site has opened

We keep seeing the Corba opening ports randomly starting at 39000. This will
change on restart.
Where can one set the range!

Any insight is appreciated

Rob

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com read more about Iona61 Dynamic ports, how to fixate


Message from Christian Naeger
Most recent post: 3/3/2006
2 authors and 3 replies.

Hi all,

I desperately need your help.

I've written a simple Statless Session Bean and successfully deployed
it to Sun App Server 8.2. Moreover, I've written a small JAVA
application (a standalone application, with the jar from asadmin
get-client-stubs on the classpath) that looks up the Session Bean. The
look up is successful and I get an object of the correct type. The
narrowing doesn't throw an exception but unfortunately it does return
a null pointer. Please, have a look at the client code and the output
below.

I've tried everything I can think of and I believe I've done
everything correctly. Yet, it just does not work. Could anyone please
give a hint what I am probably doing wrong (the API doesn't mention
narrow returning null and google did not bring up a solution either)?

Any help is greatly appreciated.
Greetings, Chris

Client-Code:
=========

Hashtable props = new Hashtable();
props.put("JAVA.naming.factory.initial",
"com.sun.jndi.cosnaming.CNCtxFactory");
props.put("JAVA.naming.provider.url", "iiop://localhost:3700");
Context ic = new InitialContext(props);
Object o = ic.lookup("ejb/BankMgr");
if (o == null)
System.out.println("Null Pointer");
else
System.out.println("No Null Pointer");
System.out.println(o.getClass().getName());
System.out.println(o.toString());
System.out.println(BankMgrHome.class);
o = PortableRemoteObject.narrow(o, BankMgrHome.class);
if (o == null)
System.out.println("Null Pointer" read more about Narrow returns null


Message from jeanlou
Most recent post: 3/1/2006
2 authors and 5 replies.

Hallo
I've an application running with Orbacus 4.3, C++6.0(Server) and
JAVA(Client).
I need help concerning the migration from C++6.0 to C++-Net 2003. In
fact I receive exactly the same problem that I received with C++6.0
before I update the compiler flag /MLd(Debug Single-Threaded) to
/MDd(Debug Multi threaded DLL). The recent days I've tried to find a
solution by modifying the flag of the project settings of my
application under c++.Net; but I got no solution. The system goes throw
the same code sequence and I receive the same "debug failed
assertion" in the module dbgheap.c
(Using c++6.0 the Line Nr was 1044 and with C++.Net it is 1132).

I need very urgently to get my system running with C++.Net; but I need
information's about the flag to be used to solve this problem or to
know what is going wrong with C++.Net?

Compiler flags C++6.0
/nologo /MDd /w /W0 /Gm /GR /GX /ZI /D "WIN32" /D "_DEBUG" /D
"_CONSOLE" /D "_MBCS" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
Compiler flags C++.Net
/D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /EHsc /MDd /GR
/Fp".\Debug/eLOckDb_Cons.pch" /Fo".\Debug/" /Fd".\Debug/" /W0 /nologo
/c /ZI /Gd

I hope I'll receive a response soon. Thanks a lot in advance and
Regards
Jean-Louis

--------------------------------------------------------------------------------

Von: Decoster Jean Louis
Gesendet: Dienstag, 17. Januar 2006 09:33
An: ob-users@xxxxxxxxxxx
Betreff: AW: [OB-Users] deactivation of implicit factory object? read more about Problem with orbacus 4.3 using c++.Net 2003


Message from paul
Most recent post: 2/3/2006
2 authors and 3 replies.

hi

how the POA can know if a object is activate?

thanks read more about POA and object activation...


Message from jeanlou
Most recent post: 2/2/2006
2 authors and 5 replies.

Hi,

I am sure that Orbacus runs good with c++.Net; but I need to use it
urgently.

My problems are how can I install Orbacus on a machine with C++.Net
without C++6.0 and how can I select C++.Net on a machine with both
compiler ?

Sorry but I can not find information's concerning this problem

I hope somebody will help me very soon

Regards,

Jean-Louis read more about I can not install orbacus on a machine with only C++.Net


Message from Marek
Most recent post: 1/29/2006
3 authors and 4 replies.

Hi,

This is my problem:

I've many objects that need to be accessed remotly, for example A and B.
First object has method that returns reference to the second object:
class A {
...
B getB(){...}
...
}

I have implemented servants for A and B (APOA and BPOA).
Method getB() returns reference made by rootPOA.servant_to_reference()
and narrowed by BHelper.narrow().
When I try to call some B's methods in a client application I get some null
pointer exception.

My question is how I should make and return reference to B by A's getB()
method?

Thanks in advance. read more about Returning remote reference to an object by another remote object


Message from Marek
Most recent post: 1/21/2006
3 authors and 3 replies.

Hi

Is there any naming server that I can start and manage from the JAVA source
code level? read more about Naming Server in JAVA


Message from none
Most recent post: 1/8/2006
4 authors and 7 replies.

I've followed
http://JAVA.sun.com/j2se/1.4.2/docs/guide/idl/GShome.html to build a
corba application. When I run the orb, server and client on the same
machine it works fine.

When I follow this guide
http://JAVA.sun.com/j2se/1.4.2/docs/guide/idl/tutorial/jidl2machines.html
to run the orb and server on one machine and the client on another
machine it does not work.

The orb and server starts fine but when I start the client I get the
error below.
I've started the orb with orbd -ORBInitialHost 192.168.1.100
-ORBInitialPort 1050 and the server with JAVA HelloServer
-ORBInitialPort 1050

Both systems are Linux Debian with sun j2sdk1.5_1.5.0+update02
Both systems is on an internal lan with ip's 192.168.1.101 and
192.168.1.100 with no firewall and directly connected.

banke@xxxxxxxxxxx# JAVA HelloClient -ORBInitialHost 192.168.1.100
-ORBInitialPort 1050
Dec 17, 2005 11:21:46 PM
com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl <init>
WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType:
IIOP_CLEAR_TEXT; hostname: 127.0.0.1; port: 1049"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
at
com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(Unknown
Source)
at
com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(Unknown
Source)
at
com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(Unknown read more about Using corba from a different machines not working


Message from sm.sm.sm.
Most recent post: 12/10/2005
3 authors and 3 replies.

Dovrei sviluppare un sinottico in JAVA qualche idea non so da dove partire
Grazie read more about Sinottico


Message from Sibob
Most recent post: 12/9/2005
2 authors and 4 replies.

Hello.

I'd like to know, who I get a sequence of longs in one any data type?

my idl:

typedef sequence<long> longSequence;

struct Data
{
string name;
string type;
any colValues;
};Thanks, regards sebastian read more about any = long sequence .... how???


Message from ccrosetti
Most recent post: 12/9/2005
2 authors and 2 replies.

Hello, I am tryingto access a remore object fom a c++ client.
Got the correct Jacorb nameservice using a corbaloc.Saw some notes where Jacorbsupports onli NamingContext Names of a
single entry, while my