stanbol-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From harish suvarna <hsuva...@gmail.com>
Subject Re: dbpedia-spotlight through curl gives error
Date Fri, 05 Apr 2013 02:46:31 GMT
This problem is because I am calling this as an anonymous user. If I use
admin credentials it runs fine.


On Thu, Apr 4, 2013 at 5:10 PM, harish suvarna <hsuvarna@gmail.com> wrote:

> I am running the command
> curl -X POST -H "Accept: text/turtle" -H "Content-type: text/plain" --data
> "The Stanbol enhancer can detect famous cities such as Paris and people
> such as Bob Marley."
> http://localhost:8080/enhancer/chain/dbpedia-spotlight
>
> and I gt the following error. I was using an earlier version (Oct 2012),
> it was fine. What could be wrong?
>
>
> SEVERE: The RuntimeException could not be mapped to a response,
> re-throwing to the HTTP container
> java.security.AccessControlException: access denied
> (java.net.SocketPermission spotlight.dbpedia.org:80 connect,resolve)
>     at
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:393)
>     at
> java.security.AccessController.checkPermission(AccessController.java:553)
>     at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
>     at java.lang.SecurityManager.checkConnect(SecurityManager.java:1051)
>     at sun.net.www.http.HttpClient.openServer(HttpClient.java:528)
>     at sun.net.www.http.HttpClient.<init>(HttpClient.java:240)
>     at sun.net.www.http.HttpClient.New(HttpClient.java:321)
>     at sun.net.www.http.HttpClient.New(HttpClient.java:338)
>     at
> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:935)
>     at
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:876)
>     at
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:801)
>     at
> sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:979)
>     at
> org.apache.stanbol.enhancer.engines.dbpspotlight.annotate.DBPSpotlightAnnotateEnhancementEngine.doPostRequest(DBPSpotlightAnnotateEnhancementEngine.java:286)
>     at
> org.apache.stanbol.enhancer.engines.dbpspotlight.annotate.DBPSpotlightAnnotateEnhancementEngine.computeEnhancements(DBPSpotlightAnnotateEnhancementEngine.java:195)
>     at
> org.apache.stanbol.enhancer.jobmanager.event.impl.EnhancementJobHandler.processEvent(EnhancementJobHandler.java:271)
>     at
> org.apache.stanbol.enhancer.jobmanager.event.impl.EnhancementJobHandler.handleEvent(EnhancementJobHandler.java:189)
>     at
> org.apache.felix.eventadmin.impl.tasks.HandlerTaskImpl.execute(HandlerTaskImpl.java:88)
>     at
> org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks.execute(SyncDeliverTasks.java:221)
>     at
> org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks$TaskExecuter.run(AsyncDeliverTasks.java:110)
>     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
> Source)
>     at java.lang.Thread.run(Thread.java:679)
>
>
>
> --
> Thanks
> Harish
>



-- 
Thanks
Harish

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message