on 01-10-2013 1:34 PM
Hi All,
I am developing Sample NetWeaver Gateway Application Application in android.
I am able to connect directly to Gateway Server and I am getting Data on my Android Device.
When I connect via SUP Server, I get Error While Making Request.
Android Log is:
01-10 17:53:23.859: E/MDP(707): zAlQO90g (com.sybase.mobile.lib.client.SUPServerRmiCalls:makeRequest:246) Exception while making request
01-10 17:53:23.859: E/MDP(707): Error: 553 Message: 'readByte: unexpected EOF'
01-10 17:53:23.859: E/MDP(707): at com.sybase.mo.MoObject.ConvertTmExceptionToMoException(MoObject.java:868)
01-10 17:53:23.859: E/MDP(707): at com.sybase.mo.MoObject.execute(MoObject.java:683)
01-10 17:53:23.859: E/MDP(707): at com.sybase.mobile.lib.client.SUPServerRmiCalls.makeRequest(SUPServerRmiCalls.java:158)
01-10 17:53:23.859: E/MDP(707): at com.sybase.mobile.lib.client.SUPServerRmiCalls.makeRequest(SUPServerRmiCalls.java:243)
01-10 17:53:23.859: E/MDP(707): at com.sybase.mobile.lib.client.IMOConnectionFactory.makeRequest(IMOConnectionFactory.java:305)
01-10 17:53:23.859: E/MDP(707): at com.sybase.mobile.lib.client.IMOConnectionHandler.performRequest(IMOConnectionHandler.java:335)
01-10 17:53:23.859: E/MDP(707): at com.sybase.mobile.lib.client.IMOConnectionHandler.makeHttpRequest(IMOConnectionHandler.java:176)
01-10 17:53:23.859: E/MDP(707): at com.sap.mobile.lib.sdmconnectivity.AbstractConnectionHandler.processRequestType(AbstractConnectionHandler.java:193)
01-10 17:53:23.859: E/MDP(707): at com.sap.mobile.lib.sdmconnectivity.AbstractConnectionHandler.processRequestsFromQueue(AbstractConnectionHandler.java:128)
01-10 17:53:23.859: E/MDP(707): at com.sybase.mobile.lib.client.IMOConnectionHandler.run(IMOConnectionHandler.java:97)
Domain Logs:
Error=java.lang.SecurityException was thrown by method com.sybase.djc.mobilink.LoginHandler:authenticateUser(String user, String password, String securityConfiguration)\njava.lang.SecurityException: Login Failed: user '@HTTPconnection'. Account is locked due to previous login failures. Account will be unlocked in 59 seconds.
I chcked my Account Credentials of GW system n SUP. They are not locked.
SUP Server Configurations are:
I maintained Application Endpoint As : http://(Gateway Server IP ):(Gateway Server Port )/sap/opu/odata/sap/Z_BANK_SERVICE_372/
Application ID is created.
Connection Parameters On Android App:
1. SUP Host Name
2. SUP Port Number
3. Security Config
4. Farm ID
5. base_url = http\:// (GW Server IP ) \: (GW Server Port )/sap/opu/odata/sap/Z_BANK_SERVICE_372
6. Application ID
Please Help me out Solving this Problem
Hi Anjor,
I am getting the same error.
We are using SUP 2.2 and Netweaver gateway services.
Can you please share the code how you solved this problem.
Shyam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
In the Android code, you need to do following changes:
1. Got to raw -> .Properties file
2. Change the value of Vault password (You can give blank as well )
3. Get the Value of Vault Password:
// the vault password
String vaultPassword = this.properties.getProperty("vaultPassword");
4. Use the following code for Registration
supHelper.registerOrUnlock(userName, password, vaultPassword, securityConfig);
Hi All,
I solved the issue by using Data Vault at the time of Authentication.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I note you have a "mobilink" error in your domain logs, does this mean that this is a Replication based Andoid program connecting to SUP then NWG. ?
Or is it a HWC (Hybrid web container) app ?, or a SUP proxy app ?
And what version fo SUP is it 2.1.3 or 2.2 ?.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for reply.
This is Replication based Android Sample Project in which we are using SUP just as Proxy and trying to connect to Gateway Server.
We are able to register device in SUP and Entry is coming online also.
SUP version is 2.1.3
Please suggest any document for connecting to gateway server via SUP
or
Sample Project ...
Hi,
Just go thru this document which explains about sap netweaver gateway development with sup and android.
Regards,
Abhishek Wajge
Hi Anjali,
here is the sample android app to consume gateway services using SUP ODP2.1.x.
https://cw.sdn.sap.com/cw/docs/DOC-146460
Regards
Rohith
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.