Re: sfManagementConsole &SFScriptExecutionImplnot being Serializable
"Goldsack, Patrick" <[email protected]> Fri, 30 Jun 2006 11:40:11 +0100
| Newsgroups | gmane.comp.java.smartfrog.devel |
|---|---|
| Message-ID | <[email protected]> |
For some reason the sfExport flag in the shell components is set to false. We did this because we did not want the exec interfaces to be remotely accessible for security resons. Consequently, when it tried to serialize the component, it does nor serialize the stub, but the component itself. Very few prims, if any, can actually be serialized as components (and anyway, this is not what you want). I am not sure that we needed to be quite so strict, as the key interfaces are not Remote anyway. Thus we could probably have set the sfExport to true reasonably safely. So if it matters to you that unExported components generate this effect in the console - set the sfExport flag to true. )You might also have to build the stub, depending on the release you are using.) Patrick -----Original Message----- From: smartfrog-developer-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:smartfrog-developer-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Guijarro, Julio Sent: 30 June 2006 11:11 To: Olivier Pernet; Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Subject: Re: [Smartfrog-developer] sfManagementConsole &SFScriptExecutionImplnot being Serializable Use a console deployed directly in the host where SFScriptExecution is deployed and it will talk to it directly. You will find that any component that contains Streams cannot be serialized. SFScriptExecution uses java exec() that cannot be serialized and that is why you get that message. BTW, does the console crash or throws and exception? Julio -----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: 30 June 2006 10:49 To: Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Subject: [Smartfrog-developer] sfManagementConsole & SFScriptExecutionImplnot being Serializable Hello, We're having some trouble here with the sfManagementConsole : an attribute of one of our components is shell LAZY ATTRIB myShell; where myShell is an instance of SFScriptExecutionImpl. So, when the management console tries to display our component, it crashes with an RMi exception, as SFScriptExecutionImpl is not Serializable. What could we do as a workaround ? Plus, I thought that all Prims were supposed to be Serializable ? 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 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Smartfrog-developer mailing list Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/smartfrog-developer Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Smartfrog-developer mailing list Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/smartfrog-developer Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642