Weird CFX Error
Hi, I have written a CFX to perform a small task using iText. Code was compiled with 1.5 java and uses the CFX.JAR file along with the iText jar files. The module compiles correctly, and runs from a command line with NO problems. When I installed thee module on the server (CF 9 Standard - Build 9,0.1,274733 on Windows), the module gives me the following error message: iA ClassCastingException occured. The CFX custom tag CFX_CertApp needs to implement com.allaire.cfx.CustomTag interface. Ensure that you add this to your custom class./i Now this CFX already does that .. and works great from the command line. Another issue, when I went install it, the only place that CF seem to even recognize it was in ColdFusion9\runtime\lib directory -- which is where I don't really want it to be but can live it with. Anyway have any ideas as to what is going on that I'm missing. I have the CLASSPATH in the administrator set to the above path and individually listed all the JAR files as doesn't seem to like just the directory name. Finally, I have NO idea what level 9,0,1,274733 happens to be. Adobe should do a somewhat better job of listing when hotfixes go with what level. CF 10 is much better but that is not going to happen at place. Any help you can be with any of this (especially the CFX) would be greatly appreciated. Thank. Drew Nathanson Technical Synergy, Inc. d...@technicalsynergy.com ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:355404 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cffile action=write - permissions being set incorrectly (CF8.1)
Wayne, You may need to check to see what the directory is set to. Also check the ownership of the directory. By default the Linux OS writes files as 644. You can set the default in the /etc/profile file using the umask command. Drew Nathanson Technical Synergy, Inc. I am using cffile to write files to a linux directory but the permissions are not being set correctly. I'm interested in '777' but cffile sets them to '644'. Has anyone else had this problem? cffile action=write file=/home/www/www.gregorigroup.com/htdocs/market_data/data.htm output='#htmlDoc#' mode='777' -- *Wayne Gregori* \ ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349298 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Week Weirdness
You might want to make sure that both machine are on the same time zone and locale. If they are different, that would explain it. My linux server returns 40. -Drew Very odd indeed. It makes sense that linux and cf would differ by 1, as cf is 1-53. However it doesn't make any sense to me why cf would return 40 on one and 41 on the other. Can you verify: 1) they are both the same server date? 2) they are both the same timezone offset? 3) they are both using CF's week() function to return the integer? Yes indeed :( -Original Message- Do both servers have the same version of CF? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347897 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: How to do this with CF and JS?
Rick, Try this: cfset myList = soundTrack01.mp3,soundTrack02.mp3,soundTrack03.mp3 cfset listPosition = 1 / cfoutput script cfloop list=myList index=listElement $.sound.play('#myList.name[listPosition]#'); cfset listPosition = listPosition + 1 / /cfloop /script /cfoutput I believe your creating more than 1 script file maybe causing you issues. This is my humble opinion. Drew Nathanson Technical Synergy, Inc. To be clearer, everything works fine, except for the fact that nothing loops. I get the first sound track, soundTrack01.mp3, played once, and then everything stops. Re-writing the JS into the DOM with every iteration is the only other possibility I can think of which will allow the JS to be re-initialized with each loop. this doesn't work? /cfoutput /script cfset listPosition = listPosition + 1 / /cfloop ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345124 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Losing Sessions
Mary Jo, Check the CF Administrator under memory variables and see what the MAX timeout is for Application Session. Also, check the value on your CFAPPLICATION tag. Make sure you didn't change the session timeout there to something smaller than what you wanted. Drew Nathanson Technical Synergy, Inc. I'm having a really frustrating issue with an application and cannot figure out where the problem is. The client is getting randomly logged out of the system, basically the session is getting reset. So far, not all that unusual, I've certainly seen this kind of issue before. But the weird thing is, the CFID and CFTOKEN never change! When I track them, they stay the same from request to request, but all the session variables get reset anyway. I tried removing any code that would remotely have any possibility to do this (no logout function, etc.), but no luck, nor have I been able to definitely nail down the circumstances in which it occurs. It doesn't happen on all their computers (1 in 13 they say show the problem), and typically only happens on IE (definitely IE8, we haven't really tested anything else). They said they see it on FF too sometimes, but I've not been able to verify that, both Chrome and FF on the 2 effected users I worked with worked fine. I've not been able to replicate it myself, even using the same version of IE, many other users don't see it, and it just stumps me how the session is getting reset when the session token doesn't change, and when any code that would do so has been stripped out. Any ideas?? --- Mary Jo ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342829 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Hosting.com, Your Experiences
Peter, I have had several of my clients at Hosting and I would recommend that you find someone else to your hosting. I have moved most over to EdgeWeb as they seem to have a better handle on how customer support is suppose to work. Hosting's answer to me was always the same thing .. You need to move to a VPS or you need to add more memory to your existing VPS or you should be on a dedicated server. They don't really solve any problems but there always lots of excuses. I found their service to be going down hill for quite some time. EdgeWeb is more $$ but I have to say that they have NEVER failed to help get a problem resolved. Again, this is just my opinion. Drew Nathanson Technical Synergy, Inc. Hello everyone, I received lots of great feedback concerning Kick-Ass VPS. It's a strong contender where VPS hosting is concerned. Originally I wanted cloud hosting that includes CF9. Hosting.com is all over the search engines and prominantly announces the availabillity of CF9 in the clouds. If anyone has had hosting through them I'd like to hear about your experiences. As it happens they host the Alamo Area ColdFusion Users Group Web Site. Thanks again for the feedback. Peter Donahue ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342778 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Accessing a webservice question
Donnie, You need to make sure that the java class is in a directory that CF knows about. Add the path in the CF Administrator (Java/JVM - Classpath). Once you do this (and restart) then you should be able to get to the class without any problems. -Drew Nathanson Technical Synergy, Inc. Thanks Scott. I did dump the variable and the functions parameters are looking for things like com.netsuite.webservices.platform. core_2010_1.Passport. When I createObject(java, com.netsuite. webservices.platform.core_2010_1.Passport), that's when I get the class can not be found error. Donnie, When you instantiate the webservice ie: cfset nsws = CreateObject(webservice, https://webservices.netsuite.com/wsdl/v2010_1_0/netsuite.wsdl;) you should be able to access the methods via cfset nsws. functionName() the first thing I would do is dump the variable that you used to instantiate, that will show you what's available to you: cfset nsws = CreateObject(webservice, https://webservices.netsuite.com/wsdl/v2010_1_0/netsuite.wsdl;) cfdump var=#nsws# ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338241 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: ORACLE DATE INSERT ERROR.. Help.
Daniel, Try this: to_date(field, mm/dd/ HH24:MI:SS) to do the insert. This will cause Oracle to interpret the date correctly. -Drew Nathanson I have a date/time that I made using SYSDATE and inserted into an oracle table. It looks like 2010-09-30 13:34:17.0. I have queried for that date to insert into another table, but when I go to insert it, I receive a missing comma error. I assume that it has to do with the date because when I remove the date or put in SYSDATE, it works fine. What do I have to do to this date to make it reinsert-able? I'd prefer to not parse it and then remake it with createDateTime because it seems it a fine date as-is. thanks for the help. daniel ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337710 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: ImageDrawText font issue
Eric, You will need to add the font(s) to Coldfusion. Log into the administrator, and under Font Management, add in the font. This will give CF the ability to use any font within its own scope. Hope that helps. Drew Nathanson I am getting the following error Unable to find font: Serif. with ImageDrawText. It's calling sonme non-standard windows fonts (I don;t believe they are custom fonts thouh (Signet Baker BT, Belwe Light BT, Bruce Old Style BT,FrizQuadra BT, and Palmino). Any idea on what is up with this? The fonts exist in the Windows font directory and they work fine elsewhere...just not on thispage. The only thing that is different on this page is that it is drawing multiple images (1 each for each font)...each one a separate call to the CFC function. Thanks in advance! Eric ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336946 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Dump to Excel from CF 5
Eric, Here is what I used with CF5 and it worked well for me. cfheader name=Content-Disposition value=inline; filename=filename.xls cfheader name=Expires value=#Now()# cfcontent type=application/vnd.ms-excel This forced the page to be an excel sheet. Be sure to have this in a frame or window and you will not see the rest of the your page when done. Best, Drew Nathanson Yes, you read that right. CF FIVE. That's what Govt work will get you. I'm not used to developing in ColdFusion, so nuances are easily escaping me. I've tried using various iterations of CFCONTENT and CFHeader but nothing is changing. I'm only getting a display in the web browser. Clearly, I'm doing something wrong. I need a straightforward, no assumptions made tutorial on how I can use CF5 to dump data from a query into an Excel document. The query works fine, and I can write it into an HTML table without a problem. But beyond that, I'm starting to feel a little dumb. Hopefully, you can stand my noobishness. -- The E ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336477 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm