cancel
Showing results for 
Search instead for 
Did you mean: 

Java Proxy Client Error

Former Member
0 Kudos

I write a EJB client to call the deployed java proxy, but I got the following exception, sounds like

authorization error, but I have already used the xiappluser to access.

Exception in thread "main" com.sap.aii.proxy.xiruntime.core.BaseProxyException:

Error sending MS message. Exception: Received HTTP response code 401.

at com.sap.aii.proxy.xiruntime.core.AbstractProxy.send$(AbstractProxy.ja

va:146)

.....

Here is the my code:

Properties p = new Properties();

p.put(Context.INITIAL_CONTEXT_FACTORY,

"com.sap.engine.services.jndi.InitialContextFactoryImpl");

p.put(Context.PROVIDER_URL, "<sid>:50104");

p.put(Context.SECURITY_PRINCIPAL, "xiappluser");

p.put(Context.SECURITY_CREDENTIALS, "****");

Context ctx = new InitialContext(p);

....

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

We have the almost the same problem, we write a Java Application to call the deployed java proxy, but I got the following exception:

...com.sap.aii.proxy.xiruntime.core.BaseProxyException:

Error sending MS message. Exception: Received HTTP response code 404: Not found.

Anyone have an idea what's happing?

Regards,

Luis Diego

Former Member
0 Kudos

Hi Ben,

Please check if XIAPPLUSER has the role - SAP_XI_APPL_SERV_USER

cheers

Prashanth

P.S Please mark helpful answers

Former Member
0 Kudos

yes, XIAPPLUSER has the right roles.

Seams something wrong with the JPR

Former Member
0 Kudos

Hi,

Please can you check the details given in XI adapter:

http://help.sap.com/saphelp_nw04/helpdata/en/5b/12b7e6a466456aa71ef852af033b34/content.htm

Also, whats the error can u see in component montioring for JPR.

Regards

Vijaya

Former Member
0 Kudos

Still not resolved, can anyone help me?

I can logon to http://host:port/MessagingSystem/receive/JPR/XI from browser with XIAPPLUSER.