Quantcast
Channel: Adobe Community : Popular Discussions - ColdFusion
Viewing all 14291 articles
Browse latest View live

Trouble with sending email through Office365

$
0
0

I am running CF10. New installation on Windows Server 2012R2. Intranet site.

 

In ColdFusion Administrator, the mail server connection verifies as successful.

 

Mail server is smtp.office365.com (have also tried smtp.outlook.office365.com)

Port is 587

 

Username and password are blank, however I have tried it with a valid username and password as well. In both cases the connection is successful.

 

Enable SSL is unchecked.

Enable TLS is checked.

 

No other combination of SSL and TLS will verify.

 

When I send an email using CFMAIL, the mail goes into the undeliverable folder every time without fail.

 

My internet searches have been futile in this case. With the prevalence of Office365 this can't be a unique scenario can it?


CF2016 JDBC SQL Server 2016 SSL Connections work around

$
0
0

Hello Community.

 

Recently my team tackled a POC using CF2016 on RHEL 7 connecting to SQL Server 2016 running on Server 2016 and ran into a curious problem.

 

The problem was this nasty error when setting up the Macromedia JDBC DSNs pointed at SQL Server 2016 with EncryptionMethod=SSL in the connection string :

 

Connection verification failed for data source: MyTestDatabaseDSN

java.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer JDBC Driver]SSL handshake failed: Unsupported curveId: 29

The root cause was that: java.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer JDBC Driver]SSL handshake failed: Unsupported curveId: 29

 

 

Our server Specs:

RHEL 7

CF2016 2016.0.05.303689

Java 1.8.0_144

Tomcat 8.5.11.0

Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy 8 files

 

The DSNs worked fine without SSL enabled.

 

Has anyone else experienced this?  It sure seems like a bug in the shipped JDBC driver.

 

 

Our work around currently is to use the Microsoft JDBC 6.2 driver : https://www.microsoft.com/en-us/download/details.aspx?id=55539

 

The process for implementing it is really straight forward, I hope this comes in handy for someone else running into this:

 

Step 1. wget https://download.microsoft.com/download/3/F/7/3F74A9B9-C5F0-43EA-A721-07DA590FD186/sqljdbc _6.2.1.0_enu.tar.gz

 

Step 2. tar -xvf sqljdbc_6.2.1.0_enu.tar.gz

 

Step 3. sudo cp sqljdbc_6.2/enu/mssql-jdbc-6.2.1.jre8.jar /opt/coldfusion2016/cfusion/lib/

 

Step 4. confirm proper ownership and permissions after copying jar to lib and restart the instance

 

Step 5. login to CFAdmin and create a new DSN, choose Other for the Driver and use the following example for entry values :

 

JDBC URL

jdbc:sqlserver://<serverIP>:1433;databaseName=YourDatabase;selectMethod=direct;sendStringP arametersAsUnicode=true

 

Driver Class

com.microsoft.sqlserver.jdbc.SQLServerDriver

 

Driver Name

Microsoft JDBC Driver 6.2 for SQL Server

 

Connection String

EncryptionMethod=SSL;ValidateServerCertificate=false;

Oracle request with date comparison and date formatting in .cfm script

$
0
0

Hi,

 

I develop an application for management of meetings in CF with an Oracle DB. Each meeting is linked to a unit (UNIT_ID)

I'm trying to execute queries on fields and I obtain an Orable error:

 

So I have 2 tables with DATA fields (DD/MM/YYYY)

 

Table UNITS: UNIT_ID (PK) - UNIT_TITLE - DT_DEB - DT_FIN

Table MEETING: meeting_ID (PK) - TITLE - DATECREA - UNIT_ID

 

The request for getting the creation date of the meeting:

 

SELECT TO_DATE(DATECREA,'DD/MM/YYYY') AS DATECREA FROM MEETING M WHERE M.meeting_ID = 45533

The result: 30/05/2010

 

The request for getting the start and the end dates of all unit versions of the meeting unit

SELECT UNIT_TITLE, TO_DATE(DT_DEB,'DD/MM/YYYY') as DT_DEB, TO_DATE(DT_FIN,'DD/MM/YYYY') AS DT_FIN
FROM UNITS
WHERE UNIT_ID = 231057

The results:

 

DT_DEBDT_FIN
16/09/200529/04/2009
30/04/200930/06/2010
01/07/201031/12/2011

 

I need to execute this query now for getting the good version of the unit used for the meeting

 

<cfquery name="qry_existInAppref" datasource="#application.datasource#">
     SELECT UNIT_TITLE
     FROM UNITS
     WHERE ORG_ID = <cfqueryparam value="#arguments.org_id#" null="no" cfsqltype="cf_sql_numeric"/>
     AND TO_DATE(DT_DEB,'DD/MM/YYYY') > TO_DATE('#qry_reunion.DATECREA#','DD/MM/YYYY')
     AND TO_DATE(DT_FIN,'DD/MM/YYYY') < TO_DATE('#qry_reunion.DATECREA#','DD/MM/YYYY')
</cfquery>

 

I obtain the following error after executing the cfm script: ORA-01861: literal does not match format string\nORA-02063

 

SELECT * FROM UNITS_NOT_IN_APPREF 
WHERE ORG_ID = (param 1)
AND TO_DATE(DT_DEB,'DD/MM/YYYY') < TO_DATE('2010-05-30 00:00:00.0','DD/MM/YYYY')
AND TO_DATE(DT_FIN,'DD/MM/YYYY') > TO_DATE('2010-05-30 00:00:00.0','DD/MM/YYYY')

 

I cannot solve this error even if the dates are in the same format.
Could you please help me with that?

Split String By specific character in cfscript

$
0
0

Hi I want to split string(7<>2,,3<>6<>0.6) by specific character(<>) and store it in array...like c# code :

 

//whwre dataList=7<>2,,3<>6<>0.6

string[] wordsStrings = Regex.Split(dataList, "<>"); 

              

CF 2018 Admin Console Shows Indestructible Search Bar

$
0
0

When I login to CF 2018 admin console and this shows up... The close button is not working, neither search nor close it. Restart WebLogic server and reopen console both are not helpful. How to fix this? I never have this issue using CF console before this.

cf.PNG

CF 2018 Enterprise Update 2 - cflayout not working

$
0
0

Hello,

 

i've juste updated my CF 2018 Enterprise server with the update build 2.

BUT there's a problem now with the "cflayout" and "cflayoutarea"

 

when you take the example on ColdFusion Help | cflayoutarea

copy into a blanc page and test it, you will see the problem.

 

the TAB's are not shown but only scroll bars vertical and horizontal

tabsCF2.png

Can anyone help me?

How Can I Make this an Execl file and then have CFMAIL send it as an Attachment

$
0
0

Working with Coldfusion 8.0.1 ...

 

I am using OUTPUT from Cart32 which is received as a FORM POST.

 

I am including a quick example of the table and data that I would like put inside the Excel file, that I hope can be attached to an email.

 

I know how to make this an Excel file from this example. I also know how to send this example it via CFMAIL.  I don't know how to make the Excel file an Attachment and then Email it with CFMAIL all in the same page.  If that is possible.

 

There is NO human interaction, so it needs to be automated.

 

Thanks in advanced for your help!

Is ColdFusion 2016 Developer Version "Free"

$
0
0

I am interested in developing in ColdFusion 11... or in 2016 (it doesn't really matter). I see a 30 day trial for the ColdFusion 2016. Is the Developer version "free" or not? What happens at the end of the 30 day trial?


Scheduled Task Event Handler Issue - CF 2018

$
0
0

I am trying to implement a custom event handler to monitor our scheduled tasks.  Ideally i will log the data into a db and make it searchable, but in the mean time I am just trying to fire an email to make sure it gets called.  Unfortuntately the emails are not comming through, however I know the SMTP is set up correctly.  Here is a copy of the logs and handler cfc I tested. Any ideas on why the emails arent sending or why I am getting the error that the Response Cannot Be Null?

 

 

I set the handle up in the Sceduled Task set up under more settings to point to my custom handler.  When I fire the jobs, I do not see th email but instead see this in the logs,

 

In the scheduler log I see

 

Jul 10, 2019  12:25:00 PM  Error  DefaultQuartzScheduler_Worker-8 
Response cannot be null
Jul 10, 2019  12:25:00 PM  Information  DefaultQuartzScheduler_Worker-8 
Task GROUP_NAME.Brendan Test triggered.
Jul 10, 2019  12:25:00 PM  Error  DefaultQuartzScheduler_Worker-8 
Response cannot be null

 

And in the coldfusion-out.log I see

102391Jul 10, 2019 12:25:00 PM Error [DefaultQuartzScheduler_Worker-8] - Response cannot be null
102392Jul 10, 2019 12:25:00 PM Information [DefaultQuartzScheduler_Worker-8] - Task GROUP_NAME.Brendan Test triggered.
102393Jul 10, 2019 12:25:00 PM Information [DefaultQuartzScheduler_Worker-8] - Starting HTTP request {URL='http://local.test.com/login/login.cfm', method='get'}
102394Jul 10, 2019 12:25:00 PM Information [DefaultQuartzScheduler_Worker-8] - HTTP request completed {Status Code=200 ,Time taken=16 ms}
102395Jul 10, 2019 12:25:00 PM Error [DefaultQuartzScheduler_Worker-8] - Response cannot be null

 

I have created a taskHandler.cfc

 

<cfcomponent implements="CFIDE.scheduler.ITaskEventHandler">

<cffunction name="onTaskStart" returntype="boolean">

<cfargument name="context" type="struct"/>

<cfmail from="myEmail@myEmail.com" subject="onTaskStart" to="myEmail@myEmail.com" type="html"><cfdump var="#arguments#"></cfmail>

<cfreturn true>

</cffunction>

 

<cffunction name="onMisfire" returntype="void">

<cfargument name="context" type="struct" required="false"/>

<cfmail from="myEmail@myEmail.com" subject="onMisFire" to="myEmail@myEmail.com" type="html"><cfdump var="#arguments#"></cfmail>

</cffunction>

 

<cffunction name="onTaskEnd" access="public" returntype="void">

<cfargument name="context" type="struct" required="false"/>

<cfmail from="myEmail@myEmail.com" subject="onTaskEnd" to="myEmail@myEmail.com" type="html"><cfdump var="#arguments#"></cfmail>

</cffunction>

 

<cffunction name="onError" returntype="void">

<cfargument name="context" type="struct" required="false"/>

<cfmail from="myEmail@myEmail.com" subject="onError" to="myEmail@myEmail.com" type="html"><cfdump var="#arguments#"></cfmail>

</cffunction>

 

<cffunction name="execute" returntype="void">

<cffile action="append" file="#Expandpath('.')#/log.txt" output="<b>In Execute</b>">

</cffunction>

</cfcomponent>

Best practices - file sizes? CF Builder limit

$
0
0

Is there a practical limit to file sizes?

Specifically .cfc. 

My entire application is using ajax saving, URL free screen rendering and I have 3 or 4 cfc's ... but each one is growing to over 5,000 lines of code.

Is there a limit to file sizes?  To what CFBuilder can handle.  I see CFBuilder slowing down.

I realize, of course, that CFC's never leave the server but still ...

Silly CFDUMP Question

$
0
0

We have just recently updated from CF11 to CF2018.

 

One thing we do often as we develop is use CFDUMP to view the contents of variables and objects as we're coding.  We've grown quite fond of ColdFusion's neat little CFDUMP tables that make viewing objects so convenient such as this little example:

 

 

However, since installing CF2018, CF when we use a CFDUMP inside a CFC we no longer get this nice view.  We get a plain old HTML table that's much harder to read..especially as the objects grow much larger:

 

Viewing the source code of the dumped page, CF is not inserting the CSS nor JS for it's CFDUMP tables when used within a CFC

 

Everything is fine if the CFDUMP is used on a CFM page. 

 

This was not a problem in CF11 nor any version prior.

 

Any ideas how to get CF to 'dump' out the CSS and JS when used in a CFC?

CF10 Blue Circle Error - Why?

$
0
0

I am getting an odd error when visting some pages on my website. It is a page with a big blue circle saying "Error" inside it. Then one line of text that says "An error occurred while executing the application. Please try again or contact the administrator."

 

I have run the exact same website using a local testing machine which uses the same CF10 installation and I don't get any problems. I am running Windows Server 2008 R2 64-bit, with CF10 64-bit, and IIS 7

 

Can anyone please help!

Waiting on java.util.concurrent.locks issue

$
0
0

Setup: CF 2016 on MS Server 2016 w/IIS 10

 

Using Fusion Reactor trial and finding queries hanging.  Still not found an answer that directly impacts this condition. I did uncheck "save class files" restart the CF Server, rechecked "save class files" per another thread.  Does not seem to cooperate.

 

ajp-nio-8016-exec-11" Id=160 WAITING on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@72e82b6c

   java.lang.Thread.State: WAITING

        at sun.misc.Unsafe.park(Native Method)

        - waiting on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@72e82b6c

        at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)

        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueue dSynchronizer.java:2039)

        at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)

        at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:103)

        at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:31)

        at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

        at java.lang.Thread.run(Thread.java:745)

CF2016 on Windows 2016

$
0
0

Hi,

 

CF2016 does not list Windows 2016 in it's support matrix. Will CF2016 be supported on Windows 2016?

 

I note when I try install CF2016 on Windows 2016 it fails:

 

Capture.JPG

where Details button offers:

 

Flexeraayd$aaa: Windows DLL failed to load

  at Flexeraayd.af(Unknown Source)

  at Flexeraayd.aa(Unknown Source)

  at com.zerog.ia.installer.LifeCycleManager.init(Unknown Source)

  at com.zerog.ia.installer.LifeCycleManager.executeApplication(Unknown Source)

  at com.zerog.ia.installer.Main.main(Unknown Source)

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

  at java.lang.reflect.Method.invoke(Method.java:498)

  at com.zerog.lax.LAX.launch(Unknown Source)

  at com.zerog.lax.LAX.main(Unknown Source)

 

Kind Regards, Carl.

ColdFusion 2016 from jre 8 to JDK-11 fails

$
0
0

After these steps to upgrade Java, CF services won't restart.

 

Current version of CF is 2016,0,11,314546  

Downloaded JDK 11.0.3 from Adobe download site, resides at C:\Program Files\Java\jdk-11.0.3  (without source code)

Stopped CF

Updated jvm.config

     #java.home=C:\\Program Files\\Java\\jre1.8.0_211

     java.home=C:\\Program Files\\Java\\jdk-11.0.3

Restart of CF fails.

Revert to JRE 1.8 and restart CF successfully.

 

No logs. Event log points to third party error and Service Specific Error Code 2.

What am I missing?


No access to CF administrator after installation

$
0
0

CF9 has been installed on  Windows server 2008.

Successfull.

 

I can see CF9 files on disk C:\ColdFusion9

 

I have the CFIDE structure installed on disk D:\wwwroot\CFIDE

 

And when launching :

http://127.0.0.1/CFIDE/administrator/index.cfm

can't find the file

I tried the Sever IP adress :

http://85.14.138.81/CFIDE/administrator/index.cfm

same, can't find the file.

 

Can someone help/explain where could be the problem ?

It seems to be a problem of  IP pointing ?

 

Thanks for any help.

I do not have the hand on the IP.

Pierre.

ext-all.js file so large in CF2018

$
0
0

Why is the ext-all.js file (cf_scripts/scripts/ajax/ext/ext-all.js) over 10MB in size? We went from CF10 to CF2018 and have 40+ legacy apps that use the cfwindow and some other CF UI built-in functions from CF10 and the app calls the ext-all.js file wihen the site loads (needed for cfwindow) and takes almost 2 minutes. Yes, I know they need replaced but with two developers and 40+ medium to larger applications it's not possible to replace these cfwindows with jquery or bootstrap modal windows quickly, especially when you still have other projects going on. Does anyone have any ideas or options to reduce the file size or any other workarounds (besides removing cfwindows) to speed the load time. Thanks.

How to open and read JSON file?

$
0
0

Is there a specific way to open and read a json file other than using cfhttp tag?

ColdFusion admin password

$
0
0

Where can I find the ColdFusion administrator page password in the server (in which folder I can find it) and how to view it (if it is cryptic).

get Last Inserted ID from Oracle

$
0
0

Hello I know in SQL Server, I can within the cfquery tag do stuff like select @@identity as "newid" to get the just inserted ID of a record.

How do I do this in Oracle 10 G.

The Sequence that creates the unique key is called from a BEFORE INSERT OR UPDATE Trgger. How do I return the just inserted ID in Coldfusion?

Viewing all 14291 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>