全部 ApiPost使用 后端 前端 接口测试 IOS Android 数据库 2022 测试技术 工具
问答 / 问答详情

idea apipost插件 报错

ApiPost使用 142次浏览

有两个module的时候,选择第二个module大的目录直接upload的时候报错


java.lang.NullPointerException: Cannot invoke "cn.apipost.restful.beans.ApiService.getPsiMethod()" because "this.apiService" is null

at cn.apipost.restful.navigator.RestServiceDetail.getPsiMethod(RestServiceDetail.java:467)

at cn.apipost.restful.navigator.RestServiceDetail.hashCode(RestServiceDetail.java:45)

at java.base/java.util.WeakHashMap.hash(WeakHashMap.java:303)

at java.base/java.util.WeakHashMap.get(WeakHashMap.java:402)

at com.intellij.ui.mac.touchbar.TouchBarsManager.processFocusEvent(TouchBarsManager.java:127)

at com.intellij.ui.mac.touchbar.TouchBarsManager.processAWTEvent(TouchBarsManager.java:47)

at com.intellij.ui.mac.touchbar.TouchbarSupport.lambda$static$0(TouchbarSupport.java:30)

at java.desktop/java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Toolkit.java:2202)

at java.desktop/java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2094)

at java.desktop/java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2093)

at java.desktop/java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2093)

at java.desktop/java.awt.Toolkit.notifyAWTEventListeners(Toolkit.java:2050)

at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4933)

at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)

at java.desktop/java.awt.Component.dispatchEvent(Component.java:4855)

at java.desktop/java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954)

at java.desktop/java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:1064)

at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:688)

at com.intellij.ide.IdeKeyboardFocusManager.access$dispatchEvent$s1569605750(IdeKeyboardFocusManager.kt:18)

at com.intellij.ide.IdeKeyboardFocusManager$dispatchEvent$1.invoke(IdeKeyboardFocusManager.kt:25)

at com.intellij.ide.IdeKeyboardFocusManager$dispatchEvent$1.invoke(IdeKeyboardFocusManager.kt:25)

at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:997)

at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:113)

at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:997)

at com.intellij.ide.IdeKeyboardFocusManager.dispatchEvent(IdeKeyboardFocusManager.kt:25)

at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4904)

at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)

at java.desktop/java.awt.Component.dispatchEvent(Component.java:4855)

at java.desktop/sun.awt.SunToolkit$1.run(SunToolkit.java:524)

at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)

at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:792)

at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:739)

at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:733)

at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)

at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)

at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:761)

at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:690)

at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$10(IdeEventQueue.kt:593)

at com.intellij.openapi.application.impl.ApplicationImpl.runWithoutImplicitRead(ApplicationImpl.java:1485)

at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:593)

at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:67)

at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:369)

at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:368)

at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787)

at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:368)

at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:363)

at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:997)

at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)

at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:997)

at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$7(IdeEventQueue.kt:363)

at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:861)

at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:405)

at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)

at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)

at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)

at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)

at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)

at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)

| 1 收藏

1 个回答

下个版本会迭代

Apipost 私有化火热进行中

撰写答案

只服务于

前后端、移动端、测试人员

提问题 发布您遇到的Bug和问题,上万名大牛和开发者来帮您解决!