RS01170: RULE DESIGNER CLASSLOADER DOES NOT DECLARE PACKAGES BEFORE CLASSES POTENTIALLY CAUSING STATIC INITIALIZATION ERRORS
A fix is available
Closed as program error.
The following static initialization in a mypackage.MyClass class fails in Rule Designer when importing the class in the BOM or building the BOM with the class in it: private static final String name = MyClass.class.getPackage().getName(); getPackage returns null, causing an NPE and the following error when building the BOM: [B2X] Cannot find execution class "mypackage.MyClass" for translating business class "mypackage.MyClass" or the following in the Eclipse log when importing the class in a new BOM (which fails): ilog.rules.studio.bom.wizards.newfile.IlrNewBOMWizardXomPage$Bom Exception: GBRSB0046E : Errors raised loading classes: GBRMO0003E: LinkageError mypackage.MyClass (initialization failure) while trying to load the class mypackage.MyClass at ilog.rules.studio.bom.wizards.newfile.IlrNewBOMWizardXomPage$7.h andleErrorMessages(Unknown Source) at ilog.rules.studio.bom.wizards.newfile.IlrNewBOMWizardXomPage$7.r un(Unknown Source) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run( ModalContext.java:121) This is only an issue in the Rule Designer. You can ignore the error, it will not prevent from executing the rules.
This is only an issue in the Rule Designer. You can ignore the error it will not prevent executing the rules. If the class is not a business class it might be more efficient to not have it appear in the BOM and instead provide a BOM utility class containing the method needed in the rules and invoking this class in the B2X. or initalize the static attribute in a static block in a try/catch.
A dedicated classloader that is used in the rule designer that does not properly register packages
the classloader is modified to properly declare package
Reported component name
WS DECISION SVR
Reported component ID
Last modified date
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fixed component name
WS DECISION SVR
Fixed component ID
Applicable component levels
More support for:
IBM Decision Server
Software version: 8.0
Reference #: RS01170
Modified date: 19 December 2012