hmm thanks for the advice! I did some digging and this is what I am getting.

"Error","jrpp-5","12/02/06","15:12:12",,"The method 'init' in component
C:\Program Files\Apache Group\Apache2\htdocs\ajax\WhoIs.cfc cannot be
accessed remotely. The specific sequence of files included or processed is:
C:\Program Files\Apache Group\Apache2\htdocs\ajax\WhoIs.cfc "
coldfusion.runtime.TemplateProxy$InvalidRemoteAccessException: The method
'init' in component C:\Program Files\Apache
Group\Apache2\htdocs\ajax\WhoIs.cfc cannot be accessed remotely.
    at coldfusion.runtime.TemplateProxy.checkAccess(TemplateProxy.java:122)
    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:190)
    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:157)
    at coldfusion.filter.ComponentFilter.invoke(ComponentFilter.java:158)
    at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java
:225)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
    at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
    at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
    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.xml.rpc.CFCServlet.invoke(CFCServlet.java:106)
    at coldfusion.xml.rpc.CFCServlet.doPost(CFCServlet.java:182)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at org.apache.axis.transport.http.AxisServletBase.service(
AxisServletBase.java:327)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    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
:541)
    at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(
JRunProxyService.java:204)
    at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(
ThreadPool.java:426)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)



and here is my init method

    <!--- the host to connect to --->
    <cfset variables.server = "">
    <!--- port on server to connect to --->
    <cfset variables.port = "">
    <!--- the whois query to run --->
    <cfset variables.whoisQuery = "">
    <!--- socket timeout in seconds --->
    <cfset variables.connTimeout = 0>
    <!--- the result of the server response --->
    <cfset variables.response = "">

    <cfset init()>

    <cffunction name="init" access="public" returntype="WhoIs" hint="">
        <cfargument name="server" type="string" default="whois.geektools.com
"/>
        <cfargument name="port" type="numeric" default="43"/>
        <cfargument name="connTimeout" type="numeric" default="30"
hint="Socket timeout in seconds"/>

        <cfscript>
            variables.server = arguments.server;
            variables.port = JavaCast("int",arguments.port);
            variables.connTimeout = (arguments.connTimeout * 1000);

            //create before use
            variables.connection = createObject("java","java.net.Socket
").init(variables.server,variables.port);

            //dump(variables.connection,true);
        </cfscript>

        <cfreturn this>
    </cffunction>



Why would i get an error that it can not be accessed remotly? Im sorry if
this is a dummy question but  I am new to advanced javascript and ajaxCFC..

Thanks!

On 12/2/06, Rick Root <[EMAIL PROTECTED]> wrote:
>
> Dan Vega wrote:
> > I have been playing around with ajaxCFC today and ran into a problem. I
> have
> > a whois cfc that basically does a whois query and returns a very long
> string
> > of text that contains information about the domain. I can run this
> lookup
> > method no problem without ajax cfc but everytime I run it now I am
> getting
> > an error "Invalid reply from the server."
> >
> > If it works fine without ajaxCFC why would i bet getting this message
> better
> > yet how do i figure out whats wrong? I changed the degug:true property
> iin
> > the ini of ajaxCFC but alll that shows is the post. I also changed it in
> > ajax.cfc but that will not show anything either. How can I solve this?
> >
>
> That "Invalid reply from server" is coming from ajax.cfc, not from your
> CFC.  Something isn't configured properly or something like that.  The
> worst thing about doing ajax is debugging ajax.  Start by looking in
> your coldfusion server's exception log.
>
> Rick
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:262616
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to