Task #11167 (closed)
Opened 11 years ago
Closed 9 years ago
Bug: QueueDelete throws Null pointer Exception
Reported by: | sbesson | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 5.1.1 |
Component: | API | Version: | 5.0.0-beta1 |
Keywords: | n.a. | Cc: | fs@…, sbesson |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description
Matlab delete functions still use the deprecated QueueDelete? command. This should to be fixed to use the correct session.submit(omero.cmd.DoAll?()).
However, while testing 5.0.0-beta1, deleteing any objects results in the following NPE
Error using deleteObjects (line 51) Java exception occurred: omero.InternalException serverStackTrace = "java.lang.NullPointerException at ome.services.blitz.impl.DeleteHandleI.<init>(DeleteHandleI.java:100) at ome.services.blitz.impl.DeleteI.makeAndLaunchHandle(DeleteI.java:202) at ome.services.blitz.impl.DeleteI$5.call(DeleteI.java:166) at ome.services.blitz.impl.DeleteI$5.call(DeleteI.java:163) at ome.services.throttling.Callback2.run(Callback2.java:49) at ome.services.throttling.InThreadThrottlingStrategy.safeRunnableCall(InThreadThrottlingStrategy.java:80) at ome.services.blitz.impl.AbstractAmdServant.safeRunnableCall(AbstractAmdServant.java:168) at ome.services.blitz.impl.DeleteI.queueDelete_async(DeleteI.java:163) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at omero.cmd.CallContext.invoke(CallContext.java:65) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy114.queueDelete_async(Unknown Source) at omero.api._IDeleteTie.queueDelete_async(_IDeleteTie.java:130) at omero.api._IDeleteDisp.___queueDelete(_IDeleteDisp.java:349) at omero.api._IDeleteDisp.__dispatch(_IDeleteDisp.java:436) at IceInternal.Incoming.invoke(Incoming.java:159) at Ice.ConnectionI.invokeAll(ConnectionI.java:2037) at Ice.ConnectionI.message(ConnectionI.java:972) at IceInternal.ThreadPool.run(ThreadPool.java:577) at IceInternal.ThreadPool.access$100(ThreadPool.java:12) at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:971) " serverExceptionClass = "java.lang.NullPointerException" message = "" at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:357) at java.lang.Class.newInstance(Class.java:310) at IceInternal.BasicStream$DynamicUserExceptionFactory.createAndThrow(BasicStream.java:2243) at IceInternal.BasicStream.throwException(BasicStream.java:1632) at IceInternal.Outgoing.throwUserException(Outgoing.java:442) at omero.api._IDeleteDelM.queueDelete(_IDeleteDelM.java:483) at omero.api.IDeletePrxHelper.queueDelete(IDeletePrxHelper.java:661) at omero.api.IDeletePrxHelper.queueDelete(IDeletePrxHelper.java:630) Error in deleteImages (line 37) deleteObjects(session, ip.Results.ids, 'image');
Change History (3)
comment:1 Changed 11 years ago by jamoore
- Priority changed from minor to major
- Summary changed from QueueDelete throws Null pointer Exception to Bug: QueueDelete throws Null pointer Exception
- Version set to 5.0.0-beta1
comment:2 Changed 9 years ago by jburel
- Milestone changed from 5.x to 5.1.1
comment:3 Changed 9 years ago by jamoore
- Resolution set to invalid
- Status changed from new to closed
queueDelete was removed. Closing.
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
Moving to 5.1.1 for review
Related to https://trello.com/c/7rEebfCg/189-test-code-upgrade