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

Error while establishing a connection



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, "");
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 "": null

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


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?