IBM Application Center APK上传失败

时间:2015-08-17 04:25:06

标签: ibm-mobilefirst mobilefirst-appcenter

我的IBM Application Center版本7.0.0.00-20150729-1801

尝试将App Center Client APK文件上传到App Center控制台。它失败并显示错误 - FWLAC0000E:检测到服务器错误。

Upload Failed Error

Android AAPT - Configured properly

  

[8/16/15 23:16:35:510 CDT] 00000129 UploadService我上传的文件   [8/16/15 23:16:52:661 CDT] 00000129 ApplicationSe E {           " id":" 223b252a-a3aa-443d-9472-49e413d4af1c",           " message":" FWLAC0000E:检测到服务器错误。",           " params":[           ]           " productVersion":" 7.0.0.00-20150729-1801"   }                                    com.ibm.puremeap.resources.exceptions.SystemException:字段" aclApp"实例" com.ibm.puremeap.jpa.entity.AclAppPrincipalEntity [id = unknown]"包含空值;此字段的元数据指定空值是非法的。           在com.ibm.puremeap.resources.data.impl.ApplicationHelper.createApplicationImpl(ApplicationHelper.java:1741)           在com.ibm.puremeap.resources.data.impl.ApplicationHelper.createApplication(ApplicationHelper.java:1628)           在com.ibm.puremeap.artifacts.Application.create(Application.java:497)           在com.ibm.puremeap.services.ApplicationService。创建(ApplicationService.java:154)           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)           在java.lang.reflect.Method.invoke(Method.java:611)           at org.apache.wink.server.internal.handlers.InvokeMethodHandler.handleRequest(InvokeMethodHandler.java:63)           在org.apache.wink.server.handlers.AbstractHandler.handleRequest(AbstractHandler.java:33)           在org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)           在org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)           在org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)           在org.apache.wink.server.internal.handlers.CreateInvocationParametersHandler.handleRequest(CreateInvocationParametersHandler.java:54)           在org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)           在org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)           在org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)           at org.apache.wink.server.handlers.AbstractHandler.handleRequest(AbstractHandler.java:34)           在org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)           在org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)           在org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)           at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleResourceMethod(FindResourceMethodHandler.java:151)           at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleRequest(FindResourceMethodHandler.java:65)           在org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleSubResourceLocator(FindResourceMethodHandler.java:235)           在org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleRequest(FindResourceMethodHandler.java:115)           在org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleSubResourceLocator(FindResourceMethodHandler.java:235)           在org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleRequest(FindResourceMethodHandler.java:115)           在org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)           在org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)           在org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)           at org.apache.wink.server.internal.handlers.FindRootResourceHandler.handleRequest(FindRootResourceHandler.java:95)           在org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)           在org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)           在org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)           在org.apache.wink.server.internal.handlers.HeadMethodHandler.handleRequest(HeadMethodHandler.java:53)           在org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)           在org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)           在org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)           在org.apache.wink.server.internal.handlers.OptionsMethodHandler.handleRequest(OptionsMethodHandler.java:46)           在org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)           在org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)           在org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)           在org.apache.wink.server.internal.handlers.SearchResultHandler.handleRequest(SearchResultHandler.java:33)           在org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)           在org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)           在org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)           在org.apache.wink.server.internal.log.ResourceInvocation.handleRequest(ResourceInvocation.java:92)           在org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)           在org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)           在org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)           在org.apache.wink.server.internal.log.Requests.handleRequest(Requests.java:76)           在org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)           在org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)           在org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)           在org.apache.wink.server.handlers.AbstractHandlersChain.run(AbstractHandlersChain.java:60)           在org.apache.wink.server.internal.RequestProcessor.handleRequestWithoutFaultBarrier(RequestProcessor.java:207)           在org.apache.wink.server.internal.RequestProcessor.handleRequest(RequestProcessor.java:154)           在org.apache.wink.server.internal.servlet.RestServlet.service(RestServlet.java:124)           在com.ibm.puremeap.services.RestServlet.service(RestServlet.java:56)           在javax.servlet.http.HttpServlet.service(HttpServlet.java:668)           在com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1230)           在com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)           在com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)           在com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)           在com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:136)           在com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:97)           在com.ibm.puremeap.services.RestFilter.doFilter(RestFilter.java:60)           在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:967)           在com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1107)           在com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:87)           在com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:939)           在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)           at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)           在com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)           在com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)           在com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)           在com.ibm.io.async.ResultHandler $ 2.run(ResultHandler.java:905)           在com.ibm.ws.util.ThreadPool $ Worker.run(ThreadPool.java:1881)   引起:org.apache.openjpa.persistence.InvalidStateException:字段" aclApp"实例" com.ibm.puremeap.jpa.entity.AclAppPrincipalEntity [id = unknown]"包含空值;此字段的元数据指定空值是非法的。           在org.apache.openjpa.kernel.SingleFieldManager.preFlush(SingleFieldManager.java:567)           在org.apache.openjpa.kernel.SingleFieldManager.preFlush(SingleFieldManager.java:505)           在org.apache.openjpa.kernel.StateManagerImpl.preFlush(StateManagerImpl.java:3059)           在org.apache.openjpa.kernel.SingleFieldManager.preFlushPC(SingleFieldManager.java:808)           在org.apache.openjpa.kernel.SingleFieldManager.preFlushPCs(SingleFieldManager.java:762)           在org.apache.openjpa.kernel.SingleFieldManager.preFlush(SingleFieldManager.java:656)           在org.apache.openjpa.kernel.SingleFieldManager.preFlush(SingleFieldManager.java:589)           在org.apache.openjpa.kernel.SingleFieldManager.preFlush(SingleFieldManager.java:505)           在org.apache.openjpa.kernel.StateManagerImpl.preFlush(StateManagerImpl.java:3059)           在org.apache.openjpa.kernel.PDirtyState.beforeFlush(PDirtyState.java:39)           在org.apache.openjpa.kernel.StateManagerImpl.beforeFlush(StateManagerImpl.java:1075)           在org.apache.openjpa.kernel.BrokerImpl.flush(BrokerImpl.java:2127)           在org.apache.openjpa.kernel.BrokerImpl.flushSafe(BrokerImpl.java:2087)           在org.apache.openjpa.kernel.BrokerImpl.flush(BrokerImpl.java:1858)           at org.apache.openjpa.kernel.StateManagerImpl.assignObjectId(StateManagerImpl.java:602)           at org.apache.openjpa.kernel.StateManagerImpl.assignField(StateManagerImpl.java:689)           at org.apache.openjpa.kernel.StateManagerImpl.beforeAccessField(StateManagerImpl.java:1696)           at com.ibm.ws.persistence.kernel.WsJpaStateManagerImpl.beforeAccessField(WsJpaStateManagerImpl.java:109)           在org.apache.openjpa.kernel.StateManagerImpl.accessingField(StateManagerImpl.java:1627)           在com.ibm.puremeap.jpa.entity.AclAppPrincipalEntity.pcGetid(AclAppPrincipalEntity.java)           在com.ibm.puremeap.jpa.entity.AclAppPrincipalEntity.equals(AclAppPrincipalEntity.java:201)           at java.util.ArrayList.contains(ArrayList.java:309)           在com.ibm.puremeap.jpa.entity.AclApplicationEntity.addPrincipal(AclApplicationEntity.java:253)           在com.ibm.puremeap.jpa.entity.AclApplicationEntity.addAccessRightForPrincipal(AclApplicationEntity.java:195)           在com.ibm.puremeap.resources.data.impl.ApplicationHelper.getUpdatedACLOnCreate(ApplicationHelper.java:648)           在com.ibm.puremeap.resources.data.impl.ApplicationHelper.createApplicationImpl(ApplicationHelper.java:1734)           ... 86更多

1 个答案:

答案 0 :(得分:2)

日志显示这是一个数据库问题,可能是由OpenJPA引起的。我怀疑在Websphere中使用了错误版本的OpenJPA。这可以在日志中检测到,例如,如果您在日志中看到消息,例如

    Traceback (most recent call last):
  File "C:/Users/Nuriddin/PycharmProjects/project/a.py", line 19, in <module>
    spider_list()
  File "C:/Users/Nuriddin/PycharmProjects/project/a.py", line 12, in spider_list
    source_code = requests.get(url)
  File "C:\Python34\lib\site-packages\requests\api.py", line 69, in get
    return request('get', url, params=params, **kwargs)
  File "C:\Python34\lib\site-packages\requests\api.py", line 50, in request
    response = session.request(method=method, url=url, **kwargs)
  File "C:\Python34\lib\site-packages\requests\sessions.py", line 465, in request
    resp = self.send(prep, **send_kwargs)
  File "C:\Python34\lib\site-packages\requests\sessions.py", line 605, in send
    r.content
  File "C:\Python34\lib\site-packages\requests\models.py", line 750, in content
    self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()
  File "C:\Python34\lib\site-packages\requests\models.py", line 673, in generate
    for chunk in self.raw.stream(chunk_size, decode_content=True):
  File "C:\Python34\lib\site-packages\requests\packages\urllib3\response.py", line 303, in stream
    for line in self.read_chunked(amt, decode_content=decode_content):
  File "C:\Python34\lib\site-packages\requests\packages\urllib3\response.py", line 450, in read_chunked
    chunk = self._handle_chunk(amt)
  File "C:\Python34\lib\site-packages\requests\packages\urllib3\response.py", line 420, in _handle_chunk
    returned_chunk = self._fp._safe_read(self.chunk_left)
  File "C:\Python34\lib\http\client.py", line 664, in _safe_read
    raise IncompleteRead(b''.join(s), amt)
http.client.IncompleteRead: IncompleteRead(4485 bytes read, 628 more expected)

从MobileFirst 7.0及更早版本开始,正确的OpenJPA版本必须是1.2.2,而不是2.x(2.2.3或类似)。

如果没有为applicationcenter.war设置parentLast类加载器策略,则通常会发生此错误。有关WAS完整个人资料,请参阅step 5 here。对于WAS Liberty Profile,请参阅the element <classloader delegation="parentLast"> here.