meridor / perspective-backend

Scalable multi-cloud management API and shell
Apache License 2.0
16 stars 6 forks source link

NPE in operation checking logic #201

Closed vania-pooh closed 7 years ago

vania-pooh commented 7 years ago
perspective>start aero-agent-e-1
Command failed com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException
java.lang.NullPointerException
com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException
    at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2201)
    at com.google.common.cache.LocalCache.get(LocalCache.java:3934)
    at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938)
    at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821)
    at org.meridor.perspective.shell.common.misc.impl.OperationSupportCheckerImpl.isOperationSupported(OperationSupportCheckerImpl.java:47)
    at org.meridor.perspective.shell.common.misc.impl.OperationSupportCheckerImpl.lambda$filter$32(OperationSupportCheckerImpl.java:58)
    at org.meridor.perspective.shell.common.misc.impl.OperationSupportCheckerImpl$$Lambda$190/735466857.test(Unknown Source)
    at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
    at java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1540)
    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512)
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502)
    at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
    at org.meridor.perspective.shell.common.misc.impl.OperationSupportCheckerImpl.filter(OperationSupportCheckerImpl.java:60)
    at org.meridor.perspective.shell.interactive.commands.ModifyCommands.findAndFilterInstances(ModifyCommands.java:278)
    at org.meridor.perspective.shell.interactive.commands.ModifyCommands.lambda$executeSimpleModificationCommand$152(ModifyCommands.java:267)
    at org.meridor.perspective.shell.interactive.commands.ModifyCommands$$Lambda$187/1340625825.apply(Unknown Source)
    at org.meridor.perspective.shell.interactive.commands.BaseCommands.validateConfirmExecuteShowStatus(BaseCommands.java:115)
    at org.meridor.perspective.shell.interactive.commands.ModifyCommands.executeSimpleModificationCommand(ModifyCommands.java:265)
    at org.meridor.perspective.shell.interactive.commands.ModifyCommands.startInstances(ModifyCommands.java:113)
    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:497)
    at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:216)
    at org.springframework.shell.core.SimpleExecutionStrategy.invoke(SimpleExecutionStrategy.java:68)
    at org.springframework.shell.core.SimpleExecutionStrategy.execute(SimpleExecutionStrategy.java:59)
    at org.springframework.shell.core.AbstractShell.executeCommand(AbstractShell.java:134)
    at org.springframework.shell.core.JLineShell.promptLoop(JLineShell.java:533)
    at org.springframework.shell.core.JLineShell.run(JLineShell.java:179)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
    at org.meridor.perspective.shell.common.misc.impl.OperationSupportCheckerImpl$1.load(OperationSupportCheckerImpl.java:32)
    at org.meridor.perspective.shell.common.misc.impl.OperationSupportCheckerImpl$1.load(OperationSupportCheckerImpl.java:29)
    at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524)
    at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317)
    at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280)
    at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195)
    ... 31 more