I seem to not be able to access a mapped network drive with CFDIRECTORY and
CFCONTENT.
The CF7 app needs to be able to access/manage a store of PDF files and display
them in the user's browser.
Everything works great as long as the PDF files are located in a folder on a
drive directly
While using cffile upload, I seems to be getting 'String index out of range:
-1' after the file is placed in the application directory. All the required
parameters are given as stated in the docs. Could someone please advise me what
the above error means? The code is given below:
--
cffile
I haven't done it with the actual drive letter of a mapped network drive but
we upload and read files at work all the time with a UNC path since our
storage server is a separate machine. Have you tried that instead?
Eg. \\[ipaddress or computer name]\sharename
I will try cfdirectory and
Well, Did you check what is the thread doing when you say the Server is hung?
Can you take a thread dump and post that here? You can take the thread dump
using Server monitor or you can refer to my post
http://coldfused.blogspot.com/2005/11/thread-dumps.html
however, I see few potential
Well, Did you check what is the thread doing when you say the Server is hung?
Can you take a thread dump and post that here? You can take the thread dump
using Server monitor or you can refer to my post
http://coldfused.blogspot.com/2005/11/thread-dumps.html
however, I see few potential
Arden,
This is a permissions issue (almost guarantee it). Change the
coldfusion service to run as a user in the domain with access to the
shares you need to save/read from, and you will be all set. Personally,
I create a 'cfUser' or 'coldfusion' user on the domain and give it very
specific
Ian,
Can anybody point out what is fundamentally wrong with this code. Such
that it has at least a 50% chance of complete failure resulting in a
non-responsive ColdFusion server that must be restarted. What gets me
is that sometimes it works completely correct and produces all the
desired
The fileField parameter is incorrect - just use the name of the form element:
fileField=fileName
On Thu, Jul 10, 2008 at 4:45 PM, Kamru Miah [EMAIL PROTECTED] wrote:
While using cffile upload, I seems to be getting 'String index out of range:
-1' after the file is placed in the application
Maybe wrap it in
something like !- [BEGIN TEXT TO GRAB] -- This is the text you want
indexed !-- [END TEXT TO GRAB] --
Pretty good idea! And the use CF_REExtract to grab it ;-)
--
___
REUSE CODE! Use custom tags;
See
I have had the same error before with file upload. The cause of my
problem was that the destination file path was not exactly correct.
However, in your case since the file is already uploaded to the server then
it must be correct. I saw that you are using the MODE attribute...could
this be an
Excellent point Dan!
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
Hi all,
Does anyone know if the Verity server that ships with CF8 Enterprise has an API
that would be accessible via .NET? Our back-end and in-house systems are all
created in .NET, but the main website is CF and folks are loving the Verity
functionality so much that they want to look into
Sure! Makes sense. What we have is a once-every-two-months problem, and
while working on what the problem is, I'd like to reduce the impact on our
users. Once the Out of Memory error occurs, there's nothing to do but a
restart anyway.
Thanks,
Chris
-Original Message-
From: Rick Root
Works fine on Debian and Ubuntu as well.
On Wed, Jul 9, 2008 at 8:42 PM, Gerald Guido [EMAIL PROTECTED] wrote:
Thrice. Working on getting Railo 3 beta and Apache Tom Cat to do the same.
Got it working on Winders... Centos is next.
~G~
On Wed, Jul 9, 2008 at 9:25 PM, denstar [EMAIL
Also, Ian, how many threads are you creating here based on the query
results? 10? 10,000?
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
Brian Kotek wrote:
Also, Ian, how many threads are you creating here based on the query
results? 10? 10,000?
For this process 1,371. That is my basic question at this time -- What
are the practical limits of the cfthread...
Here is my simplest test case to date. I seems to show that
Dan G. Switzer, II wrote:
Ian,
I wonder if the problem isn't with cfthread / but actually with heavy
usage of either cfreport / or cfpdf / tags.
Are you creating large reports? It could be a memory issue your running in
to. How much RAM is available to the JVM?
I would try simplifying
I guess this is a rear error (due to unknown mimetype of file?), but can
someone tell me how to handle when cffile error, so that user gets a meaningful
message?
~|
Adobe® ColdFusion® 8 software 8 is the most important and
Has anyone done anything with streaming servers and ColdFusion?
If so, how was it done and were there any issues you ran into.
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free
Yes the problem is probably that you are creating over 1000 threads, each of
which runs a cfreport tag to generate a PDF. You're probably killing the
server. CFThread threads are just like any normal CF web thread, and you
certainly wouldn't want to try and simultaneously process 1000 HTTP request
The memory usage of the PDF report generation is defiantly a problem.
It is what we where trying to address with the usage of the thread tag.
The idea being that by splitting the process into separate threads and
throttle them down would allow the server time to clean up memory used
in previous
Brian Kotek wrote:
Also, Ian, how many threads are you creating here based on the query
results? 10? 10,000?
For this process 1,371. That is my basic question at this time -- What
are the practical limits of the cfthread...
Here is my simplest test case to date. I seems to show that there is
When using a streaming server and serving a file using cfcontent, is the CF
engine busy the entire time the file is being served, or does the thread
terminate and the web server then does the streaming?
~|
Adobe® ColdFusion® 8
A colleague sent me an email with an interesting problem and therefore I
have a challenge for all you who have experience with Internationalized
web application development.
There is an employee table which contains the first and last name of
international employees. This means that it is
He could also still use cfthread, but loop over the query and create the
threads in chunks rather than all at once. I don't know how well that will
work given the overhead of creating the PDFs, but it would be worth trying
in different chunks (2, 5, 10, etc.).
On Thu, Jul 10, 2008 at 10:57 AM,
Ian,
Here is my simplest test case to date. I seems to show that there is a
limit, but I really don't know where it might be.
cfloop from=1 to=1500 index=i
cfthread action=run name=th_#i# threadID=#i#
cfset thread.foobar = threadID
cfset thread.calc = threadID *
Dan, I already suggested this approach to IAN nearly a month ago--
twice.
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:307447
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:307626
If he thought there was merit in that he probably would have tried it
Hmm... this is an interesting problem.
But I am a bit confused: what is your criteria for sorting international
names? For example, for the Janpanese names, are the actual names stored
(with Japanese characters), or just the alphabetized version of the them? If
the actual Japanese characters are
Brad Wood wrote:
Dan, I already suggested this approach to IAN nearly a month ago--
twice.
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:307447
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:307626
If he thought there was merit in that he probably
Right, first you have to establish your sort algorithm.
Do it manually on paper first with a sampling of data. Most romanic languages
would be relatively easy...however it's not all trivial. What comes first? é
è ê ë ? What about special characters limited in even romanic languages? þ Ð
Right, first you have to establish your sort algorithm.
Do it manually on paper first with a sampling of data. Most romanic languages
would be relatively easy...however it's not all trivial. What comes first? é
è ê ë ? What about special characters limited in even romanic languages? þ Ð
Is there any way to speed up a query that uses DISTINCT on a large table.
SELECT DISTINCT(COLORCLASS)
FROM JobTicket
WHERE COLORCLASS IS NOT NULL
ORDER BY COLORCLASS
This query takes about 4 seconds because the table is very large.
Actually Qing Xia, how are chinese phonebooks done? Is it by pinyin?
I grew up here in the US, dunno how alot of commonplace things are in China
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
Don't want this thread to die. Does anybody have any ideas on how to get
cflayout transparency? I have been messing around with the ext css file but am
unable to find anything for cflayout. Any ideas?? THANKS!
~|
Adobe®
Good question, actually, upon further clarification, the Japanese names
appear to be using the English alphabet, or at least the Westernized
alphabet. However, I'll give an example.
The following shows an alphabetical list of last names:
Littrell
Liu
Liénard
Åquist
Shouldn't
OK, then. I'll take you off my black list. :)
~Brad
-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2008 11:00 AM
To: CF-Talk
Subject: Missing Messages --- was Re: The Woes of CFThread -- going out
of my mind!
Brad Wood wrote:
Dan, I already
Ok, I don't have a clue, but I'll suggest something just so your thread
doesn't die. :)
Try loading the page in FireFox, and checking out the elements in
question with the DOM inspector. It may give you some clues as to what
CSS classes are controlling the layout and formatting of your trouble
I'd also check if there's a spam blocker 'upstream' from you, especially if
your getting your mail through a business location. In addition, the server
is set to try and send mail for 48 hours before dropping it. A network
problem that prevents or distorts mail server connections within that time
I know that you could probably sort a field by first assigning a
collation such as the following
Really not trivial.
For some languages, a collation is not enough.
I may be wrong, but I think I've learned that in Spanish for instance,
the double l or ch are not considered as a two letters but
I've had some luck with flip-flopping between
select distinct(field)
from table
order by field
and
select field
from table
group by field
order by field
In some cases the first was faster, in some cases the second,
depending on indexes, the field type, and the DB
Brad, I am unfamiliar with that but I will def research it and see if it helps.
Thanks for your input!! Much appreciated!
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
Littrell
Liu
Liénard
This is a good example.
Liénard comes at the end, because apparently the sort uses the ASCII
collating sequence in which é comes after all other non accented characters.
A solution would be to have two columns for names, like
Name key
-
Liénard
Thanks Barney!
I added an index to the column and that made a HUGE difference.
I will experiment with grouping also.
-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2008 12:30 PM
To: CF-Talk
Subject: Re: query optimization
I've had
Is there any way to speed up a query that uses DISTINCT on a
large table.
SELECT DISTINCT(COLORCLASS)
FROM JobTicket
WHERE COLORCLASS IS NOT NULL
ORDER BY COLORCLASS
This query takes about 4 seconds because the table is very large.
Is there an index on COLORCLASS?
Dave Watts, CTO,
Yep, you are right, in China, the phonebooks and dictionaries are sorted
ascending using pinyin. So, in this case, if the Chinese names are stored
in the DB using pinyin, then it is actually easy to sort because there will
be no symbols outside of the 26 English alphabet letters.
On Thu, Jul 10,
Go download FireFox. Now.
Then download FireBug.
Then download ColdFire.
You may never look back. :)
http://www.mozilla.com/en-US/firefox/
https://addons.mozilla.org/en-US/firefox/addon/1843
http://coldfire.riaforge.org/
~Brad
-Original Message-
From: Michael Fisher [mailto:[EMAIL
I think Lienard (how do you bring up the symbol on a QWENTY keyboard) is
after Liu because that e comes after the 26 English alphabet letters. Same
reason why Aquist (with that A) is at the end of the list.
On Thu, Jul 10, 2008 at 12:16 PM, Vince Collins [EMAIL PROTECTED] wrote:
Good question,
I think Lienard (how do you bring up the symbol on a QWENTY keyboard) is
after Liu because that e comes after the 26 English alphabet letters.
It come at the end in the ISO character set, but alphabetic sort should
not use the ASCII code
Thus the problem.
--
Aha. Interesting.
BTW, if you wouldn't mind sharing, I'd love to learn from your function
which converts iso-8859-1 strings to upper case keys.
I have not had a chance to work with international characters in the DB, so
this sounds really interesting.
On Thu, Jul 10, 2008 at 12:52 PM, Claude
I have not had a chance to work with international characters in the
DB, so
this sounds really interesting.
I'm sending it by private eMail, I'm affraid that posting it here will
make the message too large.
It works works for strings in ISO, and may be used for databases in ISO,
not UTF-8
--
We are also running into out of memory issues. I currently restart CF twice
a day (we have load balancing and session replication so it shouldn't affect
users), but I would love for it to restart automatically.
If it's not possible to do it automatically, I would probably build some
sort of
The loading icon that is displayed when I'm using things like CFDIV is
great, but I want this same functionality when using AJAXPROXY and
calling my own javascript routines that in turn point to my CFC
functions. My apps works fine as is, but I don't have any visual
notification that the
Two things:
1) You mentioned you are using session replication. How much stuff are
you putting in the session scope. Large objects can eat memory since
sessions are replicated to all instances whether or not they are needed
there.
2) Do you know if your out of memory errors relate to the heap
Anyone know if there is some javascript function I can call to invoke
the CF loading div and then hide it again? Something like
coldfusion.ajax.showLoading() or some such thing. I've been looking
online and in the CF javascript source files and haven't figure it out
yet.
It's just a hidden div
I have an extranet where we exchange files with clients. I'm using cffile
action=upload to upload the files.
When the files are really large and take too long to upload the server times
out.
How can I extend the upload time?
Thanks
Robert B. Harrison
Director of Interactive services
Austin
I have an extranet where we exchange files with clients. I'm using cffile
action=upload to upload the files.
When the files are really large and take too long to upload the server times
out.
How can I extend the upload time?
If you're on CF8 you could use cfthread
Or just add this to the top
Is there any reason these three would not play nicely together?
We are combining two initiatives here, one is an organization wide look
and feel over haul that made extensive use server side includes and no
consideration of application servers in the templates we are now
mandated to use. The
Not on CF8. Tried adding cfsetting requesttimeout=, but it still
times out right at two minutes.
Any other ideas where this may be coming from or how I can override it?
I have an extranet where we exchange files with clients. I'm using
cffile action=upload to upload the files.
When
Hello - wondering if anyone can help me...
I'm trying to dynamically add a child node to an XML node and all that I know
of the parent that I want to add it to is the XmlAttributes.id value
Here's the example XML file that I am trying to create:
Hello - wondering if anyone can help me...
I'm trying to dynamically add a child node to an XML node and all that I know
of the parent that I want to add it to is the XmlAttributes.id value
Here's the example XML file that I am trying to create:
Sorry for the double-post...
Hello - wondering if anyone can help me...
I'm trying to dynamically add a child node to an XML node and all that
I know of the parent that I want to add it to is the XmlAttributes.id
value
Here's the example XML file that I am trying to create:
Surely you have a dev environment you can test on? If it doesn't
work, you can potentially use a servlet filter to do it on the JEE
container. Tomcat ships with one out of the box, I don't know about
other containers.
cheers,
barneyb
On Thu, Jul 10, 2008 at 1:41 PM, Ian Skinner [EMAIL
Barney Boisvert wrote:
Surely you have a dev environment you can test on?
Yes we do, and we will test it there. But this is just beyond my
experience that a little guidance would be nice.
~|
Adobe® ColdFusion® 8 software 8 is
Anybody get cfdiv to work inside a flash form?
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
I sure hope it fixes your problem. If not, you'll have problems
Googling for that error number. :)
http://www.codersrevolution.com/index.cfm/2008/7/9/The-Side-of-the-Net-G
oogle-wont-show-you
~Brad
We are upgrading to 8.0.1 now. Hopefully this addresses the problem,
Our problem is the
I have a question on the subject of Singletons, opinions solicited. Allow me to
illustrate my question by comparing what I consider to be two nearly equivalent
means of executing the Singleton pattern:
scenario A (the object written exactly right):
!-- create the singleton --
cfset
Have you checked all your logs for more info? IIS/Apache, ColdFusion,
JRUN?
Is there a stack dump that accompanies this The error occurred on line
-1 error?
If you have CF8 Enterprise, start using the server monitor to catch
poorly performing requests and memory usage. If you have CF8
Does anyone know how to either (a) get a page footer to only print on the last
page, or (b) to make sure that the report footer is always aligned on the
bottom of the page?
Basically, I have an invoice that can be anywhere from 1 to n pages. On the
last page, there is a spot to sign the
Lastly, can anybody offer or point me to some resources that provide good
solid guidelines to follow when writing a CFC that is to be utilized as a
Singleton?
The only time I have run into problems when using scenario A (no lock) is
when I neglected to var scope all variables within the
On Thu, Jul 10, 2008 at 6:02 PM, Doug Boude (rhymes with 'loud')
[EMAIL PROTECTED] wrote:
At times, writing a CFC that is to be utilized as a singleton can be a bit
tricky for me...trying to visualize it being accessed by multiple users
simultaneously leaves me thinking that maybe there's
When using a streaming server and serving a file using
cfcontent, is the CF engine busy the entire time the file is
being served, or does the thread terminate and the web server
then does the streaming?
If you serve a file using CFCONTENT, you aren't using a streaming server for
that file.
I'd try to really limit the number of threads your creating.
I'd even look at limiting things to a fixed number of worker
threads. Try dividing the work load between like 5 or 6
threads. Have each thread process it's share of the work load
(i.e. each work load would handle 1/5 of the
Running coldfusion7 over Jrun4. Specifically the cfusion-out.log file. When
running, is that file ALWAYS open or does it open-write to-and then close.
Is there anyway to limit/adjust what is written to this log?
Are there any issues with running cf7 and cf8 side by side on a server over
jrun4?
Does anyone know how to either (a) get a page footer to only
print on the last page, or (b) to make sure that the report
footer is always aligned on the bottom of the page?
Basically, I have an invoice that can be anywhere from 1 to n
pages. On the last page, there is a spot to sign the
Anybody get cfdiv to work inside a flash form?
DHTML and AJAX functionality won't work inside Flash forms, so presumably
CFML tags that generate that stuff won't work either.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber
Claude,
I'd also be very interested in your ISO-8859-1 function. Internationalized
applications are becoming far more prominent these days...
Thanks,
Gabriel
-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED]
Sent: Friday, 11 July 2008 3:18 AM
To: CF-Talk
Subject: Re:
You are going to make me write cf_FreeExtract aren't you...
-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2008 8:43 AM
To: CF-Talk
Subject: Re: Extract text from webpage content using cfhttp
Maybe wrap it in
something like !- [BEGIN TEXT
It's obvious, but caching a lot of CFCs uses quite a bit of memory
too. Permgen, I reckon.
And it'll slow start-ups to a crawl if you're using the EJB Annotation
auto-checking stuff in JBoss. :-)
--
Men judge generally more by the eye than by the hand, for everyone can
see and few can feel.
On Thu, Jul 10, 2008 at 3:14 PM, Ian Skinner wrote:
Barney Boisvert wrote:
Surely you have a dev environment you can test on?
Yes we do, and we will test it there. But this is just beyond my
experience that a little guidance would be nice.
As usual, I'll come from left field and say, what
On Thu, Jul 10, 2008 at 3:46 PM, LSD 4Me wrote:
Anybody get cfdiv to work inside a flash form?
Can you stick an iFrame in a Flash form?
--
There are three classes of intellects: one which comprehends by
itself; another which appreciates what others comprehend; and a third
which neither
80 matches
Mail list logo