Quantcast
Channel: Adobe Community : Discussion List - ColdFusion
Viewing all 6243 articles
Browse latest View live

CFSCRIPT queryNew querySetCell: can't seem to query object

$
0
0

Hello, all,

 

I'm attempting to use (within CFSCRIPT) queryNew() and querySetCell() to create a database object, then use qry.execute() to SELECT data from it.

 

I have tried many variations, each giving a different error message.  I cannot figure out what I'm missing, and I'm pretty sure it is something really simple.

 

<CFSCRIPT>    cities = queryNew('cityID,cityName','varchar,varchar');    queryAddRow(cities,10);    querySetCell(cities,'cityID','1',1);    querySetCell(cities,'cityName','New York',1);        ...    querySetCell(cities,'cityID','10',10);  querySetCell(cities,'cityName','St. Louis',10);    myQry = new Query();    myQry.setSQL("SELECT cityID, cityName FROM cities");    myQry.setDatasource('cities');    qryRes = myQry.execute();    return qryRes;</CFSCRIPT>

 

The above is within a CFC function.  The result currently is: "Datasource 'cities' could not be found."

 

I've never tried this in CFSCRIPT, before, so I'm in totally new territory.  Any thoughts on what I'm doing incorrectly?

 

V/r,

 

^_^


Cfthread not working (New upgrade to CF 2018 std)

$
0
0

Hi,

I installed a new server (Win 2012 R2 / IIS) to migrate an old CF10 server to the new CF2018 version. Problem is cfthreads are not executing on CF2018.

 

For testing purposes I setup a simple page as follows:

======================================

INSERT INTO TABLE (record1)

<cfthread action="RUN" name="Test_Thread">

    INSERT INTO TABLE (record2)

</cfthread>

INSERT INTO TABLE (record3)

======================================

Records #1 & #3 get inserted, but not record #2.

 

Log shows:

 

application.log = "Error","cfthread-1","11/29/18","16:02:42","","TEST_THREAD: coldfusion/runtime/CFPage".

cf-out.log = Nov 29, 2018 16:02:42 PM Error [cfthread-1] - TEST_THREAD: coldfusion/runtime/CFPage

exception.log = Caused by: java.lang.ClassNotFoundException: coldfusion.runtime.CFPage

 

Couldn't find any info on this.

 

Any suggestion?

 

Thanks!

Coldfusion 2018 Lockdown Tool Need Help

$
0
0

Anyone use the tool with a website with more than one instance? Sometimes on a second pass I will get the service is not running errors, other times I will get that there are no IIS websites that need locked down. We have one website with four running instances. But I have yet to get it to work on the second pass, what good is it if it will only work for one instance?

Playing around with CFDIV, and it's not working...

$
0
0

Hello, all,

 

I'm just playing around with CFDIV, seeing what is possible, and something is not working.

 

_any.cfm:

 

<cfoutput>This server is: #cgi.server_name#</cfoutput>

 

index.cfm:

 

<cfdiv id="testCFDiv" bind="url:_any.cfm" bindOnLoad="true"></cfdiv>

 

When I open index.cfm in a browser, I get a blank page.  Using F12, I can see:

 

<div id="testCFDiv"></div><!--- empty - nothing --->

 

Shouldn't the CFDIV be loading the contents of _any.cfm???

 

V/r,

 

^ _ ^

Use certificate based TLS auth when sending mail?

$
0
0

CF 11,0,15,311399 on RedHat Linux 7.6 x86-64

I'm trying to send email using cfmail() and our local smtp server prefers the use of X509 certifcates for authentication and TLS rather than the more usual username/password mechanism.  Is this possible is CF11?

 

I see stuff about keystore, keyalias, etc but that seems more for digitally signing the email.  And stuff about recipientcert and encrypt seems more about encrypting the actual body of the email being sent using the recipient's public key./certificate.

 

Thanks,

PH

MS SQL Server support

$
0
0

We are currently running Coldfusion MX7 with MS SQL Server 2008. We need to upgrade to SQL Server 2012 (as a minimum), but understand that is not compatible with MX7. We really should upgrade to a later version of Coldfusion too, but to minimise business impact and risk we are searching for a short term work around.

 

1. Are there are official drivers/plugins that can be provided to allow CF MX7 to work with SQL Server 2012?

2. If not, is there a way we get hold of an official copy of Coldfusion 10 as that will work with SQL Server 2012?

Bulk insert to Oracle

$
0
0

Hi All,

Trying to insert 200K records to Oracle 12c.

We did this concept couple years ago, it is taking 6min doing the inserts:

Re: pass query to oracle

 

Is there a better technique do to a faster bulk insert to Oracle with the new version of ColdFusion?

We are using CF11 but we can upgrade if it is necessary.

Thanks,

 

Johnny

Why is ACF behind in supporting library versions?

$
0
0

Hello, all,

 

Based upon a cursory glance at one of Charlie Arehart's blogs, I wanted to know what version of Ext.js shipped with CF11 (based upon a description in the blog, I tracked down the location of the files for Ext.js and got my answer.)  CF11 (released April 2014) shipped with Ext.js v3.1 (v3.0 released July 2009).

 

The current version of Ext.js is (I believe) 6.1.x.  I cannot currently find which version of Ext.js ships with CF2018, but I suspect it isn't Ext.js v6.1.x.

 

It's not just Ext.js, either.  As I understand it, Solr (Lucene) is also versions behind.

 

Which begs the question:  Why is ACF behind in supporting library versions? (TSIA)

 

Just curious.

 

V/r,

 

^ _ ^


Help with finding fonts in struct

$
0
0

Hi everyone - this is silly, I know, but...

 

I'm a designer who can code a bit, and I have issues with font management on my system (I have about 2,000-odd fonts).

so, Cleverdix here decides to quickly write his own ColdFusion font manager, easy peasy.  Import all the font families into a database, add my own delimiters (such as "oh yeah" and "Crap" and  'handwritten") so that when I look for a font, I can run a query, and find the fonts I'm looking for.  Heaven!  Got the database set up, works like a charm.

 

Except, of course, it does not, because coldfusion doe snot want to render the fonts.

 

Do a bit of digging, and I find this gem:

 

<cfset adminObj = createObject("Component", "cfide.adminapi.administrator")>

<cfset adminObj.login("password", "user")>

<cfset rtService = createObject("component", "cfide.adminapi.runtime")>

<cfset fonts = rtService.getFonts()>

 

Ta-dah! absolutely brilliant - I now have a struct with all my fonts...  within a struct residing in a struct residing in a struct...  4 nested structs, and now I'm as lost as a Polar Bear in Australia.

fontstruct.jpg

 

Questions:

How do I get the "second key" and the third key, etc, so that I can loop over them and insert them into my database?

with my limited knowledge, I can get the 1st struct key, which returns me "systemfonts" and "userfonts" - as useless as a snooker table on a canie.  I know what the hell that second key is, and the third one, so that I can list all the variables in a way that makes sense to me.

 

Basic desired outcome is a database that looks sort-of like this:

 

rowid | font family | font-face | postscript name | path

 

When I can import the family, face and postscript into my database, I'll be happy as an ant at a picnic.

 

thank you - thank you - I'll email you a sixpack for your effort.

SQL command not properly ended - grrr argh..

$
0
0

Hello, all,

 

I've got a query that isn't running within my CFM document; however, if I copy/paste the SQL from the error message into SQL Developer, it does just fine.

 

Windows Server 2012 with Oracle 12 and Windows Server 2012 with CF10 Server.

 

I'm creating a query object from scratch (QueryNew()) and trying to insert that data into a table.

 

My code is:

<cfquery name="insertData" datasource="#application.dsn#">    INSERT ALL    <cfloop query="myQuery">  into tableA(ID, ORG_ID, NAME, CITY, STATE, ZIP) VALUES ('#varA', '#varB', '#varC', '#varD', '#varE', '#varF')    </cfloop>  SELECT * FROM DUAL;</cfquery>

 

The error message is very vague, and yet if I copy/paste the SQL from the error message into SQL Developer, all the data is inserted.

 

Confuzzedly,

 

^_^

Coldfusion 10 RHEL6 permission denied install error

$
0
0

I'm having a ton of trouble getting a new install up and running on RHEL6. Its ColdFusion 10 and when I try to install the package I get an error that says:

ColdFusion_10_WWEJ_linux64.bin line 3309 /tmp/install.dir.21145/Linux/resource/jre/java: Permission Denied

 

This dies right after the installer starts working.

 

I have tired: sudo ./Install - Same results

I have also changed permissions on the installer directory (can you restart a failed install from the directory?)

SELinux is *NOT* enabled so I have skipped past this part.

 

Anyone have any suggestions in getting this installed?

CFHTTP I/O Exception: null

$
0
0

Greetings,

 

I am trying to get PDF content using CFHTTP from the following link: https://policy.ucop.edu/doc/3220479/BFB-BUS-38.

 

It works in browser, but CFHTTP returns following:

 

ErrorDetailI/O Exception: null
FilecontentConnection Failure
Header[empty string]
MimetypeUnable to determine MIME type of file.
Responseheader
test - struct [empty]
StatuscodeConnection Failure. Status code unavailable.
TextYES

 

My CF code is:

<cfhttp method="get" url="https://policy.ucop.edu/doc/3220479/BFB-BUS-38" timeout="50" result="test"></cfhttp>

<cfdump var="#test#" label="test">

 

CF Server is CF11 developer edition, version 11,0,15,311399.

 

Looking at Response headers in browser, I noticed that Transfer-Encoding: chunked and Content-Length is missing(Server Apache). Is there problem with CFHTTP and Transfer-Encoding: chunked?

Any ideas on how to make it work?

 

 

Regards,

Simon

Solr default operator woes on CF2018

$
0
0

I am not having any success in changing the Solr defaultOperator to AND so that searches are more like web searches.  If I add an AND between words in my search form, I get what I want.  Without the AND it defaults to OR.

 

I've changed the defaultOperator  parameter in all the schema.xml files I could find:

\ColdFusion2018\cfusion\jetty\solr\conf\schema.xml

\ColdFusion2018\cfusion\jetty\multicore\collections\CollectionName\conf\schema.xml

 

I also tried deleting and rebuilding all the collections once the changes to the \ColdFusion2018\cfusion\jetty\solr\conf\schema.xml were made without any joy.  The schema.xml files for each collection had the default set as desired after being deleted and rebuilt, but it still doesn't work right. My recollection is that I had to do this to get the default operator to work right in CF10. 

 

I'm not seeing any documented changes to <cfsearch> or <cfindex> that should affect this. Ideas anyone?

updating my database by email unsubscribe link

$
0
0

I'm using Adobe CF 2016 on windows. I use cfmail to send emails but I'm looking for a tutorial on how I can update my database from an email subscriber  who wants to unsubscribe from my newsletter?

 

 

thanks.

How to tell if your data center is using Cold Fusion 2016?

$
0
0

We are recently migrating to cold fusion 2016.  We were running an old  CF 2004 server believe it or not.  We invested in a new dedicated server running cold fusion 2016 to transfer all of our data over.

 

The main question is:

 

1) How can you tell that your data center is using the CF 2016 edition of the server we now own? bought and paid for.  We know builtwith.com is a good tool to cross check technologies but is there a sure way to identify that the server is running cold fusion 2016.? What is the best way to get proof?

 

In the process, we talked with 2 CF based companies to do the transfer both said it would take approximately 2 weeks to complete - stand up the server and migrate our software platform , websites and data over which we provided the original instructional database of how the software works in CF. We decided to keep our long relationship current vendor 14 years.  We paid in full October 1st which included hosting up to 14 months, they said upfront they could not start this project until November 1st which was ok with us.

 

Questions:

 

1)  How long typically should this take just to stand up the 2016 server fully running by itself?

2)  Software transfer and websites. This is a tricky one without understanding the scope of work but an estimate of copying data over CF 2004 to CF 2016?  We understand you may need more detail but standard MySQL and Navicat databases.

 

We appreciate any positive feedback. Thanks.


CFHTTP suddenly fails with java.lang.NoClassDefFoundError: Could not initialize class com.rsa.cryptoj.o.oz

$
0
0

Hello,

 

We have recently started having problems with CFHTTP. For an entire year, it ran fine and suddenly, on a bad day, every call to CFHTTP results in the following error :

Could not initialize class com.rsa.cryptoj.o.oz. Restarting CF services resolves the issue. So far, this has happened a total of 3 times, twice on the same server (CF11 update 14, jdk 1.8.0_151), and once on a different server (CF11 update 15, jdk 1.8.0_181).

 

Full stack trace of the error below :

 

--- begin ---

 

 

"Error","ajp-bio-8014-exec-92","11/30/18","15:01:28",,"Could not initialize class com.rsa.cryptoj.o.oz The specific sequence of files included or processed is: D:\PATH\TO\test2.cfm, line: 3 "

 

java.lang.NoClassDefFoundError: Could not initialize class com.rsa.cryptoj.o.oz

at com.rsa.cryptoj.o.kd$154.a(Unknown Source)

at com.rsa.cryptoj.o.kb.newInstance(Unknown Source)

at sun.security.jca.GetInstance.getInstance(Unknown Source)

at sun.security.jca.GetInstance.getInstance(Unknown Source)

at java.security.cert.CertificateFactory.getInstance(Unknown Source)

at sun.security.ssl.HandshakeMessage$CertificateMsg.<init>(Unknown Source)

at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)

at sun.security.ssl.Handshaker.processLoop(Unknown Source)

at sun.security.ssl.Handshaker.process_record(Unknown Source)

at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)

at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)

at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)

at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)

at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSock etFactory.java:394)

at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFact ory.java:353)

at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientCo nnectionOperator.java:141)

at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientCon nectionManager.java:353)

at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)

at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)

at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)

at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)

at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)

at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)

at coldfusion.tagext.net.HttpTag.createConnection(HttpTag.java:2177)

at coldfusion.tagext.net.HttpTag.connHelper(HttpTag.java:1078)

at coldfusion.tagext.net.HttpTag.doEndTag(HttpTag.java:1373)

at cftest22ecfm1307030349.runPage(D:\PATH\TO\test2.cfm:3)

at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:246)

at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:736)

at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:572)

at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)

at coldfusion.filter.IpFilter.invoke(IpFilter.java:45)

at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:495)

at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:42)

at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)

at coldfusion.filter.PathFilter.invoke(PathFilter.java:153)

at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94)

at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)

at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)

at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58)

at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)

at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)

at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62)

at coldfusion.CfmServlet.service(CfmServlet.java:219)

at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:303)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )

at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at sun.reflect.GeneratedMethodAccessor87.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterChain.j ava:134)

at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doNext(FusionReactorReque stHandler.java:755)

at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doHttpServletRequest(Fusi onReactorRequestHandler.java:344)

at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doFusionRequest(FusionRea ctorRequestHandler.java:207)

at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.handle(FusionReactorReque stHandler.java:792)

at com.intergral.fusionreactor.j2ee.filter.FusionReactorCoreFilter.doFilter(FusionReactorCoreFil ter.java:36)

at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterChain.j ava:71)

at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.intergral.fusionreactor.agent.filter.FusionReactorStaticFilter.doFilter(FusionReactorStat icFilter.java:54)

at com.intergral.fusionreactor.agent.pointcuts.NewFilterChainPointCut$1.invoke(NewFilterChainPoi ntCut.java:41)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:459)

at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:196)

at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.jav a:637)

at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

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

at java.lang.Thread.run(Unknown Source)

--- end ---

 

 

 

We're running CF11 Standard Edition on Windows Server 2012. We have disabled the -Dcoldfusion.defaultalgo=FIPSxxxxx param in one of the servers to see if it helps.

 

Anyone else facing similar issues recently?

Could not find the ColdFusion component or interface model.statistics.

$
0
0

Hi,

 

I'm getting that error even though statistics.cfc is present in model directory, I installed coldfusion 2018 and this code was written in cf10 and it was working fine only changed cf version cos I migrated my site to other hosting server where I installed latest coldfusion 2018 and getting that error now PFA.  Screen Shot 2018-09-06 at 9.13.28 PM.png

Some syntax has changed in latest version ?

 

Please help !
Best,

Sikander

javax.mail.internet.AddressException: Empty address in string ``''

$
0
0

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

CFQuery update/insert using imageGetBlob() throwing Java error

$
0
0

Our application reads an jpg image from the file system using <cfimage>.  it then tries to write the image to an Oracle 11g database using simple SQL to a field of type BLOB using the imageGetBlob().  This has been working for years until recently.  We have updated to an earlier java version but don't know whether this is the problem.

 

CF version 11,0,15,311399

Java version 1.8.0_191

error:  Caused by: java.lang.NoClassDefFoundError: com/sun/image/codec/jpeg/JPEGCodec at com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:261)

                UPDATE my-table         SET SMALL_IMAGE = ,            MEDIUM_IMAGE = ,            LARGE_IMAGE =                 WHERE upc =

 

 

 

Some sites say that the above class has been deprecated in java 8 which makes sense as to why it's not found.  My question is what to do about it because it appears that the imageGetBlob() function is somehow still tied to it.  Any help is greatly appreciated.

Can find how to hide or remove CF table

$
0
0

The table "struct" is displaying on the webpage and I can't find in the CF files or wordpress where to hide or remove table(s).  I am not a CF expert or wordpress, but I have experience with HTML.

Viewing all 6243 articles
Browse latest View live