Fwd: Prims not being displayed properlyinthesfManagementConsole

"Xavier Grehant" <[email protected]> Thu, 5 Oct 2006 23:30:10 +0200
Newsgroups gmane.comp.java.smartfrog.devel
Message-ID <[email protected]>
---------- Forwarded message ----------
From: Xavier Grehant <[email protected]>
Date: Oct 5, 2006 11:26 PM
Subject: Re: [Smartfrog-developer] Prims not being displayed
properlyinthesfManagementConsole
To: smartfrog-developer-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Cc: "Guijarro, Julio" <[email protected]>

On 10/5/06, Guijarro, Julio <[email protected]> wrote:
>
>  Hi Xavier,
>
>
>
> Did you "extends PrimImpl implements Prim" in your component?
>

indirectly but yes

 It sounds like a problem with Stubs.
>

There was a stub missing in an inherited abstract class but even with the
stub, same bug.

In any case, could you also send the diagnostics report for the component:
> domain2
>
>
>
> If you could send a simple example that we could use to debug the problem
> that would help a lot.
>
> For example I tried this and it works for me. Could you try it?
>

Your example works for me as well; there is no bug.

I simplified our bug case to the extreme:


Interface XenDomain.java :
>>>>>>>>>>>>>>>>>>>>>
package ch.cern.openlab.smartfrog.test.fakeXen ;
import java.rmi.Remote;

public interface XenDomain extends Remote {}
<<<<<<<<<<<<<<<<<<<<<


Class XenDomainManager.java:
>>>>>>>>>>>>>>>>>>>>>
package ch.cern.openlab.smartfrog.test.fakeXen;

import org.smartfrog.sfcore.prim.PrimImpl;
import org.smartfrog.sfcore.prim.Prim;
import java.rmi.RemoteException;

public class XenDomainManager extends PrimImpl implements Prim, XenDomain {
    public XenDomainManager() throws RemoteException {}
}
<<<<<<<<<<<<<<<<<<<<<


file testConsole.sf
>>>>>>>>>>>>>>>>>>>>>
#include "org/smartfrog/components.sf"

XenDomain extends Prim {
   sfClass "ch.cern.openlab.smartfrog.test.fakeXen.XenDomainManager";
}

sfConfig extends Compound {
  xenDomain extends XenDomain;
}
<<<<<<<<<<<<<<<<<<<<<

Here we have XenDomain as an attribute, with exactly the same appearance in
the mngt console.

It's interesting to note as well, that with this testConsole.sf:
>>>>>>>>>>>>>>>>>>>>>
#include "org/smartfrog/components.sf"

XenDomain extends Prim {
   sfClass "ch.cern.openlab.smartfrog.test.fakeXen.XenDomainManager ";
}

sfConfig extends XenDomain;
<<<<<<<<<<<<<<<<<<<<<
the management console displays the application with a P on the left,
instead of the usual C.

There is a stub for XenDomainManager.

Thanks a lot Julio.
Xavier

> (Display is a Prim component)
>
> #include "org/smartfrog/services/display/components.sf"
>
> #include "org/smartfrog/services/trace/components.sf"
>
> #include "org/smartfrog/services/persistence/components.sf"
>
> #include "org/smartfrog/components.sf"
>
>
>
>
>
>
>
> // Default sfDaemon Display
>
> DefaultDisplay extends  Display {
>
>     nameDisplay "sfDaemon Display"; // Window Title
>
>     positionDisplay "NE";         // Window position: North-West
>
>     redirectStd true;             // Redirect std output and error to this
> wind.
>
>     showIP true;                  // Show IP address in window title
>
>     showSfProcess true;           // Show sfProcess name in  window title
>
>     terminateSFProcessOnExit true; // Terminates sfDaemon when window is
> closed
>
> };
>
>
>
> sfConfig extends Compound {
>
>   prim extends DefaultDisplay;
>
>   primEx extends DefaultDisplay {
>
>     sfProcessName "display"; // to deploy it remotely in a second VM
>
>   }
>
> }
>
>
>
>
>   ------------------------------
>
> *From:* smartfrog-developer-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:
> smartfrog-developer-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] * On Behalf Of *Xavier
> Grehant
> *Sent:* 05 October 2006 11:17
> *To:* Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> *Subject:* Re: [Smartfrog-developer] Prims not being displayed
> properlyinthesfManagementConsole
>
>
>
> Just to mention that the mngt console on localhost works fine. This
> problem appears only when you launch a description on a remote host 'sfStart
> remotehost myApp myDesc.sf' and you connect the management console to the
> remote host.
>
> Xavier
>
> On 10/4/06, *Xavier Grehant* <[email protected]> wrote:
>
> I don't find id there was any follow up about this question. I still have
> the same problem. So here is the info:
>
> attached a snapshot of the console. domain2 should be seen as a Prim.
>
> below the component diagnostic report:
>
> Thanks in advance,
> Xavier
>
> sfDiagnosticsReport
> ------- SF diagnostics report -------
> -------------------------------------------
>  Implementation Version
> -------------------------------------------
> SmartFrog 3.10.001
> (C) Copyright 1998-2006 Hewlett-Packard Development Company, LP
> Build date: 16 Sep 2006, 04:50:39
>
> -------------------------------------------
>  System properties summary
> -------------------------------------------
> * Java Version:    1.4.2_12
> * Java Home:       /usr/java/j2sdk1.4.2_12/jre
> * Java Ext Dir:    /usr/java/j2sdk1.4.2_12/jre/lib/ext
> * OS Name:         Linux
> * OS Version:      2.6.16-xen3_86.1_fc4
> * User Name:       root
> * User Home:       /root
> * User Work Dir:   /opt/SmartFrog.3.08.004/dist/lib
> * LocalHost Name:  oplaslim9.cern.ch
> * LocalHost Addr:  128.142.134.78
> * SF ini file:     /opt/SmartFrog.3.08.004/dist/bin/default.ini
> * SF default desc: /opt/SmartFrog.3.08.004/dist/bin/default.sf
> * SF process name: rootProcess
>
> -------------------------------------------
>  Temp dir
> -------------------------------------------
> Temp dir is /tmp
> Temp dir is writeable
> temp dir alignment with system clock is -516 ms
>
> -------------------------------------------
>  Network
> -------------------------------------------
> Network test localhost: hostname 'oplaslim9.cern.ch', ip ' 128.142.134.78',
> [Successful], 0ms
> Network test remotehost ( http://www.smartfrog.org/): hostname 'ginger.hpl.hp.com',
> ip '192.6.19.21', 1ms,  [Successful], 1ms
>
>
> -------------------------------------------
>  ClassPath
> -------------------------------------------
> /opt/SmartFrog.3.08.004/dist/lib/smartfrog-3.10.001.jar
> /opt/SmartFrog.3.08.004/dist/lib/sfServices-3.10.001.jar
> /opt/SmartFrog.3.08.004/dist/lib/commons-io-1.2.jar
>
> -------------------------------------------
>  CodeBase
> -------------------------------------------
> http
> //smartfrog.web.cern.ch/smartfrog/download/xavier/sfOpenlabTools- 1.0.jar
>
> -------------------------------------------
>  Locale information
> -------------------------------------------
> Timezone Central European Time offset=7200000
>
> -------------------------------------------
>  sfCompleteName
> -------------------------------------------
> HOST oplaslim9.cern.ch:rootProcess:testDomains
>
> -------------------------------------------
>  class
> -------------------------------------------
> org.smartfrog.sfcore.compound.CompoundImpl
>
> -------------------------------------------
>  sfParent
> -------------------------------------------
> Parent: No parent: null
>
> -------------------------------------------
>  sfContext
> -------------------------------------------
> sfCodeBase "default";
> sfClass "org.smartfrog.sfcore.compound.CompoundImpl";
> sfSyncTerminate true;
> myShell org.smartfrog.services.shellscript.SFScriptExecutionImpl_Stub[RemoteStub [ref: [endpoint:[
> 128.142.134.78:51429](local),objID:[7]]]];
> lvm ch.cern.openlab.smartfrog.xen.LVMStorageBackend_Stub [RemoteStub [ref:
> [endpoint:[ 128.142.134.78:51429](local),objID:[8]]]];
> domain2 ch.cern.openlab.smartfrog.xen.XenDomainManager_Stub[RemoteStub
> [ref: [endpoint:[ 128.142.134.78:51429](local),objID:[9]]]];
> sfProcessComponentName "testDomains";
> sfLog "HOST oplaslim9.cern.ch:rootProcess";
> sfLivenessDelay 15L;
> sfLivenessFactor 2;
> sfHost oplaslim9.cern.ch/128.142.134.78 ;
> sfProcess "rootProcess";
> sfParseTime 266L;
> sfDeployTime 60156L;
>
> -------------------------------------------
>  sfChildren
> -------------------------------------------
> - HOST oplaslim9.cern.ch:rootProcess:testDomains:myShell
>       [class org.smartfrog.services.shellscript.SFScriptExecutionImpl, oplaslim9.cern.ch/128.142.134.78
> ]
> - HOST oplaslim9.cern.ch:rootProcess:testDomains:lvm
>       [class ch.cern.openlab.smartfrog.xen.LVMStorageBackend,
> oplaslim9.cern.ch/128.142.134.78]
> - HOST oplaslim9.cern.ch:rootProcess:testDomains:domain2
>       [class ch.cern.openlab.smartfrog.xen.XenDomainManager,
> oplaslim9.cern.ch/128.142.134.78]
>
> -------------------------------------------
>  sfContext host ProcessCompound
> -------------------------------------------
> +++++++++++++++++++++++++++++++++++++++++++
>     -------------------------------------------
>      sfCompleteName
>     -------------------------------------------
>     HOST oplaslim9.cern.ch:rootProcess
>
>     -------------------------------------------
>      class
>     -------------------------------------------
>     org.smartfrog.sfcore.processcompound.ProcessCompoundImpl
>
>     -------------------------------------------
>      sfParent
>     -------------------------------------------
>     Parent: No parent: null
>
>     -------------------------------------------
>      sfContext
>     -------------------------------------------
>     sfCodeBase "default";
>     sfClass "org.smartfrog.sfcore.processcompound.ProcessCompoundImpl";
>     sfDeployerClass "org.smartfrog.sfcore.prim.PrimDeployerImpl ";
>     sfLivenessDelay 15L;
>     sfLivenessFactor 2;
>     sfSyncTerminate true;
>     sfProcessClass "org.smartfrog.SFSystem";
>     sfProcessJava "java";
>     sfProcessAllow true;
>     sfProcessTimeout 60;
>     sfRootLocatorClass "
> org.smartfrog.sfcore.processcompound.DefaultRootLocatorImpl";
>     sfRootLocatorPort 3800;
>     rootProcess LAZY ROOT;
>     sfDefault.sfDefault "/opt/SmartFrog.3.08.004/dist/bin/default.sf";
>     sfProcessName "rootProcess";
>     sfLog "HOST oplaslim9.cern.ch:rootProcess";
>     sfHost oplaslim9.cern.ch/128.142.134.78;
>     sfProcess "rootProcess";
>     sfDefault org.smartfrog.sfcore.compound.CompoundImpl_Stub[RemoteStub
> [ref: [endpoint:[128.142.134.78:51429 ](local),objID:[1]]]];
>     sfBootDate Wed Oct 04 14:36:27 CEST 2006;
>     sfVersion "SmartFrog 3.10.001";
>     testDomains org.smartfrog.sfcore.compound.CompoundImpl_Stub[RemoteStub
> [ref: [endpoint:[ 128.142.134.78:51429](local),objID:[6]]]];
>
>     -------------------------------------------
>      sfChildren
>     -------------------------------------------
>     - HOST oplaslim9.cern.ch:rootProcess:sfDefault
>           [class org.smartfrog.sfcore.compound.CompoundImpl ,
> oplaslim9.cern.ch/128.142.134.78]
>     - HOST oplaslim9.cern.ch:rootProcess:testDomains
>           [class org.smartfrog.sfcore.compound.CompoundImpl,
> oplaslim9.cern.ch/128.142.134.78]
>
> +++++++++++++++++++++++++++++++++++++++++++
>
> -------------------------------------------
>  System properties
> -------------------------------------------
> file.encoding : UTF-8
> file.encoding.pkg : sun.io
> file.separator : /
> java.awt.graphicsenv : sun.awt.X11GraphicsEnvironment
> java.awt.printerjob : sun.print.PSPrinterJob
> java.class.path : /opt/SmartFrog.3.08.004/dist/lib/smartfrog-
> 3.10.001.jar:/opt/SmartFrog.3.08.004/dist/lib/sfServices-3.10.001.jar:/opt/SmartFrog.3.08.004/dist/lib/commons-io-1.2.jar:
> java.class.version : 48.0
> java.endorsed.dirs : /usr/java/j2sdk1.4.2_12/jre/lib/endorsed
> java.ext.dirs : /usr/java/j2sdk1.4.2_12/jre/lib/ext
> java.home : /usr/java/j2sdk1.4.2_12/jre
> java.io.tmpdir : /tmp
> java.library.path :
> /usr/java/j2sdk1.4.2_12/jre/lib/i386/client:/usr/java/j2sdk1.4.2_12/jre/lib/i386:/usr/java/j2sdk1.4.2_12/jre/../lib/i386
>
> java.rmi.server.RMIClassLoaderSpi :
> org.smartfrog.sfcore.security.SFRMIClassLoaderSpi
> java.runtime.name : Java(TM) 2 Runtime Environment, Standard Edition
> java.runtime.version : 1.4.2_12-b03
> java.specification.name : Java Platform API Specification
> java.specification.vendor : Sun Microsystems Inc.
> java.specification.version : 1.4
> java.util.prefs.PreferencesFactory :
> java.util.prefs.FileSystemPreferencesFactory
> java.vendor : Sun Microsystems Inc.
> java.vendor.url : http://java.sun.com/
> java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi
> java.version : 1.4.2_12
> java.vm.info : mixed mode
> java.vm.name : Java HotSpot(TM) Client VM
> java.vm.specification.name : Java Virtual Machine Specification
> java.vm.specification.vendor : Sun Microsystems Inc.
> java.vm.specification.version : 1.0
> java.vm.vendor : Sun Microsystems Inc.
> java.vm.version : 1.4.2_12-b03
> line.separator :
>
> org.smartfrog.codebase : http://smartfrog.web.cern.ch/smartfrog/download/xavier/sfOpenlabTools-1.0.jar
>
> org.smartfrog.iniFile : /opt/SmartFrog.3.08.004/dist/bin/default.ini
> org.smartfrog.logger.logStackTrace : true
> org.smartfrog.sfcore.logging.LogImpl.localLoggerClass :
> org.smartfrog.sfcore.logging.LogToFileImpl
> org.smartfrog.sfcore.logging.LogImpl.logLevel : 2
> org.smartfrog.sfcore.logging.LogToFileImpl.append : true
> org.smartfrog.sfcore.logging.LogToFileImpl.dateFormat : yyyy/MM/dd
> HH:mm:ss:SSS zzz
> org.smartfrog.sfcore.logging.LogToFileImpl.fileNamePrefix : "smartfrog"
> org.smartfrog.sfcore.logging.LogToFileImpl.logFileExtension : "log"
> org.smartfrog.sfcore.logging.LogToFileImpl.path : "/var/log"
> org.smartfrog.sfcore.logging.LogToFileImpl.redirectSystemOutputs : false
> org.smartfrog.sfcore.logging.LogToFileImpl.showDateTime : false
> org.smartfrog.sfcore.logging.LogToFileImpl.showMethodCall : false
> org.smartfrog.sfcore.logging.LogToFileImpl.useDatedFileName : false
> org.smartfrog.sfcore.logging.LogToFileImpl.useHostNameInFileName : false
> org.smartfrog.sfcore.logging.LogToFileImpl.useLogNameInFileName : false
> org.smartfrog.sfcore.logging.LogToFileImpl.useProcessNameInFileName :
> false
> org.smartfrog.sfcore.processcompound.sfDefault.sfDefault :
> /opt/SmartFrog.3.08.004/dist/bin/default.sf
> org.smartfrog.sfcore.processcompound.sfProcessName : rootProcess
> os.arch : i386
> os.name : Linux
> os.version : 2.6.16-xen3_86.1_fc4
> path.separator : :
> sun.arch.data.model : 32
> sun.boot.class.path :
> /usr/java/j2sdk1.4.2_12/jre/lib/rt.jar:/usr/java/j2sdk1.4.2_12/jre/lib/i18n.jar:/usr/java/j2sdk1.4.2_12/jre/lib/sunrsasign.jar:/usr/java/j2sdk1.4.2_12/jre/lib/jsse.jar:/usr/java/j2sdk1.4.2_12/jre/lib/jce.jar:/usr/java/j2sdk1.4.2_12/jre/lib/charsets.jar:/usr/java/j2sdk1.4.2_12/jre/classes
>
> sun.boot.library.path : /usr/java/j2sdk1.4.2_12/jre/lib/i386
> sun.cpu.endian : little
> sun.cpu.isalist :
> sun.io.unicode.encoding : UnicodeLittle
> sun.java2d.fontpath :
> sun.os.patch.level : unknown
> user.country : US
> user.dir : /opt/SmartFrog.3.08.004/dist/lib
> user.home : /root
> user.language : en
> user.name : root
> user.timezone : Europe/Zurich
>
> -------------------------------------------
>  SmartFrog 3.10.001 - 16 Sep 2006, 04:50:39
> -------------------------------------------
>
>
>
>  On 7/20/06, *Guijarro, Julio* < [email protected]> wrote:
>
> As for the management console, I would need more information.
>
>
>
> Can you write a simple description that shows the problem?
>
>
>
> Are your components stubs available?
>
>
>
> Could you get the Diagnostics Report for your compound and send me what
> you see in the sfChildren section?
>
>
>
> Julio
>
>
>
>
>
> > -----Original Message-----
>
> > From: smartfrog-developer-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:
> smartfrog-
>
> > developer-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org ] On Behalf Of Goldsack, Patrick
>
> > Sent: 20 July 2006 14:40
>
> > To: Olivier Pernet; Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>
> > Subject: Re: [Smartfrog-developer] Prims not being displayed properly
>
> > inthesfManagementConsole
>
> >
>
> >
>
> > Not sure about the management console problem, but the schema issue I
>
> > can explain.
>
> >
>
> > At the time the schema is being checked (parsing), the value of the
>
> > attribute is indeed a ComponentDescriptionImpl as it has not yet been
>
> > deployed. The schema makes no guesses as to the eventual deployed
>
> > component class and just looks at the class it currently has. You could
>
> > write an assertion instead that checks that the sfClass attribute has
>
> > the right string value as an alternative to schema checking.
>
> >
>
> > However I am close to releasing LAZY asserttions and schemas (in the
>
> > model of the recent release of LAZY functions, including LAZY
>
> > propagation). In this case you will be able to delay evaluation of the
>
> > schema until deployment - at which time you would be able to validate
>
> > the component type as you would like to do. The next release of SF is
>
> > pending my completion of this.
>
> >
>
> > Patrick
>
> >
>
> > -----Original Message-----
>
> > From: smartfrog-developer-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>
> > [mailto:smartfrog-developer-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org ] On Behalf Of
>
> > Olivier Pernet
>
> > Sent: 20 July 2006 13:42
>
> > To: Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>
> > Subject: [Smartfrog-developer] Prims not being displayed properly in
>
> > thesfManagementConsole
>
> >
>
> > Hello,
>
> >
>
> > We're having some strange problem with the management console. A few of
>
> > our Prim components are only being displayed as attributes in the
>
> > Compound they're in, and not as Prims. But the BashShell component that
>
> > is being deployed in the same Compound shows up properly.
>
> >
>
> > Maybe related to that, we're having trouble with a simple schema :
>
> > StorageBackend extends Compulsory {
>
> >    class "ch.cern.openlab.smartfrog.xen.XenDomainStorageBackend";
>
> > }
>
> >
>
> > When we try to enforce this with
>
> > storageBackend extends StorageBackend;
>
> >
>
> > we get a schema checking error, saying that the attribute we put is a
>
> > ComponentDescriptionImpl, and not a XenDomainStorageBackend. But if we
>
> > disable the schema check for this attribute, everything works fine.
>
> >
>
> > Thanks for your help,
>
> >
>
> > --
>
> > Olivier Pernet
>
> > Summer Student - CERN Openlab
>
> >
>
> > We are the knights who say
>
> > echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq'|dc
>
> >
>
> > ------------------------------------------------------------------------
>
> > -
>
> > Take Surveys. Earn Cash. Influence the Future of IT Join
>
> > SourceForge.net's Techsay panel and you'll get the chance to share your
>
> > opinions on IT & business topics through brief surveys -- and earn cash
>
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
>
> > V
>
> > _______________________________________________
>
> > Smartfrog-developer mailing list
>
> > Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>
> > https://lists.sourceforge.net/lists/listinfo/smartfrog-developer
>
> >
>
> >
> -------------------------------------------------------------------------
>
> > Take Surveys. Earn Cash. Influence the Future of IT
>
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
>
> > your
>
> > opinions on IT & business topics through brief surveys -- and earn cash
>
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> > _______________________________________________
>
> > Smartfrog-developer mailing list
>
> > Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>
> > https://lists.sourceforge.net/lists/listinfo/smartfrog-developer
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> Smartfrog-developer mailing list
> Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/smartfrog-developer
>
>
>
>
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Smartfrog-developer mailing list
Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/smartfrog-developer
image001.jpg (image/jpeg, 22.7 KB) - not displayed