I was trying to create a API Proxy in Apigee with Back-End being a Java Callout policy. The Java Callout policy refers to a custom class that i created (jar) which writes messages to IBM MQ. This custom IBM MQ client class refers to IBM MQ libraries (com.ibm.mq.commonservices.jar/com.ibm.mq.headers.jar/com.ibm.mq.jar/com.ibm.mq.jmqi.jar/connector.jar)
Added the dependent jars in API Proxy as shown in the screen shot below.
I get the following error when I invoke the Apigee API proxy (from trace):
error | null |
error.cause | access denied ("javax.management.MBeanServerPermission" "createMBeanServer") |
error.class | java.lang.ExceptionInInitializerErro |
Response from Apigee Proxy invocation:
{"fault": {"faultstring": "Could not initialize class com.ibm.mq.internal.MQCommonServices", "detail": {
"errorcode": "Internal Server Error" }
}
}
However, when I run the client java class from eclipse, it works perfectly, posting message to IBM MQ. It seems to me that somehow Apigee is not able to load the dependent IBM jars to the memory/not able to initialize the IBM client classes.
Could anybody please help?
Thanks,
Aneesh.