Skip to Content
author's profile photo Former Member
Former Member

Java Proxy Client Error

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);

....

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 23, 2006 at 01:00 AM

    Hi Ben,

    Please check if XIAPPLUSER has the role - SAP_XI_APPL_SERV_USER

    cheers

    Prashanth

    P.S Please mark helpful answers

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 10:24 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.