Worklight适配器mashup错误

时间:2015-08-05 18:55:46

标签: ibm-mobilefirst worklight-adapters

我们正在尝试从另一个调用一个http worklight适配器。我们按照

中的说明执行了相应的步骤

Advanced adapter usage and mashup

这在eclipse中的worklight自由服务器中工作正常。但是,当我们在运行于websphere的worklight 6.0中部署这些适配器时,会抛出以下错误:

  

[8/5/15 14:51:03:32 EDT] 00000104 webapp E.   com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E:   [Servlet错误] - [GadgetAPIServlet]:java.lang.NullPointerException at   com.worklight.core.auth.impl.AuthenticationContext.addIdentitiesToResponse(AuthenticationContext.java:343)     在   com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:208)     在   com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)     在   com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)     在   com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:964)     在   com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1104)     在   com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:87)     在   com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:914)     在   com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)     在   com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)     在   com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:463)     在   com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:530)     在   com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:316)     在   com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)     在   com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)     在   com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)     在   com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)     在com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)at at   com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)at at   com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)     在com.ibm.io.async.ResultHandler $ 2.run(ResultHandler.java:905)at   com.ibm.ws.util.ThreadPool $ Worker.run(ThreadPool.java:1865)

1 个答案:

答案 0 :(得分:0)

将以下安全测试添加到配置修复它。

getSerializableExtra(...)

干杯!