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

SOLR Error - org.apache.commons.httpclient.NoHttpResponseException

$
0
0

Hi All,


I'm hoping someone can point me in the right direction. Ever since upgrading from ColdFusion 10 to ColdFusion 11 I have been seeing this error intermittently throughout the day. The server that it's happening on is averaging between 5-10 requests per second so the traffic is very low.


Here is the exact error message from ColdFusion. I get an email every time there is an error so I can be alerted.


There was a problem while attempting to perform a search. org.apache.commons.httpclient.NoHttpResponseException: The server localhost failed to respond <br>The error occurred on line [XXX].


Once I see the error I try the web page and it works every time so I can't duplicate it.

 

Has anyone experienced this random issue? Is there anything I can try to fix it?


Errors with CFSpreadsheet

$
0
0

When using CF10 and the CFSpreadsheet tag, we're receiving the following error:

 

Class org.apache.poi.hssf.usermodel.HSSFWorkbook does not implement the requested interface org.apache.poi.ss.usermodel.Workbook

 

The simple code works on other servers, so I think there is something wrong with the server config. Any ideas?

How to turn off the javascript dialog box upon error.

$
0
0

Screenshot.png

 

I have some Ajax stuff that will just error from time to time due to database timeouts, etc. I need to turn off the dialog that comes up that says there was an error and to turn on debugging. It just freaks end users out... It would be nice if such errors were just reported in firebug with no "Click OK" popup dialog!  Maybe a try/catch is in order??

ftp action:getFile - Attribute validation error

$
0
0

Hi,

 

First, the code :

 

LOCAL.fileName = lsDateFormat(now(), 'yyyymmdd') & '.csv';

LOCAL.filePath = "example_file";

 

LOCAL.ftpService = new FTP();

 

LOCAL.ftpService.setServer('sftpr.emv2.com');

LOCAL.ftpService.setPort('22');

LOCAL.ftpService.setUserName('example_user');

LOCAL.ftpService.setSecure('true');

LOCAL.ftpService.setKey(example_key.ppk");

LOCAL.ftpService.setStopOnError(true);

LOCAL.ftpService.setRemoteFile('example_remote_file');

 

LOCAL.ret = LOCAL.ftpService.open();

 

writeDump(LOCAL.ret);

 

LOCAL.doInsert = 0;

 

if(LOCAL.ret.getPrefix().succeeded){

     LOCAL.testExists = LOCAL.ftpService.existsFile();

     writeDump(LOCAL.testExists);

     if(LOCAL.testExists.getPrefix().returnValue){

          LOCAL.doInsert = 1;

          LOCAL.ftpService.setLocalFile(LOCAL.filePath);

          LOCAL.ftpService.setFailIfExists(false);

          LOCAL.resp = LOCAL.ftpService.getFile();

          writeDump(LOCAL.resp); abort;

     }

}

LOCAL.ftpService.close();


Open Connection : OK

Test file exists : OK

getFile : KO


I fire this message every time :


Attribute validation error for tag CFFTP.It has an invalid attribute combination: action,failifexists,key,localfile,port,remotefile,server,stoponerror,username. Possible combinations are:<li>Required attributes: 'action,localfile,password,remotefile,server,username'. Optional attributes: 'agentname,asciiextensionlist,attributes,buffersize,failifexists,fingerprint,passive,port ,proxybypass,proxyserver,result,retrycount,secure,stoponerror,timeout,transfermode'. <li>Required attributes: 'action,localfile,key,remotefile,server,username'. Optional attributes: 'agentname,asciiextensionlist,attributes,buffersize,failifexists,fingerprint,passphrase,p ort,proxybypass,proxyserver,result,retrycount,secure,stoponerror,timeout,transfermode'. <li>Required attributes: 'action,connection,localfile,remotefile'. Optional attributes: 'agentname,asciiextensionlist,attributes,buffersize,failifexists,fingerprint,passive,pass word,port,proxybypass,proxyserver,result,retrycount,secure,server,stoponerror,timeout,tran sfermode,username'.


I turn around to this problem since this morning without finding any valid track. Anyone have an idea?

 

Thanks you

Access Add-on Services Remotely dialog box

$
0
0

By selecting this option, you can choose the IP address through which you can access the Add-on Services (PDFG/Solr)...I tried 127.0.0.1 and I got an error for using a local IP address! Why?

Migrating CF 9 to 11

$
0
0

I have installed CF9 with many files deployed on my server, now I need to migrate to version 11 as I do not have Enterprise Edition I can't do the migration through CAR files. I wonder if there is another method to migrate files and settings from the server. or if the syntax changes that between these versions.

drop down menu link

$
0
0

Hi. I just have a simple drop down menu. I would just like to have one of the options be a link. How do I do that? I thought I found something yesterday that would work, but it doesn't. Here's what I found:

 

<select name="Socket_Adapter_Choice" onchange="location = this.options[this.selectedIndex].value;">

  <option selected value=""></option>

    <option value="Add_Socket_App.cfm">Add Socket Application</option>

  <option value="Add_Adapter_App.cfm">Add Adapter Application</option>

  </select>

 

Thanks.

Andy

Coldfusion Server Monitoring: Alerts

$
0
0

Hi,

 

Im thinking of enabling the alerts on our production servers and would like to clarify something.

 

Will enabling the Alerts for (Server Slow, Unresponsive Server, JVM Monitoring) affect performance in a negative regard? Would like to hear from guys experiences on this

 

Appreciate any responses


timeout for cfstoredproc

$
0
0
Hi. Is there a way to set timeout for the tag<CFSTOREDPROC>? I mean, for cfquery, it has a parameter timeout in seconds. How about for CFSTOREDPROC?

I tried using
<cfset startproc = GetTickCount()>
<cfsetting requesttimeout = "20" />
<CFSTOREDPROC PROCEDURE="fsdfsd" DATASOURCE="sfsds">
cfprorparams here.........
</CFSTOREDPROC>
<cfset proc_execute = GetTickCount() - startproc >

proc_execute returns about 30,000 ms which is 30 s. But the timeout needs to end it in 20 s. It seems requesttimeout doesn't include the time it took for the stored procedure executing. That is why I'm looking for a timeout in cfstoredproc. Any suggestions? I don't wanna go to the Oracle server and set the timeout settings. I want it done in Coldfusion. Thanks.

Problemas com TimeOut na cfprocedure

$
0
0

Estou rodando uma procedure meio lenta que gera um relatório, ou seja ela retorna vários valores, e está estourando um erro de timeout:

 

The request has exceeded the allowable time limit Tag: CFSTOREDPROC

 

Já tentei utilizar <cfsetting RequestTimeOut='100000' > na página mas infelizmente não funcionou.

 

Como estou utilizando a versão 7 do Coldfusion a tag timeout ainda não funciona para a cfstoredproc. Acredito que isso só funciona na versão 10.

 

Minha pergunta é, o que fazer??? Além de tentar otimizar a procedure, tenho mais alguma opção/alternativa/solução ?

ColdFusion 11 Installation did not create physical path for the virtual directory CFIDE on Windows 8.1

$
0
0

Following an installation guide from Adobe, I installed ColdFusion 11 Developer Edition on Windows 8.1 that has IIS 8.5 installed. I've all the required features for ColdFusion enabled on IIS 8.5 as shown in this figure.

The installation created a virtual directory CFIDE in IIS but it did not create the physical directory the virtual directory points to. In IIS when I click on the virtual directory CFIDE created by the ColdFusion installation (or CF Web Configuration tool), I get the following error:

ColdFusionError1.png

I then re-ran the ColdFusion Web Configuration Tool to first remove the IIS configuration and the add it again. But still the same issue. How can I remedy the issue? Thanks..Nam

ColdFusion 9 -JVM Parameters

$
0
0

I am using ColdFusion 9 version 9,0,2,282541. I do not have the option to add JVM parameters from the administrator console as the option "Java and JVM " is not available. So if i want add parameters how to proceed furthur?.

 

If we add it in the JVM.conf in the server is that enough or what else has to be done.

cflayoutarea Height

$
0
0

I have 3 <cflayoutarea> tags within like this:

 

<cflayouttype="border"fittowindow="true">

     <cflayoutareaname="headerArea"align="center"position="top"size="75"overflow="hidden"style="letter-spacing:10px; font-size:34px;">

     </cflayoutarea>

     <cflayoutareaname="contentArea"align="center"position="center"style="border: 3px green solid;">

          <imgsrc="img/hd04.jpg"/>

     </cflayoutarea>

     <cflayoutareaalign="center"position="bottom"size="75"overflow="hidden"style="bottom:0px; height:100px">

     </cflayoutarea>    

</cflayout>


My issue/question is as follows:

How do I make the center <cflayoutarea> take up 100% of the remaining height? In most browsers, the center <cflayoutarea> is too large and scrolls. Oddly enough, Chrome browser resizes the image, and the <cflayoutarea> to less than 100%. I'm not sure why that happens. I realize that I can set overflow="hidden", but that just crops the image and I'm ultimately looking to use ImageScaleToFit, to scale the image to match the size of the <cflayoutarea> so that is scales for different screen sizes. Before I can scale the image, the center <cflayoutarea> needs to be set to use the remaining screen space and I need to know it's height.

 

I would prefer to not use overflow="hidden" because as users navigate, I want to swap out the content in the center <cflayoutarea> to other content that will scroll.

 

Would appreciate any help! I'm back to ColdFusion after 10-11 years, mostly on Flex...

Unable to Move From CF10 to CF11

$
0
0

I successfully moved from CF9 to CF11 on Windows 7 environment with no problems.  However, I'm trying to move from CF10 to CF11 in another Windows 7 machine but cannot.  After a successful install of CF11, I'm still actually running 10,0,0,283922 as confirmed with a <cfdump var="#SERVER#">.  I'm still mapped to the CF10 admin, etc.

 

Does anybody know the best thing to do here?  Many thanks for your help.

Dreamweaver CC Coldfusion 10 extension?

$
0
0

Hi

 

I'm on the road trying to configure Dreamweaver CC for a CF10 project on my laptop.

 

Back in my office on my server i have DWCC configured using the CF10 extensions and I remember that I used an extensions file with the '.zxp' suffix; for the life of me I can't find that file on the web anywhere. (The .mxp extension simply won't run in the CC extension manager).

 

Anyone know where it is?

 

Thanks in advance, and happy holidays.

 

Rich


CF 10 errors show Error 500 instead of normal error message

$
0
0

Hi,

 

Strangely, our CF 10 server has started to show "500 - Internal server error" whenever a CF error occurs, instead of the normal error message. The error is logged, but the front end shows the error 500 and nothing else. Normally, we'd see the error message and stack trace etc.

 

How would I troubleshoot that?

 

EDIT: This is a CF10 on IIS 8 Windows 2012 server, with update 11.

 

Regards,

Mark

 

Message was edited by: tribule

Coldfusion PDF to text using cfpdf - Formatting issue

$
0
0

Hi,

 

We have a requirement to extract the content of an uploaded PDF and then show it in a text area with the same formatting. Our application runs on CF10.

 

We used cfpdf however  the extracted text is a single paragraph with No formatting .

 

Is there any way in coldfusion to read pdf as text retaining the source formatting ( 100% accuracy not expected) .

 

Note:

 

1. We tried itext and it works very well however it comes with a licensing cost which I dont want to spend as I'm only going to use this single feature from the budle that itext is providing.

2. Tried PDFbox but the formatting is not retained.

 

Thanks,

Devlosh

Severe: error deploying web application archive with coldfusion sandbox enabled

$
0
0

With sandbox enabled, the following error appears:

 

Severe:  error deploying web application archive

  1. Java.lang.illegalstateexception: containerbase.addchild: start: prg.apache.catalina.lifecyclexception: failed to start component

If sandbox is turned off, the archive deploys with no problem.

When defining a new scheduled task to save the output of a cfm file as htm I get an error

$
0
0

The error I receive is "•Invalid extension of the file name. Valid extensions are :log,txt.  I did read that in such instances that I am to work with c:\ColdFusion 11\cfusion\lib\neo-cron.xml.  I would appreciate any insight that can be provided on working with this xml file.

Oracle multiple inserts performance issue

$
0
0

Hi All,

We are creating a query using  <cfset QueryAddrow(qryMasterFile) />

At the time to insert the data to oracle db we do:

<cftransaction action = "begin">

  <cftry>

     <cfquery name="deleteMasterFile" datasource="#application.str_dsn#">

              DELETE FROM master_file

              WHERE my_id = <cfqueryparam cfsqltype="cf_sql_integer" value="#arguments.my_id#">

     </cfquery>

    <cfoutput query = "qryMasterFile">

          <cfquery name = "insertData" datasource = "#application.str_dsn#">

                               INSERT INTO MASTER_FILE ( list of our fields)

                                VALUES (sq_my_id.nextVal, 

                                <cfqueryparam cfsqltype="cf_sql_integer" value="#arguments.req_id#" />,

                                <cfqueryparam cfsqltype="cf_sql_date" value = "#qryMasterFile.DATE#">, and all the rest of fields.

                                )

         </cfquery>

    </cfoutput>

        <cfcatch type = "any">

                        <cftransaction action = "rollback" />

                        <cfset result['success'] = false />

                        <cfset result['errors'].msg = "Error occured inserting data. #cfcatch.message# #cfcatch.detail#" />

        </cfcatch>

   </cftry>

</cftransaction>

As you see, we are going to the DB for every record. I was checking online and I found that I can do bulk inserts using commit but I want to be able to rollback if any error.

How can I improve the oracle insert performance of 100K rows?

Thanks in advanced!

Viewing all 6243 articles
Browse latest View live


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