Need help with sequence any Holder
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Stefan_Flemming
Posted On:   Tuesday, May 16, 2006 04:20 AM

I have got an IDL with the content: typedef sequence data_seq_t; and a command long read_data( in param1, in param2, inout data_seq_t data_seq; ) idlj has generated a Holder and a Helper for the data_seq_t type. My question is, how to call the function read_data from java without NullpointerException? The needed answer that is null should be in data_seq. The object is resolved and narrowed to dataObject. I generated an instance of data_seq_tHolder with data_seq_tHolder dataHolder = new data_seq_tHolder(); When I call the method dataObject.read_data(0,1,dataHolder); I get a NullpointerException.    More>>

I have got an IDL with the content:

typedef sequence data_seq_t;

and a command
			
long read_data(
in param1,
in param2,
inout data_seq_t data_seq;
)

idlj has generated a Holder and a Helper for the data_seq_t type.



My question is, how to call the function read_data from java without NullpointerException?

The needed answer that is null should be in data_seq.



The object is resolved and narrowed to dataObject.

I generated an instance of data_seq_tHolder with

data_seq_tHolder dataHolder = new data_seq_tHolder();

When I call the method
dataObject.read_data(0,1,dataHolder);

I get a NullpointerException.

What is my mistake, I'm new to CORBA and i may not change the IDL since it is used in hundred of instruments.


I would be very happy for a helping answer.

Best regards, Stefan    <<Less
About | Sitemap | Contact