Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all 21760 articles
Browse latest View live

Re: javax.mail.internet.AddressException: Empty address in string ``''

$
0
0

Thanks Charlie,

I I ran it in CF9 as:

 

<cfmail to="epipko@unionbay.com" from="mail@cf_server.com" subject="Example email" server="smtp.seattlepacificindustries.com" port="25">  Your Email Message!!!</cfmail>

 

and received it:

 

cf9_cfmail.png


Can find how to hide or remove CF table

$
0
0

The table "struct" is displaying on the webpage and I can't find in the CF files or wordpress where to hide or remove table(s).  I am not a CF expert or wordpress, but I have experience with HTML.

Re: Coldfusion 2018 on Mac OS X with .NET integration

$
0
0

Thanks for the reply Dave, To confirm i have understood, are you saying that I need to install the J-Integra .NET bridge? 

 

I don't need to install this on production only development on my Mac. There isn't much documentation that relates to Mac on this but I wanted to first check I understood you. Thanks again.

Re: Coldfusion 2018 on Mac OS X with .NET integration

$
0
0

Yes, that would need to be installed. I haven't messed around with this for some time, but now I recall why you'd be having a problem: CF only installs this bridge on Windows machines. If you want to use it with Unix, you have to configure CF to talk to a Windows server to actually run the code.

 

Dave Watts, Fig Leaf Software

Re: Can find how to hide or remove CF table

$
0
0

There is probably something that looks like this in your code:

 

<cfdump var="...">

 

Remove or comment that out. To use comments to prevent CF code from executing, you'll use HTML comments with one extra dash on each side:

 

<!---

bad stuff here

--->

 

Dave Watts, Fig Leaf Software

Re: Coldfusion 2018 on Mac OS X with .NET integration

$
0
0

This is beyond me, how would I go about doing that?

Re: Can find how to hide or remove CF table

Re: Coldfusion 2018 on Mac OS X with .NET integration

$
0
0

I have no idea! That's one more reason not to use this. What exactly are you trying to accomplish? What complex code have you put in .NET Core? I suspect it would be easier to just rewrite that code in Java or CF than to try to use this.

 

Dave Watts, Fig Leaf Software


Re: Coldfusion 2018 on Mac OS X with .NET integration

$
0
0

It's a web project that initially was in Coldfusion in a windows environment and much of the code that does the heavy duty work was moved into a C#.net DLL. Now I am Mac based I would like to be able to test on my machine. But it may be that I can't.

Re: Coldfusion 2018 on Mac OS X with .NET integration

$
0
0

Yeah, if you plan to keep that, you might as well deploy and test in a Windows VM. It'll be less work than trying to get this going in OS X, and your tests will be more accurate.

 

Dave Watts, Fig Leaf Software

Re: CFHTTP I/O Exception: null

$
0
0

Simon, I don't see that anyone has asked what JVM version you have CF using. It may be Java 7 (as CF11 originally came out on that). You can see the JVM version CF is using in the CF Admin "setttings summary" page.

 

And it may need that you simply need to update to Java 8. (And as long as you have applied CF11 update 3, which added support for Java 8.)

 

Sometimes (despite the lack of clarity in the errors you see), issues of CFHTTP failures calling out to https URLs are down to differences in the DESTINATION's support for various SSL or TLS versions and encryption algorithms, and some are NOT supported by Java 7 or earlier.

 

(And this is also why you find it "works" in a real browser but not in CF. Like Dave said about certs, what browsers support is different than what is supported by the java-based httpclient class in CF, which is simulating a browser for us.)

 

Are you aware of how to update CF to point to a new JVM? There are various resources out there. And then as for things that can go wrong when updating the JVM and how to recover/avoid those problems, I have a blog post on it, listed at the top of my https://www.carehart.org/top.cfm page.

 

Let us know if this is it or not.

Re: CFHTTP I/O Exception: null

Re: CFHTTP I/O Exception: null

$
0
0

That's an old Java 8. A later one might work: the latest is 191.

Ans I'm afraid I'm seeing this on my phone so challenging to test it while out. Perhaps someone else will if I don't get to try that for you. 

/Charlie

Sent via the Samsung Galaxy S7 active, an AT&T 4G LTE smartphone

Re: Could not find the ColdFusion component or interface model.statistics.

$
0
0

Jtech, first, can you help us by saying if you work with Sikander and are referring to his same issue, or one of your own that is similar? It's just not clear from your responses in this thread.

 

And can either of you tell us where the model folder is (and was in 2016)? And Sikander you show the calling code being in the cfusion/wwwroot. Was that there in your 2016 setup?

 

And in both cases, were you using cf's built in web server  or an external web server like iis or apache (set to use this cfusion/wwwroot, as some people do, though it's not necessary to put the code there then) 

 

Answers for all these may help us (or you) better understand what's up (or what's changed, in case it's not that "nothing" has).

 

One last thing: if none of the above helps connect dots to a solution, what happens if you change the model folder name and the call to it to be model? I'm not saying you should HAVE to. I'm simply asking what happens if you do. It's a potentially useful point of diagnosis.

 

/charlie

Re: Could not find the ColdFusion component or interface model.statistics.

$
0
0

@Charlie I'm not 100% certain it's the same issue, but adding a mapping fixed the error for me too.  In my case it appears that ColdFusion 2018 was failing on an extends="component" even though the component that was being extended was in the same folder as the component extending it.  Both components previously mentioned were in this folder in my case: mobile2\sys\.   They have been in this folder since at least CF10.  The error I got was similiar:  Could not find the ColdFusion component or interface mobile2.sys.component


Re: Could not find the ColdFusion component or interface model.statistics.

$
0
0

@Charlie as I think about this more here is some additional info that may be useful:
1. There are other applications that have been migrated to ColdFusion 2018 instantiating CFCs as they always have (i.e. no problems).
2. We are using IIS (Windows Server 2019)
3. The root of the mobile2 application is actually as subfolder of another configured ColdFusion site.  One IIS site rooted within another each configured as seperate sites in IIS and with the Web Connector.

Re: Could not find the ColdFusion component or interface model.statistics.

$
0
0

Jtech, it would be helpful then for you also to answer all the questions I'd raised to Sikander.

 

You both are asserting that this is a problem new in 2018, and fair enough. But I'll say I've not seen it among others running it--and lest anyone assert that "maybe no one is using it yet", that's not so. I have many clients running it in production (for example).

 

So let's see if we can find what you two may share about your configuration that may be causing this, or perhaps exposing some bug.

Re: Could not find the ColdFusion component or interface model.statistics.

$
0
0

Ah, ok. Thanks. You must have been writing that as I was writing my reply to your first note. I do t see anything immediately but perhaps someone else will. And let's see what Sikander says, to see if there's some common denominator 

Re: Could not find the ColdFusion component or interface model.statistics.

$
0
0

Perhaps it is a new issue in ColdFusion but, then again, perhaps not. Hence, my question earlier about the paths

 

C:\ColdFusion2018\cfusion\wwwroot\model\statistics.cfc

C:\ColdFusion2018\cfusion\wwwroot\r2m\a\model\statistics.cfc

 

Do these paths exist? Could it be that you inadvertently changed the location of the calling page, log.cfm?

Variable within a Variable

$
0
0

I have a form that allows the user to create 5 different sets of results on the same form. I do this by using CFLoop. For example:

<cfloop from=”1” to=“5” Index=“i”>

Form FieldName#i#

 

So I end up with:

FieldName1

FieldName2

FieldName3

FieldName4

FieldName5

 

That part works great and keeps the form code short and clean considering there are 16 form fields.

 

Is there a way to loop over that data to insert it into a table. Each Index needs to be its own row in the table. For example…

 

<cfloop from=”1” to=“5” Index=“z”>

<cfquery datasource = “abc”>

Insert into XYZ (Name)

Values (#form.FieldName[z]#)

</cfquery>

 

What I don’t know how to do is use a variable (the index) within a variable (Form.Result).  Parts of the form need to go into 6 different tables times 5 sections of the form would be 30 SQL statements vs. 6 if I can loop.

 

Thanks in advance for any assistance.

 

Gary

Viewing all 21760 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>