Quantcast
Channel: Adobe Community : All Content - ColdFusion
Viewing all 5979 articles
Browse latest View live

Attempting the Impossible? Deploy CF11 Enterprise WAR on Azure Tomcat 7?

$
0
0

I'm working on proof of concept of making my app more scaleable and reducing the support footprint on OS patching.

 

I'm trying to take a CF11 Enterprise generated WAR file, and deploy it onto an Azure Tomcat 7 web app. I've never deployed CF apps on J2EE before, so I'm not sure if my problems are user error, or attempting the impossible.

 

I can fire up Azure, deploy a Tomcat 7 server, and put a (non CF) war up in the webapp folder, and watch it deploy and become usable.  But when put the CF war up, it explodes the directory out properly, but then refuses to run the web app.

 

So I installed a local x64 copy of Tomcat 7.0.50 (same version as Azure) and tried the same thing. Locally, the sample WAR files worked fine (non CF), but when I tried a war produced by the Administrator on CF11 - the one page index.cfm (with only a cfdump in it) fails.

 

Near as I can tell, it has to do with the web.xml generated by CF 11 Package and Deploy wizard. This is the most relevant error in my stderr log. It appears both in the Azure error log and my local one:

 

rg.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/world]]

  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)

  at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)

  at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)

  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:634)

  at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1074)

  at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1858)

  at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

  at java.util.concurrent.FutureTask.run(Unknown Source)

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

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

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

Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> *.htm/* in filter mapping

 

My suspicion is that there is something in the url-pattern mappings that isn't compatible with Tomcat. Perhaps something in the SES (search engine safe) part?

 

I had always naively believed that deploying CF as a WAR was really easy. Just generate the package and copy it up. Obviously I'm missing something.

 

Anybody have any tips? Hints? Places to go to look?

 

I'm hoping to get to the point where I can have an Azure auto-scaling cluster of CF11 applications that share j2ee sessions across the cluster. But I can't even get past the first step...


cffile to write UTF-16 LE

$
0
0

Hello,

 

I am using CF11 on a Windows2012 server 64bit

 

When using cffile with action "write" and using charset="utf-16", it creates a UTF-16BE (Big endian) file.

 

Is there a way to get a UTF-16LE encoded file ?

 

(I have tried charset="utf-16le" but it doesn't work).

 

Regards,

Pierre

Error uploading a file

$
0
0

I inherited an application a few years ago and up until today, a particular part of the code has worked flawlessly.   It was supposed to upload a pdf file and attach it to a record in the database.  Now, I receive a generic message and I have no clue what is wrong.  I mostly am an Oracle DBA and can do enough CF to get by, until now.   What can I add to this to help give me an idea of what is wrong?  Thanx.  In the below code piece, the cflocation line just goes on, but I can't do that here.

 

<cftry>

   <cffile action = "upload"  

             fileField = "requiredFILENAME"  

             destination = #newDest#     

             accept = "application/pdf">

<cfcatch>

   <CFLOCATION url="upload378.cfm?F378_ID=#FORM.F378_ID#&ERROR=We were unable to upload your file. Please try again..&FMBIC_DT=#FORM.FMBIC_DT#&IE_PMO_DT=#FORM.IE_PMO_DT#

                                 &IE_PMOMILCON_DT=#form.IE_PMOMILCON_DT#">

</cfcatch>

</cftry>


 

Coldfusion v2016 using SQL server query using order by right causes error.

$
0
0

Have query that worked until v2016.  Using order by right(LogNumber,3) DESC get error:

Macromedia][SQLServer JDBC Driver][SQLServer]Incorrect syntax near the keyword 'right'

 

query:

  SELECT LogNumber

  FROM tblMain

  WHERE (Program = 'Apple')

  ORDER BY right(LogNumber,3) DESC

Assistance with a LEFT OUTER JOIN query

$
0
0

Hello, all,

 

I am having some issues trying to put together an SQL query of an Oracle 11g database, and I could use some help.

 

Let's say tableA is blog entries; tableC is comments for the blog entries; tableB is the associative table:

 

tableA
blogID        blogTitle       blogBody      dateEntered
1             This is a test  More text...  2016-05-20 11:11:11
2             More testing    Still more!   2016-05-19 10:10:10
3             Third charm!!   Blah, blah.   2016-05-18 09:09:09

 

tableC
commID        userID          userText      dateEntered
10            Bravo           I like it!    2016-05-20 11:21:31
11            Charlie         I don't!      2016-05-20 11:31:51
12            Alpha           Do it again!  2016-05-19 10:20:30
13            Bravo           Still more?   2016-05-19 10:30:50
14            Charlie         So, what?     2016-05-19 10:35:45
15            Bravo           Blah, what?   2016-05-18 09:10:11
16            Alpha           Magic number! 2016-05-18 09:11:13

 

tableB
blogID        commID
1             10
1             11
1             12
2             13
2             14
3             15
3             16

 

I'm attempting to get blogID, blogTitle, blogBody, and a count of the number of comments for each blog entry.  But, since I'm using to_char() for the date, and COUNT(commID) for the total number of comments, I'm getting "not a group by expression".

 

Here is a pseudo-SQL example of what I am trying.

 

SELECT a.blogID, a.blogTitle, a.blogBody, to_char(a.dateEntered,'YYYY-MM-DD HH24:MI:SS') as dateEntered, COUNT(c.commID) as total
FROM tableA a LEFT OUTER JOIN tableB b ON b.blog_ID = a.blog_ID              LEFT OUTER JOIN tableC c ON c.commID = b.commID
WHERE a.blogID = '1'
GROUP BY blogID, blogTitle, blogBody
ORDER BY to_date(dateEntered,'MM-DD-YYYY HH24:MI:SS') desc

 

I'm pretty sure it's something simple, but I am just NOT seeing it.  Can you help?

 

V/r,

 

^_^

Help Adobe Plan the Next Release of ColdFusion

CF 2016, Apache 2.4 on Win10 CFImage error

$
0
0

I have a Windows 10 system with Apache 2.4 where I do ColdFusion development for a client who is considering an upgrade to ColdFusion 2016.   I installed a trial CF (planning to use it as a development after 30 days) and it works so far except for scripts with CFIMAGE with WritetoBrowser.

The browser debug tools in Firefox show an error: "NetworkError: 403 Forbidden - http://{vhostname}/CFFileServlet/_cf_image/_cfimg2.....jpg".

The Apache {vhostname}-error.log shows the following: "AH01630: client denied by server configuration: C:/CFusion2016 ...."

 

I earlier tried CF2016 on an older Windows 10 system with Apache2.2 and the applications using CFImage all seem to work fine there.   I understand there were numerous security changes from Apache2.2 to 2.4.   I suspect the mapping of CCFileServlet is behind the problem but nothing I have tried seems to make it work.  I am looking for ideas before I ditch the Apache2.4 - I would rather not go backwards with versions.  

Having error in Settings Summary when login as a non administrator user

$
0
0

Hi,

 

    We got an error in coldfusion administrator - settings summary -  when we login by the a user we created other than the administrator.   The error message is "The current user is not authorized to invoke this method. The error occurred in accessmanager.cfc: line 105." Is there a solution for it?

 

Thanks,

 

 

 

Tak


How to view the URL in CFHTTP tag?

$
0
0

It's failing and I need to view the URL that was sent to my API provider. Is there a way to view this URL with all of its parameters?

Help using SCCM to track client Adobe Coldfusion Installs

$
0
0

Good Morning All,

 

To begin, I am quite unfamiliar with ColdFusion, or any of its behaviors/capabilities. I am trying to track separate installs on clients, however nothing is showing up in ARP or HKLM\.....\uninstall. I was wondering if anyone could explain the behavior this program has on install. I'd like to know if I need to find a specific hidden key, folder, or config file to track this by. Any assistance is GREATLY appreciated.

Using cfcontent to pull pdf's from file

$
0
0

Hello,

I have searched the forums extensively and still have not found a solution. What I am trying to achieve is simple, but am having problems getting it to work.

 

I want to pass a dynamic url string from a web mapping application to a cold fusion page that then opens the pdf file on the users browser. This is an example of the url that will be passed to this page, and based on what feature the user selects, subdir and page_id will be dynamic:

 

http://localhost/displayImage.cfm?subdir=60&page_id=3807444

 

 

Here is what I have so far for displayImage.cfm,it is just a start, I know I need more, possibly cfheader content? When I run this code I get an error saying the file cannot be found.

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

  <title>Untitled</title>

</head>

<body>

<cfquery name="Surveys" datasource="sire" dbtype="odbc">

    select *

  from slco_sire.dbo.surveys_doc INNER JOIN slco_sire.dbo.surveys_page

  ON slco_sire.dbo.surveys_doc.doc_id = slco_sire.dbo.surveys_page.doc_id

</cfquery>

 

<cfset picture="#url.page_id#">

<cfset sub="#url.subdir#">

 

<cfcontent file="\\path\to\file\#sub#\#picture#" type="application/pdf" reset="yes">

 

</body>

</html>

 

Any help would be greatly appreciate, I am stuck.

Coldfusion and Twitter JSON

$
0
0

Hi there,

 

I am running the following code I found on the internet to grab a load of Tweets with a particular hashtag:

 

    <cfset consumerKey = "MY_CONSUMER_KEY">

    <cfset consumerSecret = "MY_CONSUMER_SECRET">

    <cfset bearerToken = ToBase64(consumerKey & ":" & consumerSecret)>

    <cfset authorization = "Basic " & bearerToken>

    

    <cfhttp url="https://api.twitter.com/oauth2/token" method="post" charset="utf-8">

        <cfhttpparam type="header" name="Authorization" value="#authorization#">

        <cfhttpparam type="header" name="Content-Type" value="application/x-www-form-urlencoded;charset=UTF-8">

        <cfhttpparam type="body" value="grant_type=client_credentials">

    </cfhttp>

    

    <cfset bearerTokenResponse = DeserializeJSON(cfhttp.fileContent)>

    <cfset authorization2 = "Bearer " & bearerTokenResponse.access_token>

    

    <cfhttp url="https://api.twitter.com/1.1/search/tweets.json" method="get" charset="utf-8">

        <cfhttpparam type="header" name="Authorization" value="#authorization2#">

        <cfhttpparam type="url" name="q" value="%23ColdFusion">

    </cfhttp>

 

Obviously I have put in my own keys in the consumerkey & consumersecret variables.

 

{"statuses":[{"created_at":"Tue May 17 16:32:17 +0000 2016","id":732609696109080577,"id_str":"732609696109080577","text":"Well done Team Konstruct! \n\n#konstruct\n#pvd\n#suncity\n#dunhill https:\/\/t.co\/yRUPIXmQ6t","truncated":false,"entities":{"hashtags":[{"text":"konstruct" ,"indices":[28,38]},{"text":"pvd","indices":[39,43]},{"text":"suncity","indices":[44,52]}, {"text":"dunhill","indices":[53,61]}],"symbols":[],"user_mentions":[],"urls":[{"url":"http s:\/\/t.co\/yRUPIXmQ6t","expanded_url":"http:\/\/fb.me\/3kyQTnmLe","display_url":"fb.me\/3 kyQTnmLe","indices":[62,85]}]},"metadata":{"iso_language_code":"en","result_type":"recent" },"source":"\u003ca href=\"http:\/\/www.facebook.com\/twitter\" rel=\"nofollow\"\u003eFacebook\u003c\/a\u003e","in_reply_to_status_id":null,"in_reply_to_ status_id_str":null,"in_reply_to_user_id":null,"in_reply_to_user_id_str":null,"in_reply_to _screen_name":null,"user":{"id":238145671,"id_str":"238145671","name":"Vincent Viljoen","screen_name":"konstructdesign","location":"Brackenfell, Cape Town","description":"I design and build exhibition stands. I love it when my clients win awards for their stands and their brands stand out because of my creativity...","url":"http:\/\/t.co\/soGTwPlFhi","entities":{"url":{"urls":[{"url":"http: \/\/t.co\/soGTwPlFhi","expanded_url":"http:\/\/konstruct.co.za","display_url":"konstruct.c o.za","indices":[0,22]}]},"description":{"urls":[]}},"protected":false,"followers_count":5 89,"friends_count":1973,"listed_count":18,"created_at":"Fri Jan 14 13:36:08 +0000 2011","favourites_count":0,"utc_offset":7200,"time_zone":"Pretoria","geo_enabled":true,"v erified":false,"statuses_count":1863,"lang":"en","contributors_enabled":false,"is_translat or":false,"is_translation_enabled":false,"profile_background_color":"131516","profile_back ground_image_url":"http:\/\/abs.twimg.com\/images\/themes\/theme14\/bg.gif","profile_backg round_image_url_https":"https:\/\/abs.twimg.com\/images\/themes\/theme14\/bg.gif","profile _background_tile":false,"profile_image_url":"http:\/\/pbs.twimg.com\/profile_images\/14657 48472\/VW_1_normal.jpg","profile_image_url_https":"https:\/\/pbs.twimg.com\/profile_images \/1465748472\/VW_1_normal.jpg","profile_banner_url":"https:\/\/pbs.twimg.com\/profile_bann ers\/238145671\/1369226061","profile_link_color":"009999","profile_sidebar_border_color":" FFFFFF","profile_sidebar_fill_color":"EFEFEF","profile_text_color":"333333","profile_use_b ackground_image":true,"has_extended_profile":false,"default_profile":false,"default_profil e_image":false,"following":null,"follow_request_sent":null,"notifications":null},"geo":nul l,"coordinates":null,"place":null,"contributors":null,"is_quote_status":false,"retweet_cou nt":0,"favorite_count":0,"favorited":false,"retweeted":false,"possibly_sensitive":false,"l ang":"en"}],"search_metadata":{"completed_in":0.015,"max_id":732609696109080577,"max_id_st r":"732609696109080577","query":"%2523konstruct","refresh_url":"?since_id=7326096961090805 77&q=%2523konstruct&include_entities=1","count":15,"since_id":0,"since_id_str":"0"}}

 

I have searched endlessly for weeks in the way that I can use this to display in a legible way. So for instance, suppose I wanted to output on the page, the actual tweet(s), the handle of who posted the tweet and the date - how!!! It is driving me mad as I am sure I did something like this before but can't remember how!

 

Many thanks in advance.

 

J

Trouble with cfspreadsheet and excel files

$
0
0

Hi,

 

I have a request from a client to generate an excel spreadsheet from a query. I have the query kicking out the fields and I can generate the excel file without a hitch. The problem comes when the client takes that excel file and then tries to manipulate it. The majority of the trouble comes from fields that should be marked as currency or dates. I am, with some struggle able to generate a "real" date field. Before this Excel was not sorting the dates properly.

 

I was able to call an excel formula by using this:

<cfset SpreadsheetSetCellFormula(s,"DATEVALUE(#Chr(34)##Replacement_ETD##Chr(34)#)",therow,9)>

 

Date value forces Excel to acknowledge this as a real date field. However, this fails when this file is manipulated thru excel. The next problem is the currency field. I can't get excel to acknowledge this as a currency. It always comes up custom. When this is set, the SUM function won't work in excel. You can add the fields individually like A1+B1+C1 = TOTAL. This won't be helpful when there are 200 rows.

 

I was able to get a suggestion from another CF programmer who had a similar situation. He generated the excel file first with the proper headings and set the columns to their proper fields such as date and currency etc.

 

The next step would be to fill in the fields row by row and they should be properly formatted.

 

Code:

 

<cfset filename = expandPath("./reports/arrivals.xlsx")>

<cfspreadsheet  action="read" src = "#filename#"  name = "s" >

          <cfset therow = 0>

          <cfoutput query="myExcel" startrow="1">

               <cfset therow = myExcel.currentrow + 1>

               <cfset SpreadsheetSetCellValue(s, Incumbent, therow, 1)>

               <cfset SpreadsheetSetCellValue(s, Section, therow, 2)>

               <cfset SpreadsheetSetCellValue(s, Position_Number, therow, 3)>

               <cfset SpreadsheetSetCellValue(s, Position_Title, therow, 4)>

               <cfset SpreadsheetSetCellValue(s, Incumbent_Emplyment_Type, therow, 5)>

               <cfset SpreadsheetSetCellValue(s, Incumbent_ETD, therow, 6)>

               <cfset SpreadsheetSetCellValue(s, Tour_Comments, therow, 7)>

               <cfset SpreadsheetSetCellValue(s, Replacement, therow, 8)>

               <cfset SpreadsheetSetCellValue(s, Replacement_ETA, therow, 9)>

          </cfoutput>   

<cfheader name="content-disposition" value="attachment; filename=Departures_(#DateFormat(now(),'mmddyy')#).xls">

<cfcontent type="application/msexcel" variable="#spreadsheetReadBinary(s)#" reset="true">

 

The data in the cells has already been properly formatted. When this file is generated and streamed to the user the columns are not formatted as expected.

 

Does anyone else know if this method will work or have a better suggestion on getting CF to generate a proper date and currency field for excel to acknowledge?

 

Adobe ColdFusion v10 running on RHEL 5

 

Thanks

ColdFusion processing files uploaded with multiple attribute in input tag

$
0
0

Hello, all,

 

I'm attempting (for the VERY first time) to code a function that will take files posted via HTML5 form from an <input type="file" multiple="multiple" name="images" /> tag.

 

Specifically, how do I determine how many files were selected for upload on the server-side?

 

The aim is to use CFFILE to READASBINARY the images, then insert them directly into a MySQL database.  (This last part I think I've got down pat.)

 

V/r,

 

^_^

Coldfusion 10 Update 14+ SQL Azure connection issues

$
0
0

Hi,

 

Using Coldfusion 10 (Update 14 or upper) for connect to SQL Azure, not works.

 

If we use Coldfusion 10 without Update 14 the connection to SQL Azure works fine.

 

But we need to use Java 1.8, then we need to install CF 10 Update 14.

 

Thanks in advance,


Adobe ColdFusion survey for the next version

$
0
0

Hello Everyone,

 

As you are probably aware, we are in the planning stage for the next version of ColdFusion. We are all excited to begin working on this new version of ColdFusion.

 

An important step during this planning process is to get valuable information from you about your usage of ColdFusion. We seek to get his information in the form of a survey. Please take a few minutes to take this survey and provide your feedback. The data from the survey will be used to validate a set of hypothesis about the usage of ColdFusion. This will eventually help us build a great next version of ColdFusion, which is codenamed Aether.

Thank you for your valuable time. Here is the survey link ( Adobe ColdFusion New Version Survey ) again.

 

Regards,

Anit Kumar

Application.Variable is not updating in application.cfm file

$
0
0

Dear All.,

 

I have been trying to update a application variable in my application.cfm  and it is not working.

 

APPLICATION.old_variable = '1,2,3';

(I want to add 4,5,6 along with the above variable)

 

I did the applicationtimeout and it is working for 10 seconds and again the the old values '1,2,3' is coming.

 

Also i added a new application variable

 

APPLICATION.new_variable = '1,2,3';

 

But here what ever the change i did and update the applicationtimeout  it is working well.

 

My case is the application variable is ONLY NOT UPDATING TO THE OLD VARIABLES

problem

$
0
0

I'm trying to get <cfthmltopdf> to work and am having problems.  We're running Coldfusion 11, on Red Hat 7.2.  We've done a fresh installation of CF and are sure that PDFG is installed.

 

Following these steps ColdFusion Help | PDF Generation in ColdFusion , all additional packages are installed on the server except ias32-libs, which my sysadmin tells me does not exist.  Fonts have been extracted in the /usr/share/fonts directory.  I am able to select the 'Verify All Service Managers' button in the CF administrator on the PDF Service page.  The Connection Status returns as OK.

 

I'm trying to run a simple test and am getting an error.

<cfhtmltopdf>

This is today: #now()#

</cfhtmltopdf>

 

Error occurred while generating PDF.

coldfusion.document.webkit.PDFgErrorHandler$ServiceManagerConversionException: Error occurred while generating PDF.

at coldfusion.tagext.lang.HtmlToPdfTag.handleRetryError(HtmlToPdfTag.java:1509)

at coldfusion.tagext.lang.HtmlToPdfTag.handlePDFgConversionRequest(HtmlToPdfTag.java:1471)

at coldfusion.tagext.lang.HtmlToPdfTag.convertToPDF(HtmlToPdfTag.java:1413)

at coldfusion.tagext.lang.HtmlToPdfTag.doEndTag(HtmlToPdfTag.java:1551)

at cfcomma2ecfm1427821176.runPage(/local/web/app-dev/playpen/aimee/comma.cfm:1)

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

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

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

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

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

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

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

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

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

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 coldfusion.inspect.weinre.MobileDeviceDomInspectionFilter.doFilter(MobileDeviceDomInspect ionFilter.java:121)

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 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

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

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)

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

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

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

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

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

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

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

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

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

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

 

 

Entries in the coldfusion-out.log file are:

May 26, 2016 15:46:46 PM Error [ajp-bio-8014-exec-10] - PDF conversion failed due to task time out in waiting queue for http://127.0.0.1:8987/PDFgServlet/.

May 26, 2016 15:47:46 PM Error [ajp-bio-8014-exec-10] - PDF conversion failed due to task time out in waiting queue for http://127.0.0.1:8987/PDFgServlet/.

May 26, 2016 15:47:46 PM Error [ajp-bio-8014-exec-10] - Error occurred while generating PDF.Reason: Error occurred while handling request. The specific sequence of files included or processed is: /local/web/app-dev/playpen/aimee/comma.cfm, line: 1

 

 

Any assistance would be greatly appreciated.

The local variable application cannot be declared outside of a function.

$
0
0

I was receiving an ORA-936 on an application I support (Oracle 11g, CF 11, Windows Server 2012).  The database went down yesterday, for a reason unknown to me, and when it came up, I am now getting this error message.  The only pointer to the .cfm file is the referrer.  I don't see how to fix this one.  What information can I include that will help you help me?  It seems like the more I learn, something new always comes up.   Here's the error page that was displayed.  I have not changed any declarations, that I know of.   Thank you.

 

 The local variable application cannot be declared outside of a function.
All variables defined with the var keyword must be declared inside a function.

Resources:

    Check the ColdFusion documentation to verify that you are using the correct syntax.    Search the Knowledge Base to find a solution to your problem.

Browser       Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:46.0) Gecko/20100101 Firefox/46.0
Remote Address       108.44.188.221
Referrer       https://TestServer/secure/Requirement/requirementsum.cfm?frompage=orig&CFID=58847&CFTOKEN=1c45276fd65debf-7F25B5E6-AA99-1268-0B24AB3E54D73594
Date/Time       27-May-16 01:25 PM
Stack Trace


coldfusion.compiler.ASTvariableDefinition$InvalidVarDefinition: The local variable application cannot be declared outside of a function.
    at coldfusion.compiler.ASTvariableDefinition.register(ASTvariableDefinition.java:98)    at coldfusion.compiler.SemanticAnalyzer.transform(SemanticAnalyzer.java:340)    at coldfusion.compiler.Treewalker.postorder(Treewalker.java:100)    at coldfusion.compiler.Treewalker.postorder(Treewalker.java:27)    at coldfusion.compiler.Treewalker.postorder(Treewalker.java:27)    at coldfusion.compiler.NeoTranslator.parseAndTransform(NeoTranslator.java:443)    at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:370)    at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:147)    at coldfusion.runtime.TemplateClassLoader$TemplateCache$1.fetch(TemplateClassLoader.java:436)    at coldfusion.util.LruCache.get(LruCache.java:180)    at coldfusion.runtime.TemplateClassLoader$TemplateCache.fetchSerial(TemplateClassLoader.java:362)    at coldfusion.util.AbstractCache.fetch(AbstractCache.java:58)    at coldfusion.util.SoftCache.get_statsOff(SoftCache.java:133)    at coldfusion.util.SoftCache.get(SoftCache.java:81)    at coldfusion.runtime.TemplateClassLoader.findClass(TemplateClassLoader.java:609)    at coldfusion.filter.PathFilter.invoke(PathFilter.java:101)    at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94)    at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:79)    at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)    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.java: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.java:241)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:437)    at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:197)    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)    at java.lang.Thread.run(Thread.java:722)

Coldfusion 11 - neo-datasource.xml or someplace else?

$
0
0

We are running 6 fully loaded coldfusion servers.  Besides the constant issues we have we have a new one that recently started happening.

 

We are maxed out apparently on how many datasources we can add.  When we add anymore they are not found by the coldfusion server.

 

We have two servers that when we add a datasource to one of the servers it gets added to the second server and we can not seem to figure out how that is even possible.

 

The neo-datasource.xml file does not match our Admin datasources either.  We have more datasources in our neo-datasource.xml file then we do in the actual Admin interface.

 

Can someone please explain how coldfusion stores the datasource information?  Does it use the neo-datasource.xml or does it store the datasources some place else.?

 

How can two seperate servers share the same datasources?  When we delete one in one Admin interface it deletes it from both plus if we add it then it will add to both servers.

Viewing all 5979 articles
Browse latest View live


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