From: Olivier P. (JIRA) <ji...@sm...> - 2008-08-20 16:19:10
|
PARENT resolution inconsistent ------------------------------ Key: SFOS-961 URL: http://jira.smartfrog.org/jira/browse/SFOS-961 Project: SmartFrog Issue Type: Bug Components: .sfCore Reporter: Olivier Pernet Assignee: Julio Guijarro This might not be a bug, but I do find the behaviour confusing. The following descriptions seem equivalent: // Does not deploy #include "org/smartfrog/components.sf" sfConfig extends Compound { foo []; bar extends Compound { baz (PARENT:foo <> []); } } // Deploys correctly #include "org/smartfrog/components.sf" sfConfig extends Compound { foo []; bar extends Compound { baz (foo <> []); } } // This also deploys correctly #include "org/smartfrog/components.sf" sfConfig extends Compound { foo []; bar extends Compound { baz (PARENT:ATTRIB foo <> []); } } However the one using the PARENT keyword alone fails with : - FAILED when trying DEPLOY of 'Test', [foo.sf], host:10.0.0.254 Result: * Exception: 'SmartFrogDeploymentException: unnamed component. deploying description 'foo.sf' for 'Test' cause: SmartFrogLinkResolutionException:: source: HERE sfConfig data: [APPLY {sfFunctionClass "org.smartfrog.sfcore.languages.sf.fu... in: HERE sfConfig:bar attribute: baz cause: Unresolved Reference] Unresolved Reference during phase link resolution deployedContext: included' Also, I encountered this as a part of a larger description, where I was getting a different, more obfuscated error: - FAILED when trying DEPLOY of 'SUMAC-Servers', [start-servers-cluster.sf], host:10.0.0.254 Result: * Exception: 'SmartFrogDeploymentException: unnamed component. deploying description 'start-servers-cluster.sf' for 'SUMAC-Servers' cause: SmartFrogResolutionException:: link cause: java.lang.NoClassDefFoundError: Could not initialize class org.smartfrog.sfcore.common.SmartFrogLinkResolutionException deployedContext: included' I don't know if it's related. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.smartfrog.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |