error "operations cannot be applied to"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Eric

    error "operations cannot be applied to"

    Hi,

    I'm getting this error message :

    createSession(j ava.lang.String , java.lang.Strin g,
    org.omg.CORBA.I ntHolder, B.SessionHolder ,org.omg.CORBA. StringHolder)
    in B.BOperations cannot be applied to
    (java.lang.Stri ng,java.lang.St ring, int, B.Session, java.lang.Strin g)

    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?
  • Eric

    #2
    Re: error "operation s cannot be applied to"

    Figured it out. Didn't know about type Holders. Just used
    TypeHolders to hold the data and it worked out.




    hlink72@hotmail .com (Eric) wrote in message news:<ab8d8b14. 0309030301.cd94 [email protected] gle.com>...[color=blue]
    > Hi,
    >
    > I'm getting this error message :
    >
    > createSession(j ava.lang.String , java.lang.Strin g,
    > org.omg.CORBA.I ntHolder, B.SessionHolder ,org.omg.CORBA. StringHolder)
    > in B.BOperations cannot be applied to
    > (java.lang.Stri ng,java.lang.St ring, int, B.Session, java.lang.Strin g)
    >
    > 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?[/color]

    Comment

    • Neomorph

      #3
      Re: error &quot;operation s cannot be applied to&quot;

      On 4 Sep 2003 03:02:31 -0700, hlink72@hotmail .com (Eric) two-finger typed:
      [color=blue]
      >Figured it out. Didn't know about type Holders. Just used
      >TypeHolders to hold the data and it worked out.[/color]

      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.

      [color=blue]
      >hlink72@hotmai l.com (Eric) wrote in message news:<ab8d8b14. 0309030301.cd94 [email protected] gle.com>...[color=green]
      >> Hi,
      >>
      >> I'm getting this error message :
      >>
      >> createSession(j ava.lang.String , java.lang.Strin g,
      >> org.omg.CORBA.I ntHolder, B.SessionHolder ,org.omg.CORBA. StringHolder)
      >> in B.BOperations cannot be applied to
      >> (java.lang.Stri ng,java.lang.St ring, int, B.Session, java.lang.Strin g)
      >>
      >> 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?[/color][/color]

      Cheers.

      Comment

      Working...