This is an archive of the Maximo Yahoo Community. The content of this pages may be a sometimes obsolete so please check post dates.
Thanks to the community owner Christopher Wanko for providing the content.
Hi,
I cannot tell for sure, but it seems the maximo code cannot find your status
list (domain). Did you implement the necessary methods?
this is from the Javadocs (7.5.0, dont have a newer version available):
public abstract class StatefulMboextends Mboimplements StatefulMboRemote
Base class that represents the behaviour of a Mbo that can be in one of many
statuses. Examples of these are Work Order, PR, PO, etc.
This class provides the standard features of maintaining a status history and
providing statndard methods for changing the status of the object.
The actual implementation of the status change functionality, which is
application specific, is implemented in a class derived from StatusHandler.
In order to make use of this class, the following assumptions are made about the
Mbo.
1. The Mbo has the attributes STATUS and STATUSDATE.
2. The programmer must override the getStatusHandler(), getStatusListName() and
getStatusHistory() methods.
3. The list of status must be a synonym value list.
4. The status history object must have an attribute named MEMO.
hth
Ewald
---------------------------------------------------------------------
Hello Experts,
I created a custom application and made it stateful.Now,I am getting null
pointer when trying to change the status of the record in custom application,.
Kindly help.Below is the error message
BMXAA4214E - An unknown error has occurred. null
[6/29/15 11:16:58:000 GST] 00000042 SystemErr R
java.lang.NullPointerException
[6/29/15 11:16:58:001 GST] 00000042 SystemErr R at
psdi.mbo.Translate.loadList(Translate.java:257)
[6/29/15 11:16:58:001 GST] 00000042 SystemErr R at
psdi.mbo.Translate.getValuesVector(Translate.java:211)
[6/29/15 11:16:58:001 GST] 00000042 SystemErr R at
psdi.mbo.Translate.toInternalString(Translate.java:178)
[6/29/15 11:16:58:001 GST] 00000042 SystemErr R at
psdi.mbo.Translate.toInternalString(Translate.java:113)
[6/29/15 11:16:58:001 GST] 00000042 SystemErr R at
psdi.mbo.StatefulMbo.checkDesiredStatus(StatefulMbo.java:496)
[6/29/15 11:16:58:002 GST] 00000042 SystemErr R at
psdi.mbo.StatefulMbo.canChangeStatus(StatefulMbo.java:615)
[6/29/15 11:16:58:002 GST] 00000042 SystemErr R at
psdi.mbo.StatefulMbo.canChangeStatus(StatefulMbo.java:597)
[6/29/15 11:16:58:002 GST] 00000042 SystemErr R at
psdi.mbo.StatefulMbo.getStatusList(StatefulMbo.java:731)
[6/29/15 11:16:58:002 GST] 00000042 SystemErr R at
psdi.mbo.StatefulMbo.getValidStatusList(StatefulMbo.java:702)