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

Is this how to send json data?

$
0
0

I'm trying to send JSON data via CFHTTP. Is this all I need or do I need to do anything else? I want make sure I'm not missing anything.

 

<cfhttp url="https://app.kb.com/api/head/comment.json" method="post" timeout="15" throwonerror="true" >  <cfhttpparam type="url" name="_authbykey" value="56ec1f0123131c78636142d6">   <cfhttpparam type="url" name="project_id" value="55c4ffd123131c527e294fe6">   <cfhttpparam type="url" name="article_id" value="#artID#">  <cfhttpparam type="url" name="content" value="#form.message#" />   <cfhttpparam type="url" name="public_name" value="#form.name#" />   <cfhttpparam type="url" name="public_email" value="#form.mailfrom#" />         </cfhttp>

Thank you!


What is the best way to learn ColdFusion

$
0
0

Is there a semester class/course one can take??   The CFWACK book is old and there is little if any support if you get stuck.  

Create DataSouce using API

$
0
0

I want to create DataSource using ColdFusion Administrator API. All my credential are correct that's for sure. I have followed this tutorial and also Adobe Tutorial. I don't know what am doing wrong in here.

 

<cfset adminAPI = createObject( 'component', 'cfide.adminapi.administrator' ) />

<cfset adminAPI.login( 'CFAdminPass', 'admin' ) />

<cfscript>

  dsnAPI = createObject( 'component', 'cfide.adminapi.datasource' );

  dsn = {

  driver = 'mysql5',

  name = 'cfdb',

  host = 'localhost',

  port = '3306',

  database = 'cfdb',

  username = 'root',

  password = 'mysqlpass'

  };

  // Finally, we save the new datasource

  dsnAPI.setMySQL5( argumentCollection = dsn );

</cfscript>

Could not find the ColdFusion component or interface secure.common.getreqstatus

$
0
0

I had a similar problem about a year ago (Re: It used to work and now it doesn't).   The quick and dirty solution was to create the secure.common directory in the calling directory.   This time, that doesn't work.  I am at a loss as to what to do.  I am running CF10 on a Windows Server 2008.

Preliminary experience

$
0
0

Do I need to have any programming experience before working with Cold Fusion? If yes, what programming languages do I have to know? Thank you!)

ColdFusion 11 and Solr

$
0
0

I just installed ColdFusion 11. I am pretty sure I selected the option to install the addons like Solr, but when I am in the coldfusion administrator under Data & Services, I click ColdFusion Collections and I get nothing. It won't go to the page at all. If I click on Solr Services a page will come up. If I click on ColdFusion collections and then restart the coldfusion addons I get a page that comes up saying

"Unable to retrieve collections from the Search Services.Ensure that you have installed ColdFusion Search Service and it is running."

I am assuming it means it isn't installed.

 

So I went to Adobe - ColdFusion Support Center : More Downloads and downloaded/installed the Windows Add-on Services Standalone Installer. I didn't change any of the settings or folders and installed it. I restarted the server. I logged back into the coldfusion administrator and I see the same thing. Nothing changed. When I go to view the file folders I have c:coldfuion11 and a c:coldfusionAdd-onServices. Should the coldfusionAdd-onServices folder been within the coldfusion11 folder?

 

I read you can create your collection through the administrator or through coding a page. I thought maybe I need to try it this way. So I created a page to create the collection and it did not work either.

 

What am I missing? Did I miss a step or something to make this work?

 

Any help I can get, I would appreciate.

 

I have a windows 2008 server.

Coldfusion 10 update 18 cluster instance restarts in hung state while under load

$
0
0

So this problem has been driving me completely bonkers.

 

CF10 update 18, RedHat 6.7 64 bit.  Java 1.7.093

 

We noticed a similar problem with coldfusion 10 update 14 last year, and rolled back to update 13.  Recently we pushed out update 18, which fixed some issues, but did not fix CF restarting into a hung or dead state.

 

I have gone as far as uninstalling CF10 completely, reinstalling a fresh CF10, doing the mandatory update, and then doing update 18.  Creating two fresh new instances, a new cluster, and configuring apache connector to use said cluster.  Its about as out of the box as I can make it.

 

With this physical box quiesced in my hardware load balancer (not taking requests) I can happily restart the two CF instances all day long without much problem (maybe the occasional hang, but rare).   The trouble starts when I put the box back into production and allow it to start taking requests, and then restart a CF instance.   At least one CF instance will always come up in a hung or dead state.  I cannot get to tomcat under port 8501, and mod_jk shows the worker as down.  The coldfusion_out log shows "PM Information [localhost-startStop-2] - ColdFusion stopped" as the last entry.  Running a ps aux shows that the instance is indeed running.  Issuing a kill -3 <pid> does not log anything to std err or to coldfusion-out, or anywhere else for that matter.  When I try to stop or restart the instance again, I get the following message, and again, the instance starts in a hung state

 

[root]# /opt/coldfusion10/web4cf1/bin/coldfusion restart               

Restarting ColdFusion 10 server instance named web4cf1 ...

Stopping ColdFusion 10 server instance named web4cf1, please wait

Mar 22, 2016 2:24:09 PM com.adobe.coldfusion.launcher.Launcher stopServer

SEVERE: Shutdown Port 8008is not active. Stop the server only after it is started.

ColdFusion 10 server instance named web4cf1 has been stopped

Starting ColdFusion 10 server instance named web4cf1 ...

The ColdFusion 10 server instance named web4cf1 is starting up and will be available shortly.

nohup: appending output to `nohup.out'

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

ColdFusion 10 server instance named web4cf1 has been started.

ColdFusion 10 will write logs to /opt/coldfusion10/web4cf1/logs/coldfusion-out.log

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

 

I have tried various timeouts and settings in the server.xml files as well as workers.properties with no luck.   Here are my current files:

 

worker.list=web4cluster,web4cf1,web4cf2

worker.web4cluster.type=lb

worker.web4cluster.balance_workers=web4cf1,web4cf2

worker.web4cluster.sticky_session=true

worker.web4cf1.type=ajp13

worker.web4cf1.host=localhost

worker.web4cf1.port=8041

worker.web4cf1.connect_timeout=250

worker.web4cf1.max_reuse_connections=250

worker.web4cf1.connection_pool_size = 400

worker.web4cf1.connection_pool_minsize= 200

worker.web4cf1.connection_pool_timeout = 600

worker.web4cf1.lbfactor=1

worker.web4cf1.route=web4cf1

worker.web4cf2.type=ajp13

worker.web4cf2.host=localhost

worker.web4cf2.port=8042

worker.web4cf2.connect_timeout=250

worker.web4cf2.max_reuse_connections=250

worker.web4cf2.connection_pool_size = 400

worker.web4cf2.connection_pool_minsize= 200

worker.web4cf2.connection_pool_timeout = 600

worker.web4cf2.lbfactor=1

worker.web4cf2.route=web4cf2

 

 

<Server port="8008" shutdown="SHUTDOWN">

  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on">

  </Listener>

  <Listener className="org.apache.catalina.core.JasperListener">

  </Listener>

  <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener">

  </Listener>

  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener">

  </Listener>

  <GlobalNamingResources>

    <Resource description="User database that can be updated and saved" name="UserDatabase" pathname="conf/tomcat-users.xml" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" type="org.apache.catalina.UserDatabase" auth="Container">

    </Resource>

  </GlobalNamingResources>

  <Service name="Catalina">

    <Executor name="tomcatThreadPool" minSpareThreads="4" maxThreads="150" namePrefix="catalina-exec-">

    </Executor>

    <Connector port="8501" protocol="org.apache.coyote.http11.Http11Protocol" connectionTimeout="2000" redirectPort="8446" executor="tomcatThreadPool" maxThreads="50">

    </Connector>

    <Connector port="8041" protocol="AJP/1.3" redirectPort="8446" tomcatAuthentication="false">

    </Connector>

    <Engine jvmRoute="web4cf1" name="Catalina" defaultHost="localhost">

      <Realm className="org.apache.catalina.realm.LockOutRealm">

        <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase">

        </Realm>

      </Realm>

      <Host name="localhost" autoDeploy="false" unpackWARs="true" appBase="webapps">

        <Valve pattern="%h %l %u %t &quot;%r&quot; %s %b" directory="logs" prefix="localhost_access_log." className="org.apache.catalina.valves.AccessLogValve" suffix=".txt" resolveHosts="false">

        </Valve>

      </Host>

      <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster" channelSendOptions="8">

        <Manager notifyListenersOnReplication="true" expireSessionsOnShutdown="false" className="org.apache.catalina.ha.session.DeltaManager">

        </Manager>

        <Channel className="org.apache.catalina.tribes.group.GroupChannel">

          <Membership port="45564" dropTime="3000" address="228.0.240.104" className="org.apache.catalina.tribes.membership.McastService" frequency="500">

          </Membership>

          <Receiver port="4001" autoBind="100" address="auto" selectorTimeout="2000" maxThreads="6" className="org.apache.catalina.tribes.transport.nio.NioReceiver">

          </Receiver>

          <Sender className="org.apache.catalina.tribes.transport.ReplicationTransmitter">

            <Transport className="org.apache.catalina.tribes.transport.nio.PooledParallelSender">

            </Transport>

          </Sender>

          <Interceptor className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector">

          </Interceptor>

          <Interceptor className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor">

          </Interceptor>

        </Channel>

        <Valve className="org.apache.catalina.ha.tcp.ReplicationValve" filter="">

        </Valve>

        <Valve className="org.apache.catalina.ha.session.JvmRouteBinderValve">

        </Valve>

        <ClusterListener className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener">

        </ClusterListener>

        <ClusterListener className="org.apache.catalina.ha.session.ClusterSessionListener">

        </ClusterListener>

      </Cluster>

    </Engine>

  </Service>

</Server>

 

 

Now if I stop apache, or if I remove the load by removing the physical box from the hardware load balancer, the coldfusion instance will happily restart (after the port 8008 not active error).

 

 

 

If I start the coldfusion instance manually from the command line, I do get some error messages when it fails:

 

[root]# /opt/coldfusion10/jre/bin/java -classpath /opt/coldfusion10/web4cf2/runtime/bin/tomcat-juli.jar:/opt/coldfusion10/web4cf2/bin/cf-bo otstrap.jar:/opt/coldfusion10/web4cf2/lib/oosdk/lib:/opt/coldfusion10/web4cf2/lib/oosdk/li b/*:/opt/coldfusion10/web4cf2/lib/oosdk/classes:/opt/coldfusion10/web4cf2/lib/oosdk/classe s/*: -server -Djava.awt.headless=true -Xms512m -Xmx2048m -XX:MaxPermSize=256m -XX:+UseParallelGC -Xbatch -Dcoldfusion.home=/opt/coldfusion10/web4cf2 -Djava.security.egd=file:/dev/./urandom -Dcoldfusion.rootDir=/opt/coldfusion10/web4cf2 -Dcoldfusion.libPath=/opt/coldfusion10/web4cf2/lib -Dorg.apache.coyote.USE_CUSTOM_STATUS_MSG_IN_HEADER=true -Dcoldfusion.jsafe.defaultalgo=FIPS186Random -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 -Dcoldfusion.classPath=/opt/coldfusion10/web4cf2/lib/updates,/opt/coldfusion10/web4cf2/li b,/opt/coldfusion10/web4cf2/lib/axis2,/opt/coldfusion10/web4cf2/gateway/lib/,/opt/coldfusi on10/web4cf2/wwwroot/WEB-INF/flex/jars,/opt/coldfusion10/web4cf2/wwwroot/WEB-INF/cfform/ja rs,/var/www/html/topaz/SigPlus2_29.jar,/var/www/html/comm.jar com.adobe.coldfusion.bootstrap.Bootstrap -start

Mar 22, 2016 3:45:36 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent

INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/coldfusion10/jre/lib/amd64/server:/opt/coldfusion10/jre/lib/amd64:/opt/coldfusion10/ jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

Mar 22, 2016 3:45:36 PM org.apache.coyote.AbstractProtocol init

INFO: Initializing ProtocolHandler ["http-bio-8502"]

Mar 22, 2016 3:45:36 PM org.apache.coyote.AbstractProtocol init

INFO: Initializing ProtocolHandler ["ajp-bio-8042"]

Mar 22, 2016 3:45:36 PM org.apache.catalina.core.StandardService startInternal

INFO: Starting service Catalina

Mar 22, 2016 3:45:36 PM org.apache.catalina.core.StandardEngine startInternal

INFO: Starting Servlet Engine: Apache Tomcat/7.0.64

Mar 22, 2016 3:45:36 PM org.apache.catalina.ha.tcp.SimpleTcpCluster startInternal

INFO: Cluster is about to start

Mar 22, 2016 3:45:36 PM org.apache.catalina.tribes.transport.ReceiverBase bind

INFO: Receiver Server Socket bound to:/10.10.240.104:4002

Mar 22, 2016 3:45:36 PM org.apache.catalina.tribes.membership.McastServiceImpl setupSocket

INFO: Setting cluster mcast soTimeout to 500

Mar 22, 2016 3:45:36 PM org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers

INFO: Sleeping for 1000 milliseconds to establish cluster membership, start level:4

Mar 22, 2016 3:45:36 PM org.apache.catalina.ha.tcp.SimpleTcpCluster memberAdded

INFO: Replication member added:org.apache.catalina.tribes.membership.MemberImpl[tcp://{10, 10, 240, 104}:4001,{10, 10, 240, 104},4001, alive=3337299, securePort=-1, UDP Port=-1, id={-65 -3 47 75 8 -4 74 2 -123 -42 -41 -22 84 88 60 82 }, payload={}, command={}, domain={}, ]

Mar 22, 2016 3:45:37 PM org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers

INFO: Done sleeping, membership established, start level:4

Mar 22, 2016 3:45:37 PM org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers

INFO: Sleeping for 1000 milliseconds to establish cluster membership, start level:8

Mar 22, 2016 3:45:37 PM org.apache.catalina.tribes.io.BufferPool getBufferPool

INFO: Created a buffer pool with max size:104857600 bytes of type:org.apache.catalina.tribes.io.BufferPool15Impl

Mar 22, 2016 3:45:38 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:38 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:38 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:38 PM org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers

INFO: Done sleeping, membership established, start level:8

Mar 22, 2016 3:45:38 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:39 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:39 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:39 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:39 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:39 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:39 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:39 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:39 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:39 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:39 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:39 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:39 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:39 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:39 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:40 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:40 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:40 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:40 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:40 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:40 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:40 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:40 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:40 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:40 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:40 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:40 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:40 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:40 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:40 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#

Mar 22, 2016 3:45:40 PM org.apache.catalina.startup.TldConfig execute

INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

Mar 22, 2016 3:45:41 PM org.apache.catalina.session.StandardSession tellNew

SEVERE: Session event listener threw exception

java.lang.NullPointerException

        at coldfusion.bootstrap.HttpFlexSessionBootstrap.getListener(HttpFlexSessionBootstrap.java:1 54)

        at coldfusion.bootstrap.HttpFlexSessionBootstrap.sessionCreated(HttpFlexSessionBootstrap.jav a:69)

        at org.apache.catalina.session.StandardSession.tellNew(StandardSession.java:422)

        at org.apache.catalina.session.StandardSession.setId(StandardSession.java:394)

        at org.apache.catalina.ha.session.DeltaSession.setId(DeltaSession.java:275)

        at org.apache.catalina.ha.session.DeltaManager.handleSESSION_CREATED(DeltaManager.java:1317)

        at org.apache.catalina.ha.session.DeltaManager.messageReceived(DeltaManager.java:1195)

        at org.apache.catalina.ha.session.DeltaManager.messageDataReceived(DeltaManager.java:944)

        at org.apache.catalina.ha.session.ClusterSessionListener.messageReceived(ClusterSessionListe ner.java:91)

        at org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:936)

        at org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:917)

        at org.apache.catalina.tribes.group.GroupChannel.messageReceived(GroupChannel.java:278)

        at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelIntercepto rBase.java:82)

        at org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.messageReceived(TcpFailu reDetector.java:117)

        at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelIntercepto rBase.java:82)

        at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelIntercepto rBase.java:82)

        at org.apache.catalina.tribes.group.ChannelCoordinator.messageReceived(ChannelCoordinator.ja va:252)

        at org.apache.catalina.tribes.transport.ReceiverBase.messageDataReceived(ReceiverBase.java:2 87)

        at org.apache.catalina.tribes.transport.nio.NioReplicationTask.drainChannel(NioReplicationTa sk.java:210)

        at org.apache.catalina.tribes.transport.nio.NioReplicationTask.run(NioReplicationTask.java:9 9)

        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

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

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

Mar 22, 2016 3:45:41 PM org.apache.catalina.session.StandardSession tellNew

SEVERE: Session event listener threw exception

java.lang.NullPointerException

        at coldfusion.bootstrap.HttpFlexSessionBootstrap.getListener(HttpFlexSessionBootstrap.java:1 54)

        at coldfusion.bootstrap.HttpFlexSessionBootstrap.sessionCreated(HttpFlexSessionBootstrap.jav a:69)

        at org.apache.catalina.session.StandardSession.tellNew(StandardSession.java:422)

        at org.apache.catalina.session.StandardSession.setId(StandardSession.java:394)

        at org.apache.catalina.ha.session.DeltaSession.setId(DeltaSession.java:275)

        at org.apache.catalina.ha.session.DeltaManager.handleSESSION_CREATED(DeltaManager.java:1317)

        at org.apache.catalina.ha.session.DeltaManager.messageReceived(DeltaManager.java:1195)

        at org.apache.catalina.ha.session.DeltaManager.messageDataReceived(DeltaManager.java:944)

        at org.apache.catalina.ha.session.ClusterSessionListener.messageReceived(ClusterSessionListe ner.java:91)

        at org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:936)

        at org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:917)

        at org.apache.catalina.tribes.group.GroupChannel.messageReceived(GroupChannel.java:278)

        at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelIntercepto rBase.java:82)

        at org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.messageReceived(TcpFailu reDetector.java:117)

        at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelIntercepto rBase.java:82)

        at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelIntercepto rBase.java:82)

        at org.apache.catalina.tribes.group.ChannelCoordinator.messageReceived(ChannelCoordinator.ja va:252)

        at org.apache.catalina.tribes.transport.ReceiverBase.messageDataReceived(ReceiverBase.java:2 87)

        at org.apache.catalina.tribes.transport.nio.NioReplicationTask.drainChannel(NioReplicationTa sk.java:210)

        at org.apache.catalina.tribes.transport.nio.NioReplicationTask.run(NioReplicationTask.java:9 9)

        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

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

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

Mar 22, 2016 3:45:41 PM org.apache.catalina.ha.session.DeltaManager startInternal

INFO: Register manager localhost# to cluster element Engine with name Catalina

Mar 22, 2016 3:45:41 PM org.apache.catalina.ha.session.DeltaManager startInternal

INFO: Starting clustering manager at localhost#

Mar 22, 2016 3:45:41 PM org.apache.catalina.ha.session.DeltaManager getAllClusterSessions

INFO: Manager [localhost#], requesting session state from org.apache.catalina.tribes.membership.MemberImpl[tcp://{10, 10, 240, 104}:4001,{10, 10, 240, 104},4001, alive=3341800, securePort=-1, UDP Port=-1, id={-65 -3 47 75 8 -4 74 2 -123 -42 -41 -22 84 88 60 82 }, payload={}, command={}, domain={}, ]. This operation will timeout if no session state has been received within 60 seconds.

Mar 22, 2016 3:45:47 PM org.apache.catalina.ha.session.DeltaManager waitForSendAllSessions

INFO: Manager [localhost#]; session state send at 3/22/16 3:45 PM received in 5,614 ms.

 

 

 

 

 

 

 

Does anyone have any suggestions on what I could try?

Need to Download ColdFusion Builder 3.0.0.0 Build 292922

$
0
0

Where can I download a copy of ColdFusion Builder  3.0.0.0 Build 292922?  I have licenses for this but not the 2016 version.  Thank you.


ACF 2016 WAR Deployment Tomcat server did not start

$
0
0

Hi, i need some help.

First the environment:

OS: Centos 6.7 latest

ACF: 2016 64bit Linux war deployment

Tomcat : 8.0.32

Java Version :

openjdk version "1.8.0_71"

OpenJDK Runtime Environment (build 1.8.0_71-b15)

OpenJDK 64-Bit Server VM (build 25.71-b15, mixed mode)

 

After i deploy the war file the server did not start.

Here are some more information (catalinalog):

23-Mar-2016 18:32:20.035 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:    Apache Tomcat/8.0.32
23-Mar-2016 18:32:20.036 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:      Feb 2 2016 19:34:53 UTC
23-Mar-2016 18:32:20.036 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:     8.0.32.0
23-Mar-2016 18:32:20.036 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:           Linux
23-Mar-2016 18:32:20.036 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:        2.6.32-573.18.1.el6.x86_64
23-Mar-2016 18:32:20.036 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:      amd64
23-Mar-2016 18:32:20.036 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:         /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7.x86_64/jre
23-Mar-2016 18:32:20.036 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:       1.8.0_71-b15
23-Mar-2016 18:32:20.037 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:        Oracle Corporation
23-Mar-2016 18:32:20.037 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:     /opt/tomcat8
23-Mar-2016 18:32:20.037 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:     /opt/tomcat8

23-Mar-2016 18:32:20.037 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/opt/tomcat8/conf/logging.properties

23-Mar-2016 18:32:20.037 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

23-Mar-2016 18:32:20.037 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dfile.encoding=UTF-8

23-Mar-2016 18:32:20.037 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dnet.sf.ehcache.skipUpdateCheck=true

23-Mar-2016 18:32:20.037 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:+UseConcMarkSweepGC

23-Mar-2016 18:32:20.037 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:+CMSClassUnloadingEnabled

23-Mar-2016 18:32:20.037 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:+UseParNewGC

23-Mar-2016 18:32:20.037 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms512m

23-Mar-2016 18:32:20.038 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx2048m

23-Mar-2016 18:32:20.038 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=/opt/tomcat8/endorsed

23-Mar-2016 18:32:20.038 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/opt/tomcat8

23-Mar-2016 18:32:20.038 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/opt/tomcat8

23-Mar-2016 18:32:20.038 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/opt/tomcat8/temp

23-Mar-2016 18:32:20.038 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

23-Mar-2016 18:32:20.095 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8180"]

23-Mar-2016 18:32:20.106 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read

23-Mar-2016 18:32:20.108 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]

23-Mar-2016 18:32:20.109 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read

23-Mar-2016 18:32:20.110 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 354 ms

23-Mar-2016 18:32:20.128 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina

23-Mar-2016 18:32:20.128 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.32

23-Mar-2016 18:32:20.148 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive /opt/tomcat8/webapps/cfusion.war

23-Mar-2016 18:32:20.672 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

23-Mar-2016 18:33:23.690 INFO [localhost-startStop-1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [63,009] milliseconds.

 

When i remove the war file the server starts normal.

ColdFusion fails to include custom HTTP response header set in IIS 8.5

$
0
0

(this is a cross-posting of a question I asked on Server Fault: ColdFusion fails to include custom HTTP response header set in IIS 8.5 - Server Fault)

 

I have a Windows 2012 R2 server running IIS 8.5 and ColdFusion 11. Under a specific directory ("mydirectory") I added an HTTP Response Header (Name: X-ResponseHeader, Value: Test). The resulting web.config section looks like this:

 

<?xml version="1.0" encoding="UTF-8"?><configuration>    <system.webServer>        <httpProtocol>            <customHeaders>                <add name="X-ResponseHeader" value="Test" />            </customHeaders>        </httpProtocol>    </system.webServer></configuration>

 

I created several test files:

  • test.cfm
  • test.html
  • test.png

 

I used curl -I to request the files and examine the response headers:

  • test.cfm does not include the response header
  • test.html includes X-ResponseHeader: Test
  • test.png includes X-ResponseHeader: Test

 

Additionally, a request for a non-existent .cfm file does not include the header, but a request for a non-existent .png file does. Therefore I suspect that the ColdFusion handler is ignoring or removing the header, but I am not sure why.

 

Also of note: if I set a custom header at the site level in IIS, rather than at the folder level, the custom header is included in all cases.

"cfadmin","The current user is not authorized to invoke this method. The specific sequence of files included or processed is: D:\ColdFusion11\cfusion\wwwroot\CFIDE\administrator\reports\index.cfm, line: 105 "

$
0
0

I am running CF11 update 4 on Windows 2012 R2 IIS 8.5.  I have multiple users setup to access the CF Admin Console. All the individual accounts started throwing a 500 - Internal Server Error only when we click the "Settings Summary" link on the left navigation pane.  Looking at the exception.log shows the following error:

 

"Error", "ajp-bio-8014-exec-3","03/04/15","10:32:10","cfadmin","The current user is not authorized to invoke this method. The specific sequence of files included or processed is: D:\ColdFusion11\cfusion\wwwroot\CFIDE\administrator\reports\index.cfm, line: 105 "

 

The default admin account is not having this issue.

 

Please advise. Thanks

Frequency of application.cfc/cfm triggered

$
0
0

Hello, all,

 

Y'know.. in all the years that I've been coding in CFML, it never once occurred to me to ask the following question, but here it is..

 

If I have a page as such:

 

<!DOCTYPE html><html>  <head><title>Unknown Comic</title></head>  <cfinclude url="menu.cfm"/>  blah blah blah - foo bar  <cfinclude url="footer.cfm" /></html>

 

Does the application.cfc trigger only once (for the document, itself)?  Or does it trigger once for the document, then once for each include (total of three times for above example)?

 

V/r,

 

^_^

 

(Forgive the n00b question - it just never came to mind until now.)

Coldfusion 11 or 12 64-bit developer edition

$
0
0

Where can I get coldfusion 11 or 12  64-bit developer edition.

My hosting company has upgraded and I need to support the new version.

Report Builder tutorials

$
0
0

Hey everyone! I was put in a position with a data development group last year. We use ColdFusion and ColdFusion Report Builder for applications and reporting on our clients side. I've been recently working more and more with reporting as oppose to the ETL stuff I had been doing. I have found some tutorials on ColdFusion however when it comes to the Report Builder I find a lack of information on using this. Everything I've learned has been through trial an error modifying/working with already created reports. Are there any good resources out there I can use to get better at creating reports from the ground up?

 

We currently use a queries.cfc file that we link all of our reports to to find the underlying data queries but as far as being able to add new bands or really do more than just modifying existing contents....I'm at a loss. What resources does everyone recommend?

 

Thanks!!

How to grab query string values from jQuery Post?

$
0
0

I have a jQuery that sends the data via post to my proxy ColdFusion page. However, in the this page, I'm not sure how to go about retrieving those values. I tried to log the following in my CFHTTP tag:

 

<cflog text="URL: #URL#" type="Information" file="CGIparameters">

<cflog text="URL-Name: #URL.name#" type="Information" file="CGIparameters">

 

But I always get this error:

 

"NetworkError: 500 Complex object types...erted to simple values. - https://devbox.mysite.com/customcf/kb/proxyPost-KB.cfm"

 

This is the JavaScript that's posting to the proxy page. However, I don't think there is anything wrong with the JavaScript. I tried putting static values in the CFHTTPPARAM and there is no errors. It was able to send the data to JSON API.

 

  1. $(function(){
  2.     $("##frmComment").submit(function(event){
  3.         event.preventDefault();
  4.         $("##submitResponse").append('<img src="../../../assets/mysite/img/ajax-loader.gif" class="progressGif">');
  5.         // Cache $form, we'll use that selector more than once
  6.         var $form=$(this);
  7.         var data = $form.serialize();//get all the data of form
  8.         //post it
  9.         $.post(
  10.         "/customcf/kb/proxyPost-KB.cfm",
  11.         data,
  12.         //console.log(response),
  13.         function(response){
  14.             // Success callback.  Remove your progress gif, eg:
  15.             //$('body').removeClass('in-progress');
  16.             console.log(response);
  17.             // Remove the spining gif from the div
  18.             $("##submitResponse img:last-child").remove();
  19.             //Remove the feedback form
  20.             $("##frmComment").remove();
  21.             $form.fadeOut('slow',function(){
  22.                 //Add response text to the div
  23.                 $("##submitResponse").append("<h6>Thank you for your feedback.</h6>");
  24.                 $("##submitResponse").html(response).fadeIn('slow');
  25.             });
  26.         });
  27.     });
  28. })

ColdFusion session issues with WildFly deployment.

$
0
0

We recently bought ColdFusion 2016. We are deploying ColdFusion as jee configuration to wildfly 8. Wildfly is running in standalone configuration with 2 instances [ no domain configuration here]. We are facing some session issues. For ex, accessing 'admin console 1' logs out 'admin console 2' within same browser. We have tried setting jsessionId configurations as per multiple suggestion across different sites. Any help is much appreciated. Thank you

How to know a form was submitted via: onchange='this.form.submit()'

$
0
0

I'm hoping there might be a easy answer to the issue below.

I have a page with a form and the form submit calls the exact same page the form is on. When I check the form variables after thebutton submit the form.button2 variable exist and has a value  when I use  a button to submit the page.


However, when submitting the page viaonchange='this.form.submit()' no form variable is updated to reflect that the user submitted the page.


Is there a way to force a form variable to update so I can see that the user came form this control via javascript?


See sample code below and screen shot below


example code...

 

01

xxxxxxxxxxxxxxx    Example with submit button.   xxxxxxxxxxxxxxxxx

 

 

02

 

 

03<cfdump var="#form#"label="testit">

 

 

04

 

 

05<cfif isdefined("form.button2")>

 

 

06  <!--- Do somthing Here--->

 

 

07</cfif>

 

 

08

 

 

09<cfform name="testit"action="test.cfm">

 

 

10<selectname='myfield'>

 

 

11  <option selected="selected"> --- Pick Drink ---</option>

 

 

12  <option >Milk</option>

 

 

13  <option>Coffee</option>

 

 

14  <option>Tea</option>

 

 

15</select>

 

 

16<inputtype="submit"name="button2"value="Submit">

 

 

17</cfform>

 


XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


Notice, when I use the onchange='this.form.submit()' then there no button and nothing to test to see that the user came from this controlxxxxxxxxxxxxxxx Example with javascript no button.


xxxxxxxxxxxxxxxxx

 

01

<cfdump var="#form#"label="testit">

 

 

02<cfform name="testit"action="test.cfm">

 

 

03<selectname='myfield'onchange='this.form.submit()'>

 

 

04  <option selected="selected"> --- Pick Drink ---</option>

 

 

05  <option >Milk</option>

 

 

06  <option>Coffee</option>

 

 

07  <option>Tea</option>

 

 

08</select>

 

 

09</cfform>

 

 

10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

 

**************


Here are the dump results with and without the submit button..


any Ideas would be greatly appreciated

Thanks


question-javascript-submit.png

SpreadsheetFormatColumns Not working What's going wrong?

$
0
0

Server: CF10

Platform: Windows and Linux (Win in DEV windows in PROD)

 

So I'm generating this awesome excel file for a client but having trouble getting date fields to behave properly. Everything else seems to work just fine but when I send the data to excel to be generated, excel treats it as just text and when this filed gets sorted it handles it as such.

 

More info: The column I'm trying to configure is called Arrival Date it is arriving formatted as mm/dd/yyyy (I have tried to format is as m/d/yy but when it arrives in the sheet that doesn't work as well)

 

I'm also including an image of the sorted row. It does think its a valid but just doesn't sort it in chronological order.

 

DateSort.PNG

 

Code:

 

<cfset filename = expandPath("./TDYData_(#DateFormat(now(),'mmddyy')#).xls")>

<!--- Make a spreadsheet object --->

<cfset s = spreadsheetNew("TDYData")>

<!--- Add header row --->

<cfset spreadsheetAddRow(s, "TDY Phase,Full Name,Employment Category,Gender,Originating Agency,Agency Comments,Originating Office,Office Comments,Originating Country,TDY Request Received,Mission Office Supported,Type of TDY Support,eCC Submission,eCC Approval,eCC Point of Contact,Date of Departure from Originating Country,Arrival Date,Departure Date,Accomodation Type,Accomodation Comments,Assigned Desk,Local Mobile Number,TDY Comments")>

 

<!--- format header --->

<cfset spreadsheetFormatRow(s,

{

bold=true,

fgcolor="lemon_chiffon",

fontsize=10

},

1)>

<!--- Add query --->

<cfset spreadsheetAddRows(s, myExcel)>

<cfset SpreadSheetAddFreezePane(s,0,1)>

 

<cfset spreadsheetFormatColumn(s, {dataformat="m/d/yy"}, 17) />

 

<cfset spreadsheetFormatColumn(s, {alignment="right"}, 16) />

 

 

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

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

 

 

Any ideas?

 

Thanks

Correct ColdFusion Licensing

$
0
0

Hi,

 

Need advise on the correct licensing for my server below:

 

Server 1: 4 Virtual Core

Server 2: 2 Virtual Core

 

Thanks,

attachment extensions on forms

$
0
0

Hi everyone. My company has been hit with 3 viruses in the last few months and we think it's because of some attachments employees are clicking on and opening. We have a quote page on our web site form that allows users to attach files that get sent to our quote email address. The form does not prevent certain attachments from being uploaded and attached and sent to the email though. Does anyone know how to prevent certain file extension attachments to not be allowed to be sent from a form in Cold Fusion? I would probably want to prevent .exe, .zip, etc. files for sure. Thanks.

 

Andy

Viewing all 5979 articles
Browse latest View live