Migrating ColdFusion aka Java cacerts file.
We upgraded some of our servers from CF 8 to CF 9 a couple of weeks ago. Two of these servers are expected to make cfhttp SSL requests to other of our servers that are configure with self signed certificates. So, of course, we had imported these self signed certificates into these servers making the cfhttp... requests cacerts keystore. Somewhat disappointingly, after the upgrade we found out that our cacerts key store was again the default list and our servers no longer trusted the other servers. I re-imported the self signed certificates today. But, I was wondering can one just copy the cacerts file from an old server to a new server? Or is the file encrypted in some manner to prevent it from being 'tampered' with by moving it someplace else? TIA Ian ~| 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:334747 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Migrating ColdFusion aka Java cacerts file.
You can usually move it from place to place. However, if you do copy the old one, you're likely to overwrite important new, updated or revoked certificates, so I'd recommend adding your own certs each time. -- WSS4CF - WS-Security framework for CF http://wss4cf.riaforge.org/ On 23 June 2010 02:37, Ian Skinner h...@ilsweb.com wrote: We upgraded some of our servers from CF 8 to CF 9 a couple of weeks ago. Two of these servers are expected to make cfhttp SSL requests to other of our servers that are configure with self signed certificates. So, of course, we had imported these self signed certificates into these servers making the cfhttp... requests cacerts keystore. Somewhat disappointingly, after the upgrade we found out that our cacerts key store was again the default list and our servers no longer trusted the other servers. I re-imported the self signed certificates today. But, I was wondering can one just copy the cacerts file from an old server to a new server? Or is the file encrypted in some manner to prevent it from being 'tampered' with by moving it someplace else? TIA Ian ~| 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:334761 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Coldfusion and Java...
I have a Java SDK which has some JAR files and a Class file. I need some help figuring out how to deploy the java code and than use it in ColdFusion. I have put jar files in WEB-INF/lib folder and class file in WEB-INF/classes folder. I created an object using createObject(java, myobject). It gives me a class not found error. Any help/pointers would 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;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307479 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Coldfusion and Java...
3 posts necessary? Anyrate that's beyong the point :) Have you restarted your app server, I'll assume you are using Jrun so have you restarted jrun? Adam Haskell On Sat, Jun 14, 2008 at 3:01 AM, Varun Dixit [EMAIL PROTECTED] wrote: I have a Java SDK which has some JAR files and a Class file. I need some help figuring out how to deploy the java code and than use it in ColdFusion. I have put jar files in WEB-INF/lib folder and class file in WEB-INF/classes folder. I created an object using createObject(java, myobject). It gives me a class not found error. Any help/pointers would 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;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307483 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
coldfusion and java arrays
I'm trying to use a java method that required an array of floats as one of its arguments. However, a coldfusion array is not a java array, it's actually an instance of coldfusion.runtime.Array I found a post by Christian Cantrell about this and how coldfusion.runtime.Array is actually an extension of java.lang.Vector and so you can call toArray() on it to return an array. However, when I try this route, I get: Unable to find a constructor for class java.awt.image.Kernel that accepts parameters of type ( java.lang.Integer, java.lang.Integer, [Ljava.lang.Object; ). Here's the code in question: blurArray = arrayNew(1); for (i=1; i lte 9; i = i + 1) { arrayAppend(blurArray, javacast(float,blurAmount)); } kernel = createObject(java,java.awt.image.Kernel); kernel.init(img.getWidth(), img.getHeight(), blurArray.toArray()); if I call blurArray.toArray().getClass().getName() it returns [Ljava.lang.Object Anyone got any ideas how to deal with this? Rick ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263528 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: coldfusion and java arrays
Rick Root wrote: I'm trying to use a java method that required an array of floats as one of its arguments. wayback when, tim blair came up w/this (btw his blog seems to have gone bye-bye): cfset arrObj = createobject(java, java.lang.reflect.Array) cfset jClass = createobject(java, java.lang.Integer).TYPE cfset jArr = arrObj.newInstance(jClass, 3) cfset arrObj.setInt(jArr, 0, 1) cfset arrObj.setInt(jArr, 1, 2) cfset arrObj.setInt(jArr, 2, 3) where jArr is the java array you want. change the jClass to float (or whatever) use setFloat() instead of setInt(). ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263540 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: coldfusion and java arrays
Paul Hastings wrote: Rick Root wrote: I'm trying to use a java method that required an array of floats as one of its arguments. Paul, That seemed to work. When I dump the #blurArray.getClass().getName()# now, I get [F which I assume means array of floats Rick ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263548 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
ColdFusion and Java inner (nested) classes support broken?
So I'm trying to figure out why I can't seem to access a public static nested class in a java class, and I come across this technote: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19580 It basically says that in order to access them, some function must return a reference to them. Does this mean that support of nested classes is broken in CF? Do I need to start writing java wrapper classes just to get at this functionality? I think it's kind of ridiculous that this support was not implemented. Russ ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263037 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: ColdFusion and Java inner (nested) classes support broken?
Russ wrote: reference to them. Does this mean that support of nested classes is broken in CF? Do I need to start writing java wrapper classes just to get at this no, works for me: recipientType = createObject(Java, javax.mail.Message$RecipientType); profileItem=createObject(java,javax.mail.UIDFolder$FetchProfileItem); mailFlag=createObject(java,javax.mail.Flags$Flag); ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263043 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: ColdFusion and Java inner (nested) classes support broken?
Thank you, that worked. I guess I missed the part where you're supposed to use $ to access nested classes. Is there a way to get at a parameter another way? Something like Message= createObject(Java, javax.mail.Message$RecipientType); recipientType=message$RecipientType; Russ -Original Message- From: Paul Hastings [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 06, 2006 12:15 PM To: CF-Talk Subject: Re: ColdFusion and Java inner (nested) classes support broken? Russ wrote: reference to them. Does this mean that support of nested classes is broken in CF? Do I need to start writing java wrapper classes just to get at this no, works for me: recipientType = createObject(Java, javax.mail.Message$RecipientType); profileItem=createObject(java,javax.mail.UIDFolder$FetchProfileItem); mailFlag=createObject(java,javax.mail.Flags$Flag); ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263046 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
MVC using Coldfusion and Java
In my last post I asked about when to use Java. Someone mention the MVC with the following designations... Model - Java View - CF Controller - Either I am curious to understand how this is can accomplished. Any comments or links to such descriptions would be most appreciated. The simpler the better as I am quite new to Java and so would probably benefit most from and overview of what people have done in their projects. Thanks ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251494 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: MVC using Coldfusion and Java
I am doing a project like this, and we are connecitng the front end of our application to a commerce engine we have written in Java. So, to get products, I have a CFC that will go and call a Java Class that returns an array of products, my view then displays those products. Make sense? MD On 8/30/06, D F [EMAIL PROTECTED] wrote: In my last post I asked about when to use Java. Someone mention the MVC with the following designations... Model - Java View - CF Controller - Either I am curious to understand how this is can accomplished. Any comments or links to such descriptions would be most appreciated. The simpler the better as I am quite new to Java and so would probably benefit most from and overview of what people have done in their projects. Thanks ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251499 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: MVC using Coldfusion and Java
Hi Mark, thanks for responding, yes that makes sense. I am doing a project like this, and we are connecitng the front end of our application to a commerce engine we have written in Java. So, to get products, I have a CFC that will go and call a Java Class that returns an array of products, my view then displays those products. Make sense? MD On 8/30/06, D F [EMAIL PROTECTED] wrote: ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251522 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Coldfusion and Java
Well my next project is to make a java decompiler or just a method viewer. I have one online at cfide.org it gives a nice view of args! It uses classViewer and coldfusion's default classloader together to make a online java decompiler. Cool. http://www.cfide.org/classViewer.cfm The interesting thing is it can use method chaining and it still flys back with a pretty good view of the object. The bottom part uses coldfusion's default classloading to load any jars on the net and then you can inspect the class that way. On 8/28/06, Mullai Subbiah [EMAIL PROTECTED] wrote: Thank you. It worked. So I guess if a string is passed we dont need to worry about Javacast. So for my problem I had to specify the type of the arguments with two things. Javacast for primitive types and I have to explicitly create a Java Date object abc. Assign the output of cal.getTime() to abc and pass this argument instead of specifying cal.getTime() in the argument list (Like we do in Java). The coldfusion errors especially in this case was hard to decipher. Does anyone happen to know a way to find out what arguments get passed to a Java method. Like an ide debugger giving more information. Cheers, Mullai ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251348 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Coldfusion and Java
I am trying to call a user-defined Java method. I am using CFMX7 and Java 1.4.2 One of the method within the class when called gets executed by Coldfusion. But another method does not seem to be seen by coldfusion. Every time I try to call the method I get a method not found error. The classpath is fine, the method exists (can call this method when stand alone), I have recompiled and restarted the Coldfusion server hoping that might help but no success. I get a similar error when I try to call the calendar set method. This is the error I get. Called from E:\wwwroot\coeweb\apdr\index.cfm: line 57 34 : cfset daysrange = -30 35 : 36 : cfset searchResultList = searchUltra_.searchCollectionWithDate(#searchString#, simap, #curtime#, #daysrange#) 37 : 38 : cfset resultquery = QueryNew(Score, Title, Description, Url, news_id, published_date, Please try the following: Check the ColdFusion documentation to verify that you are using the correct syntax. Search the Knowledge Base to find a solution to your problem. Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1) Remote Address 12.36.96.235 Referrer http://website/apdr/index.cfm?action=search Date/Time 28-Aug-06 08:53 AM Stack Trace (click to expand) at cfsearchresultfunction2ecfc1423953097$funcGETULTRASEEKRESULTSDATECONSTRAINT.runFunction(E:\wwwroot\coeweb\apdr\user\searchresultfunction.cfc:36) at cfsearch_result2ecfm617320438.runPage(E:\wwwroot\coeweb\apdr\user\search_result.cfm:65) at cfindex2ecfm9115575.runPage(E:\wwwroot\coeweb\apdr\index.cfm:57) coldfusion.runtime.java.MethodSelectionException: The selected method searchCollectionWithDate was not found. at coldfusion.runtime.java.ObjectHandler.findMethodUsingCFMLRules(ObjectHandler.java:176) at coldfusion.runtime.java.JavaProxy.invoke(JavaProxy.java:84) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1627) at cfsearchresultfunction2ecfc1423953097$funcGETULTRASEEKRESULTSDATECONSTRAINT.runFunction(E:\wwwroot\coeweb\apdr\user\searchresultfunction.cfc:36) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:348) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:294) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:258) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:56) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:211) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:370) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:196) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:156) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1587) at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:345) at cfsearch_result2ecfm617320438.runPage(E:\wwwroot\coeweb\apdr\user\search_result.cfm:65) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:343) at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1908) at cfindex2ecfm9115575.runPage(E:\wwwroot\coeweb\apdr\index.cfm:57) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:343) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:210) at coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:50) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.CfmServlet.service(CfmServlet.java:105) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:349) at
RE: Coldfusion and Java
This is a shot in the dark, but I know I've had problems with I did not cast things for java. Did you try JavaCast() on your passed arguments? Rich Kroll -Original Message- From: Mullai Subbiah [mailto:[EMAIL PROTECTED] Sent: Monday, August 28, 2006 2:56 PM To: CF-Talk Subject: Coldfusion and Java I am trying to call a user-defined Java method. I am using CFMX7 and Java 1.4.2 One of the method within the class when called gets executed by Coldfusion. But another method does not seem to be seen by coldfusion. Every time I try to call the method I get a method not found error. The classpath is fine, the method exists (can call this method when stand alone), I have recompiled and restarted the Coldfusion server hoping that might help but no success. I get a similar error when I try to call the calendar set method. This is the error I get. Called from E:\wwwroot\coeweb\apdr\index.cfm: line 57 34 : cfset daysrange = -30 35 : 36 : cfset searchResultList = searchUltra_.searchCollectionWithDate(#searchString#, simap, #curtime#, #daysrange#) 37 : 38 : cfset resultquery = QueryNew(Score, Title, Description, Url, news_id, published_date, Please try the following: Check the ColdFusion documentation to verify that you are using the correct syntax. Search the Knowledge Base to find a solution to your problem. Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1) Remote Address 12.36.96.235 Referrer http://website/apdr/index.cfm?action=search Date/Time 28-Aug-06 08:53 AM Stack Trace (click to expand) at cfsearchresultfunction2ecfc1423953097$funcGETULTRASEEKRESULTSDATECONSTRA INT.runFunction(E:\wwwroot\coeweb\apdr\user\searchresultfunction.cfc:36) at cfsearch_result2ecfm617320438.runPage(E:\wwwroot\coeweb\apdr\user\search _result.cfm:65) at cfindex2ecfm9115575.runPage(E:\wwwroot\coeweb\apdr\index.cfm:57) coldfusion.runtime.java.MethodSelectionException: The selected method searchCollectionWithDate was not found. at coldfusion.runtime.java.ObjectHandler.findMethodUsingCFMLRules(ObjectHan dler.java:176) at coldfusion.runtime.java.JavaProxy.invoke(JavaProxy.java:84) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1627) at cfsearchresultfunction2ecfc1423953097$funcGETULTRASEEKRESULTSDATECONSTRA INT.runFunction(E:\wwwroot\coeweb\apdr\user\searchresultfunction.cfc:36) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:348) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:294) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.j ava:258) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java: 56) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:211) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:370) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:196) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:156) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1587) at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:345) at cfsearch_result2ecfm617320438.runPage(E:\wwwroot\coeweb\apdr\user\search _result.cfm:65) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:343) at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1908) at cfindex2ecfm9115575.runPage(E:\wwwroot\coeweb\apdr\index.cfm:57) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:343) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:210) at coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:50) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersist enceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.CfmServlet.service(CfmServlet.java:105) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke
RE: Coldfusion and Java
This is most likely happening because java can't find a method that matches the signature. If you're using cf 7, you will need to use JavaCast to cast the arguments to the proper type. Russ -Original Message- From: Mullai Subbiah [mailto:[EMAIL PROTECTED] Sent: Monday, August 28, 2006 2:56 PM To: CF-Talk Subject: Coldfusion and Java I am trying to call a user-defined Java method. I am using CFMX7 and Java 1.4.2 One of the method within the class when called gets executed by Coldfusion. But another method does not seem to be seen by coldfusion. Every time I try to call the method I get a method not found error. The classpath is fine, the method exists (can call this method when stand alone), I have recompiled and restarted the Coldfusion server hoping that might help but no success. I get a similar error when I try to call the calendar set method. This is the error I get. -- -- Called from E:\wwwroot\coeweb\apdr\index.cfm: line 57 34 : cfset daysrange = -30 35 : 36 : cfset searchResultList = searchUltra_.searchCollectionWithDate(#searchString#, simap, #curtime#, #daysrange#) 37 : 38 : cfset resultquery = QueryNew(Score, Title, Description, Url, news_id, published_date, -- -- Please try the following: Check the ColdFusion documentation to verify that you are using the correct syntax. Search the Knowledge Base to find a solution to your problem. Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1) Remote Address 12.36.96.235 Referrer http://website/apdr/index.cfm?action=search Date/Time 28-Aug-06 08:53 AM Stack Trace (click to expand) at cfsearchresultfunction2ecfc1423953097$funcGETULTRASEEKRESULTSDATECONSTRAIN T.runFunction(E:\wwwroot\coeweb\apdr\user\searchresultfunction.cfc:36) at cfsearch_result2ecfm617320438.runPage(E:\wwwroot\coeweb\apdr\user\search_r esult.cfm:65) at cfindex2ecfm9115575.runPage(E:\wwwroot\coeweb\apdr\index.cfm:57) coldfusion.runtime.java.MethodSelectionException: The selected method searchCollectionWithDate was not found. at coldfusion.runtime.java.ObjectHandler.findMethodUsingCFMLRules(ObjectHandl er.java:176) at coldfusion.runtime.java.JavaProxy.invoke(JavaProxy.java:84) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1627) at cfsearchresultfunction2ecfc1423953097$funcGETULTRASEEKRESULTSDATECONSTRAIN T.runFunction(E:\wwwroot\coeweb\apdr\user\searchresultfunction.cfc:36) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:348) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:294) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.jav a:258) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:56 ) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:211) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:370) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:196) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:156) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1587) at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:345) at cfsearch_result2ecfm617320438.runPage(E:\wwwroot\coeweb\apdr\user\search_r esult.cfm:65) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:343) at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1908) at cfindex2ecfm9115575.runPage(E:\wwwroot\coeweb\apdr\index.cfm:57) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:343) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:210) at coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:50) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersisten ceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.CfmServlet.service(CfmServlet.java:105) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42
Re: Coldfusion and Java
Thank you. It worked. So I guess if a string is passed we dont need to worry about Javacast. So for my problem I had to specify the type of the arguments with two things. Javacast for primitive types and I have to explicitly create a Java Date object abc. Assign the output of cal.getTime() to abc and pass this argument instead of specifying cal.getTime() in the argument list (Like we do in Java). The coldfusion errors especially in this case was hard to decipher. Does anyone happen to know a way to find out what arguments get passed to a Java method. Like an ide debugger giving more information. Cheers, Mullai ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251311 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Coldfusion and Java
On 8/28/06, Mullai Subbiah [EMAIL PROTECTED] wrote: ... The coldfusion errors especially in this case was hard to decipher. Does anyone happen to know a way to find out what arguments get passed to a Java method. Like an ide debugger giving more information. cfdump, as one person stated once, is probably worth 2 grand. ;-) I'm not sure how in depth you can go, but try dumping the method, and see what's there. There are other ways to get more detailed info, using cfdump(IIRC), but I can't think of them off hand. Maybe google has the answer... or another cf-talk-er... HIH, :D ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251327 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: How can I pass a Structure from ColdFusion to Java?
Thanks Chris, Actually, I am doing both: ColdFusion Structure to Java Map and Java Map to ColdFusion Structure. Thanks, Troy -- Troy Simpson Applications Analyst/Programmer, OCPDBA, MCSE, SCSA North Carolina State University Libraries Campus Box 7111 | Raleigh | North Carolina ph.919.515.3855 | fax.919.513.3330 E-mail: [EMAIL PROTECTED] ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194382 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
How can I pass a Structure from ColdFusion to Java?
I have data in a coldfusion mx structure and I need to pass that structure to a Java method. Anyone know how to do this or where I might find an answer to this? Also, what about other coldfusion datatypes? Thanks, Troy -- Troy Simpson Applications Analyst/Programmer, OCPDBA, MCSE, SCSA North Carolina State University Libraries Campus Box 7111 | Raleigh | North Carolina ph.919.515.3855 | fax.919.513.3330 E-mail: [EMAIL PROTECTED] ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193764 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: How can I pass a Structure from ColdFusion to Java?
I don't think any complex datatype will transfer over to Java in a snap...Most complex data types are vectors or something along that lines...Heck depending on the function you are calling and the overloading that might occur even a string might need to be javacast()ed to get everything to play nice :) Sorry no good insight on getting the structure over smoothly. Adam H On Tue, 8 Feb 2005 19:01:38 -0500, Troy Simpson [EMAIL PROTECTED] wrote: I have data in a coldfusion mx structure and I need to pass that structure to a Java method. Anyone know how to do this or where I might find an answer to this? Also, what about other coldfusion datatypes? Thanks, Troy -- Troy Simpson Applications Analyst/Programmer, OCPDBA, MCSE, SCSA North Carolina State University Libraries Campus Box 7111 | Raleigh | North Carolina ph.919.515.3855 | fax.919.513.3330 E-mail: [EMAIL PROTECTED] ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193766 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: How can I pass a Structure from ColdFusion to Java?
You should be able to pass it as an instance of java.util.Map. Arrays go as java.util.Vector, though they're pass by value in CF and pass by reference in Java. Queries are javax.sql.ResultSet, I believe. Numerics go in as type Double or double, unless you use JavaCast, and dates go in as java.util.Date. And you can get a null using the forDigit method of the Character class, should you need one. Note that that's only a Java null, it won't work in CF as a null value. That's for CFMX, things might have changed in CF7, though I doubt it. cheers, barneyb On Tue, 8 Feb 2005 19:01:38 -0500, Troy Simpson [EMAIL PROTECTED] wrote: I have data in a coldfusion mx structure and I need to pass that structure to a Java method. Anyone know how to do this or where I might find an answer to this? Also, what about other coldfusion datatypes? Thanks, Troy -- Troy Simpson -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193767 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: How can I pass a Structure from ColdFusion to Java?
Hey, I want to add that I found this article at bpurcell.org: http://www.bpurcell.org/blog/index.cfm?mode=entryentry=925 It says that a ColdFusion Structure is an Object of type coldfusion.runtime.Struct. Here is the inheritance change: java.util.Hashtable --coldfusion.util.FastHashtable coldfusion.runtime.Struct Do you think I could use this data type in my Code like so? coldfusion.runtime.Struct wc = new coldfusion.runtime.Struct(); Where would I find the libraries? Would this be bad practice? Thanks, Troy -- Troy Simpson Applications Analyst/Programmer, OCPDBA, MCSE, SCSA North Carolina State University Libraries Campus Box 7111 | Raleigh | North Carolina ph.919.515.3855 | fax.919.513.3330 E-mail: [EMAIL PROTECTED] ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193769 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: How can I pass a Structure from ColdFusion to Java?
If you had the library, you could do this, but it'd be asking for trouble, because the class might change names at some future point (or maybe already has in CF7). java.util.Hashtable implements java.util.Map, so therefore CF structs also implement the interface. Your original question was about passing a CF struct into Java. Since the CF struct implements the Map interface, you can declare your parameter of type Map, and treat the CF struct exactly as any other Map instance you might come across. If, however, what you need to do is create a CF structure in Java and return it to CF, you're in a bit of a bind. You can do it, but I wouldn't. Rather, I'd just return a Map (your choice of implementation) and then use it from your CF with the Map interface (i.e. contains(), put(), get(), etc.) rather than the native CF struct nomenclature. That'll give you more flexibility down the road, and since you're already programming in Java, continuing to use the Java methods shouldn't be a hassle. If nothing else, you can return the Map from your Java method and then convert it into a CF struct. As for your interface exception, you can't instantiate interfaces, you have to instantiate a class that implements the interface. java.util.Hashtable and java.util.HashMap are the most common choices (the former is synchronized, the latter isn't), and there's a java.util.TreeMap as well in the core JRE. cheers, barneyb On Tue, 8 Feb 2005 20:14:33 -0500, Troy Simpson [EMAIL PROTECTED] wrote: Hey, I want to add that I found this article at bpurcell.org: http://www.bpurcell.org/blog/index.cfm?mode=entryentry=925 It says that a ColdFusion Structure is an Object of type coldfusion.runtime.Struct. Here is the inheritance change: java.util.Hashtable --coldfusion.util.FastHashtable coldfusion.runtime.Struct Do you think I could use this data type in my Code like so? coldfusion.runtime.Struct wc = new coldfusion.runtime.Struct(); Where would I find the libraries? Would this be bad practice? Thanks, Troy -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193770 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: How can I pass a Structure from ColdFusion to Java?
Hi, Are you passing from java to CF or CF to java? Your subject suggests the later, but java.util.Map wc = new java.util.Map(); suggests the former. Your compiler problem is easy enough to solve, use one of the java implementations of map. Head to the java doc at http://java.sun.com/j2se/1.4.2/docs/api, and lookup Map, then close to the top of the doc for Map there will be a list of All Known Implementing Classes eg HashMap (An interface in java merely describes methods that an object/class must define to adhere to that interface, so you can't instantiate an interface because it has no code to run those methods. You must find a class that implements those methods and that interface) Do you think I could use this data type in my Code like so? coldfusion.runtime.Struct wc = new coldfusion.runtime.Struct(); Where would I find the libraries? Would this be bad practice? You could probably do that, the libraries would probably be in a jar somewhere in your CF server directory. Though as you don't have access to any doc on it, you won't have a clear definition of the objects behaviour (nor will maintainers of your code), so you would probably be better off working with a java class you know, either a predifined java class, or a specialised class if you require that much specialisation. Chris -- - Chris Jensen [EMAIL PROTECTED] Educational Experience (Australia) Postal Address: PO Box 860, Newcastle NSW 2300 Freecall: 1-800-025 270 International: +61-2-4923 8222 Fax:(02) 4942 1991 International: +61-2-4942 1991 Visit our online Toy store! http://www.toysandmore.com.au/ - ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193771 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
ColdFusion TechNote Notification: ColdFusion MX: Java objects us ing HttpsUrlConnection causes a ClassCastException
Check out the new TechNote at: http://www.macromedia.com/support/coldfusion/ts/documents/ssl_classcastexcep tion.htm BLOCKED::http://www.macromedia.com/support/coldfusion/ts/documents/ssl_clas scastexception.htm Intro: Creating Java objects that use HttpsUrlConnection to create SSL connections fails with a ClassCastException in Macromedia ColdFusion MX. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Mappoint with COLDFUSION or JAVA WEB SERVICES API's
Hi, I know this topic has been online before but, has anyone got the webservice off the ground with either of these technologies. I would be very interested to here from you. I have done no research as off yet on the MWS, my project manager has just asked me to prioritise my development time for this starting within the next week or so. I remember there was some reference to CF randomly using ports, so using the WSDL files locally would be the only option. Did this work? Was this the only option? Primarily I am only interested in the Map Rendering Service, with the view to developing for The Routing Service at a later data. Thanx, J. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
coldfusion 5.0 java applet for form controls question
Hey gang, Was wondering if anybody knew or had a bookmark for the page on macromedia to fix the java security certificate expired for form controls in coldfusion 5.0, and it says distrubted by allaire corp. Thanks, Mike Firth - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
RE: coldfusion 5.0 java applet for form controls question
http://www.macromedia.com/v1/Handlers/index.cfm?ID=21782Method=Full Fixes several issues with the CFFORM applets in CF5.0. HTH, Jeff -Original Message- From: michael firth [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 30, 2002 10:29 AM To: CF-Talk Subject: coldfusion 5.0 java applet for form controls question Hey gang, Was wondering if anybody knew or had a bookmark for the page on macromedia to fix the java security certificate expired for form controls in coldfusion 5.0, and it says distrubted by allaire corp. Thanks, Mike Firth - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
RE: Coldfusion and Java
Yes, we are using cfobject to instantiate the objects but it appears that Coldfusion can only handle single threaded communication with the JVM. Are the two Java components communicating amongst themselves? If so might the issue be a threading problem between the two components? ~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Coldfusion and Java
Here is a BIG question... We have a Coldfusion 4.5 application that we have integrated java objects by creating them using the cfObject tag. Though the application works just fine as a single user, when multiple, as few as 2, begin working against the application, the Coldfusion server will reply that the server is busy (Code 26). Based on our test and the statistics that we have gathered, it appears that Coldfusion is not communicating properly with the JVM (jdk 1.3.1). It appears that only one thread is open and that multiple threads are not being created. Is there a setting? Actually, I need advice... The application works perfectly as a single user. By the way, we have all the cflocks all in place. Please help... - Kinley ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Coldfusion and Java
What does your CFLOCK tag look like? -Craig - Original Message - From: Kinley Pon [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, November 14, 2001 4:12 PM Subject: Coldfusion and Java Here is a BIG question... We have a Coldfusion 4.5 application that we have integrated java objects by creating them using the cfObject tag. Though the application works just fine as a single user, when multiple, as few as 2, begin working against the application, the Coldfusion server will reply that the server is busy (Code 26). Based on our test and the statistics that we have gathered, it appears that Coldfusion is not communicating properly with the JVM (jdk 1.3.1). It appears that only one thread is open and that multiple threads are not being created. Is there a setting? Actually, I need advice... The application works perfectly as a single user. By the way, we have all the cflocks all in place. Please help... - Kinley ~~ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Coldfusion and Java
We have a Coldfusion 4.5 application that we have integrated java objects by creating them using the cfObject tag. ~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Coldfusion and Java
We have a Coldfusion 4.5 application that we have integrated java objects by creating them using the cfObject tag. Are you trying to connect to an EJB? ~~ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Coldfusion and Java
How is your java code written? What is public and what is private? On Wed, 14 Nov 2001, Kinley Pon wrote: Here is a BIG question... We have a Coldfusion 4.5 application that we have integrated java objects by creating them using the cfObject tag. Though the application works just fine as a single user, when multiple, as few as 2, begin working against the application, the Coldfusion server will reply that the server is busy (Code 26). Based on our test and the statistics that we have gathered, it appears that Coldfusion is not communicating properly with the JVM (jdk 1.3.1). It appears that only one thread is open and that multiple threads are not being created. Is there a setting? Actually, I need advice... The application works perfectly as a single user. By the way, we have all the cflocks all in place. Please help... - Kinley ~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Coldfusion and Java
I. Cold Fusion and Java Object It just happens that our CF 4.5 application has embededd java objects as follows. 1. Java Object Creation CFSET surveyData = CreateObject(Java, com.Research.SurveyData) CFSET connection = CreateObject(Java, com.Research.Connection) Java class SurveyData and Connection are defined as a public class. 2. Java Object Return CFSET surveyData = connection.getSurveyData() Java method getSurveyData is defined as a public method. 3. The use of Java Object in CF CFSET surveyName = surveyData.getSurveyName() CFOUTPUT#surveyName#/CFOUTPUT II. Testing The application works well with single user. However, when two or more users hitting the application, CFServer will reply that the server is busy (code 26). III. Try to Mitigate the problem We try to mitage the problem by putting CFLOCK everytime we call java object. This does not solve the problem totally. CF Server is still busy (code 26) when being hit by multiple users. IV. Suspicion (Not Confirmed) We suspects that Cold Fusion has a single thread connection with JVM (Java Virtual Machine). Then, the result is obvious. That single thread is overwhelmed with too many requests. Please help us. Any information or comment are highly appreciated. From: Alex [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Subject: Re: Coldfusion and Java Date: Wed, 14 Nov 2001 17:35:29 -0500 (EST) How is your java code written? What is public and what is private? On Wed, 14 Nov 2001, Kinley Pon wrote: Here is a BIG question... We have a Coldfusion 4.5 application that we have integrated java objects by creating them using the cfObject tag. Though the application works just fine as a single user, when multiple, as few as 2, begin working against the application, the Coldfusion server will reply that the server is busy (Code 26). Based on our test and the statistics that we have gathered, it appears that Coldfusion is not communicating properly with the JVM (jdk 1.3.1). It appears that only one thread is open and that multiple threads are not being created. Is there a setting? Actually, I need advice... The application works perfectly as a single user. By the way, we have all the cflocks all in place. Please help... - Kinley ~~ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Coldfusion and Java
No, we are not trying to connect to EJBs on the server. Basically: I. Cold Fusion and Java Object It just happens that our CF 4.5 application has embededd java objects as follows. 1. Java Object Creation CFSET surveyData = CreateObject(Java, com.Research.SurveyData) CFSET connection = CreateObject(Java, com.Research.Connection) Java class SurveyData and Connection are defined as a public class. 2. Java Object Return CFSET surveyData = connection.getSurveyData() Java method getSurveyData is defined as a public method. 3. The use of Java Object in CF CFSET surveyName = surveyData.getSurveyName() CFOUTPUT#surveyName#/CFOUTPUT II. Testing The application works well with single user. However, when two or more users hitting the application, CFServer will reply that the server is busy (code 26). III. Try to Mitigate the problem We try to mitage the problem by putting CFLOCK everytime we call java object. This does not solve the problem totally. CF Server is still busy (code 26) when being hit by multiple users. IV. Suspicion (Not Confirmed) We suspects that Cold Fusion has a single thread connection with JVM (Java Virtual Machine). Then, the result is obvious. That single thread is overwhelmed with too many requests. Please help us. Any information or comment are highly appreciated. - Kinley From: Zac Belado [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Subject: RE: Coldfusion and Java Date: Wed, 14 Nov 2001 14:36:00 -0800 We have a Coldfusion 4.5 application that we have integrated java objects by creating them using the cfObject tag. Are you trying to connect to an EJB? ~~ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Coldfusion and Java
Yes, we are using cfobject to instantiate the objects but it appears that Coldfusion can only handle single threaded communication with the JVM. Basically: I. Cold Fusion and Java Object It just happens that our CF 4.5 application has embededd java objects as follows. 1. Java Object Creation CFSET surveyData = CreateObject(Java, com.Research.SurveyData) CFSET connection = CreateObject(Java, com.Research.Connection) Java class SurveyData and Connection are defined as a public class. 2. Java Object Return CFSET surveyData = connection.getSurveyData() Java method getSurveyData is defined as a public method. 3. The use of Java Object in CF CFSET surveyName = surveyData.getSurveyName() CFOUTPUT#surveyName#/CFOUTPUT II. Testing The application works well with single user. However, when two or more users hitting the application, CFServer will reply that the server is busy (code 26). III. Try to Mitigate the problem We try to mitage the problem by putting CFLOCK everytime we call java object. This does not solve the problem totally. CF Server is still busy (code 26) when being hit by multiple users. IV. Suspicion (Not Confirmed) We suspects that Cold Fusion has a single thread connection with JVM (Java Virtual Machine). Then, the result is obvious. That single thread is overwhelmed with too many requests. Please help us. Any information or comment are highly appreciated. - Kinley From: Zac Belado [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Subject: RE: Coldfusion and Java Date: Wed, 14 Nov 2001 14:30:44 -0800 We have a Coldfusion 4.5 application that we have integrated java objects by creating them using the cfObject tag. ~~ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
coldfusion and java question
I am trying to use the example given on the allaire site, http://www.allaire.com/handlers/index.cfm?ID=14244Method=Full#1020244 , to convert xml to wddx. I have all of the necessary jar files that I should need and the lotus xsl parser. I am getting the following error: Exception : java.lang.NoSuchMethodError: . Java exception occurred in attempting to find a method named '' with signature '()V'. I get this error no matter what method I call in the XSLProcess class. I tried calling different methods for debugging purposes. I have checked the classpath and the jvm.dll path. Any ideas or similiar experiences? Steve -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: coldfusion and java question
You have to put all the Jar files in your class path. classpath=c:\cfusion\cfx\xerces.jar;c:\cfusion\cfx\lotusxsl.jar ,etc I use CFX instead of CFObject, if you want my Tag, I'll send it to you off list. _ Pete Freitag ([EMAIL PROTECTED]) CFDEV.COM / NETDesign Inc. http://www.cfdev.com/ -Original Message- From: Steve DeWitt [mailto:[EMAIL PROTECTED]] Sent: Friday, August 18, 2000 2:34 PM To: '[EMAIL PROTECTED]' Subject: coldfusion and java question I am trying to use the example given on the allaire site, http://www.allaire.com/handlers/index.cfm?ID=14244Method=Full#1020244 , to convert xml to wddx. I have all of the necessary jar files that I should need and the lotus xsl parser. I am getting the following error: Exception : java.lang.NoSuchMethodError: . Java exception occurred in attempting to find a method named '' with signature '()V'. I get this error no matter what method I call in the XSLProcess class. I tried calling different methods for debugging purposes. I have checked the classpath and the jvm.dll path. Any ideas or similiar experiences? Steve -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.