Re: CF thinks 0F is boolean.
On Wed, Jun 11, 2008 at 6:32 AM, Adam Haskell wrote: > I won't say yes or no one way or another on the legality or really even the > morality but I will say this puts you in a compromising position for > submitting work to any open source CFML engine. We've already had the > discussion surrounding certain comments coming from the CF community about > viewing source code and decided that we will most likely never be accept > code from folks that openly admit to these types of activities. An OS > project can not risk even in the slightest taking compromised code. But if a friend of a friend submitted the code it would be cool? I'm glad that the legal battles have played out as they have, for the most part, so far. Regarding source and whatnot. I love the idea that I couldn't legally fix, or even diagnose a problem, with something I own. Really I don't love that idea. I love watching chefs do battle. That's for real. Void a warranty?, sure, but go to jail for tearing the tags off? Lame! :-P There's this whole strange idea about ownership these days. Do you know that long ago, things went into the public domain faster than they do now? Why has that changed? Oh well. That's good stuff to know, Adam. I guess we can debate the merit of copyright and whatnot over on community or OT (assuming I sign up with OT-- where I most likely belong|]). Guess any submissions I'd make would be suspect. Hopefully it takes more than just knowing about such things as decompilers-- maybe poor Brad and anyone who read this thread is now suspect... sorry folks. * Is decompilation legal? Yes, if restricted to legal uses in the section "Why is a Java decompiler useful?" For the same reasons that one can photocopy a few pages from a book, a developer may disassemble or decompile executable content. We are protected by the notion of "fair-use". Reverse engineering of an entire application and shiping under a different name clearly violates both our license agreement with our end users, and this notion of "fair-use". It is not our objective to see our tool used in this manner. (I hope whoever I "decompiled" this from is ok with the excerpt!) LOL. I'm getting out of hand. Peace and potatoes! -- Pick me up ~ Mom and Dad Save the World ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307380 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF thinks 0F is boolean.
On Wed, Jun 11, 2008 at 12:58 AM, Brad Wood <[EMAIL PROTECTED]> wrote: > Sounds very cool. I am one of those "digging" types -- dare I admit it. Don't admit it! Whatever you do! But don't deny it either! Plead the 5th. =] To be clear, I wasn't advocating doing anything illegal or immoral. Of course, with the sheer number of laws out there... and strange morals... guess it's hard to be sure. Safer to not say nuth'n. -- I reckon ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307379 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Weird Column Name
I have a table which includes a most unfortunate column name: ID#:INST I have tried: INSERT INTO LS07DATA ( [ID#:INST], ... And INSERT INTO LS07DATA ( [ID##:INST], ... For Microsoft Access. Neither of which work. I get this for both: Invalid CFML construct found on line 9 at column 12. ColdFusion was looking at the following text: # The error occurred in D:\Inetpub\autmsurvey\Administration\Add_new_inst_action.cfm: line 9 7 : 8 : INSERT INTO LS07DATA ( 9 : [ID#:INST], 10 :ID, 11 :insttype, Any ideas for a work-around would be appreciated. TNX. Rick Colman ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307378 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Jrun Memory Usage Problem: could fileexists() be the culprit?
>CF8 ships with JDK 1.6 > >Version 1.6_06 isn't supported by CF8; 1.6_04 is the latest version >showing in the support matrix. Regardless, 1.6_06 still suffers the >classloader issue (which isn't fixed until 1.6u10 and that's still in >beta). > >On Fri, Jun 13, 2008 at 9:01 AM, Alex DeMarco <[EMAIL PROTECTED]> wrote: >>Plus 1.6 is much faster. > >-- >mxAjax / CFAjax docs and other useful articles: >http://www.bifrost.com.au/blog/ I'll just clarify by saying that upgrading to 1.6_06 was Adobe's recommendation. We deploy CFMX as an ear to a Jrun instance. Since I made the changes I mentioned we have not had any issues. - Alex ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307377 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Jrun Memory Usage Problem: could fileexists() be the culprit?
CF8 ships with JDK 1.6 Version 1.6_06 isn't supported by CF8; 1.6_04 is the latest version showing in the support matrix. Regardless, 1.6_06 still suffers the classloader issue (which isn't fixed until 1.6u10 and that's still in beta). On Fri, Jun 13, 2008 at 9:01 AM, Alex DeMarco <[EMAIL PROTECTED]> wrote: >Plus 1.6 is much faster. -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307376 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: JNDI, Coldfusion and the AdminAPI
> One trick I found that is getting me close is setting the > driver name to "jndi" (got that from the neo-datasource.xml), > but I am still getting an error. My next strategy is to just > directly call the java classes coldfusion uses internally. > Surely prone to problems down the line but I believe it is my > best bet. Try setting the JDBC URL to the name of the JNDI datasource. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307375 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Jrun Memory Usage Problem: could fileexists() be the culprit?
We had a similiar issue. Let me preface by saying I have not read this entire thread so if the info I give is redundant.. sorry. Anyways, we had a similiar issue. Code that worked fine under CFMX 7 would cause Jrun & cfmx 8 to suck down memory until it crashed. We narrowed it down to a piece of code that read in a large xml documented, parsed it, and then displayed it on the screen. Hit it once after the server would start and it would take 200 megs, hit it quickly a couple times and it would jump to 800 meg(max jvm memsize was 1.2g), do it a couple more times and the instance would crash. I was able to catch the ear of an Adobe support engineer and we have solved my problem. First, I upgraded to the lastest JVM 1.6_06 also, scaled down the memory quite a lot. Here is my jvm.config: java.home=d:/jdk1.6.0_06 java.args=-server -Xmx512m -Xms256m -XX:MaxPermSize=178m -Dsun.io.useCanonCaches=false -DJINTEGRA_NATIVE_MODE -DJINTEGRA_PREFETCH_ENUMS -XX:+UseParallelGC This has totally solved my problem our servers have been running great ever since. Plus 1.6 is much faster. Hope this helps. - Alex ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307374 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Disable "Transfer-Encoding: Chunked"?
Reinstalling the web server connector did nothing, but uninstalling the 4 security patches that we had recently installed (NONE OF THEM having ANYTHING to do with IIS) got rid of the random/intermittent "HTTP 500" problem. In case any of you start getting this problem, the 4 security patches were: KB950762 KB950759 KB951698 KB950760 I dont know if it was all or one or some combo of the patches, but it was pretty bad. Again, it was only CF that had this problem. It recurred through multiple reboots and numerous "Revert to inherited" attempts as well as the reinstallation of the web server connector. For comparison, the server is a CF8.01/IIS7/Windows Server 2008 x64 box on a dual Xeon quad-core processor. I hope this doesnt happen to any of you. >> Is there any way to force CF to use a different transfer >> encoding on all pages (without going into every page on every >> site on my server)? > >I would try uninstalling and reinstalling the web server connector using the >web server configuration utility. > >Dave Watts, CTO, Fig Leaf Software >http://www.figleaf.com/ > >Fig Leaf Software provides the highest caliber vendor-authorized >instruction at our training centers in Washington DC, Atlanta, >Chicago, Baltimore, Northern Virginia, or on-site at your location. >Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307373 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Jrun Memory Usage Problem: could fileexists() be the culprit?
> Moreover, in the CF Server Monitor it shows that CF is > actually destroying the objects as expected and releasing > memory back into the pool. However, if you actually look at > Jrun in the Task Manager, it's not. And, hitting Run GC to > invoke garbage collection in the Server Monitor doesn't get > the memory back either. I don't think CF/JRun will release memory back to the OS. The memory should be available for future CF requests, though. > Might we have run into a memory leak in the native SQL Server > database driver? Maybe. You might try disabling the "maintain connections" option within your datasource settings. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307372 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Jrun Memory Usage Problem: could fileexists() be the culprit? Whoops!
Whoops, somehow submitted that post twice. Sorry for the double-posting... Sean ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307371 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Jrun Memory Usage Problem: could fileexists() be the culprit?
Hey everyone, An update: * We installed FusionReactor * Deployed the site on a development box running CF Enterprise * Ran a number of load tests and tests on discrete parts of the application * Did various application and memory monitoring using both FusionReactor and CF's Server Monitor * Tweaked some more code based on the tests, including: ** fixing a few application errors; ** optimizing a few cfc methods and queries that were slow: ** reconfirming that we don't have any improperly scoped variables in the app, and that there wasn't any weird recursion or referencing of objects ** converting some pages that require complex but more or less static database queries into includes that get generated when the data changes in the database when a new data import is performed. ** temporarily commenting out some code that invokes cfx_image3 to generate artifact thumbnails. * Changed CF's Query Caching settings to zero, temporarily. * Retested * Played with various JVM settings that people suggested. No luck. Memory still keeps climbing. In fact, on some of the search results requests that return a large number of records you can watch Jrun grab a good 15-25 megs and not let it go. If you keep hitting the same page you can quickly force Jrun to hit it's buffer and stop responding. You shut this site down and restart Jrun in either dev or production and the server runs beautifully, no memory problems. Here's the weird thing: when you analyze these requests and the server state while running the load test, the total amount of memory being consumed by application and session variables, objects created and destroyed during the request cycle, even the size of the data returned from the queries, is completely insignificant: * The total amount of memory the application's objects that are being stored in the application scope is less than a Meg. * User sessions rarely take up more than a few kilobytes. * There's nothing in the server scope. * The largest query object clocks in at well under a megabyte. Moreover, in the CF Server Monitor it shows that CF is actually destroying the objects as expected and releasing memory back into the pool. However, if you actually look at Jrun in the Task Manager, it's not. And, hitting Run GC to invoke garbage collection in the Server Monitor doesn't get the memory back either. I'm running out of ideas. The last couple of things on our list are to rewrite some of the SQL to use SQL 2005's paging functionality (haven't got to that yet), and to try eliminating one technique we've been using. Some of our application-scoped singletons store a reference to our app's SessionFacade within themselves. This should be fine, because the SessionFacade has NO private/public properties, and when we invoke the SessionFacade's methods inside the other objects we're doing so according to best practices: declaring a variable that is private, i.e., Might we have run into a memory leak in the native SQL Server database driver? Or some kind of obscure JVM problem? Or maybe some kind of recursion hidden way in some cfc or view code that isn't causing a request to hang, but is somehow chewing up memory? My next steps after this might be to engage Adobe or maybe Charlie Arehart's company. Anyone have experience dealing with either? Thanks, Sean ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307370 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Jrun Memory Usage Problem: could fileexists() be the culprit?
Hey everyone, An update: * We installed FusionReactor * Deployed the site on a development box running CF Enterprise * Ran a number of load tests and tests on discrete parts of the application * Did various application and memory monitoring using both FusionReactor and CF's Server Monitor * Tweaked some more code based on the tests, including: ** fixing a few application errors; ** optimizing a few cfc methods and queries that were slow: ** reconfirming that we don't have any improperly scoped variables in the app, and that there wasn't any weird recursion or referencing of objects ** converting some pages that require complex but more or less static database queries into includes that get generated when the data changes in the database when a new data import is performed. ** temporarily commenting out some code that invokes cfx_image3 to generate artifact thumbnails. * Changed CF's Query Caching settings from 100 to 50, to eventually zero. * Retested * Played with various JVM settings that people suggested. No luck. Memory still keeps climbing. In fact, on some of the search results requests that return a large number of records you can watch Jrun grab a good 15-25 megs and not let it go. If you keep hitting the same page you can quickly force Jrun to hit it's buffer and stop responding. You shut this site down and restart Jrun in either dev or production and the server runs beautifully, no memory problems. Here's the weird thing: when you analyze these requests and the server state while running the load test, the total amount of memory being consumed by application and session variables, objects created and destroyed during the request cycle, even the size of the data returned from the queries, is completely insignificant: * The total amount of memory the application's objects that are being stored in the application scope is less than a Meg. * User sessions rarely take up more than a few kilobytes. * There's nothing in the server scope. * The largest query object clocks in at well under a megabyte. Moreover, in the CF Server Monitor it shows that CF is actually destroying the objects as expected and releasing memory back into the pool. However, if you actually look at Jrun in the Task Manager, it's not. And, hitting Run GC to invoke garbage collection in the Server Monitor doesn't get the memory back either. I'm running out of ideas. The last couple of things on our list are to rewrite some of the SQL to use SQL 2005's paging functionality (haven't got to that yet), and to try eliminating one technique we've been using. Some of our application-scoped singletons store a reference to our app's SessionFacade within themselves. This should be fine, because the SessionFacade has NO private/public properties, and when we invoke the SessionFacade's methods inside the other objects we're doing so according to best practices: declaring a variable that is private, i.e., Might we have run into a memory leak in the native SQL Server database driver? Or some kind of obscure JVM problem? Or maybe still some kind of recursion hidden way in the code that isn't causing a request to hang, but is somehow chewing up memory? My next steps after this might be to engage Adobe or maybe Charlie Arehart's company. Anyone have experience dealing with either? Thanks, Sean ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307369 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: urlencoded content type
> Anyone want to guess what underlying Java method is used to > get that data? In a JSP, you'd use request.getInputStream() if I recall correctly. Since the Apache Jakarta fileupload library came out, though, I haven't had to deal with that, so I could be wrong. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307368 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: urlencoded content type
Ok, I think I'm in business. The struct returned by GetHttpRequestData() has a key called "content" which is equal to the body of the HTTP request. I had forgotten this little guy existed but it is exactly what I need. Thanks, Dave. Anyone want to guess what underlying Java method is used to get that data? ~Brad > What happens if you access the request body directly, using CF's > GetHttpRequestData function? Hmmm, now we're talking. Let me try and get back to you... ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307367 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: urlencoded content type
> I disagree. The ampersand has been escaped properly for > inclusion in an XML document. The XML has NOT been url > encoded. OK, that's a fair cop. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307366 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Protecting images
> > You could embed the images in PDF, then use Adobe LiveCycle > > ES Rights Management to control access to the PDFs. That > > would prevent copying and printing. > > PDF's can be "unlocked" so they will print and copy. > Unfortunately, it is up to the client program which opened > the PDF to decide if it wants to obey the security flags. This is not true for PDFs protected through LCES Rights Management. They will only open in newer versions of Acrobat or Reader. They won't open at all in third-party PDF readers. They can't be unlocked with third-party tools. Arguably, they're not even PDFs at all any more; they're encrypted envelopes that contain a PDF. You generally have to connect to the policy server every time you open the file, although you can specify time-based policies to allow temporary disconnected use. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307365 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: urlencoded content type
> No, it's not valid. Or, more accurately, it's not well-formed. Ok, good so far. > That's not a problem, though, since the ampersand is properly escaped: > "&" I disagree. The ampersand has been escaped properly for inclusion in an XML document. The XML has NOT been url encoded. It SHOULD be: "%26amp;" since %26 is the proper way to url encode an &. ~Brad ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307364 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: urlencoded content type
> Well, uh, yeah. This isn't a theory, it's a simple observation. Lol. You crack me up. That is why I started out with a "simple" question to ease into the conversation. > What happens if you access the request body directly, using CF's > GetHttpRequestData function? Hmmm, now we're talking. Let me try and get back to you... ~Brad ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307363 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Disable "Transfer-Encoding: Chunked"?
> Is there any way to force CF to use a different transfer > encoding on all pages (without going into every page on every > site on my server)? I would try uninstalling and reinstalling the web server connector using the web server configuration utility. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307362 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: urlencoded content type
> Is the following (simplified) HTTP post valid? > > Please note the content type is set to > "application/x-www-form-urlencoded", yet the XML request > parameter is NOT url encoded. No, it's not valid. Or, more accurately, it's not well-formed. > Furthermore it has an ampersand (&) which makes it look like > there are really two request parameters. That's not a problem, though, since the ampersand is properly escaped: "&" Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307361 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: urlencoded content type
> I thought about that, and I have a theory that states the > likelyhood of getting a reply on the talk list decreases as > the length/complexity/details of your question grow. Well, uh, yeah. This isn't a theory, it's a simple observation. > Here's the problem: The post sent by this program uses a > content type of "urlencoded" which based on the RFC is > required to url encode any form variables it sends. Well, > guess what-- they don't. They send the XML over in plain > text. I have brought this to their attention and they told > me basically, "Yeah, we don't *really* think it's a bug-- you > should just modify your server to parse the post differently" > > First off, I think that's a pile of crap. > Second off, how the heck would I even do that? What happens if you access the request body directly, using CF's GetHttpRequestData function? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307360 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: LinkedIn CF group
Theis is a Railo group too ***http://www.linkedin.com/e/gis/71368/0CF7D323BBC1 * On Thu, Mar 6, 2008 at 11:54 PM, Ben Forta <[EMAIL PROTECTED]> wrote: > And here's a Flex group, just coz ;-) > > http://www.linkedin.com/e/gis/65596/7DF3445D30E0 > > --- Ben > > > -Original Message- > From: James Wolfe [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 04, 2008 6:01 PM > To: CF-Talk > Subject: LinkedIn CF group > > I'm not sure what purpose it serves, but I created a LinkedIn CF group if > anyone cares > > > http://www.linkedin.com/groupInvitation?groupID=63526&sharedKey=59CB6255962F > > > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307359 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: urlencoded content type
Ahh, so YOU'RE the _one_ person who hit my example page so far... :) That sounded good at first, but query_string is actually empty. It appears the xml variable is coming over as a form field only. Grrr I'm trying to play around with the whole GetPageContext() angle, but there is just SO MUCH stuff in there and I don't know what it all is. Check this out to make your head spin: http://www.bennadel.com/blog/758-ColdFusion-GetPageContext-Massive-Explo ration.htm ~Brad -Original Message- From: Wil Genovese [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2008 3:18 PM To: CF-Talk Subject: Re: urlencoded content type ok, I looked at your sample http post. Total crap IMHO. But we must eat crap at times. Ignore the form scope. Since this is passed as a query string on the URL use cgi.query_sting as your raw data and parse the real XML portion into it's own string the use CF's xml functions to convert into usable data. This could work, I think? Wil Genovese One man with courage makes a majority. -Andrew Jackson A fine is a tax for doing wrong. A tax is a fine for doing well. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307358 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: urlencoded content type
ok, I looked at your sample http post. Total crap IMHO. But we must eat crap at times. Ignore the form scope. Since this is passed as a query string on the URL use cgi.query_sting as your raw data and parse the real XML portion into it's own string the use CF's xml functions to convert into usable data. This could work, I think? Wil Genovese One man with courage makes a majority. -Andrew Jackson A fine is a tax for doing wrong. A tax is a fine for doing well. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307357 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: urlencoded content type
From: Peterson, Chris [mailto:[EMAIL PROTECTED] I guess I was just givin ya crap because the problem as stated had nothing at all to do with coldfusion. Maybe you should just include the entire problem? ;) Chris I thought about that, and I have a theory that states the likelyhood of getting a reply on the talk list decreases as the length/complexity/details of your question grow. People basically skip over the tough-looking threads in favor of the latest "Best CF Editor" nonsense. :) You asked for it, so here's the readers digest version. I am attempting to build an interface for a lovely little piece of title software called Calyx Point. Our customers fill in data in a little ..exe program (made by Calyx), click a button, and an HTTP post is sent to my server. ASSERTATION: I have absolutely no control over the HTTP post I am expected to process. Here's the problem: The post sent by this program uses a content type of "urlencoded" which based on the RFC is required to url encode any form variables it sends. Well, guess what-- they don't. They send the XML over in plain text. I have brought this to their attention and they told me basically, "Yeah, we don't *really* think it's a bug-- you should just modify your server to parse the post differently" First off, I think that's a pile of crap. Second off, how the heck would I even do that? Visit this page to see the sample HTTP post again and the form scope that is produced: http://bradwood.com/encoding/ The un-encoded ampersands clearly confuse ColdFusion and make it think there are multiple request parameters. If these Calyx clowns are going to insist on sending what I perceive as an illegal request body with a content type of urlencoded, I need some kind of work around to get to the actual request body of my page, since the form scope in ColdFusion uses the underlying Java methods which FOLLOW THE RULES. Basically, if people agreed that I was correct in my thinking of how encoding types should work, then I was going to begin soliciting work-arounds. I'm thinking some way to get at the underlying Java HttpServletRequest object to do my own parsing of the request body. There, ya happy? :) Let me have it. ~Brad ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307356 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
CF & SAPI 5.1 SDK
Has anyone used the SAPI 5.1 SDK directly with coldfusion yet? I've got some examples in Visual Basic, and am trying to "convert" them to CF, but not having much luck. Here's the VB example. Any suggestions?: Dim FileName As String Dim FileStream As New SpFileStream Dim Voice As SpVoice 'Create a SAPI voice Set Voice = New SpVoice 'The output audio data will be saved to ttstemp.wav file FileName = âc:\ttstemp.wav" 'Create a file; set DoEvents=True so TTS events will be saved to the file FileStream.Open FileName, SSFMCreateForWrite, True 'Set the output to the FileStream Set Voice.AudioOutputStream = FileStream 'Speak the text Voice.Speak âhello worldâ 'Close the Stream FileStream.Close 'Release the objects Set FileStream = Nothing Set Voice = Nothing ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307355 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Exception Thrown and Not Caught in IE
Thanks James that does do the trick. Is this a hack or a good way of handling this? What if the page takes a long time to load? Or the browser takes a long time to process the content? Will half a second suffice? Chad > -Original Message- > From: James Wolfe [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 12, 2008 2:26 PM > To: CF-Talk > Subject: Re: Exception Thrown and Not Caught in IE > > Just rename the onLoadFunction function to > >onLoadFunction_delayed() > > and create a new "onLoadFunction" that has only the following line of code > in it: > > window.setTimeout("onLoadFunction_delayed()",500); > > That will call the onLoadFunction_delayed function half a second after the > page finishes loading and you should be fine > > > I am experimenting with and I am running into a strange > > error that only happens in IE: > > "Exception Thrown and Not Caught" > > > > It works fine in Firefox. > > > > What I want to do is display a tab in if that tab is in my > > Query result. If that tab is not in my query results I hide it. > > > > So I am using javascript to hide/unhide tabs inside of a cfloop to > > decide that needs hidden and what does not. > > > > I load the javascript in the tags onLoad attribute. Should I > > be loading the JS differently? > > > > > > > > > > function onLoadFunction() { > > > > > > > > ColdFusion.Layout.showTab('ticketTabs','#item#'); > > > > ColdFusion.Layout.hideTab('ticketTabs','#item#'); > > > > > > > > } > > > > > > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307354 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: urlencoded content type
I guess I was just givin ya crap because the problem as stated had nothing at all to do with coldfusion. Maybe you should just include the entire problem? ;) Chris -Original Message- From: Brad Wood [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2008 2:41 PM To: CF-Talk Subject: RE: urlencoded content type Thanks for the suggestions, but why on Earth would I post a technical question related to Java/ColdFusion's parsing of request parameters from an HTTP post based on the encoding type to the cfcommunity list?? If anything, that sounds like the wrong place to post! I will check out the IRC channel, but I was hoping someone here could help. As soon as I get an answer to the encoding question, my follow-up question will get to the meat of my problem which directly involves Java/CF. ~Brad -Original Message- From: Peterson, Chris [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2008 1:05 PM To: CF-Talk Subject: RE: urlencoded content type You could always try cf-community, or #coldfusion on Dalnet. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307353 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: urlencoded content type
Thanks for the suggestions, but why on Earth would I post a technical question related to Java/ColdFusion's parsing of request parameters from an HTTP post based on the encoding type to the cfcommunity list?? If anything, that sounds like the wrong place to post! I will check out the IRC channel, but I was hoping someone here could help. As soon as I get an answer to the encoding question, my follow-up question will get to the meat of my problem which directly involves Java/CF. ~Brad -Original Message- From: Peterson, Chris [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2008 1:05 PM To: CF-Talk Subject: RE: urlencoded content type You could always try cf-community, or #coldfusion on Dalnet. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307352 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Exception Thrown and Not Caught in IE
Just rename the onLoadFunction function to onLoadFunction_delayed() and create a new "onLoadFunction" that has only the following line of code in it: window.setTimeout("onLoadFunction_delayed()",500); That will call the onLoadFunction_delayed function half a second after the page finishes loading and you should be fine > I am experimenting with and I am running into a strange > error that only happens in IE: > "Exception Thrown and Not Caught" > > It works fine in Firefox. > > What I want to do is display a tab in if that tab is in my > Query result. If that tab is not in my query results I hide it. > > So I am using javascript to hide/unhide tabs inside of a cfloop to > decide that needs hidden and what does not. > > I load the javascript in the tags onLoad attribute. Should I > be loading the JS differently? > > > > > function onLoadFunction() { > > > > ColdFusion.Layout.showTab('ticketTabs','#item#'); > > ColdFusion.Layout.hideTab('ticketTabs','#item#'); > > > > } > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307351 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Exception Thrown and Not Caught in IE
Ya if I execute my code with a button using onClick the code works fine. It is like the code is running before the page is done processing. How do I execute the javascript as the LAST thing the page does? > -Original Message- > From: Chad Gray [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 12, 2008 12:31 PM > To: CF-Talk > Subject: Exception Thrown and Not Caught in IE > > I am experimenting with and I am running into a strange error > that only happens in IE: > "Exception Thrown and Not Caught" > > It works fine in Firefox. > > What I want to do is display a tab in if that tab is in my > Query result. If that tab is not in my query results I hide it. > > So I am using javascript to hide/unhide tabs inside of a cfloop to decide > that needs hidden and what does not. > > I load the javascript in the tags onLoad attribute. Should I be > loading the JS differently? > > > > > function onLoadFunction() { > > > > ColdFusion.Layout.showTab('ticketTabs','#item#'); > > ColdFusion.Layout.hideTab('ticketTabs','#item#'); > > > > } > > > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307350 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: urlencoded content type
You could always try cf-community, or #coldfusion on Dalnet. Chris -Original Message- From: Brad Wood [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2008 1:27 PM To: CF-Talk Subject: RE: urlencoded content type Well, if it makes you feel any better, you were a last resort. I've been Googling around for a couple days with no luck and tried unsuccessfully to get _any_ response out of another more applicable forum, so I resorted to the tried-and-true CF talk list which regularly chimes in to help people with "related" issues that might not have "ColdFusion" in the name. This question _does_ have to do with how Java/ColdFusion interpret request parameters of an HTTP post based on their encoding type, but I was going with the "less is more" approach to try and slim down my initial question to a couple basic principles before I bored anyone with the details of my specific problem. ~Brad -Original Message- From: Peterson, Chris [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2008 12:16 PM To: CF-Talk Subject: RE: urlencoded content type Why would anyone in a coldfusion list be able to / desire to help you with a http content question?? You are in the wrong place buddy Chris ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307349 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: urlencoded content type
Well, if it makes you feel any better, you were a last resort. I've been Googling around for a couple days with no luck and tried unsuccessfully to get _any_ response out of another more applicable forum, so I resorted to the tried-and-true CF talk list which regularly chimes in to help people with "related" issues that might not have "ColdFusion" in the name. This question _does_ have to do with how Java/ColdFusion interpret request parameters of an HTTP post based on their encoding type, but I was going with the "less is more" approach to try and slim down my initial question to a couple basic principles before I bored anyone with the details of my specific problem. ~Brad -Original Message- From: Peterson, Chris [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2008 12:16 PM To: CF-Talk Subject: RE: urlencoded content type Why would anyone in a coldfusion list be able to / desire to help you with a http content question?? You are in the wrong place buddy Chris ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307348 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: urlencoded content type
Why would anyone in a coldfusion list be able to / desire to help you with a http content question?? You are in the wrong place buddy Chris -Original Message- From: Brad Wood [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2008 1:13 PM To: CF-Talk Subject: RE: urlencoded content type Ok, forget the "content type guru's" part. I now officially open this thread up so anyone can respond... Please... ~Brad -Original Message- From: Brad Wood [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2008 9:49 AM To: CF-Talk Subject: urlencoded content type Ok, you content type guru's... Forget the background info and crap, I'll cut to the chase. Is the following (simplified) HTTP post valid? Please note the content type is set to "application/x-www-form-urlencoded", yet the XML request parameter is NOT url encoded. Furthermore it has an ampersand (&) which makes it look like there are really two request parameters. = POST /Transaction/databroker? HTTP/1.1 Accept: / Accept-Language: en-us Content-Type: application/x-www-form-urlencoded Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727) Host: test.myserver.com xml= = ~Brad ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307347 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: urlencoded content type
Ok, forget the "content type guru's" part. I now officially open this thread up so anyone can respond... Please... ~Brad -Original Message- From: Brad Wood [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2008 9:49 AM To: CF-Talk Subject: urlencoded content type Ok, you content type guru's... Forget the background info and crap, I'll cut to the chase. Is the following (simplified) HTTP post valid? Please note the content type is set to "application/x-www-form-urlencoded", yet the XML request parameter is NOT url encoded. Furthermore it has an ampersand (&) which makes it look like there are really two request parameters. = POST /Transaction/databroker? HTTP/1.1 Accept: / Accept-Language: en-us Content-Type: application/x-www-form-urlencoded Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727) Host: test.myserver.com xml= = ~Brad ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307346 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Disable "Transfer-Encoding: Chunked"?
I forgot to mention that in fiddler I see the request (complete with the chunk size) and also what is probably the strangest part of all: The requests will randomly come back with the first line reading: "HTTP/1.1 500 Internal Server Error" I can click "reissue request" in fiddler (which sends EXACTLY THE SAME request to the server) and I may get back the 500 or I may get back "HTTP/1.1 200 OK" It's totally random. I can get ten 200s in a row or waver back and forth each request or only get 500s for a minute or two. I haven't seen any decipherable pattern. Also, that header is THE ONLY DIFFERENCE in the response. Everything else works great. It produces the content correctly. Its well formed. Its just that the server randomly decides to return the response as a 500, sometimes. I'm running IIS7 and this ONLY happens with CF requests. Static requests and ASP, PHP and ASP.Net requests were not affected by the weekend power loss. Thanks in advance for your help, James > I am getting the weirdest error. > > My server lost power on Saturday night and (obviously) therefore > restarted. When that happened it must have finished installing > something that was started earlier because all my pages started being > delivered in "Transfer-Encoding: chunked" > > Now you might think thats not so bad, but apparently it prefixes the > HTTP response of the file content with a block size (e.g. "5309") so > that it can know how big the chunks are and suffixes it with a "0" > > Flex doesnt recognize this as part of the HTTP header/footer and > therefore thinks every XML object I load is malformed. > > These objects are all produced by CF and they load properly in > IE/FireFox (who are savvy enough to know what HTTP headers are > supposed to look like) but in Flex its all borked. > > Is there any way to force CF to use a different transfer encoding on > all pages (without going into every page on every site on my server)? > > > Any idea what might have caused CF to start doing this to begin with? > I couldnt find anything that I installed recently that had anything to > do with this. The only CF thing that we installed at all (in the past > few months) is a patch to address some cfimage issues (http://kb.adobe. > com/selfservice/viewContent.do?externalId=kb403411&sliceId=1). ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307345 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: lowagie PDF Libs
For what it's worth, I tried merging of these "corrupt" PDF docs with the CFPDF tag on my CF8 test box and it worked fine. Apparently it is a bug in Lowagie, or cfpdf ignores the error. Interestingly enough, there is a stoponerror attribute of that tag, but it can only be used when merging an entire directory of PDFs. What the heck? ~Brad -Original Message- From: Brad Wood [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2008 11:10 AM To: CF-Talk Subject: lowagie PDF Libs Does anybody use the lowagie PDF libraries and ever receive the following error when merging PDFs? "Rebuild failed: trailer not found." ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307344 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Disable "Transfer-Encoding: Chunked"?
I am getting the weirdest error. My server lost power on Saturday night and (obviously) therefore restarted. When that happened it must have finished installing something that was started earlier because all my pages started being delivered in "Transfer-Encoding: chunked" Now you might think thats not so bad, but apparently it prefixes the HTTP response of the file content with a block size (e.g. "5309") so that it can know how big the chunks are and suffixes it with a "0" Flex doesnt recognize this as part of the HTTP header/footer and therefore thinks every XML object I load is malformed. These objects are all produced by CF and they load properly in IE/FireFox (who are savvy enough to know what HTTP headers are supposed to look like) but in Flex its all borked. Is there any way to force CF to use a different transfer encoding on all pages (without going into every page on every site on my server)? Any idea what might have caused CF to start doing this to begin with? I couldnt find anything that I installed recently that had anything to do with this. The only CF thing that we installed at all (in the past few months) is a patch to address some cfimage issues (http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403411&sliceId=1). ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307342 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Disable "Transfer-Encoding: Chunked"?
I am getting the weirdest error. My server lost power on Saturday night and (obviously) therefore restarted. When that happened it must have finished installing something that was started earlier because all my pages started being delivered in "Transfer-Encoding: chunked" Now you might think thats not so bad, but apparently it prefixes the HTTP response of the file content with a block size (e.g. "5309") so that it can know how big the chunks are and suffixes it with a "0" Flex doesnt recognize this as part of the HTTP header/footer and therefore thinks every XML object I load is malformed. These objects are all produced by CF and they load properly in IE/FireFox (who are savvy enough to know what HTTP headers are supposed to look like) but in Flex its all borked. Is there any way to force CF to use a different transfer encoding on all pages (without going into every page on every site on my server)? Any idea what might have caused CF to start doing this to begin with? I couldnt find anything that I installed recently that had anything to do with this. The only CF thing that we installed at all (in the past few months) is a patch to address some cfimage issues (http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403411&sliceId=1). ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307343 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Disable "Transfer-Encoding: Chunked"?
I am getting the weirdest error. My server lost power on Saturday night and (obviously) therefore restarted. When that happened it must have finished installing something that was started earlier because all my pages started being delivered in "Transfer-Encoding: chunked" Now you might think thats not so bad, but apparently it prefixes the HTTP response of the file content with a block size (e.g. "5309") so that it can know how big the chunks are and suffixes it with a "0" Flex doesnt recognize this as part of the HTTP header/footer and therefore thinks every XML object I load is malformed. These objects are all produced by CF and they load properly in IE/FireFox (who are savvy enough to know what HTTP headers are supposed to look like) but in Flex its all borked. Is there any way to force CF to use a different transfer encoding on all pages (without going into every page on every site on my server)? Any idea what might have caused CF to start doing this to begin with? I couldnt find anything that I installed recently that had anything to do with this. The only CF thing that we installed at all (in the past few months) is a patch to address some cfimage issues (http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403411&sliceId=1). ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307341 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: More iText RTF Questions [bayes SPAMTRAP]
http://pastebin.com/m635a3bd4 I've got it working, now I need to figure out how to do formatting and alignment. Still working out page numbers Paul Hastings wrote: > Loathe wrote: >> That being said there is a footerheader object as part of the rtf >> writer. I called it, it isn't throwing an error, and I can see my text >> in the document when opened in notepad, but not in word. > > post your code. > > btw cfsearching's not my blog. > > besides that blog, i recommend anybody working w/iText to cough up the bucks > for > bruno's book, the eBook's only $30: > > http://www.manning.com/lowagie/ > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307340 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Exception Thrown and Not Caught in IE
I am experimenting with and I am running into a strange error that only happens in IE: "Exception Thrown and Not Caught" It works fine in Firefox. What I want to do is display a tab in if that tab is in my Query result. If that tab is not in my query results I hide it. So I am using javascript to hide/unhide tabs inside of a cfloop to decide that needs hidden and what does not. I load the javascript in the tags onLoad attribute. Should I be loading the JS differently? function onLoadFunction() { ColdFusion.Layout.showTab('ticketTabs','#item#'); ColdFusion.Layout.hideTab('ticketTabs','#item#'); } ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307339 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
lowagie PDF Libs
Does anybody use the lowagie PDF libraries and ever receive the following error when merging PDFs? "Rebuild failed: trailer not found." We use it on an older app and occasionally get that message. Googling it is a waste of time, but it seems to always be related to a corrupt PDF file. Of course, what is weird is the PDF will always open up fine in Adobe Acrobat Reader which makes it difficult to convince our users that their PDF is corrupted. ~Brad ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307338 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
More Operation failed on the data source named "CF".
In addition to the Operation Failed, we are getting this error right behind it : 06/12 07:12:25 error Exception occurred invoking custom error page /WEB-INF/exception/java/lang/Exception.cfm java.lang.IllegalStateException at jrun.servlet.JRunResponse.getWriter(JRunResponse.java:195) at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:146) at coldfusion.runtime.NeoJspWriter.initWriter(NeoJspWriter.java:88) at coldfusion.runtime.NeoJspWriter.flush(NeoJspWriter.java:167) at coldfusion.runtime.NeoPageContext.flushOutput(NeoPageContext.java:1557) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:39) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:43) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.CfmServlet.service(CfmServlet.java:105) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invokeNext(JRunRequestDispatcher.java:439) at jrun.servlet.JRunRequestDispatcher.include(JRunRequestDispatcher.java:371) at jrun.servlet.JRunResponse.sendErrorPage(JRunResponse.java:660) at jrun.servlet.JRunResponse.sendError(JRunResponse.java:505) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:283) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:192) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307337 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Operation failed on the data source named "CF".
We are running CF6.1 Enterprise on a W2K box. We use Oracle 10g to store client variables. Things have been running fine for years on this box. We patched the server the other night and then middle of the day we started getting errors in our JRun logs. We tested the Patch on a DEV box and all was fine. In fact our Production server is sporadic with the error. We run CF7 from a couple of different servers hitting the same CF data source and there are no errors on those servers. I have included a dump of the JRun log. I was hoping someone might point me in the right direction to look so I can resolve this error. 06/12 07:12:29 error Operation failed on the data source named "CF". coldfusion.runtime.ClientScopeDBException: Operation failed on the data source named "CF". at coldfusion.runtime.JDBCHelper.Store(PersistenceFactory.java:222) at coldfusion.runtime.ClientScopeServiceImpl.PersistClientVariables(ClientScopeServiceImpl.java:204) at coldfusion.runtime.ClientScopeServiceImpl.PersistClientVariablesForRequest(ClientScopeServiceImpl.java:192) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:32) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:35) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:43) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.CfmServlet.service(CfmServlet.java:105) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at com.intergral.fusionreactor.filter.FusionReactorFilter.B(Unknown Source) at com.intergral.fusionreactor.filter.FusionReactorFilter.A(Unknown Source) at com.intergral.fusionreactor.filter.FusionReactorFilter.doFilter(Unknown Source) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:252) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:192) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307336 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
urlencoded content type
Ok, you content type guru's... Forget the background info and crap, I'll cut to the chase. Is the following (simplified) HTTP post valid? Please note the content type is set to "application/x-www-form-urlencoded", yet the XML request parameter is NOT url encoded. Furthermore it has an ampersand (&) which makes it look like there are really two request parameters. = POST /Transaction/databroker? HTTP/1.1 Accept: / Accept-Language: en-us Content-Type: application/x-www-form-urlencoded Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727) Host: test.myserver.com xml= = ~Brad ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307335 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Protecting images
>>That would prevent copying and printing. That would not prevent anything. Never forget this basic principle : "The more someone is really able to reuse your images, the more skills he will have to copy it." Corollary: "Any image protection scheme will only protect against those who wouldn't know what to to with the image if they could copy it anyway." And this good for code as well. No time to loose with this. The only way to protect images 100% is not publishing them. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307334 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Convrt Access to Excel via XML
Here's one of the good CF implementations: http://www.bennadel.com/projects/poi-utility.htm ~Brad -Original Message- From: Ben Densmore [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2008 8:57 AM To: CF-Talk Subject: Re: Convrt Access to Excel via XML Hi Marc, You might want to check out the POI Library from Apache. http://poi.apache.org/ There are examples of using it with CF out there. Ben ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307333 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Protecting images
You could embed the images in PDF, then use Adobe LiveCycle ES Rights Management to control access to the PDFs. That would prevent copying and printing. === PDF's can be "unlocked" so they will print and copy. Unfortunately, it is up to the client program which opened the PDF to decide if it wants to obey the security flags. ~Brad ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307332 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Convrt Access to Excel via XML
Hi Marc, You might want to check out the POI Library from Apache. http://poi.apache.org/ There are examples of using it with CF out there. Ben On Thu, Jun 12, 2008 at 7:10 AM, marc -- <[EMAIL PROTECTED]> wrote: > Hello, > I have an Access DB that has to be converted to a Excel spreadsheet. The > spreadsheet contains formatting and formulas (it's used as an analysis > tool). I have an example of the spreadsheet in XML format. So that example > also contains the styling, formulas and data. What I need to make is a cf > page that reads the db, converts it to XML so that it can be read by Excel. > The formatting and formulas (as they are in the example) have to applied to > it as well. > > Whats the best approach? > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307331 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: More iText RTF Questions [bayes SPAMTRAP]
Loathe wrote: > That being said there is a footerheader object as part of the rtf > writer. I called it, it isn't throwing an error, and I can see my text > in the document when opened in notepad, but not in word. post your code. btw cfsearching's not my blog. besides that blog, i recommend anybody working w/iText to cough up the bucks for bruno's book, the eBook's only $30: http://www.manning.com/lowagie/ ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307330 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: JVM Memory was never die.
Dave Watts wrote: > What exactly are these threads doing? As I described in the original 'threads will not die' posting, these threads are being fired off to asynchronously create relatively large, ~7 page, but otherwise fairly simple, dynamic PDF letters, which are then written to files. The process currently process ~1300 letters each time it is run. We understood that JVM tunning would not necessarily solve the problem, but figured it would help since we were still running out-of-the-box settings that where not fully utilizing available resources. We figure that ultimately we will need to somehow throttle the PDF generation so that it takes more time, but makes more reasonable usage of resources. Unfortunately are first simple ideas seem to make matters worse where even more resources are getting locked up. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307329 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: More iText RTF Questions
Page events don't work with RTF creation, as the client renders the document when it is opened. That being said there is a footerheader object as part of the rtf writer. I called it, it isn't throwing an error, and I can see my text in the document when opened in notepad, but not in word. The last two posts have really helped me out a lot, let me clean up what I have and see where I am. Thanks man. I've sen you all over the iText forums and mailing list, you seem to be the CF community expert :) Paul Hastings wrote: > Loathe wrote: >> 1. How do I create an 8.5" x 11 page? > > pageSize=createObject("java", "com.lowagie.text.PageSize").init(); > doc=createObject("java","com.lowagie.text.Document").init(pageSize.LETTER,0,0,0,0); > >> 2. How do I have a 1" margin? > > the 0,0,0,0 bit above are the margins in points. 1"=72pt. > >> 3. How do I create a header that actually displays in the page? > > there's a couple of approaches to this: > > page events, cfsearching blog has a superb set of posts on itext & cf, this > one > is about page events > http://cfsearching.blogspot.com/2008/03/instructions-for-cf-itext.html > > directContent (ie stick any text/image/etc anywhere on the page): > > myObj = structNew(); > local = structNew(); > > BaseFont=createObject("java", "com.lowagie.text.pdf.BaseFont"); > bf=baseFont.createFont(BaseFont.COURIER,BaseFont.CP1252,BaseFont.EMBEDDED); > > myObj.document=CreateObject("java", "com.lowagie.text.Document"); > newFile=expandPath("test.pdf"); > > myObj.fileIO=createObject("java","java.io.FileOutputStream").init(newFile); > myObj.pdfWriter=CreateObject("java", "com.lowagie.text.pdf.PdfWriter"); > myObj.vertText=createObject("java","com.lowagie.text.pdf.VerticalText"); > myObj.pdfContentByte=createObject("java","com.lowagie.text.pdf.PdfContentByte"); > // create document > myObj.document.init(); > // call the static 'getInstance' factory method > local.writer=myObj.pdfWriter.getInstance(myObj.document, myObj.fileIO); > // open the document > myObj.document.open(); > local.cb=local.writer.getDirectContent(); > local.cb.beginText(); > local.cb.setFontAndSize(bf, 12.0); > local.cb.showTextAligned(1, 'THIS IS A TEST', 100, 100, 0); > local.cb.endText(); > myObj.document.close(); > > >> 4. How do I add page numbers, after the first page only, in the footer? > > see #3. > >> I've found tutorials and examples online to do all of this in pure java, >> but I'm having a hell of a time of it trying to convert that into CF. > > porting from bruno's java examples to cf is fairly straightforward. where are > you getting stuck? > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307328 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: More iText RTF Questions
Loathe wrote: > 1. How do I create an 8.5" x 11 page? pageSize=createObject("java", "com.lowagie.text.PageSize").init(); doc=createObject("java","com.lowagie.text.Document").init(pageSize.LETTER,0,0,0,0); > 2. How do I have a 1" margin? the 0,0,0,0 bit above are the margins in points. 1"=72pt. > 3. How do I create a header that actually displays in the page? there's a couple of approaches to this: page events, cfsearching blog has a superb set of posts on itext & cf, this one is about page events http://cfsearching.blogspot.com/2008/03/instructions-for-cf-itext.html directContent (ie stick any text/image/etc anywhere on the page): myObj = structNew(); local = structNew(); BaseFont=createObject("java", "com.lowagie.text.pdf.BaseFont"); bf=baseFont.createFont(BaseFont.COURIER,BaseFont.CP1252,BaseFont.EMBEDDED); myObj.document=CreateObject("java", "com.lowagie.text.Document"); newFile=expandPath("test.pdf"); myObj.fileIO=createObject("java","java.io.FileOutputStream").init(newFile); myObj.pdfWriter=CreateObject("java", "com.lowagie.text.pdf.PdfWriter"); myObj.vertText=createObject("java","com.lowagie.text.pdf.VerticalText"); myObj.pdfContentByte=createObject("java","com.lowagie.text.pdf.PdfContentByte"); // create document myObj.document.init(); // call the static 'getInstance' factory method local.writer=myObj.pdfWriter.getInstance(myObj.document, myObj.fileIO); // open the document myObj.document.open(); local.cb=local.writer.getDirectContent(); local.cb.beginText(); local.cb.setFontAndSize(bf, 12.0); local.cb.showTextAligned(1, 'THIS IS A TEST', 100, 100, 0); local.cb.endText(); myObj.document.close(); > 4. How do I add page numbers, after the first page only, in the footer? see #3. > I've found tutorials and examples online to do all of this in pure java, > but I'm having a hell of a time of it trying to convert that into CF. porting from bruno's java examples to cf is fairly straightforward. where are you getting stuck? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307327 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: More iText RTF Questions
Excellent example, thanks. I'm at the point where I can output text to the body of the RTF doc. Your example helps with the page type and margins, and helps me wrap my head around how to call the objects. Peterson, Chris wrote: > Loathe, > > This is not exactly what you need (this uses iText to write a series of > tiff images to a PDF), but it should show you how to use iText with CF! > > http://pastebin.com/m7187bf8d > > Chris Peterson > > -Original Message- > From: Loathe [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 12, 2008 7:24 AM > To: CF-Talk > Subject: More iText RTF Questions > > All of these questions are in reference to creating RTF docs using iText > > and RtfWriter2 in ColdFusion called with the javaLoader.cfc > > 1. How do I create an 8.5" x 11 page? > > 2. How do I have a 1" margin? > > 3. How do I create a header that actually displays in the page? > > 4. How do I add page numbers, after the first page only, in the footer? > > I've found tutorials and examples online to do all of this in pure java, > > but I'm having a hell of a time of it trying to convert that into CF. > Any help would really be appreciated. > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307326 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: More iText RTF Questions
Loathe, This is not exactly what you need (this uses iText to write a series of tiff images to a PDF), but it should show you how to use iText with CF! http://pastebin.com/m7187bf8d Chris Peterson -Original Message- From: Loathe [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2008 7:24 AM To: CF-Talk Subject: More iText RTF Questions All of these questions are in reference to creating RTF docs using iText and RtfWriter2 in ColdFusion called with the javaLoader.cfc 1. How do I create an 8.5" x 11 page? 2. How do I have a 1" margin? 3. How do I create a header that actually displays in the page? 4. How do I add page numbers, after the first page only, in the footer? I've found tutorials and examples online to do all of this in pure java, but I'm having a hell of a time of it trying to convert that into CF. Any help would really be appreciated. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307325 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
More iText RTF Questions
All of these questions are in reference to creating RTF docs using iText and RtfWriter2 in ColdFusion called with the javaLoader.cfc 1. How do I create an 8.5" x 11 page? 2. How do I have a 1" margin? 3. How do I create a header that actually displays in the page? 4. How do I add page numbers, after the first page only, in the footer? I've found tutorials and examples online to do all of this in pure java, but I'm having a hell of a time of it trying to convert that into CF. Any help would really be appreciated. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307324 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFDIRECTORY and Multiple Spaces Between Filename
What I can suggest you is to surrround your output with #name# so all spaces are intact in the browser display. The issue is only with browser displaying it after ignoring whitespaces. In HTML, the following will be displayed as breaksplease: breaks please You can't expect your manual line-breaks automatically convert to tag. Sam Adobe Certified Flash and Advanced ColdFusion Developer > Running CFMX7.0.2. Not sure if this applies to other versions, but > have you noticed that if you have two files in a directory, say: > > whatever whatever.txt (one space between names) > whatever whatever.txt (two spaces between names) > > and if you do CFDIRECTORY in this directory, the NAME column will list > both files as: > > whatever whatever.txt > whatever whatever.txt > > I can't possibly be the first one to notice this, right? And somebody > must have a workaround...right? Please? Pretty please? > > - Sung ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307323 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Convrt Access to Excel via XML
Hello, I have an Access DB that has to be converted to a Excel spreadsheet. The spreadsheet contains formatting and formulas (it's used as an analysis tool). I have an example of the spreadsheet in XML format. So that example also contains the styling, formulas and data. What I need to make is a cf page that reads the db, converts it to XML so that it can be read by Excel. The formatting and formulas (as they are in the example) have to applied to it as well. Whats the best approach? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307322 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: LinkedIn CF group
On Wednesday 11 Jun 2008, Dawson, Michael wrote: > Linked In = Facebook - Drunk Girl Pics Yeah, I use LinkedIn to maintain my 'professional' links, and Something Else for the 'man, I'm so wasted after last night' stuff :-) -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307321 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: JVM Memory was never die.
On Wednesday 11 Jun 2008, Wil Genovese wrote: > config that come with the install is setup to allow CF to run when you > first set it up. It was never meant to be used in production and > never meant for high availability. I've addressed some of these > issues with persons at Adobe and discussed some possible ideas to help It came up during the BoF at Scotch on the Rocks too - one suggestion was to support 'profiles' of config settings - so CF (9) would come in a locked down 'secure by default', and you could choose to apply 'development', 'production' or other bundles of settings to it. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307320 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: no rds tab in cfeclipse after CF 8 ex install
Thank You! you would not believe the time i wasted yesterday trying to figure out what was wrong. I think i need to have more belief in the list. João_Fernandes wrote: > The rds is under the 'Adobe' tree node instead of 'ColdFusion', I've > logged it back in February > > http://bugs.adobe.com/jira/browse/FB-12059 > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307319 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4