Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

How to fix errors such as [B2X] Cannot find execution class "TestClass" for translating business class "TestClass"?

270002KCEB gravatar image
Question by odmfd  (3407) | Feb 24, 2015 at 05:53 PM ibmodmrule designerdecision serversba_gkw

In Rule Designer a BOM entry may show build errors such as [B2X] Cannot find execution class "TestClass" for translating business class "TestClass" even though it looks like the XOM does have the TestClass defined. What can be the cause of the error?

LiezlChin
k.p.

People who like this

  2
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

3 answers

  • Sort: 
270002KCEB gravatar image
Accepted answer

Answer by odmfd (3407) | Feb 24, 2015 at 06:16 PM

During build/checks Rule Designer may need to load the XOM Java class using reflection API, there can be several reasons for that to fail:

  • the Java class may have been compiled with a compliance level that is higher than the JDK running Rule Designer, for example compiling the classes with Java 7 and running Rule Designer with a Java 6 JVM.

  • the Java class may have dependencies to other classes included in libraries that are not available in the XOM path

  • the Java class may have some static initializer that fails in the Rule Designer environment ( for example because the static initialization code was written with dependencies to file or network resource that are only available in a properly configured target runtime environment, versus the Rule Designer / Eclipse development environment )


In order to troubleshoot this sort of situation, it can be useful to create a simple Java project in Rule Designer that only has on its classpath the same XOM libraries that make up the XOM of the Rule Project causing issue, and then run the following code:

     public class Main {                                                     
       public static void main(String[] args) throws Exception {    
              Class.forName("com.mycompany.myxom.MyXomClass");
       }                                                                   
     }
 

Where com.mycompany.myxom.MyXomClass should be replaced with the fully qualified name of a XOM class causing issue. This may lead to a ClassNotFoundException / NoClassDefFoundError / LinkageError message hinting at some class/library dependency issue, or possibly a java.lang.ExceptionInInitializerError pointing to an error occuring during static initializations.

Comment
LiezlChin
Raj Rao

People who like this

  2   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
310000GN15 gravatar image

Answer by mousami (76) | Jun 09, 2016 at 01:53 AM

I have added a class in bom which is not there in xom, and I am getting this above error. how to sync the xom with changes done in bom

Comment

People who like this

  0   Show 1   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
310000GN15 gravatar image mousami (76)   Jun 09, 2016 at 01:54 AM 0
Share

please help in solving this

270002FDM6 gravatar image

Answer by Mike_MDH (1) | Aug 01, 2016 at 03:47 AM

mousami, I am assuming you do not want to add the class to your XOM. If that's the case, your BOM class is what's referred to as a virtual class. You need to add an "execution name" to the BOM-to-XOM mapping of your class. In the BOM editor, go down to "BOM to XOM Mapping", and enter java.lang.Object in the execution name.

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

Follow this question

21 people are following this question.

Answers

Answers & comments

Related questions

Exception executing Rule Service running on ODM v8.10.2 (Rule server is deployed on Liberty 19.0.0.3) 0 Answers

ODM V8.9.2.1 Operation (Ruleset Name) in BAL or IRL 0 Answers

Sample Project on how to build a decision service using javascript? 0 Answers

Decision Server installation failed with WAS Version Identification 3 Answers

Error when connecting to teamserver: Error 500: javax.servlet.ServletException: SRVE0207E: Uncaught initialization exception created by servlet 2 Answers

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PartnerWorld Developer Support
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges