Re: problem with ShellScript component
"Guijarro, Julio" <[email protected]> Fri, 1 Sep 2006 22:06:20 +0100
| Newsgroups | gmane.comp.java.smartfrog.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Andreas,
I found the problem.
The reason why this component does not work is because it does rename
its log using the attribute sfLog with the following definition:
sfLog LAZY THIS;
This causes sfResolve to spin in an infinite loop because sfResolve
tries also to initialize the log when in trace mode.
I know now how to fix the problem and I will check in a fixed version in
CVS on Monday. In the mean time the simplest fix for it is to modify the
file:
org/smartfrog/services/shellscript/components.sf, that it is contained
in smarfrog.jar, by commenting the attribute "sfLog LAZY THIS;" in the
components: Process and Shell.
I apologize for the inconvenience that this caused you and thank you for
sending a very accurate report for the bug.
I will also add this bug to our bug tracking system:
http://jira.smartfrog.org/
Regards,
Julio
PS: the domain name smartfrog.org is being migrated to a different set
of domain name servers and there can be some problems for the next 48
hrs.
> -----Original Message-----
> From: smartfrog-support-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:smartfrog-
> support-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Andreas
Unterkircher
> Sent: 01 September 2006 14:21
> To: smartfrog-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> Subject: [Smartfrog-support] problem with ShellScript component
>
> Hello,
>
> we're encountering a problem with the shellscript componen. Consider
> this simple .sf file:
>
> ----------------------------------------------
>
> #include "org/smartfrog/components.sf"
> #include "org/smartfrog/services/shellscript/components.sf"
>
> test extends Script {
> shell LAZY ATTRIB myShell;
> startScript ["date"];
> autoTerminate true;
> }
>
> sfConfig extends Compound {
> myShell extends BashShell;
> testImpl extends test;
> }
>
> ----------------------------------------------
>
> It works well under SmartFrog 3.08.004 with an output like
>
> 2006/09/01 11:03:53:233 CEST [INFO ][RMI TCP
> Connection(2)-137.138.243.43] HOST
> it-gd-andreas.cern.ch:rootProcess:test:myShell - Init done
> Fri Sep 1 11:03:53 CEST 2006
> ScriptExecEcho - done HOST
> it-gd-andreas.cern.ch:rootProcess:test:myShell [2006/09/01
11:03:53:288
> CEST] Exit code#: 0
> 2006/09/01 11:03:53:377 CEST [INFO ][RunProcess] HOST
> it-gd-andreas.cern.ch:rootProcess:test:myShell - exit code = 240
>
> but with the new SmartFrog 3.10.000 release we get a lot of warnings:
>
>
java.lang.StackOverflowErrorjava.lang.StackOverflowErrorjava.lang.StackO
ve
> rflowError
> [WARN] Error during initialization of localLog for LogImpl. Next
trying
> to using Default (LogToFile), Reason: Error creating parser for
> 'org/smartfrog/sfcore/logging/logimpl.sf'. Parser error
> [SmartFrogParseException:: Parser error, cause:
> java.lang.StackOverflowError]
> java.lang.StackOverflowError
> [WARN] Error during initialization of localLog for LogImpl. Next
trying
> to using Default (LogToFile), Reason: Error creating parser for
> 'org/smartfrog/sfcore/logging/logimpl.sf'. Parser error
> [SmartFrogParseException:: Parser error, cause:
> java.lang.StackOverflowError]
> [WARN ]SmartFrogResolutionException:: , Cause: Error creating parser
for
> 'org/smartfrog/sfcore/logging/logtofileimpl.sf'. Parser error
> [SmartFrogParseException:: Parser error, cause:
> java.lang.StackOverflowError]java.lang.StackOverflowError[WARN] Error
> during initialization of localLog for LogImpl. Next trying to using
> Default (LogToFile), Reason: Error creating parser for
> 'org/smartfrog/sfcore/logging/logimpl.sf'. Parser error
> [SmartFrogParseException:: Parser error, cause:
> java.lang.StackOverflowError]
> [WARN ]SmartFrogResolutionException:: , Cause: Error creating parser
for
> 'org/smartfrog/sfcore/logging/logtofileimpl.sf'. Parser error
> [SmartFrogParseException:: Parser error, cause:
> java.lang.StackOverflowError]
> java.lang.StackOverflowError
> [WARN] Error during initialization of localLog for LogImpl. Next
trying
> to using Default (LogToFile), Reason: Error creating parser for
> 'org/smartfrog/sfcore/logging/logimpl.sf'. Parser error
> [SmartFrogParseException:: Parser error, cause:
> java.lang.StackOverflowError]
> [WARN ]SmartFrogResolutionException:: , Cause: Error creating parser
for
> 'org/smartfrog/sfcore/logging/logtofileimpl.sf'. Parser error
> [SmartFrogParseException:: Parser error, cause:
> java.lang.StackOverflowError]
> java.lang.StackOverflowError
> [WARN] Error during initialization of localLog for LogImpl. Next
trying
> to using Default (LogToFile), Reason: Error creating parser for
> 'org/smartfrog/sfcore/logging/logimpl.sf'. Parser error
> [SmartFrogParseException:: Parser error, cause:
> java.lang.StackOverflowError]
> [WARN ]SmartFrogResolutionException:: , Cause: Error creating parser
for
> 'org/smartfrog/sfcore/logging/logtofileimpl.sf'. Parser error
> [SmartFrogParseException:: Parser error, cause:
> java.lang.StackOverflowError]
> java.lang.StackOverflowError
> [WARN] Error during initialization of localLog for LogImpl. Next
trying
> to using Default (LogToFile), Reason: Error creating parser for
> 'org/smartfrog/sfcore/logging/logimpl.sf'. Parser error
> [SmartFrogParseException:: Parser error, cause:
> java.lang.StackOverflowError]
> [WARN ]SmartFrogResolutionException:: , Cause: Error creating parser
for
> 'org/smartfrog/sfcore/logging/logtofileimpl.sf'. Parser error
> [SmartFrogParseException:: Parser error, cause:
> java.lang.StackOverflowError]
> java.lang.StackOverflowError
> [WARN ]SmartFrogResolutionException:: , Cause: Error creating parser
for
> 'org/smartfrog/sfcore/logging/logtostreamsimpl.sf'. Parser error
> [SmartFrogParseException:: Parser error, cause:
> java.lang.StackOverflowError]
> [WARN ]SmartFrogResolutionException:: , Cause: Error creating parser
for
> 'org/smartfrog/sfcore/logging/logtofileimpl.sf'. Parser error
> [SmartFrogParseException:: Parser error, cause:
> java.lang.StackOverflowError]
> [ERROR] Error during initialization of logger. Data: name HOST
> it-gd-andreas.cern.ch:rootProcess:test:*unknown*, targetClassName
> org.smartfrog.sfcore.logging.LogToFileImpl, logLevel 3, targetCodeBase
> null, Reason: java.lang.reflect.InvocationTargetException
> java.lang.StackOverflowError
> 2006/09/01 10:54:02:519 CEST [ERROR][RMI TCP
> Connection(2)-137.138.243.43] HOST
> it-gd-andreas.cern.ch:rootProcess:test:*unknown* - Fail to register
> logger: org.smartfrog.sfcore.logging.LogToFileImpl ** **
> <SmartFrogLogException:: Class
> org.smartfrog.sfcore.logging.LogToFileImpl has invocation target error
> cause: java.lang.reflect.InvocationTargetException>
>
> 2006/09/01 10:54:02:927 CEST [INFO ][RMI TCP
> Connection(2)-137.138.243.43] HOST
> it-gd-andreas.cern.ch:rootProcess:test:*unknown* - Init done **
> org.smartfrog.sfcore.logging.LogImpl.info(LogImpl.java:714) **
> Fri Sep 1 10:54:02 CEST 2006
> ScriptExecEcho - done HOST
> it-gd-andreas.cern.ch:rootProcess:test:myShell [2006/09/01
10:54:02:936
> CEST] Exit code#: 0
> 2006/09/01 10:54:03:024 CEST [INFO ][RunProcess] HOST
> it-gd-andreas.cern.ch:rootProcess:test:*unknown* - exit code = 224 **
> org.smartfrog.sfcore.logging.LogImpl.info(LogImpl.java:714) **
>
> Does anybody know what might be the problem ?
>
> Thanks ,
> Andreas
>
>
>
>
>
------------------------------------------------------------------------
-
> 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-support mailing list
> Smartfrog-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/smartfrog-support
-------------------------------------------------------------------------
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