Using Java Library with ColdFusion

72 views
Skip to first unread message

jeff w

unread,
Apr 30, 2008, 2:05:38 PM4/30/08
to AdWords API Forum
Has anyone developed a Coldfusion Application with the Java library? I
know a Coldfusion library has been released, but I'd still like to
play with the Java Library before I commit to the Coldfusion Library.

I am struggling to figure out how to use java classes in CF, so I'm
starting out simple, trying to call getClientAccounts. I can
instantiate the user object no problem:

<cfset packagepath = "com.google.api.adwords.lib.">
<cfset objUser = createObject("java",
"#packagepath#AdWordsUser").init(ExpandPath("adwords.properties"))>

I start getting into trouble next when I try to get the service to use
for the AccountServiceSoapBindingStub. l am trying to access
objUser.ACCOUNT_SERVICE so I can use that variable when calling
objUser.getService().

<cfset serviceID = objUser.ACCOUNT_SERVICE>

The above line of code generates this error: Class
coldfusion.runtime.StructBean can not access a member of class
com.google.api.adwords.lib.BaseCredentials with modifiers "public
static final"

I can't make sense of this error, so I don't know where to begin
troubleshooting. I'm hoping that I am just not understanding
(conceptually) the relationship between the Java classes and
Coldfusion, and that once I wrap my head around whats going on,
everything else will be cake. Obviously, if I can't understand whats
going on, I'll use the new CF library. But, I'd like to exhaust all
other avenues before i make that decision.

Thanks Much!

Milos Bejda

unread,
Jan 13, 2016, 8:23:32 AM1/13/16
to AdWords API Forum, jeff.r.w...@gmail.com
Jeff did u ever solve this?

Yin Niu

unread,
Jan 13, 2016, 11:05:26 AM1/13/16
to AdWords API Forum, jeff.r.w...@gmail.com
Hi,

This is a very old thread, could you start a new thread please?

Thanks,
Yin, AdWords API Team.

Reply all
Reply to author
Forward
0 new messages