APAR status
Closed as program error.
Error description
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.
Local fix
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.
Problem summary
A dedicated classloader that is used in the rule designer that does not properly register packages
Problem conclusion
the classloader is modified to properly declare package
Temporary fix
Comments
APAR Information
APAR number
RS01170
Reported component name
WS DECISION SVR
Reported component ID
5725B6901
Reported release
800
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2012-11-15
Closed date
2012-12-19
Last modified date
2012-12-19
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
999
Fix information
Fixed component name
WS DECISION SVR
Fixed component ID
5725B6901
Applicable component levels
R750 PSY
UP
Rate this page:
Average rating
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.