Skip to main content
Participant
April 1, 2009
Answered

CreateObject Problem

  • April 1, 2009
  • 2 replies
  • 505 views
Hi,
Hope some one can help me. I’m trying to access a class (ServerInfo) inside an interface in java.
Find example of java interface:


This topic has been closed for replies.
Correct answer -__cfSearching__-
FanieDeysel wrote:
> I would access the class through java
> XFMS_Java_API.ServerInfo serverInfo_Live = new XFMS_Java_API.ServerInfo(....);

ServerInfo is an inner class. Use a "$" instead of a "." to reference the class name:

serverInfo = createObject("java","com.arcot.xfms.XFMS_Java_API$ServerInfo").init(....);

2 replies

Participant
April 2, 2009
Thanks you -==cfSearching==-‘s
Inspiring
April 1, 2009
> The line
> serverInfo =
> CreateObject("java","com.arcot.xfms.XFMS_Java_API.ServerInfo").init(Livehost,por
> t,transport,sockTimeout,connTimeout,maxConns,minConns,trustedCACertFile,clientCe
> rtFile,clientKeyFile);
>
> keeps on throwing an exception :Error Message :Object Instantiation Exception.

Sometimes I find one needs to use javaCast() on int values to make sure CF
is passing ints, not floats.

--
Adam
-__cfSearching__-Correct answer
Inspiring
April 1, 2009
FanieDeysel wrote:
> I would access the class through java
> XFMS_Java_API.ServerInfo serverInfo_Live = new XFMS_Java_API.ServerInfo(....);

ServerInfo is an inner class. Use a "$" instead of a "." to reference the class name:

serverInfo = createObject("java","com.arcot.xfms.XFMS_Java_API$ServerInfo").init(....);