cancel
Showing results for 
Search instead for 
Did you mean: 

Exception using fault message in java server proxy.

Former Member
0 Kudos

Hi All,

I am trying to use Fault message inside my server proxy code in Asynchronous java server proxy. I am referring the below mentioned link :

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d06315a6-e66e-2910-039c-ba8bbbd23...

I successfully deployed my SDA file but while running the scenario(http-XI-ftp in PI7.11) i am getting the folowing exception under MDT:

com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing inbound message. Exception: Cannot locate proxy bean ServerProxyFTTest3.

I am using the following library refernces under application-j2ee-engine.xml file: com.sap.aii.af.sdk.lib, com.sap.aii.proxy.svc, com.sap.xi.util.misc,com.sap.guid,com.sap.exception all of type "weak".

I have checked almost all the forums related to fault messages in asynchronous java server proxy but couldn't find much help.

Request you all to help me.

Thanks

Amit

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Your error says that the cannot locate the Bean...

which looks like that the bean is not registered with your server...

Check the registration details ..and I hope you have registered as localejs/JNDIName.... if it is a co-located bean...

HTH

Rajesh

Former Member
0 Kudos

Hi Rajesh,

Thanks for ur reply.

I have registered the bean using following URL:

http://ISVSAPPISB:51000/ProxyServer/register?ns=XXXX&interface=SI_Proxy_IA&bean=ServerProxyFTTest3&m...

Where XXXX= namespace.

I dont think that this problem is due to registration becoz my other java server proxy scenario is working fine which is a simple HTTP-XI-FTP scenario(not using fault message in that).

Thanks

Amit

Former Member
0 Kudos

Hi Amit,

Where did u deployed ur bean ..is it same in PI server..then need to register as localejbs/BeanName...

try this and let me know...

if you are using fault message and is not working properly..then the error should be different...which should not be the above one...

HTH

Rajesh

Answers (2)

Answers (2)

stefan_grube
Active Contributor
0 Kudos

The EBJ references are wrong.

Please check online help for the references which are valid for PI 7.1

I recommend not using old-fashioned PI 7.0 Java proxies in PI 7.1 unless you are migrating them.

Use the new WebService proxies.

Former Member
0 Kudos

Hi Stefan,

You are talking about which EJB refrences??

I am doing this old fashioned java proxies becoz of some project criticality but will surely use the new webservice proxies.

Thanks

Amit

GabrielSagaya
Active Contributor
0 Kudos

Hi

Did you go through this WIKI for changes in PI 7.1 Java Proxy

http://wiki.sdn.sap.com/wiki/display/Java/JavaProxyChangesinPI7.1fromPI7.0

Former Member
0 Kudos

Hi Rajesh,

I am deploying my SDA file on Non Central Adapter Engine.

I have also registered my interface using:

http://ISVSAPPISB:51000/ProxyServer/register?ns=http://infosys.com/poc&interface=SI_Proxy_IA&bean=lo...

But still i ma getting the same exception.

Hi Gabriel,

I implemented my scenario using the same. But in addittion to the librarry referneces mentioned over there i have added one more refrence in it "com.sap.exception" of type "weak". My structure is like this:

<?xml version="1.0" encoding="UTF-8"?>

<application-j2ee-engine xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="application-j2ee-engine.xsd">

<reference reference-type="weak">

<reference-target provider-name="sap.com" target-type="library">com.sap.aii.af.sdk.lib</reference-target>

</reference>

<reference reference-type="weak">

<reference-target provider-name="sap.com" target-type="service"> com.sap.aii.proxy.svc</reference-target>

</reference>

<reference reference-type="weak">

<reference-target provider-name="sap.com" target-type="library">com.sap.xi.util.misc</reference-target>

</reference>

<reference reference-type="weak">

<reference-target provider-name="sap.com" target-type="library">com.sap.guid</reference-target>

</reference>

<reference reference-type="weak">

<reference-target provider-name="sap.com" target-type="library">com.sap.exception</reference-target>

</reference>

</application-j2ee-engine>

Please help.

Thanks

Amit

GabrielSagaya
Active Contributor