This Question is Answered

1 "correct" answer available (5 pts) 14 "helpful" answers available (3 pts)
4 Replies Last post: May 27, 2008 7:19 PM by promiseliu

Why ConnectedDataException?

May 26, 2008 8:37 PM

Click to view promiseliu's profile Level 1 promiseliu 11 posts since
May 25, 2008

My dear experts,

It's all right when I tried the example in the chapter of "Using Record Sets with a Database" in Curl IDE 6, but when I put the applet "start.curl" to a certain web server( I 've tried Apache2.2 and Tomcat 5.5.26) a ConnectedDataException was thrown. The detailed error message is:

<Error> - An error occurred while loading this applet.
ConnectedDataException: A security error was encountered when trying to make an http request or other network connection.

what's the problem?

Click to view Duke's profile Curl Duke 179 posts since
Oct 17, 2007
1. Re: Why ConnectedDataException? May 26, 2008 10:09 PM
Probably the web server needs to have a curl-access.txt file on it.
Click to view promiseliu's profile Level 1 promiseliu 11 posts since
May 25, 2008
2. Re: Why ConnectedDataException? May 26, 2008 11:13 PM
in response to: Duke
I've tried, but it still throws this exception.
Click to view Duke's profile Curl Duke 179 posts since
Oct 17, 2007
3. Re: Why ConnectedDataException? May 27, 2008 8:39 AM
in response to: promiseliu
What is the servlet URL? Is the curl-access.txt file available at the root of that server? Have you checked that the curl-access.txt file is accessible by directly reading it using the IE browser (if you are using Windows)? What are the contents of the curl-access.txt file?
Click to view promiseliu's profile Level 1 promiseliu 11 posts since
May 25, 2008
4. Re: Why ConnectedDataException? May 27, 2008 7:19 PM
in response to: Duke

"Is the curl-access.txt file available at the root of that server? " ----------Yes! this is the heart of the matter!

Thank you very much, Duke!

I had had mistakenly put the curl-access.txt file to the "webapps" folder of TOMCAT or the "webapps/cdbc-server" folder where I deployed my start.curl...

Now, after I put the curl-access.txt file to the "webapps/ROOT" folder of TOMCAT, the applet was successfully loaded.