problem with ShellScript component

Andreas Unterkircher <[email protected]> Fri, 01 Sep 2006 15:21:26 +0200
Newsgroups gmane.comp.java.smartfrog.user
Organization CERN
Message-ID <[email protected]>
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.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]
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