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

上传接口报错了

ApiPost使用 68次浏览

java.lang.NullPointerException: Cannot invoke "java.util.List.stream()" because the return value of "cn.apipost.upload.entity.BodyDetailDTO.getParameterDetailList()" is null

at cn.apipost.utils.ApiParser.getAllParameter(ApiParser.java:326)

at cn.apipost.utils.ApiParser.getRequest(ApiParser.java:198)

at cn.apipost.utils.ApiParser.lambda$parseApis$29(ApiParser.java:670)

at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)

at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)

at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)

at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)

at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)

at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)

at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)

at cn.apipost.utils.ApiParser.parseApis(ApiParser.java:679)

at cn.apipost.utils.Actions.parseUploadRequest(Actions.java:693)

at cn.apipost.utils.Actions.upload(Actions.java:582)

at cn.apipost.restful.view.window.frame.ApiServiceListPanel.lambda$getPopupMenu$1(ApiServiceListPanel.java:92)

at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)

at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2313)

at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)

at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)

at java.desktop/javax.swing.AbstractButton.doClick(AbstractButton.java:374)

at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1028)

at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1072)

at java.desktop/java.awt.Component.processMouseEvent(Component.java:6656)

at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3385)

at java.desktop/java.awt.Component.processEvent(Component.java:6421)

at java.desktop/java.awt.Container.processEvent(Container.java:2266)

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

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

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

at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)

at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575)

at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)

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

at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2804)

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

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

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

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

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

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

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

at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:763)

at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:761)

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:760)

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

at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.kt:614)

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

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

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

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

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

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

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

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

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

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

at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$4(IdeEventQueue.kt:343)

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

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

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)

| 0 收藏

1 个回答

上传接口报错了


定位一下哪一个接口,可以加idea测试群反馈

Apipost 私有化火热进行中

撰写答案

只服务于

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

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