cancel
Showing results for 
Search instead for 
Did you mean: 

Error while developing SAP Netweaver mobile App

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member199619
Participant
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi All,

I solved the issue by using Data Vault at the time of Authentication.

former_member184221
Contributor
0 Kudos

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 ?.

Former Member
0 Kudos

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 ...

Former Member
0 Kudos

Hi,

Just go thru this document which explains about sap netweaver gateway development with sup and android.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0ccaba6-0b74-2f10-0896-fbd92e3e6...

Regards,

Abhishek Wajge

rohith_deraje
Advisor
Advisor
0 Kudos

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