Skip to Content
0
Former Member
Jun 16, 2015 at 02:10 PM

Error while establishing a connection

16 Views

Hi,

I'm trying to establish a connection to a SAP Mobile Documents Server (Cloud Trial Instance) via an native android app. I'm using OpenCMIS for handling the connection. I'm trying basic stuff like the following to just get the available repositories:

SessionFactory sessionFactory = SessionFactoryImpl.newInstance();
Map parameters = new HashMap();
parameters.put(SessionParameter.USER, "foo");
parameters.put(SessionParameter.PASSWORD, "bar");
parameters.put(SessionParameter.BROWSER_URL, "https://mdocstrial-foobar.hana.ondemand.com/mcm/json");
parameters.put(SessionParameter.BINDING_TYPE, BindingType.BROWSER.value());
List<Repository> repositories = sessionFactory.getRepositories(parameters);

When this code is run, I'm promted a CmisConnectionException:


CmisConnectionException: Cannot access "https://mdocstrial-foobar.hana.ondemand.com/mcm/json": null


As far as I know there is no proxy involved. Is there anything I'm missing out?

Edit:

I just found out, that when the exact same code is executed in an AsyncTask, another exception instead of the first one is thrown:

CmisConnectionException: Parsing exception!

Any ideas on that?

Christian