[MarkLogic Dev General] Thanks & XCC Config Issue

Tom Hubschman tom.hubschman at warriorgateway.org
Tue Mar 13 21:15:00 PDT 2012


Hello again,

    Thanks for the search module info for Pagination.

    I set up XDBC without issues on my local box, but now I am setting up
the instance in our Amazon AWS account and I get the following errors. I
got the first one and so I set the specified permission, I then got the
second one.

*First Error*
GINetwork Processing Failurecom.marklogic.xcc.exceptions.XQueryException:
SEC-PRIV: Need privilege:
http://marklogic.com/xdmp/privileges/xdbc-eval[Session: user=root,
cb={default} [ContentSource: user=root, cb={none}
[provider: address=localhost/127.0.0.1:9999, pool=1/64]]] [Client:
XCC/4.2-9, Server: XDBC/4.2-5] in
/evalorg.warriorgateway.api.controller.GINetworkException:
com.marklogic.xcc.exceptions.XQueryException: SEC-PRIV: Need privilege:
http://marklogic.com/xdmp/privileges/xdbc-eval [Session: user=root,
cb={default} [ContentSource: user=root, cb={none} [provider:
address=localhost/127.0.0.1:9999, pool=1/64]]] [Client: XCC/4.2-9, Server:
XDBC/4.2-5] in /eval at
org.warriorgateway.api.dao.XCCDataAccessObject.search(XCCDataAccessObject.java:75)
at
org.warriorgateway.api.controller.MainController.search(MainController.java:84)
at
org.warriorgateway.api.servlet.APIServlet.processRequest(APIServlet.java:57)
at org.warriorgateway.api.servlet.APIServlet.doGet(APIServlet.java:105) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619) Caused by:
com.marklogic.xcc.exceptions.XQueryException: SEC-PRIV: Need privilege:
http://marklogic.com/xdmp/privileges/xdbc-eval [Session: user=root,
cb={default} [ContentSource: user=root, cb={none} [provider:
address=localhost/127.0.0.1:9999, pool=1/64]]] [Client: XCC/4.2-9, Server:
XDBC/4.2-5] in /eval at
com.marklogic.xcc.impl.handlers.ServerExceptionHandler.handleResponse(ServerExceptionHandler.java:30)
at
com.marklogic.xcc.impl.handlers.EvalRequestController.serverDialog(EvalRequestController.java:78)
at
com.marklogic.xcc.impl.handlers.AbstractRequestController.runRequest(AbstractRequestController.java:78)
at com.marklogic.xcc.impl.SessionImpl.submitRequest(SessionImpl.java:268)
at
org.warriorgateway.api.dao.XCCDataAccessObject.search(XCCDataAccessObject.java:73)
... 21 more

*Second Error (after I set the xdbc-eval permission)*

GINetwork Processing
Failurecom.marklogic.xcc.exceptions.RequestPermissionException:
Authorization failed for user 'root'. [Session: user=root, cb={default}
[ContentSource: user=root, cb={none} [provider: address=localhost/
127.0.0.1:9999, pool=0/64]]] [Client:
XCC/4.2-9]org.warriorgateway.api.controller.GINetworkException:
com.marklogic.xcc.exceptions.RequestPermissionException: Authorization
failed for user 'root'. [Session: user=root, cb={default} [ContentSource:
user=root, cb={none} [provider: address=localhost/127.0.0.1:9999,
pool=0/64]]] [Client: XCC/4.2-9] at
org.warriorgateway.api.dao.XCCDataAccessObject.search(XCCDataAccessObject.java:75)
at
org.warriorgateway.api.controller.MainController.search(MainController.java:84)
at
org.warriorgateway.api.servlet.APIServlet.processRequest(APIServlet.java:57)
at org.warriorgateway.api.servlet.APIServlet.doGet(APIServlet.java:105) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619) Caused by:
com.marklogic.xcc.exceptions.RequestPermissionException: Authorization
failed for user 'root'. [Session: user=root, cb={default} [ContentSource:
user=root, cb={none} [provider: address=localhost/127.0.0.1:9999,
pool=0/64]]] [Client: XCC/4.2-9] at
com.marklogic.xcc.impl.handlers.UnauthorizedHandler.handleResponse(UnauthorizedHandler.java:52)
at
com.marklogic.xcc.impl.handlers.EvalRequestController.serverDialog(EvalRequestController.java:78)
at
com.marklogic.xcc.impl.handlers.AbstractRequestController.runRequest(AbstractRequestController.java:78)
at com.marklogic.xcc.impl.SessionImpl.submitRequest(SessionImpl.java:268)
at
org.warriorgateway.api.dao.XCCDataAccessObject.search(XCCDataAccessObject.java:73)
... 21 more

Thanks again,

Tom
-- 
Thomas Hubschman
Director, Engineering
tom.hubschman at warriorgateway.org
Mobile: (415) 612-0359
www.warriorgateway.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20120314/e687d0ee/attachment-0001.html 


More information about the General mailing list