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

Infinite loop creating new page due to column header overflow.

$
0
0

i am getting an error and some pages "Infinite loop creating new page due to column header overflow. " --

 

using report builder 9, i have a fairly simple report - that contains 4 subreports.

 

for some pages i get the error - it seems if there is more data than would fit on 1 page.

smaller pages work fine.

the subreports are all simple queries and dumps....

containing page header, column header, detail sections.

page header has just a text bar of the name of the section.

column header has the field names

detail section has the data - 1 row for each row in the recordset.

 

nothing i do seems to change getting "Infinite loop creating new page due to column header overflow. " on a page with more than 15-20 records returned.

 

any ideas would be appreciated.


Coldfusion 11 on windows 10

$
0
0

I am running ColdFusion 11 on Windows 10. My http://localhost pulls up my windows page but when I added cfm files to wwwroot it won't run anymore and I get this error code.

I am simply using notepad and save my code files as cfm.

 

Help me

 

HTTP Error 404.3 - Not Found

The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

 

Most likely causes:

  • It is possible that a handler mapping is missing. By default, the static file handler processes all content.
  • The feature you are trying to use may not be installed.
  • The appropriate MIME map is not enabled for the Web site or application. (Warning: Do not create a MIME map for content that users should not download, such as .ASPX pages or .config files.)
  • If ASP.NET is not installed.

Things you can try:

  • In system.webServer/handlers: 
    • Ensure that the expected handler for the current page is mapped.
    • Pay extra attention to preconditions (for example, runtimeVersion, pipelineMode, bitness) and compare them to the settings for your application pool.
    • Pay extra attention to typographical errors in the expected handler line.
  • Please verify that the feature you are trying to use is installed.
  •   Verify that the MIME map is enabled or add the MIME map for the Web site using the command-line tool appcmd.exe. 
    1. To set a MIME type, use the following syntax: %SystemRoot%\windows\system32\inetsrv\appcmd set config /section:staticContent /+[fileExtension='string',mimeType='string']
    2. The variable fileExtension string is the file name extension and the variable mimeType string is the file type description.
    3. For example, to add a MIME map for a file which has the extension ".xyz": appcmd set config /section:staticContent /+[fileExtension='.xyz',mimeType='text/plain']
      Warning: Ensure that this MIME mapping is needed for your Web server before adding it to the list. Configuration files such as .CONFIG or dynamic scripting pages such as .ASP or .ASPX, should not be downloaded directly and should always be processed through a handler. Other files such as database files or those used to store configuration, like .XML or .MDF, are sometimes used to store configuration information. Determine if clients can download these file types before enabling them. 
  • Install ASP.NET.
  • Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click here.

 

Detailed Error Information:

Module   StaticFileModule
Notification   ExecuteRequestHandler
Handler   StaticFile
Error Code   0x80070032

 

 

Requested URL   http://localhost:80/universityApp/main.cfm
Physical Path   C:\inetpub\wwwroot\universityApp\main.cfm
Logon Method   Anonymous
Logon User   Anonymous

 

Unable to read an Excel file using cfspreadsheet

$
0
0

Hi,

 

     I am trying to read an Excel file using CFSPREADSHEET. This file has been created using the CFFILE ACTION="WRITE" tag. However every time I try to do this I get an Exception that says "An error occurred while reading the Excel: java.lang.IllegalArgumentException:  Your InputStream was neither an OLE2 stream, nor an OOXML stream."

 

     I created a duplicate of the Excel file manually (copy-paste) and I was able to successfully read the duplicate Excel using the CFSPREADSHEET tag. When I checked the properties of both the original and duplicate excels, there was no difference except for their size. The one that was created using the CFFILE ACTION="WRITE" option was 12 KB and the duplicate was 24 KB.

 

     Could some one please let me know why I am getting the exception when trying to read the Excel using CFSPREADSHEET and how I can overcome it.

 

Thanks in advance

An established connection was aborted by the software in your host machine

$
0
0

Since moving to CF2016 I've been seeing quite a lot of the error below in the exception log file. I did some research and can't quite figure out what is going on and if this is indeed having an impact on the end user. I've tested the download link on http://www.hiddentoolbox.com and it appears to work fine

 

"Error","ajp-nio-8016-exec-6","03/26/18","11:55:46","myapp","The cause of this output exception was that: org.apache.catalina.connector.ClientAbortException: java.io.IOException: An established connection was aborted by the software in your host machine. The specific sequence of files included or processed is: C:\ACS\hiddentoolbox\downloadfile.cfm, line: 15 "

coldfusion.tagext.OutputException: The cause of this output exception was that: org.apache.catalina.connector.ClientAbortException: java.io.IOException: An established connection was aborted by the software in your host machine.

 

I was wondering if this is as simple as people closing their browser before the download is completed, although I could not replicate myself by starting and closing a browser before it had completed.

 

Could anybody help throw some light on it?

 

Thanks

 

Mark

Can anyone tell me to handle checkbox in Coldfusion

$
0
0

Hi Sir/Madam,

 

Please help me to handle two different scenarios with checkbox in CF.

 

I am having a checkbox.

     Scenario 1:If checkbox is selected I need to pass Value 123 to  variable(assignedPrivileges)

     Scenario 2:If checbox is not selected I need to pass value 456 to variable(assignedPrivileges)

 

<cfinput type="checkbox" name="assignedPrivileges" id="Test1" value="#Test#" checked="no">

 

Thanks In advance

Windows error 193 during install

$
0
0
After LaunchAnywhere finishes preparing to install I get an error headed LaunchAnywhere Error which says "Windows error 193 occured while loading the Java VM". I have verified the size of the downloaded CF file and all seems correct. I also seem to have the latest JAVA version installed. Any suggestions on what I should try next?
Running on Win XP Home SP 2 on an AMD 64 Athlon X2
Thanks

date and datetime types with cfqueryparam

$
0
0

How do you get a date and a datetime type into a table with cfqueryparam ?

 

For date  I have tried <cfqueryparam value=#createodbcdate(thedate)# cfsqltype="CF_SQL_DATE" maxlength="23" null="yes"> and got NULL in the table.

For time I tried <cfqueryparam value=#now()# cfsqltype="CF_SQL_TIME" maxlength="23" null="yes"> but the date part of the datetime value was 1970-01-01.

 

In the table, types for these columns are datetime.

Coldfusion 10 developer edition, download link required !!!

$
0
0

Hi,

 

I need to install Coldfusion 10 developer edition for my project, please share the download link.

Thanks in advance.

 

Regards,

Ankit


Retrieving Data using jqGrid

$
0
0

Hi-

 

I am trying to retrieve data into jqGrid but it seems that my data is not converted to json or maybe the case is something else. In short can't populate the jqGrid. My files are as follows

 

Users.cfm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title>

<link rel="stylesheet" type="text/css" media="screen" href="steel/grid.css" />

<link rel="stylesheet" type="text/css" media="screen" href="steel/jqModal.css" />

<script src="js/jquery-1.11.0.min.js"></script>

<script src="js/jquery.jqGrid.min.js" type="text/javascript"></script>

<script src="src/jqModal.js" type="text/javascript"></script>

<script src="src/jqDnR.js" type="text/javascript"></script>

<script src="src/jquery.fmatter.js" type="text/javascript"></script>

</head>

 

 

<body>

<table id="list" class="scroll" cellpadding="0" cellspacing="0"></table>

<div id="pager" class="scroll" style="text-align:center;"></div>

<div id="mysearch"></div>

<script>

$(document).ready(function()

        {

            $("#list").jqGrid(

            {

                url:"Users.cfc?method=getUsers", //CFC that will return the users

                datatype: "json", //We specify that the datatype we will be using will be JSON

                colNames:['ID','FirstName','LastName', 'DisplayName','UserName','UserAccountingCode','Phone'], //Column Names

                //The Column Model to define the data. Note you can make columns non sortable, specify width, alignment, etc.

                colModel :[

                    {name:'id',index:'id', width:50, sorttype:"int"},

                    {name:'FirstName',index:'FirstName', width:150, sorttype:"string"},

                    {name:'LastName',index:'LastName', width:150, align:"left",sorttype:"string"},

                    {name:'DisplayName',index:'DisplayName', width:150, align:"left",sorttype:"string"},

                    {name:'UserName',index:'UserName', width:150,align:"left",sorttype:"string"},

                    {name:'UserAccountingCode',index:'UserAccountingCode', width:150, sortable:false},

                    {name:'Phone',index:'Phone', width:150, sortable:false}

                ],

                pager: $('#pager'), //The div we have specified, tells jqGrid where to put the pager

                rowNum:4, //Number of records we want to show per page

                rowList:[4,8,12], //Row List, to allow user to select how many rows they want to see per page

                sortorder: "asc", //Default sort order

                sortname: "ID", //Default sort column

                viewrecords: true, //Shows the nice message on the pager

                imgpath: '/steel/images', //Image path for prev/next etc images

                caption: 'Users', //Grid Name

                height:'auto', //I like auto, so there is no blank space between. Using a fixed height can mean either a scrollbar or a blank space before the pager

                recordtext:'Total Records', //On the demo you will notice "7 Total Records" - The Total Reocrds text comes from here

                pgtext:'/',//You notice the 1/3, you can change the /. You can make it say 1 of 3

                editurl:"Users.cfc?method=getUsers",//Not used right now.

                toolbar:[true,"top"],//Shows the toolbar at the top. I will decide if I need to put anything in there later.

                //The JSON reader. This defines what the JSON data returned from the CFC should look like

                jsonReader: {

                    root: "ROWS", //our data

                    page: "PAGE", //current page

                    total: "TOTAL", //total pages

                    records:"RECORDS", //total records

                    cell: "", //not used

                    id: "0" //will default first column as ID

                    }

                }

            );      

      

        }

    );

</script>

</body>

</html>

 

Users.cfc

<cffunction name="getUsers" access="remote" returnformat="json">

     <cfargument name="page" required="no" default="1" hint="Page user is on">

    <cfargument name="rows" required="no" default="10" hint="Number of Rows to display per page">

    <cfargument name="sidx" required="no" default="" hint="Sort Column">

    <cfargument name="sord" required="no" default="ASC" hint="Sort Order">

 

        <cfset var arrUsers = ArrayNew(1)>

  

  

        <cfquery name="selUsers" datasource="myDataSource">

            SELECT

                ID, FirstName, LastName, DisplayName, UserName, UserAccountingCode, Phone

            FROM

                Users

            <!--- Sorting Here --->

            <cfif Arguments.sidx NEQ "">

                ORDER BY #Arguments.sidx# #Arguments.sord#

            <cfelse>

                ORDER BY ID #Arguments.sord#

            </cfif>

      

      

        </cfquery>

  

        <!--- Calculate the Start Position for the loop query.

        So, if you are on 1st page and want to display 4 rows per page, for first page you start at: (1-1)*4+1 = 1.

        If you go to page 2, you start at (2-)1*4+1 = 5 --->

        <cfset start = ((arguments.page-1)*arguments.rows)+1>

  

        <!--- Calculate the end row for the query. So on the first page you go from row 1 to row 4. --->

        <cfset end = (start-1) + arguments.rows>

  

        <!--- When building the array --->

        <cfset i = 1>

  

        <cfloop query="selUsers" startrow="#start#" endrow="#end#">

            <!--- Array that will be passed back needed by jqGrid JSON implementation --->  

            <cfset arrUsers[i] = [#ID#,#FirstName#,#LastName#,#DisplayName#,#UserName#,#UserAccountingCode#,#Phone#]>

            <cfset i = i + 1>      

        </cfloop>

  

        <!--- Calculate the Total Number of Pages for your records. --->

        <cfset totalPages = Ceiling(selUsers.recordcount/arguments.rows)>

  

        <!--- The JSON return.

            Total - Total Number of Pages we will have calculated above

            Page - Current page user is on

            Records - Total number of records

            rows = our data

        --->

<cfset stcReturn = {total=#totalPages#,page=#Arguments.page#,records=#selUsers.recordcount#,rows=arrUsers}>

  

    <cfreturn stcReturn>

  

    </cffunction>

 

Please help.

 

Thanks

 

Tayyab Hussain

Get selected value of cfselect

$
0
0
Hi. What I want to do should be simple, but it's killing me! All I want to do is display the selected value of a cfselect on my page. Here's the code:

Select:
<cfselect name="ddlStates" value="fullname" display="fullname" width="200"
style="font-size:11px"
bind="cfc:cfc.nationwideJobs.getStates()"
bindonload="true">
</cfselect>

<cfset var1 = #form.ddlStates.selectedItem.label#>
<cfoutput>#var1#</cfoutput>

This doesn't work. The error I keep getting is:

Error Occurred While Processing Request
Element DDLSTATES.SELECTEDITEM.LABEL is undefined in FORM.

Thanks for the help.


Invoking a webservice - Error - Unable to parse WSDL as an XML document.

$
0
0

Hello,

 

When I am invovking the webservice with the following code. I am getting the following error.

 

Unable to  parse WSDL as an XML document.

Parsing error: Fatal Error:  URI=null Line=168: The element type "link" must be terminated by the matching  end-tag "".
It is recommended that you use a web browser to retrieve  and examine the requested WSDL document to ensure it is correct.

 

 

Code that I have used is :

<CFINVOKE component="userinfo" METHOD="GetuserInfo" RETURNVARIABLE="result_info" >
    <cfinvokeargument name="EMP" value="123456"/>
</cfinvoke>
<cfdump var="#result_info#">

 

<CFINVOKE webservice="http://www.test.com/userinformation.cfc?wsdl" METHOD="GetVehInfo" RETURNVARIABLE="result_info" >
    <cfinvokeargument name="EMP" value="123456"/>
</cfinvoke>
<cfdump var="#result_info#">

 

 

Can some one provide me a solution?

 

Thanks in advance,

Satheesh.

IIS7.5 and ColdFusion10(Developer)

$
0
0

I installed ColdFusion10 Developer on my Win7 desktop with IIS7.5 but when I go to localhost/xxx.cfm a popup dialogue box opens >> Opening .cfm file...You have chosen to open index.cfm which is a cfm file from http://localhost...What should Firefox do with this file? (Open with-browse/FlashGot/Save File)<<<

 

Why is IIS7.5 not serving .cfm in localhost normally? Grateful for help to fix this (see my post on StackOverflow on this:http://stackoverflow.com/questions/11467168/coldfusion10-developer-and-windows7-iis7-5 )

 

EDIT   I am grateful for help with this please (it is driving me nuts..)! I have no handler mappings for .cfm-how do I manually add these to my IIS7.5 for my ColdFusion10 developer install? I need to find the directory to map to the correct .dll file for .cfm etc? Am I correct?-I cannot find any info on Google about this for CF10 developer edn (there are several links to CF7/8 which have given me a general idea but I need a specific fix....)

cfwindow, cfpod, cflayout

$
0
0

Hello All,
I have this simple code to show a pop up window using cfwindow:

<cfajaximport tags = "cfwindow">
<cfwindow initshow="true"  x="200" y="200">
this is cfwindow contents
</cfwindow>

It supposes to show a pop up window with the words say "this is cfwindow contents".
BUT I only see "this is cfwindow contents", there is no frame, no pop up window, and it gives me NO error, I think it has something to do with css.
It happens the same thing with ipod, cflayout.

It's hard to fix  the issue since it not gives me any error message
I wonder if anyone out there has the same issue
Thank you
HP
pham_mn@yahoo.com

Round to two decimal places

$
0
0

How do you round a number to two decimal places?

Cannot create a session after the response has been committed

$
0
0

Windows 2016 Server

MSSQL Web Edition 2017

Coldfusion 2016 - 2016.0.05.303689, Tomcat - 8.5.11.0

IIS 10.0.14393.0

 

I randomly get an error emailed to me from multiple sites (see below) how can I resolve this?  No other information is provided to solve the problem.  We did check "Use J2EE session variables" because we need them for a project and then this started to happen.  A google search reveals that this could be the issue.  Anyone have a solution on how to keep this setting and not get this error?

 

Cannot create a session after the response has been committed

 

Type:java.lang.IllegalStateException

 

StackTrace:

java.lang.IllegalStateException: Cannot create a session after the response has been committed at org.apache.catalina.connector.Request.doGetSession(Request.java:2955) at org.apache.catalina.connector.Request.getSession(Request.java:2368) at org.apache.catalina.connector.RequestFacade$GetSessionPrivilegedAction.run(RequestFacade. java:216) at org.apache.catalina.connector.RequestFacade$GetSessionPrivilegedAction.run(RequestFacade. java:205) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:894) at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:23 1) at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:23 1) at coldfusion.runtime.AppHelper.setupJ2eeSessionScope(AppHelper.java:1042) at coldfusion.runtime.AppHelper.setupSessionScope(AppHelper.java:1141) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:415) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:43) 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:60) 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.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:151) at coldfusion.CfmServlet.service(CfmServlet.java:219) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at sun.reflect.GeneratedMethodAccessor61.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:282) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:279) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:549) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:314) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:170) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:224) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:46 ) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:148) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:144) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:143) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 ) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:282) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:279) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:549) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:314) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:253) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:190) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:46 ) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:148) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:144) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:143) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:282) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:279) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:549) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:314) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:253) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:190) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:46 ) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:148) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:144) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:143) at com.seefusion.Filter.doFilter(Filter.java:92) at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:282) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:279) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:549) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:314) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:253) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:190) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:46 ) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:148) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:144) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:143) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:474) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at com.seefusion.SeeFusionValve.invoke(SeeFusionValve.java:52) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:363) at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:507) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:798) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1434) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 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)


coldfusion session variables being lost

$
0
0

ok so when my users login I establish session variables. one of these is employee id. in my Application.cfc I have this at the top:

 

<cfscript>
this.name = "My App";
this.sessiontimeout=CreateTimeSpan("0", "0", "45", "0");
this.SESSIONMANAGEMENT="YES";
this.SetClientCookies = "true";
this.setDomainCookies = "true";
</cfscript>

 

i also set the timeout for sessions at 45 in the CFadmin too.

 

after a successfull login i capture their session.employeenumber by authenticating through our corporate LDAP. no problem there. note: this app has run smoothly for 6+ years now but something has recently gone wrong.

 

on every page i reference a file in my application directory called "check_session.cfm" like this:

<cfmodule template="/myApp/Tags/check_session.cfm">

 

In that file I have code that checks for the existence of the session.employee_number. if it doesn't exist they either timed out or book-marked a page in the app in which they need to be logged in to view:

 

<cflock timeout="30" throwontimeout="Yes" type="READONLY" scope="SESSION">
<!--- Checks to make sure the user has a session--->
<CFIF NOT IsDefined("Session.employee_number")>
     <CFLOCATION URL="http://#cgi.HTTP_HOST#/myApp/LoginAgain.cfm">
</CFIF>
</cflock>

 

every now and then (i'd say on average 5 times per week) i get an error message from a user (i re-direct all errors to my email with diagnostic info). the error reads "Element EMPLOYEE_NUMBER is undefined in SESSION". when i look at the page the error came from i see my call to the check_session.cfm file about 50 lines above where this error happened when i tried to reference session.employee_number. why wouldn't it not find it and re-direct the user to the timeout page? i can never duplicate this error on my machine either... i always get the right result without the error message. its a random, sporadic, intermittent error.

Having trouble with jQuery toggle row to work right

$
0
0

The results appear in a table and each row when clicked on shows detailed information.  I'm trying to use the jQuery toggle so it can open the detail information under the persons name.

 

The jQuery code I have is this...

<script>

$(document).ready(function() {

     $("#title").click(function() {

     $("#detail").toggle();

});

});

</script>

 

Then my cfoutput table is this...

<table>

<thead>

<tr><th>First Name</th></tr>
</thead>

<tbody>

<cfoutput query="getRecords">

<tr>

<td id="title">#getRecords.firstN#</td>

</tr>

<tr>

<td id="detail"><cfdiv bind="url:details.cfm?firstN=#firstN#" /></td>

</tr>

</cfoutput>

</tbody>

</table>

 

Now what happens with that is all the detail records show up with the name and only the first row can toggle.  Everything else doesn't do anything.  Also is there a way to have the toggle show as closed first?  Thank you so much for any help with this.

Coldfusion errors with undefined element, dump during error processing shows element defined

$
0
0

Ok, so I've got a strange problem that I've been beating my head against for over a week now.  I'm holding out a little hope that maybe someone here has seen something like this and has a solution or at least can point me in a direction to make some sense of it.


We are running an enterprise application on CF9 currently.  Recently we made a large update with some advancements and in part of the advancements I'm using some request scoped variables.

 

Said request variable is a structure that is set in Application.cfc OnRequestStart.  Randomly since the changes have been put on our production servers we get an error email (we have an error handler defined to capture and email errors when they occur), stating that key.subkey is undefined in request scoped variable.  What makes this so bizarre is in the email from the error handler (that is processed in the same request) shows the key.subkey existing in the request scoped variable in a <cfdump var="#request#"> in the email.  How could it possibly be erroring on a part of the page that runs after OnRequestStart, but before OnError, saying that this structure element doesn't exist yet it does exist during the error handler caused by it.  The request scoped variable btw is not defined or set anywhere else outside of the Application.cfc.

 

I should also mention that other keys in the structure are referenced in the request prior to the point of failure without erroring, some in the same function as the point of error even.  It's almost as if the structure is not fully defined yet while it's processing the page request, but it is fully defined by the time it dumps it in the error email....

 

This problem is really baffling me, and it makes it worse that I can't find any way to reproduce it on our testing servers.

Extracting ObjectSID from LDAP query

$
0
0
I'm using CFLDAP in CF MX7 to retrieve sAMAccountName, DisplayName and ObjectSID from a Windows 2003 server. I'm logging in as Administrator to do this.

ObjectSIDs get returned as a binary values, which I am able to convert to strings via CharsetEncode with encoding us-ascii. But these strings look nothing like what I'm expecting: strings of the form S-x-yyyy-......

Is this because the binary values getting returned are encrypted? If so, is there any way to decrypt them? If not, does anyone know how else I can retrieve the actual ObjectSID values in the form S-x-yyyy-.....?

Max. Length of varchar2 from Oracle Stored Procedure

$
0
0
We are using ColdFusion MX7 and Oracle RAC 10g.

I have an Oracle Stored Procedure which can return strings (varchar2) of more that 4000 bytes

The problem is that ColdFusion is cuting the string at 4000 bytes. I have tested the procedure in SQLPLUS and the stored procedure works ok and can return (OUT parameter) strings of more than 4000 bytes.

This procedure was working fine with version 4.5 where I had the maxlength parameter specified in the CFPROCPARAM type="Out" parameter.

Any help in fixing this will be highly appreciated.

Thanks
Viewing all 14291 articles
Browse latest View live


Latest Images

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