鍍金池/ 問答/Java/ JAVA restAPI錯誤

JAVA restAPI錯誤

十一月 13, 2017 2:52:39 下午 com.sun.jersey.spi.container.ContainerResponse mapMappableContainerException
嚴重: The exception contained within MappableContainerException could not be mapped to a response, re-throwing to the HTTP container
java.lang.IllegalAccessError: tried to access method jp.co.dreamarts.hibiki.rest.v1.util.BlockUtil.getItemControlBlockList(Ljp/co/dreamarts/insuite/smartcab/SmartCabinet;Ljp/co/dreamarts/insuite/common/session/Session;Ljp/co/dreamarts/insuite/smartcab/DataRecord;Ljp/co/dreamarts/insuite/common/account/Account;Ljava/util/List;)Ljava/util/Map; from class jp.co.dreamarts.hibiki.rest.v1.util.DocumentUtil
    at jp.co.dreamarts.hibiki.rest.v1.util.DocumentUtil._updateDocument(DocumentUtil.java:947)
    at jp.co.dreamarts.hibiki.rest.v1.util.DocumentUtil.updateDocument(DocumentUtil.java:893)
    at jp.co.dreamarts.hibiki.rest.v1.resources.DocumentResource.postDocument(DocumentResource.java:526)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
    at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
    at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
    at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
    at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)
    at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
    at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
    at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)

請問這是什么問題???

getItemControlBlockList方法如下:

static Map<String, List<Integer>> getItemControlBlockList(SmartCabinet cabinet, Session session,
            DataRecord data, Account account, List<Integer> blockIds) {
        ExtensionPointTool tool = new ExtensionPointTool();
        tool.init(null);
        Map<String, List<Integer>> itemControlBlockIdsMap = new HashMap<String, List<Integer>>();
        try {
            for (ItemControlService service : tool.getInstances(ItemControlService.class)) {
                itemControlBlockIdsMap = service.getItemControlBlockList(null, null, cabinet, session, data,
                        account, blockIds);
            }
            return itemControlBlockIdsMap;
        } catch (Exception e) {
            return itemControlBlockIdsMap;
        }
    }
回答
編輯回答
獨特范

可能是我的程序編譯有問題

2017年11月8日 10:50