문제

I setup the Social Business Toolkit against our development system. All APIs are working correct, except for the Blog and Activities API. For both i recieve within the Java APIs the following error:

org.apache.http.conn.EofSensorInputStream cannot be cast to org.w3c.dom.Document

The blog request url from the sbt is:

http://example.com/service/proxy/connections/blogs/homepage/feed/blogs/atom?ps=5&dojo.preventCache=13

But correct would be:

http://example.com/service/proxy/connections/blogs/atom?ps=5&dojo.preventCache=13

Any idea why that happens?

도움이 되었습니까?

해결책

The blog path is customizable per each IBM Connection installation: to support different blogs homepages, there is a parameter exposed on the BlogService API.

To change the default, try:

BlogService svc = ...
svc.defaultHomepageHandle = "";

다른 팁

Lorenzo's answer is correct, most installations use homepage as the blog handle, but you can configure it using the defaultHomepageHandle member variable in the BlogService.

Just a brief comment, maybe it's better to use the setHomepageHandle() method instead.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top