Thursday, February 2, 2012

java.lang.IllegalArgumentException: FMC38009E MQSeries Workflow API Error : API Return Code : 142 Error Origin : FmcProfile.java:182 Error Message : FMC00142E Profile not found for configuration ''default''.

java.lang.IllegalArgumentException:
FMC38009E MQSeries Workflow API Error :
    API Return Code  : 142
    Error Origin     : FmcProfile.java:182
    Error Message    : FMC00142E Profile not found for configuration ''default''. 
    Nested Exception : None
    at com.ibm.workflow.api.Agent.getAgentImplClass(Agent.java:406)
    at com.ibm.workflow.api.Agent.setLocator(Agent.java:274)

Reason:
The fmcrc file cannot be found.

Solution:
fmcrc file and MQ library files should be in the same classloader.
e.g. If you have MQ library files in WEB-INF/lib folder, then fmcrc should be in WEB-INF/classes. If you are using Rational Application Developer (RAD) then keep it in src (Java Source) folder, RAD will copy it in WEB-INF/classes when you'll build the project.

No comments:

Post a Comment