473,387 Members | 3,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

error "operations cannot be applied to"

Hi,

I'm getting this error message :

createSession(java.lang.String, java.lang.String,
org.omg.CORBA.IntHolder, B.SessionHolder,org.omg.CORBA.StringHolder)
in B.BOperations cannot be applied to
(java.lang.String,java.lang.String, int, B.Session, java.lang.String)

It looks like I am passing parameters that are of the wrong type. But
how do I get the right type? What should the right types be?
Jul 17 '05 #1
2 6939
Figured it out. Didn't know about type Holders. Just used
TypeHolders to hold the data and it worked out.


hl*****@hotmail.com (Eric) wrote in message news:<ab*************************@posting.google.c om>...
Hi,

I'm getting this error message :

createSession(java.lang.String, java.lang.String,
org.omg.CORBA.IntHolder, B.SessionHolder,org.omg.CORBA.StringHolder)
in B.BOperations cannot be applied to
(java.lang.String,java.lang.String, int, B.Session, java.lang.String)

It looks like I am passing parameters that are of the wrong type. But
how do I get the right type? What should the right types be?

Jul 17 '05 #2
On 4 Sep 2003 03:02:31 -0700, hl*****@hotmail.com (Eric) two-finger typed:
Figured it out. Didn't know about type Holders. Just used
TypeHolders to hold the data and it worked out.
Maybe a bit of clarification with respect to their needed usage:

When you are communicating with data across platforms, the data needs to be
embedded in a way that is crossplatform (protocol) dependent.

The holders are apparently container to hold crossplatform data. This is
especially usefull when you represtn data that has a large amount of ways
te be represnted, like dates and even integer and floating point/real
values.

You see this especially with databases and remote object/method invocation.

hl*****@hotmail.com (Eric) wrote in message news:<ab*************************@posting.google.c om>...
Hi,

I'm getting this error message :

createSession(java.lang.String, java.lang.String,
org.omg.CORBA.IntHolder, B.SessionHolder,org.omg.CORBA.StringHolder)
in B.BOperations cannot be applied to
(java.lang.String,java.lang.String, int, B.Session, java.lang.String)

It looks like I am passing parameters that are of the wrong type. But
how do I get the right type? What should the right types be?


Cheers.
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Fie Fie Niles | last post by:
I have IIS installed on XP Professional workstation machine. I have an ASP page that open connection to an Access database, then when trying to update the database, it gave me the error "cannot...
2
by: Andreas Poller | last post by:
Hello, I have the following problem: I have a class deriving from ICustomTypeDescriptor: public __gc class TPropertyBag : public ICustomTypeDescriptor { private: ...
0
by: Chun | last post by:
Dear All I am now facing a problem when i try to pass a custom datatable datatype value to a remote server. In the remote server, a method with System.Data.DataTable as input parameter is...
0
by: Abhi | last post by:
The applicaiton through which the service is created, doesnt give that error. To check the exact issue, I tested with a service containing this block of code. The service gives the error when...
2
by: Florian G. Pflug | last post by:
Hi Since sometime yesterday, my postgresql (7.4.5) reports "ERROR: cannot compare arrays of different element types", when I analyze a specific table in my database. Here is the tables...
0
by: mvdkwong | last post by:
I am trying to run a macro that will export a table into a fixed length file (see below). However, when I run it, I get the following error: "Cannot update. Database or object is read-only." I've...
1
by: marknewbery | last post by:
Hi, I have been trying to get a php, mySQL install to work and talk together on Windows XP SP2 with IIS. So far I installed and received a responce from php(V5 - manual install) though the ...
2
by: qazmlp1209 | last post by:
class base { public: base() { } base(int number) { priNumber = number ;
2
by: ironmanlarry | last post by:
Hi, I'm trying to do a mail merge from Excel to Word (programatically) and I'm having some trouble creating the Word Document Object. This line of code wordDoc = GetObject("sheet.doc") keeps...
14
by: sarabonn | last post by:
hallo Iam trying to insert a row into a access database using visual c# and iam getting an error " cannot open the action query". here is my code private void button1_Click(object sender,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.