I set the CF Admin to no authentication (just to test) and it appears to
work. There server will be public facing once it is setup so I sure can't
leave it that way. it is interesting though...
.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com
-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com]
Sent: Monday, June 04, 2012 2:00 PM
To: cf-talk
Subject: CF8 AdminApi throws errors.
I've been using the admin API for years to list and create datasources so I
am pretty familiar with it (which isn't to say I'm not doing something dumb
and just missing it). We recently created two new CF8.0.1 machines (clones
of a existing machines that work fine). There are hundreds of datasources on
the cloned machines and I needed to clean them out and create new ones. I
decided to use the admin API to do both tasks. However, all requests of any
methods within the datasource.cfc are throwing odd errors on the new
servers.
For instance, a simple list of datasources (which i know I can get with the
service factory but this is happening with datasource delete and create
attempts as well)
This is the code (quite basic and known to work elsewhere)
cfsetadminObj =
createObject(component,cfide.adminapi.administrator) /
cfset isLoggedin = adminObj.login(cfadminpassword) /
cfif isLoggedin
cfdump
var=#createObject(component,cfide.adminapi.datasource).getDatasources()
# /
/cfif
The error behind that one is:
The error occurred in datasource.cfc: line 67
-1 : Unable to display error's location in a CFML template.
No actual error message; just that info.
The stack points to authentication issues
(coldfusion.security.SecurityManager$UnauthenticatedCredentialsException)
but the isLogged check is true and im positive the password in
cfadminpassword is correct (further indicated by isLoggedIn being true).
The Cf Admin is set to Use a single password only (default)
Here is the top of the stack:
coldfusion.security.SecurityManager$UnauthenticatedCredentialsException
at
coldfusion.security.SecurityManager.authenticateAdmin(SecurityManager.java:1
704)
at coldfusion.sql.Executive.getDatasources(Executive.java:92)
at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at coldfusion.runtime.StructBean.resolveName(StructBean.java:188)
at coldfusion.runtime.Scope.get(Scope.java:60)
at
coldfusion.runtime.ScopeSearchResult.searchForSubkeys(ScopeSearchResult.java
:104)
at coldfusion.runtime.LocalScope.search(LocalScope.java:441)
at
coldfusion.runtime.NeoPageContext.searchScopes(NeoPageContext.java:662)
at
coldfusion.runtime.CfJspPage.resolveCanonicalName(CfJspPage.java:1653)
at coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1612)
at
coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1747)
at
coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1740)
at
cfdatasource2ecfc498810217$funcGETDATASOURCES.runFunction(E:\cf8_updates\cfu
sion\wwwroot\CFIDE\adminapi\datasource.cfc:67)
Has anyone ran into this one before or have any ideas on what to try next?
Thanks.
.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351449
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm