用户身份验证失败:null

Authentication failed for user: null

我有一个 API "Vignette Collab" 在 Apache 堆栈上 运行 Java,我继承了一个遗留代码库,需要找到这个错误的来源显然,最后一位开发人员构建了一个无法正常工作的功能,这就是错误所在,但没有更多信息。它使用 Drupal 网络服务模块,发送调用的代码如下所示

 $node = $variables['node'];
 $service = wsclient_service_load('collab_folders');

   if($node->field_oid1):
    $param1 = $node->field_oid1['und'][0]['value'];
    $params1 = array('user'=>'myUser','password'=>'myPass','oid'=>$param1);
    $results1 = $service->getChildren($params1);
    $variables['collabresults1'] = $results1;//

知道从哪里开始查找此错误或它可能意味着什么吗?

完整的堆栈跟踪在这里:::

ecmtrtest1: http cmd: lookup, http-bio-81-exec-3, kmapi=true&properties=true&dtd=false&oid=1.59.93   Authentication

failed for user: null. java.lang.UnsupportedOperationException: this method not yet supported on client at com.intraspect.kmapi.client.KMDocument.getDocType(KMDocument.java:331) at com.acuitys.ws.impl.CollabServiceImpl.populateProperties(CollabServiceImpl.java:236) at com.acuitys.ws.impl.CollabServiceImpl.getChildren(CollabServiceImpl.java:83) at com.acuitys.ws.CollabWebservice.getChildren(CollabWebservice.java:34) at sun.reflect.GeneratedMethodAccessor758.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.sun.xml.ws.api.server.InstanceResolver.invoke(InstanceResolver.java:246) at com.sun.xml.ws.server.InvokerTube.invoke(InvokerTube.java:146) at com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:257) at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595) at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:93) at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554) at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539) at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436) at com.sun.xml.ws.server.WSEndpointImpl.process(WSEndpointImpl.java:243) at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244) at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:444) at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135) at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doGet(WSServletDelegate.java:129) at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:160) at com.sun.xml.ws.transport.http.servlet.WSSpringServlet.doPost(WSSpringServlet.java:52) at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) 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:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at com.intraspect.valves.CollabWebDAVFixValve.invoke(CollabWebDAVFixValve.java:34) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) [Apr 22, 2016 10:59:51 AM (http-bio-81-exec-3_532)]: Authentication failed for user: null. [Apr 22, 2016 10:59:51 AM (http-bio-81-exec-3_532)]: ecmtrtest1: http cmd: lookup, http-bio-81-exec-3, kmapi=true&properties=true&dtd=false&oid=1.9.2878889 [Apr 22, 2016 10:59:51 AM (http-bio-81-exec-3_532)]: Authentication failed for user: null.

问题似乎出在这一行:$results1 = $service->getChildren($params1);。 UnsupportedOperationException 属于 Java 集合框架,这意味着您正在尝试对数组 $params2 执行一些 java api 不支持的操作。我首先要看的是 java 的版本 运行 和 Vignette Collab api 所需的 java 的版本。在我看来,可能需要比您当前使用的更高版本的 java。

您可能还想深入了解 api 以了解 getChildren() 的作用,并确保您传递的参数值正确。