Can you try an isolated, less complicated example?  Something we can try to
reproduce on our end?

-----Original Message-----
From: Vinicius Carvalho [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 02, 2006 9:09 AM
To: Tapestry users
Subject: Re: Question with Services (another one...)

Well, I really can't explain this. It's not working at all. Could someone
help me here! It's very, very odd that It's throwing an noSuchMethod Error.
I tried to debug the XTile class, it also throws an error when I try to
inspect the getService().getLink(false,this) statement, but at least it
works ;D. can't find the reason why this is happening, is this a bug? All
libs are Tapestry 4, and hivemind 1.1. Any ideas please?

Regards


On 3/2/06, Vinicius Carvalho <[EMAIL PROTECTED]> wrote:
>
> Hello James, I don't think so, all my libs are T4. I'll dig a little bit
> more into this problem and check what could be the reason. What's giving
me
> the creeps is as I said, I'm just adapting the Xtile lib (which works
> perfectly) while mine that is almost the same thing, with a little
diference
> on the response output is not working :(
>
> thanks for the hint, if you have any other I'd be glad to hear ;)
>
> Regards
>
>
>
> On 2/28/06, James Carman < [EMAIL PROTECTED]> wrote:
> >
> > Are you using a library that's based on an older version of
> > Tapestry?  The
> > getLink() method used to look like...
> >
> >
> >
http://jakarta.apache.org/tapestry/3.0.3/doc/api/org/apache/tapestry/engine/
> > IEngineService.html
> >
> >
> > -----Original Message-----
> > From: Vinicius Carvalho [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, February 28, 2006 7:40 PM
> > To: Tapestry users
> > Subject: Question with Services (another one...)
> >
> > Well, thanks to Geoff I forgot to put my template (doh). Now I'm getting
> > an
> > bizzarre error:
> >
> > java.lang.NoSuchMethodError
> > org.apache.tapestry.engine.IEngineService.getLink
> > (ZLjava/lang/Object;)Lorg/apache/tapestry/engine/ILink;  Stack Trace:
> >
> >    - org.tupiniquim.components.ajax.AjaxRequest.getScriptSymbols(
> >    AjaxRequest.java:32)
> >
> > <component-specification allow-body="no" allow-informal-parameters="no"
> > class="org.tupiniquim.components.ajax.AjaxRequest ">
> >     <parameter name="listener" required="yes"/>
> >     <parameter name="receiveName" required="yes"/>
> >     <parameter name="sendName" required="yes"/>
> >     <parameter name="refreshTimeout" required="no"/>
> >     <component id="script" type="Script">
> >         <binding name="script"
> > value="'/org/tupiniquim/components/ajax/AjaxRequest.script'"/>
> >         <binding name="symbols" value="scriptSymbols"/>
> >     </component>
> >     <inject property="service" object="engine-service:ajaxXML"/>
> > </component-specification>
> > public Map getScriptSymbols(){
> >         ILink link = getService().getLink(false,this); // This is where
> > the
> > error happens
> >         Map result = new HashMap();
> >         result.put("sendFunctionName", getSendName());
> >         result.put("receiveFunctionName", getReceiveName());
> >         result.put("url", link.getURL());
> >         if(getRefreshTimeout() != null){
> >             result.put("refreshTimeOut",getRefreshTimeout());
> >         }
> >         return result;
> >     }
> >
> > <contribution
> >         configuration-id="tapestry.services.ApplicationServices">
> >         <service name="ajaxXML" object="service: org.tupiniquim.ajaxXML"
> > />
> >     </contribution>
> >     <service-point id="ajaxXML"
> >         interface="org.apache.tapestry.engine.IEngineService">
> >         <invoke-factory>
> >             <construct class="org.tupiniquim.services.xml.XMLService">
> >             </construct>
> >         </invoke-factory>
> >     </service-point>
> >
> > After debugging I found that Tapestry uses a proxy (EngineOuterProxy)
> > for
> > its services. But why it's not allowing the use of the method? Am I
> > missing
> > something?
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to