EugenePipko
Explorer
EugenePipko
Explorer
Activity
‎Feb 21, 2019
01:25 PM
I misspelled Application extension. It should of been .cfc I installed second update and according to update log, it installed successfully. I was hoping that there is something in it that could of help, but... no, I still have same issues. Made a change to onApplicationStart as you suggested. Question: how do I pull all keys in #arguments#? I still would like to go one-by-one see which one causes the issue.
... View more
‎Feb 21, 2019
10:02 AM
@BKBK, Here is my Application.cfm It worked perfectly in CF9 for many year. <cfcomponent> <cfset THIS.name="PROD"> <cfset THIS.sessionManagement="true"> <cfset THIS.clientManagement="true"> <cfset THIS.setClientCookies="true"> <cfset THIS.applicationTimeout=CreateTimeSpan(1,0,0,0)> <cfset THIS.sessionTimeout=CreateTimeSpan(0,0,20,0)> <cffunction name="onApplicationStart"> </cffunction> <cffunction name="onApplicationEnd"> </cffunction> <cffunction name="onSessionStart"> <cftry> <cfif find("SPI\",#CGI.Auth_User#)> <cfset curr_user = listlast(#CGI.Auth_User#,"SPI\")> <cfset SESSION.curr_user = UCase(curr_user)> <cfelse> user not found !!! <cfabort> </cfif> <cfquery name="get_roles" datasource="#REQUEST.dsn#"> query goes here ... </cfquery> <cfif get_roles.RecordCount GT 0> <cfset rolesArray=ArrayNew(1)> <cfloop query="get_roles"> <cfset rolesArray[CurrentRow] = "/" & link_home[CurrentRow] & "/"> </cfloop> <cfset SESSION.userRoles = rolesArray> </cfif> <cfcatch> onSessionStart Error <cfdump var="#cfcatch#"> <cfabort> </cfcatch> </cftry> </cffunction> <cffunction name="onRequestStart"> <cfif not structKeyExists(session,"curr_user")> <!--- The session has been lost, restart it... ---> <cfset onSessionStart() /> </cfif> <cfif NOT isDefined("URL.contentonly")> <table width="100%" border="0" bgcolor=""> <tr align="center"> <td><img src="\prod\IMAGES\logo.jpg" width="886" height="87" border="0"></td> <td class="TH">Welcome <cfoutput>#session.curr_user#</cfoutput><br></td> </tr> </table> <hr size="3"> </cfif> <cftry> <cfif not structKeyExists(session, "curr_user")> You are not a valid user. <cfabort> </cfif> <!--- Check if userRoles exist in SESSION ---> <cfif not structKeyExists(session, "userRoles")> You have no roles assigned.<br> Please contact your web administrator. <cfabort> </cfif> <!--- Get the name of the current template (from where request is coming from) ---> <cfset currentPage = listLast(cgi.script_name,"/") /> <cfset SESSION.curr_page = currentPage> <cfif not listfindNoCase("index.cfm,login.cfm,logout.cfm", currentPage)> <cfset userRoles = SESSION.userRoles> <cfset foundit = true> <cfset i = 0> <cfloop condition = "(NOT foundit) AND (i LT ArrayLen(userRoles))"> <cfset i = i + 1> <cfif find(#userRoles#,#currentPage#)> <cfset foundit = True> </cfif> </cfloop> <cfif not foundit> You do not have permission to view this page <cfabort> </cfif> </cfif> <cfcatch> <cfdump var="#cfcatch#"> <cfabort> </cfcatch> </cftry> </cffunction> <cffunction name="onRequestEnd"> <cfif NOT isDefined("URL.contentonly")> <p align="right"> <cfoutput> <font size="2" face="sans-serif" color="black"> <i>©#Year(Now())#</i><BR> </cfoutput> </p> </cfif> </cffunction> <cffunction name="onSessionEnd"> </cffunction> <cffunction name="onError" returnType="void" output="true"> <cfargument name="exception" required="true"> <cfargument name="eventname" type="string" required="true"> <cfset var errortext = ""> <!--- Display error to user ---> <img src="../../IMAGES/SiteError.gif" width="750" height="150" alt="Site Error" border="0"> <p></p> Error: <cfoutput><strong>#arguments.exception.message#</strong></cfoutput><br /> Error details were sent to the application administrator.<br /> <p></p> <a href="<cfoutput>#CGI.http_referer#</cfoutput>">Go Back</a> <cfsavecontent variable="errortext"> <cfoutput> Time: #dateFormat(now(), "short")# #timeFormat(now(), "short")#<br /> Error on page: http://#cgi.server_name##cgi.script_name#?#cgi.query_string#<br /> Referrer: #cgi.HTTP_REFERER# </cfoutput> <cfdump var="#arguments.exception#" label="Error"> </cfsavecontent> <cfmail to="me@company.com" from="cf@company.com" subject="ColdFusion request failed for #UCase(listlast(SESSION.curr_user,"\"))#" type="html"> #errortext# </cfmail> </cffunction> </cfcomponent>
... View more
‎Feb 21, 2019
09:29 AM
Charlie, Update_1 was installed and I cannot find anything wrong (by looking into .log file). All entries show Status: SUCCESSFUL I like what you proposed: list of the keys of argument.exception(), but I am not sure how to do so. structlist(arguments.exception)
... View more
‎Feb 21, 2019
09:18 AM
<cfdump var="#arguments#" label="arguments" /> returns the following data, but I receive the same errors I was thinking: it's definitely related to #arguments#, then how do I list all of possible once, as Charlie suggested and by process of elimination find the one that fails?
... View more
‎Feb 20, 2019
03:41 PM
Exceptions 15:40:30.030 - Object Exception - in D:/UB_CF_APPS/PROD/Application.cfc : line 280 The getMetaData method was not found. 15:40:30.030 - Application Exception - in D:/UB_CF_APPS/PROD/Application.cfc : line 280 An exception occurred while calling the function getMetaData.
... View more
‎Feb 20, 2019
03:21 PM
Exceptions 15:19:49.049 - Object Exception - in D:/UB_CF_APPS/PROD/Application.cfc : line 279 The getMetaData method was not found. 15:19:49.049 - Application Exception - in D:/UB_CF_APPS/PROD/Application.cfc : line 279 An exception occurred while calling the function getMetaData.
... View more
‎Feb 20, 2019
03:09 PM
You're right, I have another issue with <CFPRINT> not working, so I am using the page I have with that tag in it to trigger an error
... View more
‎Feb 20, 2019
03:08 PM
Yes, <cfdump> works fine, but not for some reason it won't dump #arguments.exception# Not sure I know how to find illegal calls to GetMetadata()
... View more
‎Feb 20, 2019
02:57 PM
I tried the same thing: copied onError method to an empty Application.cfm Received the same error
... View more
‎Feb 20, 2019
02:48 PM
I did not get the same error this time!
... View more
‎Feb 20, 2019
02:36 PM
<cfdump var="#server#"> works just fine the workaround using <cfscript> does not work: shows same errors
... View more
‎Feb 20, 2019
02:02 PM
changed it to <cfsavecontent variable="errortext"> <cfoutput> Time: #dateFormat(now(), "short")# #timeFormat(now(), "short")#<br /> Error on page: http://#cgi.server_name##cgi.script_name#?#cgi.query_string#<br /> Referrer: #cgi.HTTP_REFERER# <!---<cfdump var="#arguments.exception#" label="Error">---> </cfoutput> <cfdump var="#arguments.exception#" label="Error"> </cfsavecontent> and still getting same errors referring to <cfdump var="#arguments.exception#" label="Error"> Exceptions 14:00:25.025 - Object Exception - in D:/UB_CF_APPS/PROD/Application.cfc : line 281 The getMetaData method was not found. 14:00:25.025 - Application Exception - in D:/UB_CF_APPS/PROD/Application.cfc : line 281 An exception occurred while calling the function getMetaData.
... View more
‎Feb 20, 2019
01:23 PM
Just tried that and ... have the same errors <cffunction name="onError" returnType="void" output="true"> <cfargument name="exception" required="true"> <cfargument name="eventname" type="string" required="true"> <cfset var errortext = ""> <!--- Display error to user ---> <img src="../../IMAGES/SiteError.gif" width="750" height="150" alt="Site Error" border="0"> <p></p> Error: <cfoutput><strong>#arguments.exception.message#</strong></cfoutput><br /> Error details were sent to the application administrator.<br /> <p></p> <a href="<cfoutput>#CGI.http_referer#</cfoutput>">Go Back</a> <cfsavecontent variable="errortext"> <cfoutput> Time: #dateFormat(now(), "short")# #timeFormat(now(), "short")#<br /> Error on page: http://#cgi.server_name##cgi.script_name#?#cgi.query_string#<br /> Referrer: #cgi.HTTP_REFERER# <cfdump var="#arguments.exception#" label="Error"> </cfoutput> </cfsavecontent> <cfmail to="epipko@unionbay.com" from="cf_server@unionbay.com" subject="ColdFusion request failed for #UCase(listlast(SESSION.curr_user,"\"))#" type="html"> #errortext# </cfmail> </cffunction> Exceptions 13:16:09.009 - Object Exception - in D:/Application.cfc : line 279 The getMetaData method was not found. 13:16:09.009 - Application Exception - in D:/Application.cfc : line 279 An exception occurred while calling the function getMetaData. 13:16:09.009 - Object Exception - in D:/Application.cfc : line 279 The getMetaData method was not found. 13:16:09.009 - Application Exception - in D:/Application.cfc : line 279 An exception occurred while calling the function getMetaData. 13:16:09.009 - Object Exception - in D:/Application.cfc : line 279 The getMetaData method was not found. 13:16:09.009 - Application Exception - in D:/Application.cfc : line 279 An exception occurred while calling the function getMetaData. Line 279 refers to this: <cfdump var="#arguments.exception#" label="Error">
... View more
‎Feb 19, 2019
10:06 AM
Thanks for reply. So far, this is the only message I am receiving after upgrade. Since it referring to #arguments.exception#, is there a new way to report an error in 2018?
... View more
‎Feb 19, 2019
09:28 AM
Hello, I installed CF2018 on Win2016 server and moved my code into it from CF9. Now I am receiving errors that I did not receive in CF9. 09:15:16.016 - Object Exception - in D:/Application.cfc : line 249 The getMetaData method was not found. 09:15:16.016 - Application Exception - in D:/Application.cfc : line 249 An exception occurred while calling the function getMetaData. The line 249 refers to the <cfdump> tag in the following function in Application.cfm <cffunction name="onError" returnType="void" output="false"> <cfargument name="exception" required="true"> <cfargument name="eventname" type="string" required="true"> <cfset var errortext = ""> <cfif isDefined("arguments.exception.rootCause") AND arguments.exception.rootCause IS "coldfusion.runtime.AbortException"> <cfreturn/> </cfif> <cfmail to="me@company.com" from="cf_server@company.com" subject="ColdFusion request failed for #UCase(listlast(SESSION.curr_user,"\"))#" type="html"> <p><strong>Error: <font color="red">#arguments.exception.message#</font></strong></p> <strong>Time:</strong> #dateFormat(now(), "short")# #timeFormat(now(), "short")#<br> <strong>Error on page:</strong> http://#cgi.server_name##cgi.script_name#?#cgi.query_string#<br> <strong>Referrer:</strong> #cgi.HTTP_REFERER# <p></p> <cfdump var="#arguments.exception#" label="Error"> </cfmail> <cfabort> </cffunction> Does anyone know how to fix it? Thanks, Eugene
... View more
‎Dec 12, 2018
10:38 AM
1 Upvote
<cfscript> writeoutput('isValid("email","mail@cf_server.com"): ' & isValid("email","mail@cf_server.com")); writeoutput('<br>'); writeoutput('isValid("email","mail@cfserver.com"): ' & isValid("email","mail@cfserver.com")); </cfscript> produces isValid("email","mail@cf_server.com"): NO isValid("email","mail@cfserver.com"): YES and ... when I run <cfmail to="epipko@unionbay.com" from="mail@cfserver.com" subject="Example email" server="smtp.seattlepacificindustries.com" port="25"> Your Email Message!!! </cfmail> I am getting email !!!
... View more
‎Dec 12, 2018
08:54 AM
It works if I specify a valid email address, for instance: <cfmail to="epipko@unionbay.com" from="epipko@unionbay.com" subject="Example email" server="smtp.seattlepacificindustries.com" port="25"> Your Email Message!!! </cfmail>
... View more
‎Dec 07, 2018
09:05 AM
Thanks Charlie, I I ran it in CF9 as: <cfmail to="epipko@unionbay.com" from="mail@cf_server.com" subject="Example email" server="smtp.seattlepacificindustries.com" port="25"> Your Email Message!!! </cfmail> and received it:
... View more
‎Dec 06, 2018
03:13 PM
I am running this in CF9 just fine <cfmail to="epipko@unionbay.com" from="mail@cf_server.com" subject="Example email"> Your Email Message!!! </cfmail>
... View more
‎Dec 06, 2018
03:00 PM
To email is real, from is not, but it works just fine in my current CF9. Even if I add server and port, it's not working. <cfmail to="epipko@unionbay.com" from="mail@cf_server.com" subject="Example email" server="smtp.seattlepacificindustries.com" port="25"> Your Email Message!!! </cfmail> I tried to run it by providing same "real" email address in "to" and "from" and got a different error: <cfmail to="epipko@unionbay.com" from="epipko@unionbay.com" subject="Example email" server="smtp.seattlepacificindustries.com" port="25"> Your Email Message!!! </cfmail> Error: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.1 Client was not authenticated
... View more
‎Dec 06, 2018
02:30 PM
The error I provided IS from mail log
... View more
‎Dec 06, 2018
02:02 PM
Hello all, CF 2018 Standard on Windows 2016. Running the following code: <cfmail to="epipko@unionbay.com" from="mail@cf_server.com" subject="Example email"> Your Email Message!!! </cfmail> Getting the following error in mail log: javax.mail.internet.AddressException: Empty address in string ``'' If you dealt with this error before, please point me to the right direction to resolve it. Thanks, Eugene
... View more
‎Sep 20, 2018
09:07 AM
Thank you, When I click on Adobe - ColdFusion Support Center : More Downloads I see Developer and Trial editions. I was told that I can't use Trial, because it's a Enterprise version and cannot be downgraded to Standard, so do I need to download Developer and enter Standard license key? Will it work? Eugene
... View more
‎Sep 19, 2018
04:20 PM
All, I can't seem to find a link to download CF 2018 Standard and CF Builder 2018. Could someone, please share it Thanks, Eugene
... View more
‎Aug 29, 2018
01:34 PM
Hmmm.... according to the doc you provided, CF 2018 Standard won't connect to Oracle at all (there are no dots against it)
... View more
‎Aug 29, 2018
12:23 PM
If I'd to upgrade to CF 2018, will I be able to access Oracle 9i?
... View more
‎Aug 29, 2018
11:00 AM
Hi, I have CF9 on Windows 2003 (32 bit) and need to connect to Oracle 12c (Windows 2016 64 bit). Could someone, please let me know if it's possible and refer me to a document on how to do it. When I try to create data source using the following, I get an error. Driver: other JDBC URL: jdbc:oracle:thin:@db01:1521:APOLLO Driver class: oracle:jdbc.OracleDriver Thank you, Eugene
... View more
‎May 14, 2008
02:42 PM
Thanks for reply,
I went to our network admin and asked if anytihng was changed
on the server.
He pointed out that permisions of the default user were not
the same. Changing them fixed it.
Eugene
... View more