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

CF10 - Random Access Denied errors (java.io.FilePermission)

$
0
0

I've been having an error that is randomly plaguing me.  For some reason, I get the following error message:

 

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 purpose!

Error Occurred While Processing Request j

Security: The requested template has been denied

access to C:/ColdFusion10/cfusionl/wwwroot/CFIDE.

The following is the internal exception message: access denied (java.io.FilePermission c:/coldfusion10/cfusionl/wwwroot/CFIDE read)

Resources:

. Enable Robust Exception Information to provide greater detail about the source

of errors, In the Administrator, click Debugging & Logging > Debug Output

Settings, and select the Robust Exception Information option.

. check the coldFusion documentation to verify that you are using the correct

syntax.

. search the Knowledge Base to find a solution to your problem.

 

Screenshot:

error.png

 

Whenever I get this error, if I just refresh, it will return the page as expected.  It only seems to happen if the site has been idle for some time.  If I refresh it 100 times in a row afterwards, it loads every time without a problem.

 

Here is the code from the file:

<cfquery name="COLUMNTEST" datasource="myds">

    SELECT table_name

    FROM user_tables

</cfquery>

 

<cfdump var="#COLUMNTEST#">

 

This is on Windows Server 2008 R2, ColdFusion 10 Update 7.  The application is inside a Security Sandbox.  I originally thought that I might need to add that path to the security sandbox of the application for it to work but it doesn't make any sense why a refresh of the page would then magically make it work.

The CFIDE directory in IIS is actually just a virtual directory pointing to portions of the /CFIDE directory such as /CFIDE/scripts and /CFIDE/classes.

 

Any ideas?


ColdFusion 9.0.2 with IIS 7.5, Windows 2008 R2 Failure

$
0
0

Hi,

 

I am trying to fresh install ColdFusion 9.0.2 on IIS7.5 ( Windows 2008 R2 ).

 

Options : Enterprise Multiserver configuration.

 

After install, when  I open CFIDE/administrator or any CF page its throwing error as below :

 

HTTP Error 404.3 - Not Found

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

 

 

Thanks.

Coldfusion 9 scheduled task not running

$
0
0

I have a scheduled task that will run manually  - clicking the run the task icon next to the scheduled task name in the CF administrator and in a browser.  However, if I schedule it to run in the evening or even in a few minutes it does not run.    I do not get any error messages in the logs.  I have renamed the CF administrator folder.

 

I would like to know where to start looking to start debugging this.

 

As always, thanks for your help!

64-bit ColdFusion 9 ODBC drivers confusion? (architecture mismatch)

$
0
0

Hi all - I'm having problems setting up ColdFusion ODBC sources in a pure 64-bit environment. Server specs:

  • Windows 2008 R2 (64-bit)
  • ColdFusion 9.01 (251028) Enterprise, 64-bit

 

I have 64-bit ODBC drivers for all of my database sources:

 

  • 64-bit SQL Server (bundled with Windows 2008 R2)
  • 64-bit MS Access 2010 (with 64-bit Access ODBC driver from Office 2010 64-bit install)
  • 64-bit ODBC drivers for Sybase SQL Anywhere 11 (from SyBase)

 

Using the (64-bit) ODBC Administrator, I can create system DSNs and they test out perfectly. (From my test Access database, I can use these DSNs to pull data from SQL Server and from SQL Anywhere.) Since this is working, I'm pretty confident that my drivers are all 64-bit and that everything is happy.

 

Now for ColdFusion...

When I try to create a new data source in the ColdFusion Administrator and I use, the "ODBC Socket" option, I am presented with a drop-down list of my 64-bit ODBC system DSNs (good!), but whenever I select one and save, I invariably get an "architecture mismatch" error like below:

 

Connection verification failed for data source: MSSQLtestDatabase
java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][ODBC  Socket]internal error: The specified DSN contains an architecture mismatch  between the Driver and Application
The root cause was that:  java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][ODBC Socket]internal  error: The specified DSN contains an architecture mismatch between the Driver  and Application

 

I am well aware that "architecture mismatch" errors mean that you're trying to mix 32-bit drivers with a 64-bit application (or vice-versa), but I'm pretty sure that everything in my environment is 64-bit.

 

As a further test, I created a few 32-bit ODBC system DSNs and the ColdFusion Administrator does not present them as options in the drop-down list of ODBC DSNs (good!). So, it seems like the Administrator is smart enough to show only the 64-bit DSNs, but whenever you try to connect to one, it gets confused and kicks up an "architecture mismatch" error.

 

So is there any obvious configuration error here? Is there a 32-bit subcomponent to ColdFusion (JDBC, etc.) that's confusing things? (I ran the ColdFusion_9_WWE_win64.exe setup downloaded from Adobe's site.) Is 64-bit ColdFusion ready for prime time? Any suggestions would be greatly appreciated. Thanks, Joe

Client Storage Purge

$
0
0

Hello,

 

We are having an issue with CPU loading on our server.  It has to do with Client Storage Purge. I see where this issue has been around for a while but could not find a solid solution.  Our sever is running Windows Server 2003 Standard and ColdFusion 8.  There is only one ecommerence website utilizing CF and the database is MSSQL.

 

The server average CPU usage is between 5% and 10%.  Then this appears in the log; 03/30 05:56:34 Information [scheduler-3] - Run Client Storage Purge.  The CPU usage jumps to 50% to 80% for about 4 to 5 hours.  Then after it settles back down, with in the next few hours it starts over again.

 

Settings,

ColdFusion Administrator > Server Settings > Client Variables

Select Default Storage Mechanism for Client Sessions is set to Registry

Purge Interval is set to 1 hour and 7 minutes.

 

Now, my working knowledge of ColdFusion is not at an expert level.  I really do not know what Client Storage Purge is doing, what client variables are being stored and why.

 

I hope I have included enough information to start the 21 question routine.  Any help with this issue would be appreciated.

 

Regards,

David

CF11 and ODBC socket DSN creation error

$
0
0

I recently installed CF11 (Enterprise in Trial mode) on a new Server 2012 R2 system. I have an ERP application that uses a Progress database. I installed the vendor specific 64bit ODBC driver (Progress OpenEdge 10.2B) and configured it in the 64bit ODBC Data Source Mgr on the server. I tested the connection from within the Data Source Mgr and it was successful. When I attempt to create a DSN in CF11 though the vendor specific driver does not appear in the dropdown list. I tried to create a DSN using "ODBC Socket" and filled in the same "Data Source Name" as that used in the OS's Data Source Mgr, but after a minute or so this error appears, "The ColdFusion ODBC Server service is not running or has not been installed." I confirmed that the CF11 ODBC Server and Agent services are running on this server so I am not sure why this error is claiming otherwise.

 

I would greatly appreciate any assistance on this. I was able to create a MS SQL DSN in CF11 with no problem, so at least some are working.

 

Thanks,

Kevin

Running CFEXECUTE to run C:D process - getting possible permssions error in C:D side

$
0
0

I'm executing a CFEXECUTE statement in a CFScheduler job that is supposed to C:D a file from one Windows Server to another Windows server.

I've built the C:D batch job correctly and can run it successfully from the CMD prompt (by double clicking on the .bat file name).

Here is my statement:

<cfexecute name="C:\Windows\system32\cmd.exe" arguments="/c E:\inetpub\WWWROOT\Tips\ScheduledJobs\tips_to_tws.bat"

 

The job ends without any errors, but I get a C:D error - LAPP010I - Submit file open failure. CCODE=8 FDBK=0

So my thought process is this:  when I go and execute the C:D command by double clicking on it alone - it is taking my id/password as the submitter.  This is evident by looking at the C:D logs.

And when I execute the CFScheduler job, that runs the CFEXECUTE command, it uses XXXXXX id to run the C:D command.  So my question is - what is the XXXXXX id?  I don't have ColdCusion running on a special service account, so I'm not familar with what id it would be associated with.  So any help would be appreicated.

CF10 or CF11 and Java 8??

$
0
0

Hello, everyone,

 

Since Java 7 EOL is fast approaching (April, as I understand it), I have been tasked with doing research to determine the viability of CF10 or CF11 and Java 1.8.

 

I've been seeing a LOT of complaints about Java 8, update 31, in forums.

 

Regardless of update version, has anyone experienced any issues with Java 8 as it relates to ColdFusion Server versions 10 or 11?

 

We are looking at having to upgrade before April, and need to know of any pitfalls that others have experienced, or if there is anything specific that needs to be done in order to make it a smooth transition.

 

All valid input greatly appreciated.

 

V/r,

 

^_^


CF 11 update 11 & FCK Editor

Updating Java JDK on ColdFusion 2016

$
0
0

I've just moved from CF8 up to ColdFusion 2016, which has the rather handy UPDATE button.

 

I noticed that it does not appear to update the Java JDK, the install I used placed version 1.8.0_112  however if I look on Oracle I see there is an 8u_152 ( Java SE Development Kit 8 - Downloads  )

 

The question I have (which it looks like the answer is obvious) is do I have to manually update the JDK still? If so I guess I'll install in the program files then change the host file in CF to point to the JRE inside the JDK.

 

Second question, the last info I could find was that ColdFusion 2016 is not compatible with Java version 9, is that still the case or should I go for the latest and greatest version 9? Currently version 9.0. 1 ( Java SE Development Kit 9 - Downloads  )

neo-cron.xml keeps getting re-written as blank object

$
0
0

Windows Server 2008, Coldfusion 9 (32-bit)

 

Not sure why, but the neo-cron.xml keeps getting re-written to become a 0 byte file. (This file takes care of the scheduler tasks.) It was fine before the 9.0.1 upgrade. Whenever I can't log into the Coldfusion administrator, I need to reload the file from my backup copy, save it and reboot Coldfusion Service.

 

For those that need a basic neo-cron.xml file because you do not have a backup, I was able to get one from the Internet. Simply use notebook and copy this into the neo-cron.xml located at /Coldfusion9/lib/

 

 

<wddxPacket version='1.0'><header/><data><array length='2'><struct type='coldfusion.server.ConfigMap'></struct><boolean value='false'/></array></data></wddxPacket>

 

After you restore your scheduled tasks, be sure to copy it some place where you can restore it from.

 

It would be nice if I did not have to restore this every few weeks. If anyone has some ideas as to why, I am open to testing.

How To: CF11 Clustering without Multicast (AWS)

$
0
0

This week I've been working on getting clustering setup for a client. Initially we were using CF10 with the latest patches. Ideally we wanted non-sticky load balancing with session replication. We want really high availability with the option to reboot a server at any time and not have to wait for session draining or lose customers if a node goes down. Adam Cameron points out that there is an issue with CF10 and not having an option to turn on session replication Adam Cameron's CFML Blog: Problem with session replication with CF10 clustering. Trying various fixes I could not get the session to replicate we moved to CF11 which restores that issue. There is a bug open for CF10 with some weird responses but I never saw any sort of fix for this.

 

CF11 as noted solves this odd issue, so I thought we were in the clear. Following the limited cluster setup guides found online there is some manual configuration to do on the remote instance. First, I am not sure if the default cfusion instance just can't be used as a member of a cluster but I had a hard time ever getting it to work. So both the local and remote instance use new CF11 instances created from within the Instance Manager. The instructions Adobe ColdFusion 10 * Enabling clustering for load balancing and failover are mostly correct in that you have to copy the <cluster> node to the remote instance. One issue pointed out in a few places is that the cluster block has to actually go IN the <host> node and not after it. CF10, CF11 and maybe even CF9 put the block (and the documents suggest putting the block) after the </host> tag which, in my experience, does not work.

 

After everything was configured and I started up my test I could not get the remote node to respond at all. Looking in the cf error log I constantly saw this line:

 

INFO: Manager [/]: skipping state transfer. No members active in cluster group.

 

Digging in to the tomcat clustering discussions this basically means the cluster couldn't find the remote instance. By default CF uses the multicast cluster support in tomcat and doesn't have an option to do anything different. Researching this found that AWS does not support broadcast nor multicast in EC2. Further research showed how tomcat could be configured for static cluster member configuration and so I modified the server.xml files to match and viola, cluster with session replication. Using the ELB on AWS we have sticky sessions disabled (basically round-robin style requests) and the requests bounce evenly between the instance members. The session id's, however, stay the same on each page load even though the request is going to a different host.

 

So here is what the cluster node of the server.xml looks like:

 

<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster" channelSendOptions="8" channelStartOptions="3">        <Manager notifyListenersOnReplication="true" expireSessionsOnShutdown="false" className="org.apache.catalina.ha.session.DeltaManager"/>        <Channel className="org.apache.catalina.tribes.group.GroupChannel">          <!--<Membership port="45564" dropTime="3000" address="228.0.0.4" className="org.apache.catalina.tribes.membership.McastService" frequency="500"/>-->          <Receiver port="4001" autoBind="100" address="auto" selectorTimeout="5000" maxThreads="6" className="org.apache.catalina.tribes.transport.nio.NioReceiver"/>          <Sender className="org.apache.catalina.tribes.transport.ReplicationTransmitter">            <Transport className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/>          </Sender>          <Interceptor className="org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor"/> <!-- ADDED -->          <Interceptor className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>          <Interceptor className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/>      <Interceptor className="org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor">                <Member className="org.apache.catalina.tribes.membership.StaticMember"                  port="4002"                  host="172.31.33.220"                  domain="delta-static"                  uniqueId="{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}"                />          </Interceptor>        </Channel>        <Valve className="org.apache.catalina.ha.tcp.ReplicationValve" filter=""/>        <Valve className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>        <ClusterListener className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>        <ClusterListener className="org.apache.catalina.ha.session.ClusterSessionListener"/>      </Cluster>

 

You can see the <membership> node is commented out (this is the multicast function). The TcpPingInterceptor is added and the StaticMembershipInterceptor is added. The reciever port on this instance is 4001 and the remote instance is 4002 so the interceptor uses 4002 on this instance to contact the remote host and vice-versa. In other words the remote instance will use the same <cluster> node with the ports switch and the host IP address changed on the static interceptor. The uniqueID then rotates on each member going from {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15} to {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,0}

 

Of course each additional member to the cluster will mean manual changes to each existing member (to add additional static interceptors) but that seems a small price to pay to not have to move our entire environment off AWS.

ColdFusion 11 ENT - Stopping an instance stops also other instances

$
0
0

Hi folks,

 

I have a very strange problem and I cannot find a solution.

 

I have 5 server instances (CF11 Enterprise) named: cfserver1, cfserver2 ... cfserver5

Stopping cfserver1 or cfserver3 or cfserver4 or cfserver5 works as expected..

But stopping cfserver2 does also stop cfserver3, cfserver4 AND cfserver5.

 

I've alread checked all server.xml files and ports, but I cannot find the reason why stopping cfserver2 results in stopping also cfserver3, cfserver4 AND cfserver5.

 

Does anyone have a hint for me ?

 

Best regards

Knut

No access to CF administrator after installation

$
0
0

CF9 has been installed on  Windows server 2008.

Successfull.

 

I can see CF9 files on disk C:\ColdFusion9

 

I have the CFIDE structure installed on disk D:\wwwroot\CFIDE

 

And when launching :

http://127.0.0.1/CFIDE/administrator/index.cfm

can't find the file

I tried the Sever IP adress :

http://85.14.138.81/CFIDE/administrator/index.cfm

same, can't find the file.

 

Can someone help/explain where could be the problem ?

It seems to be a problem of  IP pointing ?

 

Thanks for any help.

I do not have the hand on the IP.

Pierre.

ColdFusion 2018 - Loading a .car file

$
0
0

I am trying to deploy a CF 11 .car file on CF 18.

 

In the admin, I can browse to the .car file, select it, and click deploy.  The screen refreshes but none of the data sources get added? Does CF 18 allow CF 11 .car files?


CF10 App server running after reboot; but website unavailable until service restart

$
0
0

Hello, everyone.

 

I recently returned to a job I previously had after several months at a different job.  Upon my return, I inherited someone else's dev system (my previous dev system, apparently, had been reimaged and given to someone else, after I left.)

 

This system originally had CF9 server on it (the ColdFusion9 folder is still here) and now has CF10.  Using the built-in web server (no IIS, no Apache.)

 

Every time I boot/reboot the system, I can see in Computer Manage System that CF10 Application Server is, indeed, running.  But if I try to open any of the pages that I am working on, I get an error message that the site can't be found.

 

I go into Computer Manage System, go to Services, right-click the CF10 Application Server, choose "Restart", wait for it to finish, and voila!, I can get a working page.

 

Does anyone know why this is happening, and/or how to remedy it so that CF will work immediately after boot/reboot without going to restart the service?

 

Thank you,

Adobe Coldfusion8, JRun4, m32.exe and m64.exe taking 100% of the CPU

$
0
0

Hello

 

on two CF8 Servers which we are running for several years I could see that recently we have two processes inside the Jrun4 folder cfusion82\cfusion.ear\cfusion.war\CFIDE\m32\m32.exe and cfusion82\cfusion.ear\cfusion.war\CFIDE\m64\m64.exe taking 100% of the CPU. Action appears randomly and occurs on two server without any user interaction. Killing those processes does not seem to have any effect on the functionalty of the system.

 

Also in the coldfusion reactor I am not able to see any request which would be connected to this behaviour.

Does anyone know what are these processes?

 

Strange thing is that the files have been created just recently and on each system/instances in different days.


Thank you very much for answer!

Cannot Generate stub objects for web service invocation...root location needs to be a directory

$
0
0

I'm only posting this because it is not coming up when i search on the text in the subject.

 

I'm using CF 11,0,11,301867  on Server 2012 with IIS 8 for both the web service itself and the web service being called.

 

I'm dumping the error structure in a custom error page and getting this:

1. The apps are currently housed on the same server, but were not originally.  both servers have this error

2. The following folders give the following users full control: SYSTEM (the user running CF) and Everyone and a spot check of subfolders and files indicates the setting has been inherited.  Essentially these folders are currently world writeable:

     C:\coldfusion11\cfusion\stubs

     C:\coldfusion11\cfusion\wwwroot

     C:\websites\myappfolder (the IIS root folder for the application)

3. the service is invoked from a CFC with one function that simply calls the web service and returns the result as follows:

<cfinvoke

  webservice="#https://#hostname#/services/Servicename.cfc?wsdl"

  method="methodname"

  returnvariable="theResult" refreshwsdl='true'>

  <cfinvokeargument name="theSession" value="#arguments.theSession#" omit="true" />

  </cfinvoke>

     a. The returntype of the returnvariable appears to be string.

     b. theSession is a string variable containing a series of letters, numbers and dashes, i can verify that it exists in the #Form# structure and is then passed to the cfc that invokes the service.

     c. It does not appear to make a difference whether refreshwsdl is true or false.

4. Another app on (previously) the same server is able to successfully consume the exact same service using apparently the exact same call.

5. The service is configured as follows:

<cffunction name="servicename" access="remote" returnType="string" output="no">

  <cfargument name='theSession' type='string'>

<cfquery  ... /cfquery>

     <cfset theResult = Queryname.columnname>

  <cfreturn theResult>

</cffunction>

6. Axis2.xml is configured to accept https on port 443 and http on port 80

 

We tried the following:

  • configure Axis2.xml to accept http and https connections and restart CF -  no change
  • Remove all stub folders, restart CF and call the application again.
  • Remove all cfc-skeletons with the servicename in them, restart CF and try again
  • set the folders referenced in 2. above to be world writeable and spot check sub folders and files
  • Run the same query manually against the database (result is returned and appears valid)

 

I am out of ideas. This code runs fine on local, dev and production configurations, but specifically on this server with the test configurations i'm getting this codeGenerationException error that points to a missing directory but isn't exactly clear WHICH directory is missing or what it should be.

 

For giggles i set it to use Axis1 and when it generated the error it did so with an obscured foldername (for instance, i have five folders in .../cfusion/stubs and none of them contain the host name, only one was modified today and when i skip over and go looking for the subfolders there definitely isn't a CodeGenerationError.class file there, but the folder is world writeable.  (here's the axis1 error's folder information)

C:\ColdFusion11\cfusion\stubs\ https:\servername\services\servicename.cfc?wsdl_1\coldfusion\xml\rpc\CFCInvocationExcepti on.java

Of note, everything in what APPEARS to be that folder is a class and not a java as well.

(Once we tested this, i set it back to Axis 2 as the server is being called by five other apps.)

 

Hopefully that is enough to start with, i can also say that the wsdl returns data whether i call it with cfhhtp or from a browser on the web server.  It's not till the code is invoked that this directory not being a directory comes up.

 

Let me know if i need to move this to another forum.  And thanks.

 

Message was edited by: Michelle Tracey

CF pages for site redirect to a different IIS site

$
0
0

ColdFusion 8,0,1,195765

Windows Server 2003 R2 SP2

IIS 6

 

I have 4 (for arguments sake: site1, site2, site3 and site4) sites set up in IIS, all using CF on individual IP addresses.

 

When I try and add a new site (site5) to replace any one of the 4 existing sites, every page request for site5 resolves to site2.  If I try to replace site2 with site5, I get the following error when browsing to the site:

 

Error 102 (net::ERR_CONNECTION_REFUSED): Unknown error.

 

I have not had a problem adding sites up to the current point and each site works fine independently.  I have tried replicating settings from the other sites but this has made no difference.

 

If I remove the cf mapping from the site or browse to a non cf page (aps, php, html) the pages load fine.  Adding the CF mapping back in causes the redirect to site2 again.

 

Any ideas or suggestions would be greatly appreciated.

 

Thanks,

Paul

ColdFusion 10 silent installation and configuration

$
0
0

Hi,

 

CF 10 docs seem a tad thin on the subject of silent / unattended / scripted installation and configuration.

 

I need to find a fully automated (scripted) way to do these things:

1) install of ColdFusion 10 server in standalone mode

2) create additional servers instances

3) configure each server instance separately (settings, data sources, mappings, etc)

 

Is this currently possible with CF 10? If yes, where's the documentation?

 

I'm aiming for a Chef cookbook for performing unattended CF10 installations on a farm of headless Linux hosts. Manual configuration through the Administrator UI is a definite deal breaker here.

 

Thanks in advance!

 

Best regards,

Jan

Viewing all 78799 articles
Browse latest View live


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