9 Replies Latest reply: May 9, 2012 8:35 AM by bish RSS

    NullPointerException invoking Processor on Partitioned Cache

    bish
      Hi all,

      We are getting a NullPointerException when trying to invoke an EntryProcessor on Service B, from within EntryProcessor of Service A on a partitioned cache.
      The strange thing is that it works fine when there is only one node, but fails when there are one or more nodes. I guess that makes some sense in that there wont be any serialization if there is only one node.

      Can anyone suggest what may be causing the problem from the stack trace?


      16:20:19,715 2012-05-02 16:20:19.715/3.272 Oracle Coherence GE 3.7.1.3 <D6> (thread=Proxy:FeedHandlerExtendTcpProxyService:TcpAcceptor, member=3): Opened: Channel(Id=1136375156, Open=true, Connection=0x000001370E233D590A660314E7BFF3B54A24F82E01F98987CE652E1F3C5DD30E)
      16:20:29,913 2012-05-02 16:20:29.910/13.467 Oracle Coherence GE 3.7.1.3 <D5> (thread=Proxy:FeedHandlerExtendTcpProxyService:TcpAcceptorWorker:1, member=3): An exception occurred while processing a InvokeRequest for Service=Proxy:FeedHandlerExtendTcpProxyService:TcpAcceptor: (Wrapped: Failed request execution for TradesPartitionedCache service on Member(Id=3, Timestamp=2012-05-02 16:20:18.135, Address=10.102.3.20:8088, MachineId=63987, Location=site:,machine:LONW00067144,process:9356, Role=cache)) Portable(com.tangosol.util.WrapperException): (Wrapped: Failed request execution for PositionPartitionedCache service on Member(Id=2, Timestamp=2012-05-02 16:13:27.876, Address=10.102.3.20:8090, MachineId=63987, Location=site:,machine:LONW00067144,process:12892, Role=cache)) null
           at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
           at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.tagException(Grid.CDB:36)
           at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onInvokeRequest(PartitionedCache.CDB:68)
           at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$InvokeRequest.run(PartitionedCache.CDB:1)
           at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:1)
           at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:32)
           at com.tangosol.coherence.component.util.DaemonPool$Daemon.onNotify(DaemonPool.CDB:63)
           at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
           at java.lang.Thread.run(Unknown Source)
      Caused by: Portable(com.tangosol.util.WrapperException): (Wrapped: Failed request execution for PositionPartitionedCache service on Member(Id=2, Timestamp=2012-05-02 16:13:27.876, Address=10.102.3.20:8090, MachineId=63987, Location=site:,machine:LONW00067144,process:12892, Role=cache)) null
           at com.tangosol.io.pof.ThrowablePofSerializer.deserialize(ThrowablePofSerializer.java:57)
           at com.tangosol.io.pof.PofBufferReader.readAsObject(PofBufferReader.java:3316)
           at com.tangosol.io.pof.PofBufferReader.readObject(PofBufferReader.java:2604)
           at com.tangosol.io.pof.ConfigurablePofContext.deserialize(ConfigurablePofContext.java:368)
           at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.readObject(Service.CDB:1)
           at com.tangosol.coherence.component.net.Message.readObject(Message.CDB:1)
           at com.tangosol.coherence.component.net.message.SimpleResponse.read(SimpleResponse.CDB:6)
           at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.deserializeMessage(Grid.CDB:19)
           at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:31)
           at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
           at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
           ... 2 more
      Caused by: Portable(java.lang.NullPointerException)
           at com.tangosol.io.pof.ThrowablePofSerializer.deserialize(ThrowablePofSerializer.java:57)
           at com.tangosol.io.pof.PofBufferReader.readAsObject(PofBufferReader.java:3316)
           at com.tangosol.io.pof.PofBufferReader.readObject(PofBufferReader.java:2604)
           at com.tangosol.io.pof.PortableException.readExternal(PortableException.java:150)
           at com.tangosol.io.pof.ThrowablePofSerializer.deserialize(ThrowablePofSerializer.java:59)
           ... 12 more


      thanks

      Edited by: bish on 02-May-2012 17:42