Issue1623654

classification
Title: execution of large wlst script fails
Type: Severity: normal
Components: None Versions:
Milestone:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: cgroves, nobody
Priority: normal Keywords: patch

Created on 2006-12-28.14:35:59 by anonymous, last changed 2007-01-02.13:33:46 by nobody.

Messages
msg2573 (view) Author: Nobody/Anonymous (nobody) Date: 2006-12-28.14:35:59
tried with various jython and java versions - always get the same error


 wls:/(offline)> execfile('../config.py')
Traceback (innermost last):
  File "<input>", line 1, in ?
java.lang.InternalError: stack sizes don't agree: 0, 1
        at org.python.compiler.Label.setStack(I)V(Label.java:???)
        at org.python.compiler.Code.branch(ILorg.python.compiler.Label;)V(Code.java:???)
        at org.python.compiler.Code.goto_(Lorg.python.compiler.Label;)V(Code.java:???)
        at org.python.compiler.CodeCompiler.exceptionTest(ILorg.python.compiler.Label;Lorg.python.parser.SimpleNode;I)V(CodeCompiler.java:???)
        at org.python.compiler.CodeCompiler.try_stmt(Lorg.python.parser.SimpleNode;)Ljava.lang.Object;(CodeCompiler.java:???)
        at org.python.parser.SimpleNode.visit(Lorg.python.parser.Visitor;)Ljava.lang.Object;(SimpleNode.java:???)
        at org.python.compiler.CodeCompiler.suite(Lorg.python.parser.SimpleNode;)Ljava.lang.Object;(CodeCompiler.java:???)
        at org.python.parser.SimpleNode.visit(Lorg.python.parser.Visitor;)Ljava.lang.Object;(SimpleNode.java:???)
        at org.python.compiler.CodeCompiler.parse(Lorg.python.parser.SimpleNode;Lorg.python.compiler.Code;ZLjava.lang.String;ZLorg.python.compiler.ScopeInfo;Lorg.python.core.CompilerFlags;)V(CodeCompiler.java:???)
        at org.python.compiler.Module.PyCode(Lorg.python.parser.SimpleNode;Ljava.lang.String;ZLjava.lang.String;ZZILorg.python.compiler.ScopeInfo;Lorg.python.core.CompilerFlags;)Lorg.python.compiler.PyCodeConstant;(Module.java:???)
        at org.python.compiler.Module.PyCode(Lorg.python.parser.SimpleNode;Ljava.lang.String;ZLjava.lang.String;ZZILorg.python.compiler.ScopeInfo;)Lorg.python.compiler.PyCodeConstant;(Module.java:???)
        at org.python.compiler.CodeCompiler.funcdef(Lorg.python.parser.SimpleNode;)Ljava.lang.Object;(CodeCompiler.java:???)
        at org.python.parser.SimpleNode.visit(Lorg.python.parser.Visitor;)Ljava.lang.Object;(SimpleNode.java:???)
        at org.python.compiler.CodeCompiler.suite(Lorg.python.parser.SimpleNode;)Ljava.lang.Object;(CodeCompiler.java:???)
        at org.python.compiler.CodeCompiler.file_input(Lorg.python.parser.SimpleNode;)Ljava.lang.Object;(CodeCompiler.java:???)
        at org.python.parser.SimpleNode.visit(Lorg.python.parser.Visitor;)Ljava.lang.Object;(SimpleNode.java:???)
        at org.python.compiler.CodeCompiler.parse(Lorg.python.parser.SimpleNode;Lorg.python.compiler.Code;ZLjava.lang.String;ZLorg.python.compiler.ScopeInfo;Lorg.python.core.CompilerFlags;)V(CodeCompiler.java:???)
        at org.python.compiler.Module.PyCode(Lorg.python.parser.SimpleNode;Ljava.lang.String;ZLjava.lang.String;ZZILorg.python.compiler.ScopeInfo;Lorg.python.core.CompilerFlags;)Lorg.python.compiler.PyCodeConstant;(Module.java:???)
        at org.python.compiler.Module.compile(Lorg.python.parser.SimpleNode;Ljava.io.OutputStream;Ljava.lang.String;Ljava.lang.String;ZZZLorg.python.core.CompilerFlags;)V(Module.java:???)
        at org.python.core.Py.compile_flags(Lorg.python.parser.SimpleNode;Ljava.lang.String;Ljava.lang.String;ZZLorg.python.core.CompilerFlags;)Lorg.python.core.PyCode;(Py.java:???)
        at org.python.core.Py.compile_flags(Ljava.io.InputStream;Ljava.lang.String;Ljava.lang.String;Lorg.python.core.CompilerFlags;)Lorg.python.core.PyCode;(Py.java:???)
        at org.python.core.__builtin__.execfile_flags(Ljava.lang.String;Lorg.python.core.PyObject;Lorg.python.core.PyObject;Lorg.python.core.CompilerFlags;)V(__builtin__.java:???)
        at org.python.core.__builtin__.execfile(Ljava.lang.String;Lorg.python.core.PyObject;Lorg.python.core.PyObject;)V(__builtin__.java:???)
        at org.python.core.__builtin__.execfile(Ljava.lang.String;)V(__builtin__.java:???)
        at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
        at org.python.core.PyReflectedFunction.__call__(Lorg.python.core.PyObject;[Lorg.python.core.PyObject;[Ljava.lang.String;)Lorg.python.core.PyObject;(PyReflectedFunction.java:???)
        at org.python.core.PyReflectedFunction.__call__([Lorg.python.core.PyObject;[Ljava.lang.String;)Lorg.python.core.PyObject;(PyReflectedFunction.java:???)
        at org.python.core.PyObject.__call__(Lorg.python.core.PyObject;)Lorg.python.core.PyObject;(PyObject.java:???)
        at org.python.pycode._pyx6.f$0(<input>:1)

java.lang.InternalError: java.lang.InternalError: stack sizes don't agree: 0, 1
msg2574 (view) Author: Charlie Groves (cgroves) Date: 2007-01-02.01:00:00
Could you attach the failing file and let us know what versions of Jython you tried?
msg2575 (view) Author: Nobody/Anonymous (nobody) Date: 2007-01-02.13:33:46
Logged In: NO 

Information in that file is confidential. In general it containt many weblogic tasks like:

def ServerDebug_XXX_25171():
  print 'configuring resource: ServerDebug '
  cd("Servers/"+XXX_25SERVER)
  try:
    myResource = create(XXX_25SERVER,"ServerDebug")
  except Exception:
    myResource = (getTarget("ServerDebug/"+XXX_25SERVER))
  cd("/")

This exception appears when i try to run large enough scripts (~40000 lines)
WLST even doesn't try to execute them. I tried this with amny versions of jython (latest also).

This is not urgent problem any more as i found althernative for cloning domains in weblogic. Any way WLST has nice features and it would be nice to know the reason/solution for possible future reuse.
History
Date User Action Args
2006-12-28 14:35:59anonymouscreate