DataTable in Coldfusion (in cfscript)

Hi i want to add DataTable in Coldfusion script...Like c# code...C# code is following:
                   DataTable productPropertyFilterTable = new DataTable();
                    productPropertyFilterTable.Columns.Add("RowID", typeof(int));
                    productPropertyFilterTable.Columns.Add("PropertyId", typeof(long));
                    productPropertyFilterTable.Columns.Add("PropertyWeight", typeof(string));
                    productPropertyFilterTable.Columns.Add("LowerRange", typeof(float));
                    productPropertyFilterTable.Columns.Add("UpperRange", typeof(float));

Hi i have another issue...How can i write this c# code in coldfusion(Script).....
var warnings = new SqlParameter("ProductPropertyFilter", SqlDbType.Structured);
                        warnings.Value = productPropertyFilterTable;
                        warnings.TypeName = @"[dbo].[ProductPropertyFilter]";
                        using (var ctx = new ProductBookEntities())
                            var productFilter = ctx.Database.SqlQuery<ProductFilter>("dbo.FindScore @ProductPropertyFilter",
                               warnings);
                            dataProducts = productFilter.ToList();
                            if (dataProducts.Count() > range)
                                dataProducts = dataProducts.OrderByDescending(x => x.Score).Take(range).ToList();
                            ctx.Dispose();

Similar Messages

  • CFScript Reference Manual

    Does anyone know an URL for a
    ColdFusion 9 CFScript Reference Manual?
    ColdFusion 9 CFML Reference only contains CFML, not CFScript.
    Developing ColdFusion 9 Applications is more of a User Guide,
    not a Reference.
    Thanks.
    myscreenname0345

    Thanks Gentlemen.
    I'm looking for things like:
       1. function args
           Ex: cfoutput attributes inlcude: group, groupCaseSensitive, maxRows, query, startRow
           Which (if any) does writeoutput() support?
           And what is the arg order?
       2. Exceptions
           What exception types are thrown by each CFScript function?
       3. Function modifiers
          Are the same ones supported as in Java (e.g. public, private, protected, static, etc.)?
          Do they work exactly the same as in Java?
    This must be described somewhere.
    Thanks.
    myscreenname0345

  • Multiple Error Messages CFB2 after hotfix installation

    Hi,
    I just installed the CFB2 Hotfix on Windows 7 pro 64 AND 32bit machines and now get a ton of startup errors in the error log. I have no idea what is causing this. Here is a small part of the error log. I have tried starting with the -clean option and still get the errors. It's approx. 900 lines of messages.
    Any way to remove the cause of these?
    Thanks,
    Doug
    !ENTRY org.eclipse.equinox.preferences 4 4 2011-07-20 14:01:23.928
    !MESSAGE Exception loading preferences from: .
    !STACK 0
    org.osgi.service.prefs.BackingStoreException: Unable to determine provisioning agent from location: file:\2fC:\2fUsers\2fDoug\2fAppData\2fLocal\2fTemp\2fI1306347801\2fWindows\2fp2\2f
        at org.eclipse.equinox.internal.p2.engine.ProfilePreferences.getAgent(ProfilePreferences.jav a:159)
        at org.eclipse.equinox.internal.p2.engine.ProfilePreferences.load(ProfilePreferences.java:24 0)
        at org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:3 07)
        at org.eclipse.core.internal.preferences.EclipsePreferences.internalNode(EclipsePreferences. java:543)
        at org.eclipse.core.internal.preferences.EclipsePreferences.node(EclipsePreferences.java:669 )
        at org.eclipse.core.internal.preferences.EclipsePreferences.internalNode(EclipsePreferences. java:549)
        at org.eclipse.core.internal.preferences.EclipsePreferences.node(EclipsePreferences.java:669 )
        at org.eclipse.core.internal.preferences.EclipsePreferences.internalNode(EclipsePreferences. java:549)
        at org.eclipse.core.internal.preferences.EclipsePreferences.node(EclipsePreferences.java:669 )
        at org.eclipse.core.internal.preferences.RootPreferences.getNode(RootPreferences.java:106)
        at org.eclipse.core.internal.preferences.RootPreferences.node(RootPreferences.java:85)
        at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.getPreferenc es(AbstractRepositoryManager.java:499)
        at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.remember(Abs tractRepositoryManager.java:857)
        at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.stop(Abstrac tRepositoryManager.java:1052)
        at org.eclipse.equinox.internal.p2.core.ProvisioningAgent.unregisterService(ProvisioningAgen t.java:121)
        .................... cut .................
    !SESSION 2011-07-20 14:01:34.716 -----------------------------------------------
    eclipse.buildId=unknown
    java.version=1.6.0_24
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments:  -os win32 -ws win32 -arch x86 -clean
    !ENTRY org.eclipse.equinox.p2.engine 4 4 2011-07-20 14:01:37.799
    !MESSAGE An error occurred while installing the items
    !SUBENTRY 1 org.eclipse.equinox.p2.engine 4 0 2011-07-20 14:01:37.799
    !MESSAGE session context was:(profile=profile, phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=null --> [R]com.adobe.ide.coldfusion.search 2.0.0.277745, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction).
    !SUBENTRY 1 org.eclipse.equinox.p2.touchpoint.eclipse 4 0 2011-07-20 14:01:37.799
    !MESSAGE The artifact file for osgi.bundle,com.adobe.ide.coldfusion.search,2.0.0.277745 was not found.
    ...... more .....
    !ENTRY org.eclipse.update.configurator 4 0 2011-07-20 14:01:38.686
    !MESSAGE Could not install bundle plugins/org.sat4j.pb_2.2.0.v20100429.jar   Bundle "org.sat4j.pb" version "2.2.0.v20100429" has already been installed from: reference:file:plugins/org.sat4j.pb_2.2.0.v20100429.jar
    !ENTRY org.eclipse.update.configurator 4 0 2011-07-20 14:01:38.687
    !MESSAGE Could not install bundle plugins/org.scriptaculous.1.8_1.8.0.00001.jar   Bundle "org.scriptaculous.1.8" version "1.8.0.00001" has already been installed from: reference:file:plugins/org.scriptaculous.1.8_1.8.0.00001.jar
    !ENTRY Extensions 1 0 2011-07-20 14:01:42.481
    !MESSAGE Dangling meta character '*' near index 0

    I just tried that on my 64-bit machine and get the following in my error.log. Note on the keybinding, I have NOT added or changed any keybindings, so don't know where that's coming from.
    !SESSION 2011-09-15 14:03:47.654 -----------------------------------------------
    eclipse.buildId=unknown
    java.version=1.6.0_24
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments:  -os win32 -ws win32 -arch x86 -clean
    !ENTRY org.eclipse.jface 2 0 2011-09-15 14:05:08.069
    !MESSAGE Keybinding conflicts occurred.  They may interfere with normal accelerator operation.
    !SUBENTRY 1 org.eclipse.jface 2 0 2011-09-15 14:05:08.069
    !MESSAGE A conflict occurred for ALT+CTRL+R:
    Binding(ALT+CTRL+R,
        ParameterizedCommand(Command(com.adobe.ide.coldfusion.shortcut.cfscript,Insert cfscript block,
            Insert cfscript block,
            Category(com.adobe.ide.coldfusion.commands,CFML Editor,null,true),
            com.adobe.ide.coldfusion.shortcut.handlers.CFScriptHandler,
            ,,true),null),
        cfscheme,
        com.adobe.ide.editor.cfml.context,,,user)
    Binding(ALT+CTRL+R,
        ParameterizedCommand(Command(com.adobe.ide.coldfusion.shortcut.cfscript,Insert cfscript block,
            Insert cfscript block,
            Category(com.adobe.ide.coldfusion.commands,CFML Editor,null,true),
            com.adobe.ide.coldfusion.shortcut.handlers.CFScriptHandler,
            ,,true),null),
        cfscheme,
        com.adobe.snippet.context,,,user)
    !ENTRY org.eclipse.osgi 2 1 2011-09-15 14:06:56.414
    !MESSAGE NLS unused message: CFMLKeysPreferencePage.0 in: com.adobe.ide.coldfusion.keyboard.preferences.messages
    !ENTRY org.eclipse.osgi 2 1 2011-09-15 14:06:56.415
    !MESSAGE NLS unused message: CFMLKeysPreferencePage.1 in: com.adobe.ide.coldfusion.keyboard.preferences.messages
    !ENTRY org.eclipse.osgi 2 1 2011-09-15 14:06:56.416
    !MESSAGE NLS unused message: CFMLKeysPreferencePage.4 in: com.adobe.ide.coldfusion.keyboard.preferences.messages
    !SESSION 2011-09-15 14:08:36.899 -----------------------------------------------
    eclipse.buildId=unknown
    java.version=1.6.0_24
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments:  -os win32 -ws win32 -arch x86 -clean
    !ENTRY org.eclipse.jface 2 0 2011-09-15 14:08:41.807
    !MESSAGE Keybinding conflicts occurred.  They may interfere with normal accelerator operation.
    !SUBENTRY 1 org.eclipse.jface 2 0 2011-09-15 14:08:41.807
    !MESSAGE A conflict occurred for ALT+CTRL+R:
    Binding(ALT+CTRL+R,
        ParameterizedCommand(Command(com.adobe.ide.coldfusion.shortcut.cfscript,Insert cfscript block,
            Insert cfscript block,
            Category(com.adobe.ide.coldfusion.commands,CFML Editor,null,true),
            com.adobe.ide.coldfusion.shortcut.handlers.CFScriptHandler,
            ,,true),null),
        cfscheme,
        com.adobe.snippet.context,,,user)
    Binding(ALT+CTRL+R,
        ParameterizedCommand(Command(com.adobe.ide.coldfusion.shortcut.cfscript,Insert cfscript block,
            Insert cfscript block,
            Category(com.adobe.ide.coldfusion.commands,CFML Editor,null,true),
            com.adobe.ide.coldfusion.shortcut.handlers.CFScriptHandler,
            ,,true),null),
        cfscheme,
        com.adobe.ide.editor.cfml.context,,,user)
    !SESSION 2011-09-16 13:43:24.117 -----------------------------------------------
    eclipse.buildId=unknown
    java.version=1.6.0_24
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments:  -os win32 -ws win32 -arch x86 -clean
    !ENTRY org.eclipse.jface 2 0 2011-09-16 13:43:31.062
    !MESSAGE Keybinding conflicts occurred.  They may interfere with normal accelerator operation.
    !SUBENTRY 1 org.eclipse.jface 2 0 2011-09-16 13:43:31.062
    !MESSAGE A conflict occurred for ALT+CTRL+R:
    Binding(ALT+CTRL+R,
        ParameterizedCommand(Command(com.adobe.ide.coldfusion.shortcut.cfscript,Insert cfscript block,
            Insert cfscript block,
            Category(com.adobe.ide.coldfusion.commands,CFML Editor,null,true),
            com.adobe.ide.coldfusion.shortcut.handlers.CFScriptHandler,
            ,,true),null),
        cfscheme,
        com.adobe.snippet.context,,,user)
    Binding(ALT+CTRL+R,
        ParameterizedCommand(Command(com.adobe.ide.coldfusion.shortcut.cfscript,Insert cfscript block,
            Insert cfscript block,
            Category(com.adobe.ide.coldfusion.commands,CFML Editor,null,true),
            com.adobe.ide.coldfusion.shortcut.handlers.CFScriptHandler,
            ,,true),null),
        cfscheme,
        com.adobe.ide.editor.cfml.context,,,user)
    !SESSION 2011-09-19 10:18:43.271 -----------------------------------------------
    eclipse.buildId=unknown
    java.version=1.6.0_24
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments:  -os win32 -ws win32 -arch x86 -clean
    !ENTRY org.eclipse.equinox.p2.engine 4 4 2011-09-19 10:18:55.798
    !MESSAGE An error occurred while committing the engine session for profile: profile.
    !SUBENTRY 1 org.eclipse.equinox.p2.touchpoint.eclipse 4 0 2011-09-19 10:18:55.798
    !MESSAGE
    !SUBENTRY 2 org.eclipse.equinox.p2.touchpoint.eclipse 4 0 2011-09-19 10:18:55.798
    !MESSAGE Error saving manipulator.
    !STACK 0
    java.lang.NullPointerException
        at org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser.saveFwConfi g(EquinoxFwConfigFileParser.java:489)
        at org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxManipulatorImpl.save(EquinoxMa nipulatorImpl.java:407)
        at org.eclipse.equinox.internal.p2.touchpoint.eclipse.LazyManipulator.save(LazyManipulator.j ava:96)
        at org.eclipse.equinox.internal.p2.touchpoint.eclipse.EclipseTouchpoint.saveManipulator(Ecli pseTouchpoint.java:61)
        at org.eclipse.equinox.internal.p2.touchpoint.eclipse.EclipseTouchpoint.commit(EclipseTouchp oint.java:137)
        at org.eclipse.equinox.internal.p2.engine.EngineSession.commit(EngineSession.java:123)
        at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:91)
        at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:44)
        at org.eclipse.equinox.internal.p2.reconciler.dropins.ProfileSynchronizer.executePlan(Profil eSynchronizer.java:720)
        at org.eclipse.equinox.internal.p2.reconciler.dropins.ProfileSynchronizer.performAddRemove(P rofileSynchronizer.java:173)
        at org.eclipse.equinox.internal.p2.reconciler.dropins.ProfileSynchronizer.synchronize(Profil eSynchronizer.java:128)
        at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.synchronize(Activator.java:4 19)
        at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.start(Activator.java:176)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:7 83)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextIm pl.java:774)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:7 55)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:374)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1067)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManage r.java:561)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManage r.java:546)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java :459)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelMana ger.java:243)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManage r.java:440)
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337)
    !ENTRY org.eclipse.jface 2 0 2011-09-19 10:19:16.671
    !MESSAGE Keybinding conflicts occurred.  They may interfere with normal accelerator operation.
    !SUBENTRY 1 org.eclipse.jface 2 0 2011-09-19 10:19:16.671
    !MESSAGE A conflict occurred for ALT+CTRL+R:
    Binding(ALT+CTRL+R,
        ParameterizedCommand(Command(com.adobe.ide.coldfusion.shortcut.cfscript,Insert cfscript block,
            Insert cfscript block,
            Category(com.adobe.ide.coldfusion.commands,CFML Editor,null,true),
            com.adobe.ide.coldfusion.shortcut.handlers.CFScriptHandler,
            ,,true),null),
        cfscheme,
        com.adobe.snippet.context,,,user)
    Binding(ALT+CTRL+R,
        ParameterizedCommand(Command(com.adobe.ide.coldfusion.shortcut.cfscript,Insert cfscript block,
            Insert cfscript block,
            Category(com.adobe.ide.coldfusion.commands,CFML Editor,null,true),
            com.adobe.ide.coldfusion.shortcut.handlers.CFScriptHandler,
            ,,true),null),
        cfscheme,
        com.adobe.ide.editor.cfml.context,,,user)
    !ENTRY org.eclipse.ui 4 4 2011-09-19 10:20:08.432
    !MESSAGE Category com.adobe.model.editor.views not found for view com.adobe.rds.client.core.views.DatabaseView.  This view added to 'Other' category.
    !ENTRY org.eclipse.ui 4 4 2011-09-19 10:20:08.432
    !MESSAGE Category com.aptana.ide.documentation not found for view com.aptana.ide.documentation.jquery.visualjquery.  This view added to 'Other' category.
    !ENTRY org.eclipse.ui 4 4 2011-09-19 10:20:08.432
    !MESSAGE Category com.aptana.ide.documentation not found for view com.aptana.ide.documentation.libraryname.sampleview.  This view added to 'Other' category.
    !ENTRY org.eclipse.ui 4 4 2011-09-19 10:20:08.447
    !MESSAGE Category com.adobe.model.editor.views not found for view com.adobe.rds.client.core.views.DatabaseView.  This view added to 'Other' category.
    !ENTRY org.eclipse.ui 4 4 2011-09-19 10:20:08.447
    !MESSAGE Category com.aptana.ide.documentation not found for view com.aptana.ide.documentation.jquery.visualjquery.  This view added to 'Other' category.
    !ENTRY org.eclipse.ui 4 4 2011-09-19 10:20:08.447
    !MESSAGE Category com.aptana.ide.documentation not found for view com.aptana.ide.documentation.libraryname.sampleview.  This view added to 'Other' category.

  • Can't get webservice to work - VIES checkVat WSDL

    I'm trying to incorporate a VAT checking function in my website, for validating entered VAT.
    This service is granted by european Vies WSDL service.
    No matter what I try, I always get the same error:
    Web service operation checkVat with parameters {xx,xxxxxxxxxxx} cannot be found.
    This is the last code I tried (maybe the fifth or sixth method experimented),
    just straight from the Coldfusion documentation:
    <cfscript>
        ws = CreateObject("webservice",
    "http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl");
        ws.checkVat("xx","xxxxxxxxxxx");
        req = getSOAPRequest(ws);
    </cfscript>
    <cfdump var="#req#">
    <cfset soapreq = GetSOAPRequest(ws)>
    <h2>SOAP Request</h2>
    <cfdump var="#soapreq#">
    <cfset soapresp = GetSOAPResponse(ws)>
    <h2>SOAP Response</h2>
    <cfdump var="#soapresp#">
    Where red x represent country code and VAT number.
    I'm about to let down, three days spent in trying and still no luck.
    Someone willing to bang his head with mine?
    Thanks anyway.

    1) Tried last code, and this is the complete resulting error:
    Web service operation checkVat with parameters {VATNUMBER={244155576},COUNTRYCODE={GB}} cannot be found.
    The error occurred in C:\xxxxxxxxxxxx\cfm_test\14_piva_test.cfm: line 22
    20 :    refreshwsdl="yes"
    21 :
    22 :    returnvariable="ws_response" argumentcollection="#arg#">
    23 :
    24 : </cfinvoke>
    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; WOW64; Trident/7.0; rv:11.0) like Gecko
    Referrer  
    Date/Time  29-Sep-14 05:20 PM
    Stack Trace
    at cf14_piva_test2ecfm1274206001.runPage(C:\xxxxxxxxxx\cfm_test\14_piva_test.cfm:22)
    coldfusion.xml.rpc.ServiceProxy$ServiceMethodNotFoundException: Web service operation checkVat with parameters {VATNUMBER={244155576},COUNTRYCODE={GB}} cannot be found.
        at coldfusion.xml.rpc.ServiceProxy.invoke(ServiceProxy.java:147)
        at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2210)
        at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:417)
        at cf14_piva_test2ecfm1274206001.runPage(C:\xxxxxxxxxxxxxxx\cfm_test\14_piva_test.cfm:22)
        at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:192)
        at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:366)
        at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
        at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:279)
        at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
        at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
        at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
        at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
        at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
        at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
        at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
        at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
        at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
        at coldfusion.CfmServlet.service(CfmServlet.java:175)
        at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
        at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
        at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )
        at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
        at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
        at jrun.servlet.FilterChain.service(FilterChain.java:101)
        at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
        at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
        at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:284)
        at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
        at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
        at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
        at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
        at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
        at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    2) in log files i've only found this:
    Web service operation checkVat with parameters {VATNUMBER={244155576},COUNTRYCODE={GB}} cannot be found. The specific sequence of files included or processed is: C:\xxxxxxxxxx\cfm_test\14_piva_test.cfm, line: 22

  • Coldfusion 11 Running on IIS Server and Java CreateObject Error

    I am getting the error below when trying to create an object in CF 11 using cfscript. In the CF Admin Java VM settings are the default setting. I have placed xmlsec-1.5.8.jar file under \cfusion\lib and cfusion\wwwroot\WEB-INF\lib I have also restarted the CF service.
    java.lang.NoClassDefFoundError: Could not initialize class org.apache.xml.security.signature.XMLSignature
    sun.misc.Unsafe.ensureClassInitialized(Native Method) at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:4 3) at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:142) at java.lang.reflect.Field.acquireFieldAccessor(Field.java:1082) at java.lang.reflect.Field.getFieldAccessor(Field.java:1063) at java.lang.reflect.Field.get(Field.java:387) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at coldfusion.runtime.StructBean.invoke(StructBean.java:508) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2553) at cfdump2ecfm2106091068$funcDUMPOBJECT.runFunction(/WEB-INF/cftags/dump.cfm:1797) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:533) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2805) at cfdump2ecfm2106091068$funcRENDEROUTPUT.runFunction(/WEB-INF/cftags/dump.cfm:681) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:231) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2840) at cfdump2ecfm2106091068._factor17(/WEB-INF/cftags/dump.cfm:565) at cfdump2ecfm2106091068._factor25(/WEB-INF/cftags/dump.cfm:564) at cfdump2ecfm2106091068._factor3(/WEB-INF/cftags/dump.cfm) at cfdump2ecfm2106091068._factor54(/WEB-INF/cftags/dump.cfm:493) at cfdump2ecfm2106091068.runPage(/WEB-INF/cftags/dump.cfm:1) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:246) at coldfusion.filter.CFVariablesScopeFilter.invoke(CFVariablesScopeFilter.java:56) at coldfusion.tagext.lang.ModuleTag.doStartTag(ModuleTag.java:332) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2986) at cfjavatest2ecfm1994854383.runPage(J:\PPNPF_WEB\SAMLTEST\javatest.cfm:8) 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:487) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:42) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:142) 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 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:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 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:199) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.jav a:607) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314) 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)

    Does the coldfusion administrator show that the jar file is loaded? If you go to the Settings Summary and look for the CF Server Java Class Path part, it will list all the loaded files.

  • Web Service is not working in COldfusion 8

    Hi,
    I am using the following code for creating the web service.
    this code was perfectly working in Coldfusion 7,
    however not working in Coldfusion 8.
    &lt;cfscript&gt;
        try {
            ws = CreateObject("webservice", CurrentURL & "IntouchDataService.cfc?wsdl");
        } catch (any e) {
            WriteOutput("Error occured while invoking the Web Service at: ");
            WriteOutput('&lt;a href="#CurrentURL#IntouchDataService.cfc?wsdl"&gt;#CurrentURL#IntouchDataService.cfc?wsdl &lt;/a&gt;');
            WriteOutput('&lt;hr /&gt;&lt;h2&gt;');
            WriteOutput(e.message);
            WriteOutput('&lt;/h2&gt;&lt;hr /&gt;');
            WriteOutput(e.detail);
            WriteOutput('&lt;hr /&gt;');
            WriteOutput(e.StackTrace);
    &lt;/cfscript&gt;
    Follwoing error i got:
    coldfusion.jsp.CompilationFailedException: Errors reported by Java compiler: Found 1 semantic error compiling "E:/ColdFusion8/stubs/WS-2123243560/coldfusion/xml/rpc/CFCInvocationException.java": < 10. public class CFCInvocationException extends org.apache.axis.AxisFault implements java.io.Serializable { . . . 88. } > *** Semantic Error: A class file was not generated for the type "coldfusion.xml.rpc.CFCInvocationException" because a library method that it depends on was not found. See system messages for more information. Found 1 semantic error compiling "E:/ColdFusion8/stubs/WS-2123243560/com/intouchsupport/www/IntouchDataService/TestWebServ iceLocator.java": < 10. public class TestWebServiceLocator extends org.apache.axis.client.Service implements com.intouchsupport.www.IntouchDataService.TestWebSe
    Also i did lot of googling to solve this issue but no luck.
    also i found following blog about this issue also and i did the give steps however problem not solved.
    http://tjordahl.blogspot.com/2007/09/coldfusion-8-getting-started-code.html
    Can somebody help me to sort out this issue?
    thanks
    Prashant Gupta

    Hi,
    I got solution to my problem of webservice is not working in CF8.
    the problem was
    we have already a "rt.jar" file in a location and we defined this location in CF Admin >> java jvm >> classpath
    so this file was conflicting.
    i simply removes this file path from CF Admin.
    and restart the CF services.
    and my web service start working.

  • How can I process an SSO Logon Ticket in ColdFusion 9?

    Hi,
    We want to integrate some CouldFusion templates on the SAP portal and I try to process the SSO Logon Ticket using the following code:
    <cfif IsDefined("Cookie.MYSAPSSO2") AND Cookie.MYSAPSSO2 neq "">
    <cfscript>
        ticket = Cookie.MYSAPSSO2;
        sso = createObject("java", "SSO2Ticket");
        version = sso.getVersion();
        Application.CertPath = "/opt/coldfusion9/lib/verify.pse";
    </cfscript>
    <h2>Ticket cookie:</h2>
    <cfdump var="#ticket#">
    <h2>Version:</h2>
    <cfdump var="#version#">
    <h2>Certification path:</h2>
    <cfdump var="#Application.CertPath#">
    <cfscript>
        result = sso.evalLogonTicket (ticket, Application.CertPath,"");
        sapUser   = result[1]; //First element is the SAP system user
        sysID  = result[2]; //Second element is the id of the issuing system
        client = result[3]; //Third element is the client of the issuing system
        portalUser = result[5]; //Portal user
        validityInSeconds = result[7]; //Validity in seconds
    </cfscript>
    <h2>Ticket content:</h2>
    <cfdump var="#result#">
    <cfelse>
        SAP Logon Ticket not found - Extranet content can only be accessed through SAP Portal.   
    </cfif>
    The certificate verify.pse and the current version of the libraries libsapcrypto.so, libsapssoext.so and libslcryptokernel.so are stored at the same location.
    After logging in into a SAP portal I get following error when executing the script:
    Ticket cookie:
      AjExMDAgAAxwb3J0YWw6VG90aEyIABNiYXNpY2F1dGhlbnRpY2F0aW9uAQAFVE9USEwCAAMwMDADAANEUDIEAAwyMDE0MDYyNTEzNTMFAAQAAAAICgAFVE9USEz/AQUwggEBBgkqhkiG9w0BBwKggfMwgfACAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGB0DCBzQIBATAiMB0xDDAKBgNVBAMTA0RQMjENMAsGA1UECxMESjJFRQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTQwNjI1MTM1MzQ3WjAjBgkqhkiG9w0BCQQxFgQU2lImEL6oxLc/4ZdXYTDJudUNhOIwCQYHKoZIzjgEAwQvMC0CFQC4ftTFs8COV0ThRZH5lJxY9ITqfQIUMSugOMEkhmQHqBZD!ZHQ1Tb9e90= 
    Version:
    SAPSSOEXT 4 
    Certification path:
    /opt/coldfusion9/lib/verify.pse 
    The web site you are accessing has experienced an unexpected error.
    Please contact the website administrator. 
    The following information is meant for the website developer for debugging purposes.
    Error Occurred While Processing Request
    MySapEvalLogonTicketEx failed: standard error= 9, ssf error= 0
      The error occurred in /opt/coldfusion9/wwwroot/ExtranetMod/authTest.cfm: line 20
    18 : 19 : <cfscript> 20 : result = sso.evalLogonTicket (ticket, Application.CertPath,""); 21 :     sapUser   = result[1]; //First element is the SAP system user 22 :     sysID  = result[2]; //Second element is the id of the issuing system
    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 5.1; rv:30.0) Gecko/20100101 Firefox/30.0
    Remote Address 
    172.20.231.111
    Referrer 
    Date/Time 
    25-Jun-14 04:23 PM
    Stack Trace
    at cfauthTest2ecfm1658987646.runPage(/opt/coldfusion9/wwwroot/ExtranetMod/authTest.cfm:20)
    java.lang.Exception: MySapEvalLogonTicketEx failed: standard error= 9, ssf error= 0 at SSO2Ticket.evalLogonTicket(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at coldfusion.runtime.java.JavaProxy.invoke(JavaProxy.java:97) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2360) at cfauthTest2ecfm1658987646.runPage(/opt/coldfusion9/wwwroot/ExtranetMod/authTest.cfm:20) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:360) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:94) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) 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:200) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    I would be most thankful for any hints that could bring me further...
    Many thanks
    Lajos

    Thank you for your assistance in this matter.
    This has been frustrating the crap out of me for the last week (not that the photo is important, it is just that I like to conquer and solve this types of issues)
    I was shooting with an aperture of 7.1. 
    I changed the exposure on the photos as you had done previously but this only blew out the watch and I couldn't recover it afterwards and the alignment was no better any way.  So then I started experimenting as you suggested, and I don't know if what I am about to write is acceptable in an Adobe forum, but here goes.
    I tried Helicon Focus and it was terrible, but I must admit I didn't know how to really use it, it doesn't seem to have any alignment function and is very difficult to try to use and understand.
    then I tried Hugin and I am not even sure if this is image stacking software or just an alignment software, anyway that didn't work either and kept saying the output was a very bad match.
    THEN I downloaded and tried zerestacker (free 30 day trial)  (after reading about it in a google search) and WOW, it worked amazing, see below photo, it was so easy to use and the interface is easy as well and it does the alignment and stacking in the same process and you can see the image output show up on the left of the screen.  Sorry PS but I will be using ZS for photostacking from now on. Adobe need to buy this company and incorporate it in to PS CC6.
    This is just so much better than anything I got out of PS, there is no ghosting or blurring and the alignment is perfect and it is so simple to use.

  • Wierd ColdFusion erro : Error occurred while processing request.

    Hi there ,
    I am a graduate student and new to ColdFusion.I started working on this already developed project by someone couple of years ago , and the client wants some changes to be done.so i went ahead and did some small modifications to the appearance of the form(insertdata.cfm page) like adding some more options to a drop down menu , changing the label names and so on and am very sure this changes would not have effected the application in any way.And the place where the message says the error can be , i didnt even touch that part.Now after 4 days i start getting this weird error saying " Error Occurred While Processing Request
    The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or some system code.
    Null Pointers are another name for undefined values."
    And this happens randomly not everytime i access the website or different webpages.Here are the errors.
    The error occurred in /export/web/virtual/web3_unt_edu/cps/webaccess/sites/Amarillo/index.cfm: line 8
    5 :   SELECT UserName,Password FROM user_data WHERE UserName=
    6 :   <cfqueryparam value="#FORM.UserName#" maxlength="8">
    7 :     AND Password=
    8 :   <cfqueryparam value="#FORM.Password#" maxlength="8">
    9 :   </cfquery>
    10 :   <cfif MM_rsUser.RecordCount NEQ 0>
    I tried adding " cfsqltype="cf_sql_clob"  " in cfqueryparam also on my friends advice , but it doesnt work out.
    2nd ERROR
    The error occurred in /export/web/virtual/web3_unt_edu/cps/webaccess/sites/Amarillo/InsertData.cfm: line 13
    11 :   <cflocation url="#MM_failureURL#" addtoken="no">
    12 : </cfif>
    13 : <cfquery name="rsDay" datasource="cps">
    14 : SELECT days FROM days
    15 : </cfquery>
    3rd ERROR
    The error occurred in /export/web/virtual/web3_unt_edu/cps/webaccess/sites/Amarillo/InsertData.cfm: line 27
    25 : ORDER BY ethnicity ASC
    26 : </cfquery>
    27 : <cfquery name="rsHospitals" datasource="cps_amarillo">
    28 : SELECT *
    29 : FROM hospitals
    Can anyone help me with this. I have to get the modifications done in 2 weeks.
    Thank you
    Craj

    Hi Mak
             I can get the stack trace for now , but here is my complete code , may be this ll give u complete idea .........
    The index page where i am getting the first error
    <cfif IsDefined("FORM.UserName")>
      <cfset MM_redirectLoginSuccess="menu.cfm">
      <cfset MM_redirectLoginFailed="../../fail.htm">
      <cfquery  name="MM_rsUser" datasource="cps_amarillo">
        SELECT UserName,Password FROM user_data WHERE UserName=
      <cfqueryparam value="#FORM.UserName#" maxlength="8">
        AND Password=
      <cfqueryparam value="#FORM.Password#" maxlength="8">
      </cfquery>
      <cfif MM_rsUser.RecordCount NEQ 0>
        <cftry>
          <cflock scope="Session" timeout="30" type="Exclusive">
            <cfset Session.MM_Username=FORM.UserName>
            <cfset Session.MM_UserAuthorization="">
          </cflock>
          <cfif IsDefined("URL.accessdenied") AND true>
            <cfset MM_redirectLoginSuccess=URL.accessdenied>
          </cfif>
          <cflocation url="#MM_redirectLoginSuccess#" addtoken="no">
          <cfcatch type="Lock">
            <!--- code for handling timeout of cflock --->
          </cfcatch>
        </cftry>
      </cfif>
      <cflocation url="#MM_redirectLoginFailed#" addtoken="no">
      <cfelse>
      <cfset MM_LoginAction=CGI.SCRIPT_NAME>
      <cfif CGI.QUERY_STRING NEQ "">
        <cfset MM_LoginAction=MM_LoginAction & "?" & XMLFormat(CGI.QUERY_STRING)>
      </cfif>
    </cfif>
    <cfinclude template="../../../Connections/cps_amarillo.cfm">
    <cfif IsDefined("FORM." & "UserName")>
      <cfscript>
        MM_valUsername=Evaluate("FORM." & "UserName");
        MM_fldUserAuthorization="";
        MM_redirectLoginSuccess="menu.cfm";
        MM_redirectLoginFailed="../../fail.htm";
        MM_dataSource=MM_cps_amarillo_DSN;
        MM_queryFieldList = "UserName,Password";
        if (MM_fldUserAuthorization IS NOT "") MM_queryFieldList=MM_queryFieldList & "," & MM_fldUserAuthorization;
      </cfscript>
      <cfquery datasource=#MM_dataSource# name="MM_rsUser" username=#MM_cps_amarillo_USERNAME# password=#MM_cps_amarillo_PASSWORD#>
      SELECT #MM_queryFieldList# FROM user_data WHERE UserName='#Replace(MM_valUsername,"\'","
      ","ALL")#' AND Password='#FORM.Password#'
      </cfquery>
      <cfif MM_rsUser.RecordCount GREATER THAN 0>
        <cfscript>
          // username and password match - this is a valid user
          Session.MM_Username = MM_valUsername;
          if (MM_fldUserAuthorization IS NOT "") {
            Session.MM_UserAuthorization = MM_rsUser[MM_fldUserAuthorization][1];
          } else {
            Session.MM_UserAuthorization = "";
          if (IsDefined("accessdenied") AND true) {
            MM_redirectLoginSuccess = Evaluate("accessdenied");
        </cfscript>
        <cflocation url="#MM_redirectLoginSuccess#" addtoken="no">
      </cfif>
      <cflocation url="#MM_redirectLoginFailed#" addtoken="no">
      <cfelse>
      <cfscript>
        MM_LoginAction = CGI.SCRIPT_NAME;
        if (CGI.QUERY_STRING NEQ "") MM_LoginAction = MM_LoginAction & "?" & CGI.QUERY_STRING;
      </cfscript>
    </cfif>
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!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>
    <title>Amarillo Login Screen</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <script type="text/JavaScript">
    <!--
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_validateForm() { //v4.0
      var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
      for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
        if (val) { nm=val.name; if ((val=val.value)!="") {
          if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
            if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
          } else if (test!='R') { num = parseFloat(val);
            if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
            if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
              min=test.substring(8,p); max=test.substring(p+1);
              if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
        } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
      } if (errors) alert('The following error(s) occurred:\n'+errors);
      document.MM_returnValue = (errors == '');
    //-->
    </script>
    </head>
    <body>
    <div id="Layer2" style="position:absolute; left:26px; top:112px; width:683px; height:56px; z-index:2">
      <div align="right"><font size="+6"><strong><font color="#999999" size="5" face="Verdana, Arial, Helvetica, sans-serif">Seniors
        / Volunteers for Childhood Immunization<br />
        </font></strong></font><font color="#999999" size="5"><strong><font size="4" face="Verdana, Arial, Helvetica, sans-serif">Web
        Access Database</font></strong></font></div>
    </div>
    <div id="instructions" style="position:absolute; left:160px; top:182px; width:259px; height:30px; z-index:3"><font color="#999999" size="5"><strong><font size="4" face="Verdana, Arial, Helvetica, sans-serif">Please
      enter your user name and password...</font></strong></font></div>
    <div id="LayerLogin" style="position:absolute; left:427px; top:182px; width:310px; height:94px; z-index:4">
      <form ACTION="<cfoutput>#MM_loginAction#</cfoutput>" name="form1" id="form1" method="POST">
        <p><img src="../../../images/image14.gif" alt="" name="UserNameImg" width="150" height="21" border="0" id="UserNameImg" />
          <input name="UserName" type="text" id="UserName" size="15" maxlength="15" />
          <br />
          <img src="../../../images/image15.gif" alt="" name="PasswordImg" width="150" height="21" border="0" id="PasswordImg" />
          <input name="Password" type="password" id="Password" size="17" maxlength="15" />
        </p>
        <p align="right">
          <input name="Submit" type="submit" id="Submit" onclick="MM_validateForm('UserName','','R','Password','','R');return document.MM_returnValue" value="Log In!" />
        </p>
      </form>
    </div>
    </body>
    </html>
    I checked it again and again , but the code seems to work well on a local host ..... but not whn i upload it to server. Please let me know where i am goin wrong.
    Thank you

  • Problem with return a ColdFusion query object from a Java class

    Hi!
    I need to return a ColdFusion query object from a Java class
    using a JDBC result set ( java.sql.ResultSet);
    I have tried to pass my JDBC result set in to the constructor
    of the coldfusion.sql.QueryTable class with this code:
    ColdFusion code
    <cfset pra = createObject("java","QueryUtil").init()>
    <cfset newQuery = CreateObject("java",
    "coldfusion.sql.QueryTable")>
    <cfset newQuery.init( pra.getColdFusionQuery () ) >
    My java class execute a query to db and return QueryTable
    Java code (QueryUtil.java)
    import coldfusion.sql.QueryTable; // (CFusion.jar for class
    QueryTable)
    import com.allaire.cfx //(cfx.jar for class Query used from
    QueryTable)
    public class QueryUtil
    public static coldfusion.sql.QueryTable
    getColdFusionQuery(java.sql.ResultSet rs)
    return new coldfusion.sql.QueryTable(rs);
    but when i run cfm page and coldfusion server tries to
    execute : "<cfset pra =
    createObject("java","QueryUtil").init()>" this error appears:
    Object Instantiation Exception.
    An exception occurred when instantiating a java object. The
    cause of this exception was that: coldfusion/sql/QueryTable.
    If i try to execute QueryUtil.java with Eclipse all it works.
    Also I have tried to return java.sql.ResultSet directly to
    coldfusion.sql.QueryTable.init () with failure.
    Do you know some other solution?

    ok
    i print all my code
    pratica.java execute a query to db and return a querytable
    java class
    import java.util.*;
    import java.sql.*;
    import coldfusion.sql.*;
    public class Pratica {
    private HashMap my;
    private String URI,LOGIN,PWD,DRIVER;
    private Connection conn=null;
    //funzione init
    //riceve due strutture converite in hashmap
    // globals
    // dbprop
    public Pratica(HashMap globals,HashMap dbprop) {
    my = new HashMap();
    my.put("GLOBALS",globals);
    my.put("DBPROP",dbprop);
    URI = "jdbc:sqlserver://it-bra-s0016;databaseName=nmobl";
    LOGIN = "usr_dev";
    PWD = "developer";
    DRIVER = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
    try{
    // Carico il driver JDBC per la connessione con il database
    MySQL
    Class.forName(DRIVER);
    /* Connessione alla base di dati */
    conn=DriverManager.getConnection(URI,LOGIN,PWD);
    if(conn!=null) System.out.println("Connection Successful!");
    } catch (ClassNotFoundException e) {
    // Could not find the database driver
    System.out.print("\ndriver non trovato "+e.getMessage());
    System.out.flush();
    catch (SQLException e) {
    // Could not connect to the database
    System.out.print("\nConnessione fallita "+e.getMessage());
    System.out.flush();
    //funzione search
    //riceve un hash map con i filtri di ricerca
    public QueryTable search(/*HashMap arg*/) {
    ResultSet rs=null;
    Statement stmt=null;
    QueryTable ret=null;
    String query="SELECT * FROM TAN100pratiche";
    try{
    stmt = conn.createStatement();// Creo lo Statement per
    l'esecuzione della query
    rs=stmt.executeQuery(query);
    // while (rs.next()) {
    // System.out.println(rs.getString("descrizione"));
    catch (Exception e) {
    e.printStackTrace();
    try {
    ret = Pratica.RsToQueryTable(rs);
    } catch (SQLException e) {
    e.printStackTrace();
    this.close();
    return(ret);
    // ret=this.RsToQuery(rs);
    // this.close(); //chiude le connessioni,recordset e
    statament
    //retstruct CF vede HashMap come struct
    //METODO DI TEST
    public HashMap retstruct(){
    return(my);
    //conversione resultset to querytable
    private static QueryTable RsToQueryTable(ResultSet rs)
    throws SQLException{
    return new QueryTable(rs);
    //chiura resultset statament e connessione
    private void close(){
    try{
    conn.close();
    conn=null;
    catch (Exception e) {
    e.printStackTrace();
    coldfusion code
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN">
    <html>
    <head>
    <title>Test JDBC CFML Using CFScript</title>
    </head>
    <body>
    <cftry>
    <cfset glb_map =
    createObject("java","java.util.HashMap")>
    <cfset dbprop_map =
    createObject("java","java.util.HashMap")>
    <cfset glb_map.init(glb)> <!---are passed from
    another page--->
    <cfset dbprop_map.init(glb["DBPROP"])>
    <cfset pra =
    createObject("java","Pratica").init(glb_map,dbprop_map)>
    <cfset ourQuery
    =createObject("java","coldfusion.sql.QueryTable").init(pra.search())>
    <cfcatch>
    <h2>Error - info below</h2>
    <cfdump var="#cfcatch#"><cfabort>
    </cfcatch>
    </cftry>
    <h2>Success - statement dumped below</h2>
    <cfdump var="#ourQuery#">
    </body>
    </html>
    error at line <cfset pra =
    createObject("java","Pratica").init(glb_map,dbprop_map)>
    An exception occurred when instantiating a java object. The
    cause of this exception was that: coldfusion/sql/QueryTable.
    -----------------------------------------------------------------------

  • Coldfusion 11 - Web Sockets via SSL

    Help!
    I can't seem to figure out how to handle WSS (Websockets over SSL). I have a cert that has already been sent/received by verifier. I have a cert and an intermediate cert. I've been looking at documentation and from what I've gathered i need to add the certs to the "keystore". I issued a command like this ->>>  D:\CF11\jre\bin\keytool -import -v -alias myCert-cert -file myCert.cer -keystore D:\CF11\jre\lib\security\cacerts -storepass changeit <-- I see the cert is added. And if list the keystore i see the number of certs increased by one. I then enable the SSL WS, use default port (built in server.. not proxied), and point it to the keystore D:\CF11\jre\lib\security\cacerts and for pass i simply use the default changeit.... I've modified my cfcode to have the secure="true" attribute. So I think everything is setup correctly ....but...  when i goto the webpage the web socket will try to connect then simply not connect (Firebug says the connection was refused) (The code works fine removing the secure attribute and accessing via http) ... So i guess i'm not sure exactly what i should be doing. Can i use the same cert that I had created via IIS. The cert looks valid. Also further more i see nothing showing up in the log files.. I see a log called WebSocket.log but the size is 0 and nothing is being thrown in the exception log either.. I'm completely confused.

    Hi Sharma,
    I also sent you a note directly via email (see below). I am having a similar issue to Prem without resolution.
    Our CF11 server configuration:
    Windows 2012 Server R2
    IIS 8
    We have a *.balboadigital.com registered RapidSSL certificate installed on our server which resolves to https://dev.balboadigital.com on this particular development box. I've been unable to locate any online resources which would show me how to utilize this certificate for websockets within CF11. Due to this, I was happy to find your reference to try a self-signed certificate. I followed your instructions. Here is the breakdown:
    1. I generated the keystore per your instructions which created the websocket.crt file.
    2. The CF server XML was uncommented and updated to:
    <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" SSLEnabled="true"
                   maxThreads="150" scheme="https" secure="true"
                   clientAuth="false" sslProtocol="TLS"
                    keystoreFile="C:\ColdFusion11\jre\bin\websocket.crt" keystorePass="[my password]"/>
    3. I restarted the  CF11 Application Windows service.
    4. The "Use Built-In WebSocket Server" radio button was selected with PORT: 8575 for non-SLL and PORT: 8543 for SSL as defaults. The KeyStore was set to "C:/ColdFusion11/jre/bin/websocket.crt" and the KeyStore Password to "[MyPassword]" and changes posted.
    5. I restarted the  CF11 Application Windows service.
    6. I then ran a test web page: https://dev.balboadigital.com/admin/websocket/index_withssl.cfm (this is live for you to test)
    Application.cfc
    <CFCOMPONENT>
        <CFSCRIPT>
        this.name = "balboa";
        this.wschannels = [{name="phone"}];
        </CFSCRIPT>
    </CFCOMPONENT> 
    index_withSSL.cfm
    <script type="text/javascript">
        function mymessagehandler(atoken)
            if (atoken.data != null) {
                var message = ColdFusion.JSON.encode(atoken.data);
                var txt = document.getElementById("myDiv");
                txt.innerHTML += message + "<br>";
        function publishmessage()
            var msg = document.getElementById("message").value;
            mycfwebsocketobject.publish("phone.4",msg );
    </script>
    <cfwebsocket name="mycfwebsocketobject"  onmessage="mymessagehandler" subscribeto="phone" secure="true">
    "Phone" Message: <input id ="message" type="text" > <input type="button" onclick="publishmessage();" value="Publish Message"><br />
    <cfdiv id="myDiv"></cfdiv> 
    The test fails and returns the following from the Google Chrome Console:
    WebSocket connection to 'wss://dev.balboadigital.com:8543/cfusion/cfusion' failed: WebSocket opening handshake was canceled
    7. The script was copied and modified to eliminate SSL as follows: http://dev.balboadigital.com/admin/websocket/index_nossl.cfm (this is live for you to test)
    index_nossl.cfm
    <script type="text/javascript">
        function mymessagehandler(atoken)
            if (atoken.data != null) {
                var message = ColdFusion.JSON.encode(atoken.data);
                var txt = document.getElementById("myDiv");
                txt.innerHTML += message + "<br>";
        function publishmessage()
            var msg = document.getElementById("message").value;
            mycfwebsocketobject.publish("phone",msg );
    </script>
    <cfwebsocket name="mycfwebsocketobject"  onmessage="mymessagehandler" subscribeto="phone">
    "Phone" Message: <input id ="message" type="text" > <input type="button" onclick="publishmessage();" value="Publish Message"><br />
    <cfdiv id="myDiv"></cfdiv> 
    This test passes and works as expected, but no SSL.
    Please advise as our application absolutely requires that SSL is working for us.
    Thanks,
    Kevin

  • Coldfusion 10 ODBC Services

    I have a server with an installation of ColdFusion 10 however the ODBC Services did not get installed with the initial installation. Is there a simple, manual method for installing ODBC Services without uninstalling CF and then reinstalling with that option selected? I have tried running the installation over the current one but with the Configure Installer window, it has Server Configuration greyed out as it has found a current installation. It then gives an option of either EAR file or WAR file in the JEE configuration. Not sure which to choose so that's why I ask the question of a manual install.
    Thanks in advance. This is running on a Windows Server 2008 R2 64-bit box.
    Dave

    Here is the script to install ODBC services
    <cfscript>
      //login using admin
      //createObject("component","cfide.adminapi.administrator").login("administrator_password" );
      createObject("component","cfide.adminapi.administrator").login("admin");
      //instantiate datasource object
      myObj = createObject("component","cfide.adminapi.datasource");
    </cfscript>
    To Install ODBC Services:
    <cfscript>
             writeOutput("Installing ODBC Services...<br>");
             returnValue = myObj.installODBCservice();
             writeOutput("ODBC Services installed");
    </cfscript>
    Regards,
    Anit Kumar

  • Is there a limit to the size of a formatted xlsx spreadsheet created by ColdFusion?

    I'm using cfscript to create a (fairly) large xlsx spreadsheet.  As I was developing the script and the spreadsheet grew in size, I started getting the following error when attempting to open the spreadsheet:
    I narrowed down the problem to my use of the functions used to format cells (specifically, SpreadSheetFormatCell and SpreadSheetFormatCellRange).  I found that by commenting out some of those function calls, the error would disappear.
    After much trial and error, I've now come to believe that the issue isn't incorrect usage of the formatting functions, but rather some sort of internal limit I'm running into.  I threw together a simple test case to show this.  The following code (named "bigSheetTest.cfm" on my system) can be used to show the problem (at least on my machine):
    <cfscript>
    maxrows = 725;
    formatBoldCenter = StructNew();
    formatBoldCenter.bold = "true";
    formatBoldCenter.alignment = "center";
    formatBoldUnderlineCenter = StructNew();
    formatBoldUnderlineCenter.bold = "true";
    formatBoldUnderlineCenter.bottomborder = "medium";
    formatBoldUnderlineCenter.alignment = "center";
    formatNumber = StructNew();
    formatNumber.dataformat = "##,####0.00";
    formatMoney = StructNew();
    formatMoney.dataformat = "$##,####0.00";
    xls = SpreadSheetNew("Big Sheet", true);
    row = 1;
    bps = 30;
    for(bp=1;bp LE bps;bp++) {
              col = 3*bp - 2;
              SpreadSheetMergeCells(xls, row, row, col, col+2);
              SpreadSheetSetCellValue(xls, "Reporting Period #bp#", row, col);
              SpreadSheetSetCellValue(xls, "Current RG", row+1, col);
              SpreadSheetSetCellValue(xls, "Hours", row+2, col);
              SpreadSheetSetCellValue(xls, "Current OT", row+1, col+1);
              SpreadSheetSetCellValue(xls, "Hours", row+2, col+1);
              SpreadSheetSetCellValue(xls, "Current", row+1, col+2);
              SpreadSheetSetCellValue(xls, "Cost", row+2, col+2);
    lastCol = bps * 3;
    row++;
    SpreadSheetFormatCellRange(xls, formatBoldCenter, row, 1, row, lastCol);
    row++;
    SpreadSheetFormatCellRange(xls, formatBoldUnderlineCenter, row, 1, row, lastCol);
    row++;
    for(i=1;i LE maxrows;i++) { // 724 ok, 725 results in Excel error "Excel found unreadable content in 'bigSheetTest.xlsx'.  Do you want to recover the contents of this workbook?  If you trust the source of this workbook, click Yes."
              for(bp=1;bp LE bps;bp++) {
                        col = 3*bp - 2;
                        SpreadSheetSetCellValue(xls, i*col/(i+3), row, col);
                        SpreadSheetSetCellValue(xls, i*col/(i+4), row, col + 1);
                        SpreadSheetSetCellValue(xls, i*col/(i+5), row, col + 2);
                        SpreadSheetFormatCellRange(xls, formatNumber, row, col, row, col + 1);
                        SpreadSheetFormatCell(xls, formatMoney, row, col + 2);
              row++;
    SpreadSheetWrite(xls, "C:\bigSheetTest.xlsx", true);
    </cfscript>
    Notice the "maxrows" variable at the top of the code.  When set to 724 (on my machine) the resulting spreadsheet may be opened without error.  However, if I change that variable to 725, Excel complains with the error "Excel found unreadable content in 'bigSheetTest.xlsx'.  Do you want to recover the contents of this workbook?" when I try top open the spreadsheet.  Any ideas on what causes this issue and how to avoid it?
    If you are not able to recreate this problem with maxrows set to 725, try increasing the value until you get the problem.
    Here are the specifics on my environment:
    Windows 7 Enterprise (64 bit) with 8 Gig of RAM, Intel Core i7-3520M CPU @ 2.90GHz
    Microsoft Office Professional Plus 2010
    Microsoft Excel Version 14.0.7106.5001 (32-bit)
    System Information
    Server Details
    Server Product
    ColdFusion
    Version
    ColdFusion 10,285437
    Edition
    Developer  
    Operating System
    Windows 7  
    OS Version
    6.1  
    Update Level
    /C:/ColdFusion10/cfusion/lib/updates/chf10000011.jar  
    Adobe Driver Version
    4.1 (Build 0001)  
    JVM Details
    Java Version
    1.7.0_15  
    Java Vendor
    Oracle Corporation  
    Java Vendor URL
    http://java.oracle.com/  
    Java Home
    C:\ColdFusion10\jre  
    Java File Encoding
    Cp1252  
    Java Default Locale
    en_US  
    File Separator
    Path Separator
    Line Separator
    Chr(13)  
    User Name
    F1610-7X7HKX1-L$  
    User Home
    C:\  
    User Dir
    C:\ColdFusion10\cfusion\bin  
    Java VM Specification Version
    1.7  
    Java VM Specification Vendor
    Oracle Corporation  
    Java VM Specification Name
    Java Virtual Machine Specification  
    Java VM Version
    23.7-b01  
    Java VM Vendor
    Oracle Corporation  
    Java VM Name
    Java HotSpot(TM) 64-Bit Server VM  
    Java Specification Version
    1.7  
    Java Specification Vendor
    Oracle Corporation  
    Java Specification Name
    Java Platform API Specification  
    Java Class Version
    51.0  
    CF Server Java Class Path
    ;C:/ColdFusion10/cfusion/lib/updates/chf10000011.jar;  C:/ColdFusion10/cfusion/lib/ant-launcher.jar;  C:/ColdFusion10/cfusion/lib/ant.jar;  C:/ColdFusion10/cfusion/lib/antlr-2.7.6.jar;  C:/ColdFusion10/cfusion/lib/apache-solr-core.jar;  C:/ColdFusion10/cfusion/lib/apache-solr-solrj.jar;  C:/ColdFusion10/cfusion/lib/asm-all-3.1.jar;  C:/ColdFusion10/cfusion/lib/asn1.jar;  C:/ColdFusion10/cfusion/lib/axis.jar;  C:/ColdFusion10/cfusion/lib/backport-util-concurrent.jar;  C:/ColdFusion10/cfusion/lib/bcel-5.1-jnbridge.jar;  C:/ColdFusion10/cfusion/lib/bcel.jar;  C:/ColdFusion10/cfusion/lib/bcmail-jdk14-139.jar;  C:/ColdFusion10/cfusion/lib/bcprov-jdk14-139.jar;  C:/ColdFusion10/cfusion/lib/cdo.jar;  C:/ColdFusion10/cfusion/lib/cdohost.jar;  C:/ColdFusion10/cfusion/lib/certj.jar;  C:/ColdFusion10/cfusion/lib/cf-acrobat.jar;  C:/ColdFusion10/cfusion/lib/cf-assembler.jar;  C:/ColdFusion10/cfusion/lib/cf-logging.jar;  C:/ColdFusion10/cfusion/lib/cf4was.jar;  C:/ColdFusion10/cfusion/lib/cf4was_ae.jar;  C:/ColdFusion10/cfusion/lib/cfusion-req.jar;  C:/ColdFusion10/cfusion/lib/cfusion.jar;  C:/ColdFusion10/cfusion/lib/chart.jar;  C:/ColdFusion10/cfusion/lib/clibwrapper_jiio.jar;  C:/ColdFusion10/cfusion/lib/commons-beanutils-1.8.0.jar;  C:/ColdFusion10/cfusion/lib/commons-codec-1.3.jar;  C:/ColdFusion10/cfusion/lib/commons-collections-3.2.1.jar;  C:/ColdFusion10/cfusion/lib/commons-compress-1.0.jar;  C:/ColdFusion10/cfusion/lib/commons-digester-2.0.jar;  C:/ColdFusion10/cfusion/lib/commons-discovery-0.4.jar;  C:/ColdFusion10/cfusion/lib/commons-httpclient-3.1.jar;  C:/ColdFusion10/cfusion/lib/commons-lang-2.4.jar;  C:/ColdFusion10/cfusion/lib/commons-logging-1.1.1.jar;  C:/ColdFusion10/cfusion/lib/commons-logging-api-1.1.1.jar;  C:/ColdFusion10/cfusion/lib/commons-net-3.0.1.jar;  C:/ColdFusion10/cfusion/lib/commons-vfs2-2.0.jar;  C:/ColdFusion10/cfusion/lib/crystal.jar;  C:/ColdFusion10/cfusion/lib/derby.jar;  C:/ColdFusion10/cfusion/lib/derbyclient.jar;  C:/ColdFusion10/cfusion/lib/derbynet.jar;  C:/ColdFusion10/cfusion/lib/derbyrun.jar;  C:/ColdFusion10/cfusion/lib/derbytools.jar;  C:/ColdFusion10/cfusion/lib/dom4j-1.6.1.jar;  C:/ColdFusion10/cfusion/lib/dpHibernate.jar;  C:/ColdFusion10/cfusion/lib/ehcache-core-2.5.1.jar;  C:/ColdFusion10/cfusion/lib/ehcache-web-2.0.4.jar;  C:/ColdFusion10/cfusion/lib/esapi-2.0.1.jar;  C:/ColdFusion10/cfusion/lib/EWSAPI-1.1.5.jar;  C:/ColdFusion10/cfusion/lib/FCSj.jar;  C:/ColdFusion10/cfusion/lib/flashgateway.jar;  C:/ColdFusion10/cfusion/lib/flex-messaging-common.jar;  C:/ColdFusion10/cfusion/lib/flex-messaging-core.jar;  C:/ColdFusion10/cfusion/lib/flex-messaging-opt.jar;  C:/ColdFusion10/cfusion/lib/flex-messaging-proxy.jar;  C:/ColdFusion10/cfusion/lib/flex-messaging-remoting.jar;  C:/ColdFusion10/cfusion/lib/flex-rds-server.jar;  C:/ColdFusion10/cfusion/lib/geronimo-stax-api_1.0_spec-1.0.1.jar;  C:/ColdFusion10/cfusion/lib/hibernate3.jar;  C:/ColdFusion10/cfusion/lib/httpclient-4.1.1.jar;  C:/ColdFusion10/cfusion/lib/httpclient-cache-4.1.1.jar;  C:/ColdFusion10/cfusion/lib/httpclient.jar;  C:/ColdFusion10/cfusion/lib/httpcore_4.1.2.jar;  C:/ColdFusion10/cfusion/lib/httpmime-4.1.1.jar;  C:/ColdFusion10/cfusion/lib/ib6addonpatch.jar;  C:/ColdFusion10/cfusion/lib/ib6core.jar;  C:/ColdFusion10/cfusion/lib/ib6http.jar;  C:/ColdFusion10/cfusion/lib/ib6swing.jar;  C:/ColdFusion10/cfusion/lib/ib6util.jar;  C:/ColdFusion10/cfusion/lib/im.jar;  C:/ColdFusion10/cfusion/lib/iText.jar;  C:/ColdFusion10/cfusion/lib/iTextAsian.jar;  C:/ColdFusion10/cfusion/lib/izmado.jar;  C:/ColdFusion10/cfusion/lib/jai_codec.jar;  C:/ColdFusion10/cfusion/lib/jai_core.jar;  C:/ColdFusion10/cfusion/lib/jai_imageio.jar;  C:/ColdFusion10/cfusion/lib/jakarta-oro-2.0.6.jar;  C:/ColdFusion10/cfusion/lib/jakarta-slide-webdavlib-2.1.jar;  C:/ColdFusion10/cfusion/lib/java-xmlbuilder-0.4.jar;  C:/ColdFusion10/cfusion/lib/javasysmon-0.3.3.jar;  C:/ColdFusion10/cfusion/lib/jax-qname.jar;  C:/ColdFusion10/cfusion/lib/jaxb-api.jar;  C:/ColdFusion10/cfusion/lib/jaxb-impl.jar;  C:/ColdFusion10/cfusion/lib/jaxb-libs.jar;  C:/ColdFusion10/cfusion/lib/jaxb-xjc.jar;  C:/ColdFusion10/cfusion/lib/jaxrpc.jar;  C:/ColdFusion10/cfusion/lib/jcifs-1.3.15.jar;  C:/ColdFusion10/cfusion/lib/jdom.jar;  C:/ColdFusion10/cfusion/lib/jeb.jar;  C:/ColdFusion10/cfusion/lib/jersey-core.jar;  C:/ColdFusion10/cfusion/lib/jersey-server.jar;  C:/ColdFusion10/cfusion/lib/jersey-servlet.jar;  C:/ColdFusion10/cfusion/lib/jets3t-0.8.1.jar;  C:/ColdFusion10/cfusion/lib/jetty-continuation-7.0.0.v20091005.jar;  C:/ColdFusion10/cfusion/lib/jetty-http-7.0.0.v20091005.jar;  C:/ColdFusion10/cfusion/lib/jetty-io-7.0.0.v20091005.jar;  C:/ColdFusion10/cfusion/lib/jetty-security-7.0.0.v20091005.jar;  C:/ColdFusion10/cfusion/lib/jetty-server-7.0.0.v20091005.jar;  C:/ColdFusion10/cfusion/lib/jetty-servlet-7.0.0.v20091005.jar;  C:/ColdFusion10/cfusion/lib/jetty-servlets-7.0.0.v20091005.jar;  C:/ColdFusion10/cfusion/lib/jetty-util-7.0.0.v20091005.jar;  C:/ColdFusion10/cfusion/lib/jetty-xml-7.0.0.v20091005.jar;  C:/ColdFusion10/cfusion/lib/jintegra.jar;  C:/ColdFusion10/cfusion/lib/jnbcore.jar;  C:/ColdFusion10/cfusion/lib/jpedal.jar;  C:/ColdFusion10/cfusion/lib/js.jar;  C:/ColdFusion10/cfusion/lib/jsch-0.1.44m.jar;  C:/ColdFusion10/cfusion/lib/jsr107cache.jar;  C:/ColdFusion10/cfusion/lib/jsr311-api-1.1.1.jar;  C:/ColdFusion10/cfusion/lib/jta.jar;  C:/ColdFusion10/cfusion/lib/jutf7-0.9.0.jar;  C:/ColdFusion10/cfusion/lib/ldap.jar;  C:/ColdFusion10/cfusion/lib/ldapbp.jar;  C:/ColdFusion10/cfusion/lib/log4j-1.2.15.jar;  C:/ColdFusion10/cfusion/lib/lucene-analyzers-3.4.0.jar;  C:/ColdFusion10/cfusion/lib/lucene-core-3.4.0.jar;  C:/ColdFusion10/cfusion/lib/lucene-highlighter-3.4.0.jar;  C:/ColdFusion10/cfusion/lib/lucene-memory-3.4.0.jar;  C:/ColdFusion10/cfusion/lib/lucenedemo.jar;  C:/ColdFusion10/cfusion/lib/macromedia_drivers.jar;  C:/ColdFusion10/cfusion/lib/mail.jar;  C:/ColdFusion10/cfusion/lib/metadata-extractor-2.4.0-beta-1.jar;  C:/ColdFusion10/cfusion/lib/mlibwrapper_jai.jar;  C:/ColdFusion10/cfusion/lib/msapps.jar;  C:/ColdFusion10/cfusion/lib/mysql-connector-java-commercial-5.1.17-bin.jar;  C:/ColdFusion10/cfusion/lib/namespace.jar;  C:/ColdFusion10/cfusion/lib/nekohtml.jar;  C:/ColdFusion10/cfusion/lib/netty-3.2.5.Final.jar;  C:/ColdFusion10/cfusion/lib/ooxml-schemas.jar;  C:/ColdFusion10/cfusion/lib/pdfencryption.jar;  C:/ColdFusion10/cfusion/lib/poi-contrib.jar;  C:/ColdFusion10/cfusion/lib/poi-ooxml-schemas.jar;  C:/ColdFusion10/cfusion/lib/poi-ooxml.jar;  C:/ColdFusion10/cfusion/lib/poi-scratchpad.jar;  C:/ColdFusion10/cfusion/lib/poi.jar;  C:/ColdFusion10/cfusion/lib/portlet_20.jar;  C:/ColdFusion10/cfusion/lib/postgresql-8.3-604.jdbc3.jar;  C:/ColdFusion10/cfusion/lib/quartz.jar;  C:/ColdFusion10/cfusion/lib/relaxngDatatype.jar;  C:/ColdFusion10/cfusion/lib/ri_generic.jar;  C:/ColdFusion10/cfusion/lib/rome-cf.jar;  C:/ColdFusion10/cfusion/lib/saaj.jar;  C:/ColdFusion10/cfusion/lib/saxon9he.jar;  C:/ColdFusion10/cfusion/lib/serializer.jar;  C:/ColdFusion10/cfusion/lib/slf4j-api-1.5.6.jar;  C:/ColdFusion10/cfusion/lib/slf4j-log4j12-1.5.6.jar;  C:/ColdFusion10/cfusion/lib/smack.jar;  C:/ColdFusion10/cfusion/lib/smpp.jar;  C:/ColdFusion10/cfusion/lib/STComm.jar;  C:/ColdFusion10/cfusion/lib/tagsoup-1.2.jar;  C:/ColdFusion10/cfusion/lib/tika-core-0.6.jar;  C:/ColdFusion10/cfusion/lib/tika-parsers-0.6.jar;  C:/ColdFusion10/cfusion/lib/tools.jar;  C:/ColdFusion10/cfusion/lib/tt-bytecode.jar;  C:/ColdFusion10/cfusion/lib/wc50.jar;  C:/ColdFusion10/cfusion/lib/webchartsJava2D.jar;  C:/ColdFusion10/cfusion/lib/wsdl4j-1.6.2.jar;  C:/ColdFusion10/cfusion/lib/wsrp4j-commons-0.5-SNAPSHOT.jar;  C:/ColdFusion10/cfusion/lib/wsrp4j-producer.jar;  C:/ColdFusion10/cfusion/lib/xalan.jar;  C:/ColdFusion10/cfusion/lib/xercesImpl.jar;  C:/ColdFusion10/cfusion/lib/xml-apis.jar;  C:/ColdFusion10/cfusion/lib/xmlbeans-2.3.0.jar;  C:/ColdFusion10/cfusion/lib/xmpcore.jar;  C:/ColdFusion10/cfusion/lib/xsdlib.jar;  C:/ColdFusion10/cfusion/lib/;  C:/ColdFusion10/cfusion/lib/axis2/axiom-api-1.2.13.jar;  C:/ColdFusion10/cfusion/lib/axis2/axiom-dom-1.2.13.jar;  C:/ColdFusion10/cfusion/lib/axis2/axiom-impl-1.2.13.jar;  C:/ColdFusion10/cfusion/lib/axis2/axis2-adb-1.7.0.jar;  C:/ColdFusion10/cfusion/lib/axis2/axis2-adb-codegen-1.7.0.jar;  C:/ColdFusion10/cfusion/lib/axis2/axis2-codegen-1.7.0.jar;  C:/ColdFusion10/cfusion/lib/axis2/axis2-jaxws-1.7.0.jar;  C:/ColdFusion10/cfusion/lib/axis2/axis2-kernel-1.7.0.jar;  C:/ColdFusion10/cfusion/lib/axis2/axis2-transport-http-1.7.0.jar;  C:/ColdFusion10/cfusion/lib/axis2/axis2-transport-local-1.7.0.jar;  C:/ColdFusion10/cfusion/lib/axis2/commons-fileupload-1.2.jar;  C:/ColdFusion10/cfusion/lib/axis2/commons-io-1.4.jar;  C:/ColdFusion10/cfusion/lib/axis2/geronimo-ws-metadata_2.0_spec-1.1.2.jar;  C:/ColdFusion10/cfusion/lib/axis2/httpcore-4.0.jar;  C:/ColdFusion10/cfusion/lib/axis2/neethi-3.0.2.jar;  C:/ColdFusion10/cfusion/lib/axis2/woden-api-1.0.jar;  C:/ColdFusion10/cfusion/lib/axis2/woden-impl-commons-1.0.jar;  C:/ColdFusion10/cfusion/lib/axis2/woden-impl-dom-1.0.jar;  C:/ColdFusion10/cfusion/lib/axis2/wsdl4j-1.6.2.jar;  C:/ColdFusion10/cfusion/lib/axis2/wstx-asl-3.2.9.jar;  C:/ColdFusion10/cfusion/lib/axis2/XmlSchema-1.4.8.jar;  C:/ColdFusion10/cfusion/lib/axis2/;  C:/ColdFusion10/cfusion/gateway/lib/examples.jar;  C:/ColdFusion10/cfusion/gateway/lib/;  C:/ColdFusion10/cfusion/wwwroot/WEB-INF/flex/jars/cfgatewayadapter.jar;  C:/ColdFusion10/cfusion/wwwroot/WEB-INF/flex/jars/concurrent.jar;  C:/ColdFusion10/cfusion/wwwroot/WEB-INF/flex/jars/;  C:/ColdFusion10/cfusion/wwwroot/WEB-INF/cfform/jars/batik-awt-util.jar;  C:/ColdFusion10/cfusion/wwwroot/WEB-INF/cfform/jars/batik-css.jar;  C:/ColdFusion10/cfusion/wwwroot/WEB-INF/cfform/jars/batik-ext.jar;  C:/ColdFusion10/cfusion/wwwroot/WEB-INF/cfform/jars/batik-transcoder.jar;  C:/ColdFusion10/cfusion/wwwroot/WEB-INF/cfform/jars/batik-util.jar;  C:/ColdFusion10/cfusion/wwwroot/WEB-INF/cfform/jars/commons-discovery.jar;  C:/ColdFusion10/cfusion/wwwroot/WEB-INF/cfform/jars/commons-logging.jar;  C:/ColdFusion10/cfusion/wwwroot/WEB-INF/cfform/jars/concurrent.jar;  C:/ColdFusion10/cfusion/wwwroot/WEB-INF/cfform/jars/flex.jar;  C:/ColdFusion10/cfusion/wwwroot/WEB-INF/cfform/jars/jakarta-oro-2.0.7.jar;  C:/ColdFusion10/cfusion/wwwroot/WEB-INF/cfform/jars/jcert.jar;  C:/ColdFusion10/cfusion/wwwroot/WEB-INF/cfform/jars/jnet.jar;  C:/ColdFusion10/cfusion/wwwroot/WEB-INF/cfform/jars/jsse.jar;  C:/ColdFusion10/cfusion/wwwroot/WEB-INF/cfform/jars/oscache.jar;  C:/ColdFusion10/cfusion/wwwroot/WEB-INF/cfform/jars/;  
    Java Class Path
    C:\\ColdFusion10\\cfusion\lib\oosdk\lib;
    C:\\ColdFusion10\\cfusion\lib\oosdk\classes;
    C:\ColdFusion10\cfusion\bin\..\runtime\bin\tomcat-juli.jar;
    C:\ColdFusion10\cfusion\bin\cf-bootstrap.jar  
    Java Ext Dirs
    C:\ColdFusion10\jre\lib\ext;C:\Windows\Sun\Java\lib\ext  

    Well, I checked my code and I'm at a loss.  My code uses SpreadSheetFormatCellRange to format the values in columns 1 and 2, 4 and 5, etc. using the "formatNumber" format structure:
    SpreadSheetFormatCellRange(xls, formatNumber, row, col, row, col + 1);
    I'd expect (at worst) that a single style would be defined and then applied to columns 1 and 2, or (at best) a single style would be defined for all cells that use the "formatNumber" format.  However, check out the XML for row 4 of my output spreadsheet:
        <row r="4">
          <c r="A4" t="n" s="181">
            <v>0.25</v>
          </c>
          <c r="B4" t="n" s="182">
            <v>0.2</v>
          </c>
          <c r="C4" t="n" s="183">
            <v>0.166666666667</v>
          </c>
          <c r="D4" t="n" s="184">
            <v>1.0</v>
          </c>
          <c r="E4" t="n" s="185">
            <v>0.8</v>
          </c>
          <c r="F4" t="n" s="186">
            <v>0.666666666667</v>
          </c>
          <c r="G4" t="n" s="187">
            <v>1.75</v>
          </c>
          <c r="H4" t="n" s="188">
            <v>1.4</v>
          </c>
          <c r="I4" t="n" s="189">
            <v>1.16666666667</v>
          </c>
          <c r="J4" t="n" s="190">
            <v>2.5</v>
          </c>
          <c r="K4" t="n" s="191">
            <v>2.0</v>
          </c>
          <c r="L4" t="n" s="192">
            <v>1.66666666667</v>
          </c>
          <c r="M4" t="n" s="193">
            <v>3.25</v>
          </c>
          <c r="N4" t="n" s="194">
            <v>2.6</v>
          </c>
          <c r="O4" t="n" s="195">
            <v>2.16666666667</v>
          </c>
          <c r="P4" t="n" s="196">
            <v>4.0</v>
          </c>
          <c r="Q4" t="n" s="197">
            <v>3.2</v>
          </c>
          <c r="R4" t="n" s="198">
            <v>2.66666666667</v>
          </c>
          <c r="S4" t="n" s="199">
            <v>4.75</v>
          </c>
          <c r="T4" t="n" s="200">
            <v>3.8</v>
          </c>
          <c r="U4" t="n" s="201">
            <v>3.16666666667</v>
          </c>
          <c r="V4" t="n" s="202">
            <v>5.5</v>
          </c>
          <c r="W4" t="n" s="203">
            <v>4.4</v>
          </c>
          <c r="X4" t="n" s="204">
            <v>3.66666666667</v>
          </c>
          <c r="Y4" t="n" s="205">
            <v>6.25</v>
          </c>
          <c r="Z4" t="n" s="206">
            <v>5.0</v>
          </c>
          <c r="AA4" t="n" s="207">
            <v>4.16666666667</v>
          </c>
          <c r="AB4" t="n" s="208">
            <v>7.0</v>
          </c>
          <c r="AC4" t="n" s="209">
            <v>5.6</v>
          </c>
          <c r="AD4" t="n" s="210">
            <v>4.66666666667</v>
          </c>
          <c r="AE4" t="n" s="211">
            <v>7.75</v>
          </c>
          <c r="AF4" t="n" s="212">
            <v>6.2</v>
          </c>
          <c r="AG4" t="n" s="213">
            <v>5.16666666667</v>
          </c>
          <c r="AH4" t="n" s="214">
            <v>8.5</v>
          </c>
          <c r="AI4" t="n" s="215">
            <v>6.8</v>
          </c>
          <c r="AJ4" t="n" s="216">
            <v>5.66666666667</v>
          </c>
          <c r="AK4" t="n" s="217">
            <v>9.25</v>
          </c>
          <c r="AL4" t="n" s="218">
            <v>7.4</v>
          </c>
          <c r="AM4" t="n" s="219">
            <v>6.16666666667</v>
          </c>
          <c r="AN4" t="n" s="220">
            <v>10.0</v>
          </c>
          <c r="AO4" t="n" s="221">
            <v>8.0</v>
          </c>
          <c r="AP4" t="n" s="222">
            <v>6.66666666667</v>
          </c>
          <c r="AQ4" t="n" s="223">
            <v>10.75</v>
          </c>
          <c r="AR4" t="n" s="224">
            <v>8.6</v>
          </c>
          <c r="AS4" t="n" s="225">
            <v>7.16666666667</v>
          </c>
          <c r="AT4" t="n" s="226">
            <v>11.5</v>
          </c>
          <c r="AU4" t="n" s="227">
            <v>9.2</v>
          </c>
          <c r="AV4" t="n" s="228">
            <v>7.66666666667</v>
          </c>
          <c r="AW4" t="n" s="229">
            <v>12.25</v>
          </c>
          <c r="AX4" t="n" s="230">
            <v>9.8</v>
          </c>
          <c r="AY4" t="n" s="231">
            <v>8.16666666667</v>
          </c>
          <c r="AZ4" t="n" s="232">
            <v>13.0</v>
          </c>
          <c r="BA4" t="n" s="233">
            <v>10.4</v>
          </c>
          <c r="BB4" t="n" s="234">
            <v>8.66666666667</v>
          </c>
          <c r="BC4" t="n" s="235">
            <v>13.75</v>
          </c>
          <c r="BD4" t="n" s="236">
            <v>11.0</v>
          </c>
          <c r="BE4" t="n" s="237">
            <v>9.16666666667</v>
          </c>
          <c r="BF4" t="n" s="238">
            <v>14.5</v>
          </c>
          <c r="BG4" t="n" s="239">
            <v>11.6</v>
          </c>
          <c r="BH4" t="n" s="240">
            <v>9.66666666667</v>
          </c>
          <c r="BI4" t="n" s="241">
            <v>15.25</v>
          </c>
          <c r="BJ4" t="n" s="242">
            <v>12.2</v>
          </c>
          <c r="BK4" t="n" s="243">
            <v>10.1666666667</v>
          </c>
          <c r="BL4" t="n" s="244">
            <v>16.0</v>
          </c>
          <c r="BM4" t="n" s="245">
            <v>12.8</v>
          </c>
          <c r="BN4" t="n" s="246">
            <v>10.6666666667</v>
          </c>
          <c r="BO4" t="n" s="247">
            <v>16.75</v>
          </c>
          <c r="BP4" t="n" s="248">
            <v>13.4</v>
          </c>
          <c r="BQ4" t="n" s="249">
            <v>11.1666666667</v>
          </c>
          <c r="BR4" t="n" s="250">
            <v>17.5</v>
          </c>
          <c r="BS4" t="n" s="251">
            <v>14.0</v>
          </c>
          <c r="BT4" t="n" s="252">
            <v>11.6666666667</v>
          </c>
          <c r="BU4" t="n" s="253">
            <v>18.25</v>
          </c>
          <c r="BV4" t="n" s="254">
            <v>14.6</v>
          </c>
          <c r="BW4" t="n" s="255">
            <v>12.1666666667</v>
          </c>
          <c r="BX4" t="n" s="256">
            <v>19.0</v>
          </c>
          <c r="BY4" t="n" s="257">
            <v>15.2</v>
          </c>
          <c r="BZ4" t="n" s="258">
            <v>12.6666666667</v>
          </c>
          <c r="CA4" t="n" s="259">
            <v>19.75</v>
          </c>
          <c r="CB4" t="n" s="260">
            <v>15.8</v>
          </c>
          <c r="CC4" t="n" s="261">
            <v>13.1666666667</v>
          </c>
          <c r="CD4" t="n" s="262">
            <v>20.5</v>
          </c>
          <c r="CE4" t="n" s="263">
            <v>16.4</v>
          </c>
          <c r="CF4" t="n" s="264">
            <v>13.6666666667</v>
          </c>
          <c r="CG4" t="n" s="265">
            <v>21.25</v>
          </c>
          <c r="CH4" t="n" s="266">
            <v>17.0</v>
          </c>
          <c r="CI4" t="n" s="267">
            <v>14.1666666667</v>
          </c>
          <c r="CJ4" t="n" s="268">
            <v>22.0</v>
          </c>
          <c r="CK4" t="n" s="269">
            <v>17.6</v>
          </c>
          <c r="CL4" t="n" s="270">
            <v>14.6666666667</v>
          </c>
        </row>
    As you can see, separate styles are being created and assigned to EVERY CELL in my sheet, even those cells formatted using SpreadSheetFormatCellRange.  I'm fairly confident now that I'm hitting the Excel limit for the number of styles.  How can I define a style up front and then apply it?  I really only have four styles, but the code is generating over 64,000!

  • Upload with uploadify or swfupload with coldfusion?

    Hi,
    I need an uplaod script with a progess bar. The two I am looking at are http://www.uploadify.com/ and http://swfupload.org/.
    Has anyone got these working for coldfusion or have an alternative?
    This is what I had in uploadify
    <cfif structkeyexists(form,"Filedata")>
    <cfscript>
    thisPath = ExpandPath("*.*");
    thisDirectory = GetDirectoryFromPath(thisPath);
    FileDir = thisDirectory & "uploads";
    </cfscript>
    <cfif not DirectoryExists(FileDir)>
    <cfdirectory action="create" directory="#FileDir#" mode="777" >
    </cfif>
    <cffile action="upload" filefield="fileData" destination="#FileDir#" nameconflict="makeunique" mode="777">
    </cfif>
    this is the php
    <?php
    // JQuery File Upload Plugin v1.4.1 by RonnieSan - (C)2009 Ronnie Garcia
    if (!empty($_FILES)) {
        $tempFile = $_FILES['Filedata']['tmp_name'];
        $targetPath = $_SERVER['DOCUMENT_ROOT'] . $_GET['folder'] . '/';
        $targetFile =  str_replace('//','/',$targetPath) . $_FILES['Filedata']['name'];
        // Uncomment the following line if you want to make the directory if it doesn't exist
        // mkdir(str_replace('//','/',$targetPath), 0755, true);
        move_uploaded_file($tempFile,$targetFile);
    echo '1';
    ?>

    hi.
    did u find a way to upload files with flex , java and
    database ?
    i need it but i can't find how.
    plz if u can help me it will be great.
    thx

  • Java.awt.Toolkit - Coldfusion - HELP

    Greetings.
    I am having a hard time with the following code:
    <cfobject action="create" type="java" class="java.awt.Toolkit" name="fileObj">
    <cfscript>
    img = fileObj.getDefaultToolkit().getImage("images/products/39321.jpg");
    width = img.getwidth();
    height = img.getheight();
    </cfscript>
    <cfoutput>#height#</cfoutput>
    I keep getting the following error:
    java.lang.NoClassDefFoundError
    My version of Java is 1.4.2. I'm running Redhat Linux 4.0. Coldfusion MX 6.1.
    I know this isn't a Coldfusion forum, but I really need some help here.
    I'm new to Java technologies, so any help will be greatly appreciated.

    can ColdFusion load Java objects?
    Presuming that it can, then ColdFusion probably needs some configuration to tell it the Java directory or where the class files are (JavaHome/jre/lib/rt.jar)

  • Coldfusion session variables being lost

    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.

    Here is the diagnostic error information. Where you see [omitted] i've changed the URL for the purposes of displaying this detail in a public forum:
    struct
    Browser
    Mozilla/4.0   (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR   2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0;   InfoPath.2; .NET4.0C; .NET4.0E; MS-RTC LM 8)
    DateTime
    {ts   '2011-02-21 20:59:21'}
    Diagnostics
    Element   EMPLOYEENUMBER is undefined in SESSION. <br>The error occurred on line   162.
    GeneratedContent
    <!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">   <!-- DW6 --> <head> <!-- Copyright 2005 Macromedia, Inc. All   rights reserved. --> <title>My Home</title> <meta   http-equiv="Content-Type" content="text/html;   charset=iso-8859-1" /> <link rel="stylesheet"   href="mm_training.css" type="text/css" /> <link   rel="stylesheet" type="text/css" href="../template/organized.css">   </head> <body bgcolor="#ffffff"   onLoad="onInit()">
    HTTPReferer
    http://[omitted]/mypage/myhome.cfm?CFID=101686&CFTOKEN=53097237
    Mailto
    [empty   string]
    Message
    Element   EMPLOYEENUMBER is undefined in SESSION.
    QueryString
    [empty   string]
    RemoteAddress
    10.x.x.x   [remote address omitted for purposes of this forum]
    RootCause
    struct
    Detail
    [empty     string]
    ErrNumber
    0
    Message
    Element     EMPLOYEENUMBER is undefined in SESSION.
    Resolvedname
    SESSION
    StackTrace
    coldfusion.runtime.UndefinedElementException:     Element EMPLOYEENUMBER is undefined in SESSION. at     coldfusion.runtime.CfJspPage.resolveCanonicalName(CfJspPage.java:1659) at     coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1612) at     coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1747)     at     coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1740)     at cfmyhome2ecfm1641837815._factor14(D:\[path_omitted]\mypage\myhome.cfm:162)     at cfmyhome2ecfm1641837815.runPage(D:\[path_omitted]\mypage\myhome.cfm:1)     at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196) at     coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370) at     coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at     coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:273) at     coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)     at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at     coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at     coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at     coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)     at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at     coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at     coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at     coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at     coldfusion.CfmServlet.service(CfmServlet.java:175) at     coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at     jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at     coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )     at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)     at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at     jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)     at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at     jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)     at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)     at     jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)     at     jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)     at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)     at     jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)     at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    TagContext
    array
    1
    struct
    COLUMN
    0
    ID
    LINE
    162
    RAW_TRACE
    at         cfmyhome2ecfm1641837815._factor14(D:\[path_omitted]\mypage\myhome.cfm:162)
    TEMPLATE
    D:\[path_omitted]\mypage\myhome.cfm
    TYPE
    CFML
    2
    struct
    COLUMN
    0
    ID
    CF_MYHOME
    LINE
    1
    RAW_TRACE
    at         cfmyhome2ecfm1641837815.runPage(D:\[path_omitted]\mypage\myhome.cfm:1)
    TEMPLATE
    D:\[path_omitted]\mypage\myhome.cfm
    TYPE
    CFML
    Type
    Expression
    element
    EMPLOYEENUMBER
    objectType
    object of java.lang.Class
    Class       Name
    java.lang.Class
    Methods
    Method
    Return Type
    asSubclass(java.lang.Class)
    java.lang.Class
    cast(java.lang.Object)
    java.lang.Object
    desiredAssertionStatus()
    boolean
    forName(java.lang.String,         boolean, java.lang.ClassLoader)
    java.lang.Class
    forName(java.lang.String)
    java.lang.Class
    getAnnotation(java.lang.Class)
    java.lang.annotation.Annotation
    getAnnotations()
    java.lang.annotation.Annotation[]
    getCanonicalName()
    java.lang.String
    getClassLoader()
    java.lang.ClassLoader
    getClasses()
    java.lang.Class[]
    getComponentType()
    java.lang.Class
    getConstructor(java.lang.Class[])
    java.lang.reflect.Constructor
    getConstructors()
    java.lang.reflect.Constructor[]
    getDeclaredAnnotations()
    java.lang.annotation.Annotation[]
    getDeclaredClasses()
    java.lang.Class[]
    getDeclaredConstructor(java.lang.Class[])
    java.lang.reflect.Constructor
    getDeclaredConstructors()
    java.lang.reflect.Constructor[]
    getDeclaredField(java.lang.String)
    java.lang.reflect.Field
    getDeclaredFields()
    java.lang.reflect.Field[]
    getDeclaredMethod(java.lang.String,         java.lang.Class[])
    java.lang.reflect.Method
    getDeclaredMethods()
    java.lang.reflect.Method[]
    getDeclaringClass()
    java.lang.Class
    getEnclosingClass()
    java.lang.Class
    getEnclosingConstructor()
    java.lang.reflect.Constructor
    getEnclosingMethod()
    java.lang.reflect.Method
    getEnumConstants()
    java.lang.Object[]
    getField(java.lang.String)
    java.lang.reflect.Field
    getFields()
    java.lang.reflect.Field[]
    getGenericInterfaces()
    java.lang.reflect.Type[]
    getGenericSuperclass()
    java.lang.reflect.Type
    getInterfaces()
    java.lang.Class[]
    getMethod(java.lang.String,         java.lang.Class[])
    java.lang.reflect.Method
    getMethods()
    java.lang.reflect.Method[]
    getModifiers()
    int
    getName()
    java.lang.String
    getPackage()
    java.lang.Package
    getProtectionDomain()
    java.security.ProtectionDomain
    getResource(java.lang.String)
    java.net.URL
    getResourceAsStream(java.lang.String)
    java.io.InputStream
    getSigners()
    java.lang.Object[]
    getSimpleName()
    java.lang.String
    getSuperclass()
    java.lang.Class
    getTypeParameters()
    java.lang.reflect.TypeVariable[]
    isAnnotation()
    boolean
    isAnnotationPresent(java.lang.Class)
    boolean
    isAnonymousClass()
    boolean
    isArray()
    boolean
    isAssignableFrom(java.lang.Class)
    boolean
    isEnum()
    boolean
    isInstance(java.lang.Object)
    boolean
    isInterface()
    boolean
    isLocalClass()
    boolean
    isMemberClass()
    boolean
    isPrimitive()
    boolean
    isSynthetic()
    boolean
    newInstance()
    java.lang.Object
    toString()
    java.lang.String
    StackTrace
    coldfusion.runtime.UndefinedElementException:   Element EMPLOYEENUMBER is undefined in SESSION. at coldfusion.runtime.CfJspPage.resolveCanonicalName(CfJspPage.java:1659)   at coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1612) at   coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1747) at   coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1740) at   cfmyhome2ecfm1641837815._factor14(D:\[path_omitted]\mypage\myhome.cfm:162) at   cfmyhome2ecfm1641837815.runPage(D:\[path_omitted]\mypage\myhome.cfm:1) at   coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)   at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at   coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:273) at   coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)   at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at   coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at   coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at   coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)   at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at   coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at   coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at   coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at   coldfusion.CfmServlet.service(CfmServlet.java:175) at   coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at   jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at   coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )   at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at   jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101)   at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at   jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at   jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at   jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at   jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)   at   jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)   at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)   at   jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)   at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    TagContext
    array
    1
    struct
    COLUMN
    0
    ID
    LINE
    162
    RAW_TRACE
    at       cfmyhome2ecfm1641837815._factor14(D:\[path_omitted]\mypage\myhome.cfm:162)
    TEMPLATE
    D:\[path_omitted]\mypage\myhome.cfm
    TYPE
    CFML
    2
    struct
    COLUMN
    0
    ID
    CF_MYHOME
    LINE
    1
    RAW_TRACE
    at       cfmyhome2ecfm1641837815.runPage(D:\[path_omitted]\mypage\myhome.cfm:1)
    TEMPLATE
    D:\[path_omitted]\mypage\myhome.cfm
    TYPE
    CFML
    Template
    /[omitted]/mypage/myhome.cfm
    Type
    coldfusion.runtime.CfErrorWrapper

Maybe you are looking for

  • 8i client installation on Vista 64 bit?

    Hello all, We are trying to install a 8.1.7 Client on the new Windows Vista 64 bit environment. The database itself is 8.1.7, runs on a HP-UX 32-bit server, and the user clients currently have 8.1.7 client installed on Windows XP PC's. When trying to

  • Report Painter Schedule Run and Output File

    Hi, I want to set a schedule job auto execute by Report Painter reports and output the file in the server. What can I do? Thank you! Steven

  • Centos VM VSS errors

    Im finding below error with regards to Centos 6.4 VM  (Vmhost windows 2012 R2) Hyper-V failed to generate VSS snapshot set for virtual machine 'testcntos': The request is not supported. (0x80070032). VSS snapshot set generation can fail if backup ope

  • Sending mail on guest network

    Cannot send mail on wireless guest network. Initially successful, then deteriorated to display pane saying; " cannot send using server...." "smpt.mac.com cannot be contacted on default ports". So it worked at startup and then began to return the abov

  • ?? CS6 hangs from LR4.0 & LR4.1 never opens (hangs)

    I've identifed two separate problems. As background, in an earlier post I had suspected a virus had corrupted my mac (Lion OS) and was affecting LR4 and CS5 & 6. With a lot of help from a supervising Apple tech advisor, I found that my mac didn't hav