Hi,
Please follow below thread...
http://wiki.scn.sap.com/wiki/display/XI/Configuration+of+inboundRA+in+the+Java+IDoc_AAE+Adapter
Please dont use same program ID in JCo RFC provider that you have used in InboundRA.
Also check ur gateway host and service details as amit suggested.
Thanks,
Sreenivas