I migrated from CF10 standard to CF11 trial version but the chart fail to render in the webpage. It says com.gp.api.jsp.MxServerComponent is not found
Does anyone here know whether CF11 comes with Webchart3D?
I migrated from CF10 standard to CF11 trial version but the chart fail to render in the webpage. It says com.gp.api.jsp.MxServerComponent is not found
Does anyone here know whether CF11 comes with Webchart3D?
Hi all,
we are currently upgrading a SLES 11 Server to CF10 64bit.
Last week we spend 2 days to eliminate a problem with the connector.
Apache refused to deliver CF-Pages. The log file said that mod_jk could not connect to the cfusion instance - Error 503...
We finally fixed this by copying a mod_jk binary from a working CF10 Server to this one.
Now Apache (2.2.23) serves all CF pages flawlessly.
What I just discovered was a problem, when a client doesn't accept cookies and J2EE-Sessions are turned on.
A URL with the sessionid appended (as for example cflocation creates it) results in a 404 error:
http://xxxxx.xxxxxx.com/login.cfm;jsessionid=xyxxyxyxyxyxyxy
I remember such a problem from a CF6/7 install, but that was IIS on Windows.
I'm just stuck with this one.
Can somebody please help?
Regards
Joerg
Hello,
I am using Coldfusion 2018 with Oracle Database. One of my pages in the application gives me an error as shown below
How can this be resolved ? I am not getting the same error on Test server where the same version of Cold fusion 2018 is installed.
Thanks
IQ
Error Executing Database Query. | |
ORA-01858: a non-numeric character was found where a numeric was expected | |
The error occurred in C:/inetpub/wwwroot/TOPS/ValidateConsumptionList.cfm: line 134 Called from C:/inetpub/wwwroot/TOPS/ValidateConsumptionList.cfm: line 1 Called from C:/inetpub/wwwroot/TOPS/ValidateConsumptionList.cfm: line 134 Called from C:/inetpub/wwwroot/TOPS/ValidateConsumptionList.cfm: line 1 | |
132 : and dd.data_date = TO_DATE(<cfqueryparam 133 : value="#time1#" 134 : cfsqltype="VARCHAR" 135 : maxlength="28">,'YYYY/MM/DD hh24') 136 : WHERE lu.IPN in (304305,304350,304354,304352,304309,304310,304311,304312, 304313, 304314) |
and dd.data_date = TO_DATE(<cfqueryparam
133 : value="#time1#"
134 : cfsqltype="VARCHAR"
135 : maxlength="28">,'YYYY/MM/DD hh24')
136 : WHERE lu.IPN in (304305,304350,304354,304352,304309,304310,304311,304312, 304313, 304314)
This is the query that I am trying to run and I am getting the above error
<CFPARAM NAME="Form.UserLogin" default=" " TYPE="string">
<CFPARAM NAME="Form.UserPassword" default=" " TYPE="string">
<CFQUERY NAME="GetUser" DATASOURCE="Blinkey">
SELECT *
FROM OWContacts
WHERE UserLogin = '#Form.UserLogin#'
AND UserPassword = '#Form.UserPassword#'
</CFQUERY>
<cfdump var="#GetUser#">
This query is for the login page of the intranet system that I am responsible for.
I've read several threads trying to figure out the problem and as of yet haven't found a good answer. The code works in CF9, but I am trying CF2018 on my test server and I keep getting the error. I've checked the DSN information and the data source that is being called is marked as the default database for the login.
My short term objective is to open a .xlsx file with ColdFusion, close it, and then open it with excel. The long term goal is to edit individual cells which cfspreadsheet does not support, so I am using apache poi.
Every reference I looked at said that the way to close a file is to create a FileOutputStream object and use it's close method. Sounds simple, but,..
This gets us started.
TheFileCF = ExpandPath( "./dan.xlsx" );
TheFileJava = CreateObject("java","java.io.File").Init(TheFileCF);
This will open the file:
TheWorkbook = CreateObject("java","org.apache.poi.xssf.usermodel.XSSFWorkbook").Init(CreateObject("java ","java.io.FileInputStream").Init(TheFileJava));
This will crash, saying that TheWorkbook does not have a close method.
TheWorkbook.Close(CreateObject("java","java.io.FileOutputStream").init(TheFileJava));
This will run successfully.
TheOutputStream= CreateObject("java","java.io.FileOutputStream").init(TheFileJava);
TheOutputStream.Close();
However, once you run it, when you try to open the file in Excel, you can't. The error dialogue says that the format doesn't match the extension. Also, further attempts to run the webpage will throw this error. "An exception occurred while instantiating a Java object. The class must not be an interface or an abstract class. Error"
That will continue until you comment out some code and do this:
x=TheFileJava.delete();
My trials and errors tell me that this is the command that affects the file.
TheOutputStream= CreateObject("java","java.io.FileOutputStream").init(TheFileJava);
So how do I close the file?
Hi Team,
How do we reset the cold fusion administrator password? Please email me at mandira.dey2@pseg.com
I have a CF application that's running fine on a shared host. I now have a VPS running version of CF 9. When I try to use this on the VPS, I get the following error:
Attribute validation error for tag CFQUERY.
The value of the attribute datasource, which is currently '', is invalid.
The datasource is being set in application.cfc, and again works just fine in the shared environment.
The only differences is the shared is running on Windows, and the VPS is Linux. Also, the Windows is running version 9,0,1,274733 and the Linux is 9,0,0,251028
Any help would be greatly appreciated.
Recently I got a VPS server and I'm running Coldfusion, the website was running fine until it got more and more traffic and I started to encounter 'OutOfMemory' exceptions.
I thought simply to rise the memory of the VPS server, but this didn't help.
After doing some Google searches I found a setting in de CF Admin settings to set the JVM Heap memory. It was on the standard: Max Heap size 512MB and Min Heap size was empty. After playing around a bit I have now set it to Min 50MB and Max 200MB, good things is that I'm not getting the 'OutOfMemory' exceptions anymore. So far so good!
But with about 50 active visitors on the website, the website starts to get slow. The CPU usage is only about 8% (Windows Taskmanager), also the taskmanager show only about 30% of the 3GB RAM in use.
So I'm thinking that my values could be tweaked to use more of the RAM. Honestly I don't understand these JVM Memory heap settings, so I have no clue what is a good setting for me.
I found a CF script that displays the memory usage, the details are:
HeapMemoryUsage-Committed 194 MB
HeapMemoryUsage-Initial 50.0 MB
HeapMemoryUsage-Max 194 MB
HeapMemoryUsage-Used 163 MB
JVM -FreeMemory 31.2 MB
JVM -MaxMemory 194 MB
JVM -TotalMemory 194 MB
JVM -UsedMemory 163 MB
MemoryPool-CodeCache-Used 13.0 MB
MemoryPool- PS EdenSpace-Used 6.75 MB
MemoryPool- PS OldGen-Used 155 MB
MemoryPool- PS PermGen-Used 64.2 MB
MemoryPool- PS SurvivorSpace-Used 1.07 MB
Non-HeapMemoryUsage-Committed 77.4 MB
Non-HeapMemoryUsage-Initial 18.3 MB
Non-HeapMemoryUsage-Max 240 MB
Non-HeapMemoryUsage-Used 77.2 MB
FreeAllocatedMemory:30mb
TotalMemoryAllocated:194mb
MaxMemoryAvailable to JVM:194mb
% of FreeAllocatedMemory:16%
% of AvailableMemoryAllocated:100%
My JVM arguments are:
-server -Dsun.io.useCanonCaches=false-XX:MaxPermSize=192m-XX:+UseParallelGC- Dcoldfusion.rootDir={application.home}/../-Dcoldfusion.libPath={application.home}/../lib
Can I give the JVM more memory? If so, what settings should I use?
Thanks very much!!
I am creating a PDF document with set of questions answerable by multiple choice.
Example:
For which of the following disciplines is Nobel Prize awarded?
A. Physics and Chemistry
B. Physiology or Medicine
C. Literature, Peace and Economics
D. All of the above
In this example, the correct answer is "D - All of the above”
Here is what I would like to happen:
Example:
Question 1 - Correct
Question 2 - Correct
Question 3 - Wrong
Question 4 - Correct ...
d. I also want to display the total score at the end and a note if they passed or failed the test.
Thank you in advance.
Henry
Very strange, but repeatable issue I've run into. I'm using the barbecue Java barcode generator library to generate code128 compliant barcodes which are then handed to cfimage writeToBrowser to finally end up with printable packing/mailing labels. When rendered to screen, everything works perfectly, but as soon as I wrap it in a cfdocument tag, so that we can generate as a pdf for printing on a label printer, I'm ending up with the wrong image on the wrong label in a few cases. It's always the same records that end up reusing an image from an earlier record (and always the same earlier record). I can check in the ColdFusion8\tmpCache\CFFileServlet\_cf_image folder and see that all the correct images were created by the cfimage tag, but for whatever reason, some of the images don't make it into the pdf, but are replaced by a different barcode from an earlier record. I can't see any commonality between the two records and if I intentionally remove the earlier record from the query, the proper barcode shows up.
So, any ideas about where to go from here? Anybody know anything about how cfdocument pulls in images and if there is any kind of caching or prechecking of the images before rendering. I actually checked to make sure the two files didn't have the same MD5 sum to see if there was something happening there where CF thinks it's the same image. They were not the same.
I've tried this on two CF 8.01 boxes with the same result. Always the same records, same images, same problem, even if I limit the query to only the two problem records. I'm totally stumped. Anybody?
We are moving CF applications to Docker containers from Windows Server 2016 servers. We are using Windows authentication so have to rely on IIS for the webserver. I am trying to configure the IIS with 64bit version of isapi_redirect.dll under mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019 but getting the following error:
HTTP Error 500.0 - Internal Server Error
Calling LoadLibraryEx on ISAPI filter "C:\ColdFusion\config\wsconfig\1\isapi_redirect.dll" failed
Error details in Win Events:
TimeCreated Id LevelDisplayName Message
----------- -- ---------------- -------
8/7/2019 8:29:30 PM 2268 Error Could not load all ISAPI filters for site 'DEFAULT WEB SITE'. Therefore site startup aborted.
8/7/2019 8:29:30 PM 2214 Error The HTTP Filter DLL C:\ColdFusion\config\wsconfig\1\isapi_redirect.dll failed to load. The data is the error.
isapi_redirect.properties file has the following contents:
extension_uri= /jakarta/isapi_redirect.dll
log_file= C:\ColdFusion\config\wsconfig\1\isapi_redirect.log
log_level= info
worker_file= C:\ColdFusion\config\wsconfig\1\workers.properties
worker_mount_file= C:\ColdFusion\config\wsconfig\1\uriworkermap.properties
iis_buffer_enable= true
auth_complete= 1
iis_skip_custom_errors_enable= false
The connector is not creating any logs. The connector and configuration work fine on the Win2019 host but never inside the container. I have tried the tomcat connector and it's working fine just the CF connector is not working. Any help would be highly appreciated.
I have CF 2016 installed and at one time the CF administrator was working. the sort cut to the CFIDE/administration is does not server up the web page any longer.
CF is working on the server the websites are still running.
my sites are under WWW the coldfusion default is under wwwroot.
IIS default is WWW and does not include wwwroot. I'm guessing that's the problem. but again it did work at one time.
I think the answer may be in IIS? is there someplace I need to look for specific CF configuration in IIS?
Thanks you,
Mike
i am getting an error and some pages "Infinite loop creating new page due to column header overflow. " --
using report builder 9, i have a fairly simple report - that contains 4 subreports.
for some pages i get the error - it seems if there is more data than would fit on 1 page.
smaller pages work fine.
the subreports are all simple queries and dumps....
containing page header, column header, detail sections.
page header has just a text bar of the name of the section.
column header has the field names
detail section has the data - 1 row for each row in the recordset.
nothing i do seems to change getting "Infinite loop creating new page due to column header overflow. " on a page with more than 15-20 records returned.
any ideas would be appreciated.
Hi there,
We are using ColdFusion 2018 on Windows Server 2016. I would like to know error handling can be done in ColdFusion. On the server we get a detailed error messages a lot of which is technical. I would like to capture parts of this message and display it to the end users who access the application through a URL in a user friendly manner. Any suggestions on how this can be done ?
Thanks
IQ
Hello, all,
I've got CF code that is being used with a SELECT tag (multiple attribute), and it seems as though the SELECT tag is ignoring the selected attribute for the child options.
For example, I have code that will generate the following HTML:
<select name="selectA" id="selectA" multiple> <option value="">ALL</option> <option value="Option 1" selected="selected">Option 1</option> <option value="Option 2">Option 2</option> <option value="Option 3" selected="selected">Option 3</option></select>
But when the page loads, none of the options are selected. Any suggestions? What am I missing, here?
V/r,
^_^
I've a big issue with my new server:
Windows Server 2016 , IIS 10 , CF 2018 standard, FusionReactor
All works with good performance and without errors, but after 2 or 3 hours CF become slow and unresponsive.
I've noted that the number of threads in TIMED_WAITING status grows up continuosly, from the initial 100 to 5000 in about 2 hour, then CF begin crashing.
When IIS is offline, threds sto to grow up.
Here is a sample from a thred dump:
name : pool-702-thread-1 priority : 5 state : TIMED_WAITING (PARKING) group : pool at "pool-702-thread-1" #1755 prio=5 os_prio=0 tid=0x000001742eac0000 nid=0xa3d0 waiting on condition [0x000000541c8ff000] java.lang.Thread.State: TIMED_WAITING (parking) at jdk.internal.misc.Unsafe.park(java.base@10.0.1/Native Method) - parking to wait for <0x000000074a15b238> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.parkNanos(java.base@10.0.1/LockSupport.java:234) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(java.base@10.0.1/AbstractQueuedSynchronizer.java:2117) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(java.base@10.0.1/ScheduledThreadPoolExecutor.java:1182) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(java.base@10.0.1/ScheduledThreadPoolExecutor.java:899) at java.util.concurrent.ThreadPoolExecutor.getTask(java.base@10.0.1/ThreadPoolExecutor.java:1061) at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@10.0.1/ThreadPoolExecutor.java:1121) at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@10.0.1/ThreadPoolExecutor.java:635) at java.lang.Thread.run(java.base@10.0.1/Thread.java:844) name : pool-705-thread-1 priority : 5 state : TIMED_WAITING (PARKING) group : pool at "pool-705-thread-1" #1761 prio=5 os_prio=0 tid=0x000001742eac4000 nid=0xa7e4 waiting on condition [0x000000541cbfe000] java.lang.Thread.State: TIMED_WAITING (parking) at jdk.internal.misc.Unsafe.park(java.base@10.0.1/Native Method) - parking to wait for <0x000000074ad4b768> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.parkNanos(java.base@10.0.1/LockSupport.java:234) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(java.base@10.0.1/AbstractQueuedSynchronizer.java:2117) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(java.base@10.0.1/ScheduledThreadPoolExecutor.java:1182) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(java.base@10.0.1/ScheduledThreadPoolExecutor.java:899) at java.util.concurrent.ThreadPoolExecutor.getTask(java.base@10.0.1/ThreadPoolExecutor.java:1061) at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@10.0.1/ThreadPoolExecutor.java:1121) at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@10.0.1/ThreadPoolExecutor.java:635) at java.lang.Thread.run(java.base@10.0.1/Thread.java:844) name : pool-706-thread-1 priority : 5 state : TIMED_WAITING (PARKING) group : pool at "pool-706-thread-1" #1763 prio=5 os_prio=0 tid=0x000001742eab9000 nid=0xf238 waiting on condition [0x000000541ccfe000] java.lang.Thread.State: TIMED_WAITING (parking) at jdk.internal.misc.Unsafe.park(java.base@10.0.1/Native Method) - parking to wait for <0x000000074ad4c0f8> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.parkNanos(java.base@10.0.1/LockSupport.java:234) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(java.base@10.0.1/AbstractQueuedSynchronizer.java:2117) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(java.base@10.0.1/ScheduledThreadPoolExecutor.java:1182) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(java.base@10.0.1/ScheduledThreadPoolExecutor.java:899) at java.util.concurrent.ThreadPoolExecutor.getTask(java.base@10.0.1/ThreadPoolExecutor.java:1061) at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@10.0.1/ThreadPoolExecutor.java:1121) at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@10.0.1/ThreadPoolExecutor.java:635) at java.lang.Thread.run(java.base@10.0.1/Thread.java:844)
IIS Connector , and server.xml are properly configured, here is JVM args:
-server --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-modules=java.xml.ws --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/sun.util.cldr=ALL-UNNAMED --add-opens=java.base/sun.util.locale.provider=ALL-UNNAMED -XX:MaxMetaspaceSize=512m -XX:+UseParallelGC -Xbatch -Djdk.attach.allowAttachSelf=true -Dcoldfusion.home={application.home} -Duser.language=en -Dcoldfusion.rootDir={application.home} -Dcom.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize=true -Dcoldfusion.libPath={application.home}/lib -Dorg.apache.coyote.USE_CUSTOM_STATUS_MSG_IN_HEADER=true -Dcoldfusion.jsafe.defaultalgo=FIPS186Random -Dorg.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.JavaUtilLog -Djava.util.logging.config.file={application.home}/lib/logging.properties -Djava.locale.providers=COMPAT,SPI -Dsun.font.layoutengine=icu -javaagent:C:/FusionReactor/instance/cfusion.cf2018/fusionreactor.jar=name=cfusion.cf2018 ,address=8088,external=false -agentpath:C:/FusionReactor/instance/cfusion.cf2018/frjvmti_x64.dll
Tried to restart CF, IIS, the whole server, change connector config from 'all sites' to 'individual sites', nothing change thi behaviour. Anyone can help me?
On a self submitting form (like a Contact Us)...
Why is <cfif structKeyExists(form, "submitform")> preferred over <cfif IsDefined('FORM.submitform')>?
What is the advantage/benefit of structKeyExists?
Thanks
Hi everyone,
I have a java script window that is will open when user click on the link, my problem is that how I can pass a ColdFusion variable to the window. I am using ColdFusion 7 so I can not use cfwindow.what shold I put on the *** place??? I tried to put EntityId in the call place javascript:poponload(EntityId ); and function poponload(EntityId ), doesn’t 't work either so please let me know if you know how to do this.
My code:
<SCRIPT language="javascript">
function poponload()
{
window.open ('test.cfm?test='*** ,'mywindow','menubar=1,resizable=1,width=350,height=250');
}
</SCRIPT>
<body>
<cfform>
<cfset EntityId ="#form.EntityId#"> /I want to pass EntityId to the javascript window
</cfif>
<a href="javascript:poponload();">Find IDs</a>
</cfform>
</body>
Hola,
I installed CF 11 Update 2 today, and am now seeing nothing but a 500 error when trying to access either CF administrator or the application we are *trying to* host. In the CF logs, I keep seeing the following error messages each time CF 11 Application Server service is started:
"coldfusion.server.ServiceFactory$ServiceNotAvailableException: The Monitoring service is not available."
and
"Unable to initialise Monitoring service: coldfusion.server.ServiceException: Unknown tag: Arg"
I don't know whether these are the reason I'm getting the 500 error, however. I have tried rebuilding the web connector, restarting the OS and services, etc., to no avail. I also tried installing a VSC++ 2012 redistributable that I saw was suggested somewhere on these forums, and that did not help either.
Any help would be greatly appreciated.
Hi Friends,
I have coldfusion9 in my application server. I have integrated .Net dll into CFM page. Its currently working fine.
Now installed ColdFusion 16 trial version on a new server. Moved ColdFusion 9 code to new server and everything working fine except .Net integration part.
I am getting error
"DotNet Side does not seem to be running.Ensure that the DotNet agent is running and you have provided the correct host and port information "
My dotnet dll registered in "GAC_MSIL"
My server is WIndows 2008 R2 32bit.
I don't know what i am missing.
Please help me.
Thanks,
Ashok Mohanty