When running a Jython script in WAS you get the following error:

By turning on view tabs/spaces in the editor I was using, we can see that there is an inconsistency between tabs and spaces. This can often happen when your editor is using tabs in stead of spaces and the original script only.. read more →

Facebooktwittergoogle_plusredditpinterestlinkedinmail

 Jython Error: AttributeError: instance of

Basically I have a Jython class with name called APPLICATION as defined by a few lines in my Jython class:

But, I have not declared a private member variable called __cellName I had:

I should have had

  read more →

Facebooktwittergoogle_plusredditpinterestlinkedinmail

  Error:

The reason for this error was because I had referred to a Jython class-file (Jython OO script) by name in the same directory, but I had the name wrong. The file was manageApp, not appManage. My import statement was: import AppManage as app It should have been import manageApp as app   read more →

Facebooktwittergoogle_plusredditpinterestlinkedinmail

Error when adding an LDAP Repository to Federated Repositories using Jython

Check these things. 1. Firewall 2. Port (in my case above port looks right, but it was supposed to be 10389, not 10398 3. Use netstat -an command with a grep to check the port for example netstat -an | grep 10398, if.. read more →

Facebooktwittergoogle_plusredditpinterestlinkedinmail

Error below was presented when running a Jython script on WAS 8.5.5.5

The code being used is as follows:

Add the missing : after else for example ‘else:’ not ‘else’ Resultig fixed code

read more →

Facebooktwittergoogle_plusredditpinterestlinkedinmail

Error when running some Jython in WebSphere Application Server to configure Global Security we find the following error Error:

The code has the following:

We can see that there is a space before the if, remove the space read more →

Facebooktwittergoogle_plusredditpinterestlinkedinmail
06 Apr 2015
April 6, 2015

ADMF0007E: target object is required

April 6, 2015 Blog, IBM, Jython, WebSphere Jython 0 Comment

WASX7209I: Connected to process “server01” on node node01 using SOAP connector; The type of process is: UnManagedProcess WASX7017E: Exception received while running file “/root/scripts/was/disableMQ.py”; exception information: com.ibm.websphere.management.cmdframework.CommandValidationException: ADMF0007E: target object is required. Problem: ADMF0007E: target object is required. Problem This command requires a target object. User response Specify target object for the command. You are.. read more →

Facebooktwittergoogle_plusredditpinterestlinkedinmail

This example is a great example of how to debug some more complex WebSphere  Jython. I have added this example to help you if you find a similar problem.

Reason 1: Basically the main reason for this is error is I am creating a Datasource using a new WAS 7 function called createDatasource. This.. read more →

Facebooktwittergoogle_plusredditpinterestlinkedinmail

Another Error I found when testing a Jython script I was writing

Reason: A call is being made to a member function in your class and you have spelled the member function’s name wrong. Example: Solution: The function is called dsExists(), I was calling self.jpExists(). I changed my code. read more →

Facebooktwittergoogle_plusredditpinterestlinkedinmail

When running a Jython script I got this error:

Reason: The reason is that the Jython list (array of elements) was passed incorrectly, without the  string quotes. This call requires the array to be delimited with quotes. This is because within this setter, there is a function call made to Admin.Config such as below.. read more →

Facebooktwittergoogle_plusredditpinterestlinkedinmail