RE: Problem in the function resolution phase

"Goldsack, Patrick" <[email protected]> Thu, 3 Nov 2005 22:17:55 -0000
Newsgroups gmane.comp.java.smartfrog.devel
Message-ID <[email protected]>
Gustavo,

Thanks for pointing this out. I wonder how this slipped through - it must have been sitting there for ages without anyone noticing.
The correct function for adding its attributes is sum, not plus. The definition of plus should probably be removed, or made to point to the class Sum for possible backward compatability. I will consider this and fix...

I am somewhat surprised that unless you actually try to use it you get an error (or if you try to include the file directly into sfConfig). Only the functions used within sfConfig should be evaulated, so a file included at the top level will be ignored. 

Eliminating the function phase enirely will of course remove the problem, but I wouldn't recommend it!

Can you send me some more details as to why you are getting the error message?  The file you are parsing would do.

Thanks
Patrick


-----Original Message-----
From: smartfrog-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:smartfrog-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Gustavo Wagner D Mendes / Pos. COPIN
Sent: 03 November 2005 21:49
To: smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [Smartfrog-developer] Problem in the function resolution phase

Hello all.

In the org/smartfrog/functions.sf file there is the following component:

plus extends {
    phase.function "org.smartfrog.sfcore.languages.sf.functions.Plus";
}

Note that it links to the
org/smartfrog/sfcore/languages/sf/functions/Plus.class class, but it does not exists in any smartfrog distribution. If we try to parse any component, in the function phase occurs a ClassNotFoundException. 

When I comment the function phase - //phases.sfResolvePhase("function");,
it works well.

If you dont have the Plus class, I can do it and send to you.

  Cheers,

     Gustavo


                #############################################
                #       GUSTAVO WAGNER DINIZ MENDES         #
                #       Graduado pela UFCG                  #
                #       Curso: Ciência da Computação        #
                #       Mestrando pela COPIN-UFCG           #
                #     * Integrante do projeto OurGrid       #
                #        Fones: (83)88246910 / 32358355     #
                #                   33333453                #



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Smartfrog-developer mailing list
Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/smartfrog-developer


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php