20 Apr 2012
April 20, 2012

NameError: Debug

April 20, 2012 Blog, Jython, WebSphere, WebSphere Application Server 0 Comment

When running some Jython code I get the following error:

Reason: In my main module I had imported a script library module and in this module I have a class called Debug whuch allows me to dynamically turn on debug mode. Well in this case I was in the main routing and used following code. Which was wrong.

Solution: I need to reference the correct namespace ie module name.method, so since my Debug class is inside the imported module called clusterAndServer.py and external, thus the call to use Debug() must be clusterAndServer.Debug().


Leave a Reply