• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is the cause of this error?  RSS feed

Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm trying to call one of the apache stanbol RESTful web services,i used apache-stanbol-client library, i wrote following code but i received an error i don't know how can i store contentFile and contentStream to the contentHub, please help me ...

this is my code:

and the error is:

Exception in thread "main" org.apache.stanbol.client.services.exception.StanbolServiceException: No ContentFile and ContentStream detected to store in ContentHub
at org.apache.stanbol.client.contenthub.store.services.impl.StanbolContenthubStoreServiceImpl.add(StanbolContenthubStoreServiceImpl.java:155)
at stanbolclient.Client.contentHub(Client.java:41)
at stanbolclient.Stanbol_Client.main(Stanbol_Client.java:33)
Java Result: 1
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!