java.lang.NoSuchMethodError: com.hazelcast.map.operation.LockAwareOperation.getThreadId()

239 views
Skip to first unread message

John Childress

unread,
Feb 26, 2014, 12:02:53 PM2/26/14
to haze...@googlegroups.com
I just upgraded from 3.1.5 to 3.1.6 and am getting the following exception thrown  "com.hazelcast.map.operation.LockAwareOperation.getThreadId()".  The same code works great with 3.1.5, just not with 3.1.6

I figure I would just ask in case anyone else had experienced this issue.  Staying with 3.1.5 isn't a problem right now....  

thanks,

John

On the client, the exception is triggered by this call:
  this.client.getMap(Directory.getNodeKey(nodeToCheck.getIso())).put(nodeToCheck.getName(), nodeToCheck);
Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: com.hazelcast.map.operation.LockAwareOperation.getThreadId()J
at com.hazelcast.map.operation.LockAwareOperation.shouldWait(LockAwareOperation.java:44)
at com.hazelcast.spi.impl.OperationServiceImpl.doRunOperation(OperationServiceImpl.java:268)
at com.hazelcast.spi.impl.OperationServiceImpl.access$800(OperationServiceImpl.java:51)
at com.hazelcast.spi.impl.OperationServiceImpl$LocalOperationProcessor.run(OperationServiceImpl.java:707)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
at com.hazelcast.spi.impl.OperationServiceImpl$OperationThread.run(OperationServiceImpl.java:783)
at ------ End remote and begin local stack-trace ------.(Unknown Source)
at com.hazelcast.client.util.ErrorHandler.returnResultOrThrowException(ErrorHandler.java:33)
at com.hazelcast.client.spi.impl.ClientClusterServiceImpl._sendAndReceive(ClientClusterServiceImpl.java:173)
at com.hazelcast.client.spi.impl.ClientClusterServiceImpl.sendAndReceive(ClientClusterServiceImpl.java:137)
at com.hazelcast.client.spi.impl.ClientInvocationServiceImpl.invokeOnTarget(ClientInvocationServiceImpl.java:42)
at com.hazelcast.client.spi.impl.ClientInvocationServiceImpl.invokeOnKeyOwner(ClientInvocationServiceImpl.java:53)
at com.hazelcast.client.proxy.ClientMapProxy.invoke(ClientMapProxy.java:511)
at com.hazelcast.client.proxy.ClientMapProxy.put(ClientMapProxy.java:169)
at com.hazelcast.client.proxy.ClientMapProxy.put(ClientMapProxy.java:91)
at com.mea.avax.service.NodeServiceHZImpl.queryNodeCongAuctionData(NodeServiceHZImpl.java:438)
at com.mea.avax.service.PathServiceImpl.queryPathCongAuctionData(PathServiceImpl.java:57)
at com.mea.avax.ui.feature.PathQueryFeature.queryPathCongAuctionData(PathQueryFeature.java:53)
at com.mea.avax.ui.model.portfolio.manager.PortfolioManagerModel.setSelectedBidTrade(PortfolioManagerModel.java:1228)
at com.mea.avax.ui.model.portfolio.manager.PortfolioManagerModel.doEvent(PortfolioManagerModel.java:830)
at com.jidesoft.app.framework.event.DefaultEventContext.publishOnGUIThread(DefaultEventContext.java:142)
at com.jidesoft.app.framework.event.DefaultEventContext.publishEvent(DefaultEventContext.java:70)
at com.jidesoft.app.framework.event.EventManager.publish(EventManager.java:168)
at com.mea.avax.ui.view.portfolio.manager.table.PortfolioManagerGridPopupMenu.valueChanged(PortfolioManagerGridPopupMenu.java:152)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:184)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:154)
at javax.swing.DefaultListSelectionModel.setValueIsAdjusting(DefaultListSelectionModel.java:685)
at com.jidesoft.grid.JideTable$25.setValueIsAdjusting(Unknown Source)
at javax.swing.plaf.basic.BasicTableUI$Handler.setValueIsAdjusting(BasicTableUI.java:953)
at javax.swing.plaf.basic.BasicTableUI$Handler.mouseReleased(BasicTableUI.java:1166)
at com.jidesoft.swing.DelegateMouseInputListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
at java.awt.Component.processMouseEvent(Component.java:6505)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:708)
at java.awt.EventQueue$4.run(EventQueue.java:706)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

On the server - 

2014-02-26 10:50:09,825 FATAL - PutOperation               - [ushou-apps02]:5701 [avax] com.hazelcast.map.operation.LockAwareOperation.getThreadId()J
java.lang.NoSuchMethodError: com.hazelcast.map.operation.LockAwareOperation.getThreadId()J
at com.hazelcast.map.operation.LockAwareOperation.shouldWait(LockAwareOperation.java:44)
at com.hazelcast.spi.impl.OperationServiceImpl.doRunOperation(OperationServiceImpl.java:268)
at com.hazelcast.spi.impl.OperationServiceImpl.access$800(OperationServiceImpl.java:51)
at com.hazelcast.spi.impl.OperationServiceImpl$LocalOperationProcessor.run(OperationServiceImpl.java:707)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
at com.hazelcast.spi.impl.OperationServiceImpl$OperationThread.run(OperationServiceImpl.java:783)

Noctarius

unread,
Feb 26, 2014, 12:06:33 PM2/26/14
to haze...@googlegroups.com
Hey John,

It seems that both JARs are still available in the classpath. Have you cleaned the classpath prior to running it?

Chris

--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at http://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/7ea2356a-4780-45f2-9cfd-115316ead34d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

John Childress

unread,
Feb 26, 2014, 12:07:24 PM2/26/14
to haze...@googlegroups.com, noctar...@googlemail.com
I thought I double checked that, but let me try again.  That would be embarrassing, but I would rather have that than a real problem :-)

Noctarius

unread,
Feb 26, 2014, 12:09:06 PM2/26/14
to John Childress, haze...@googlegroups.com
I know those stuff from deploying web applications :) You won’t imagine how many companies deploy web applications by unzipping the WAR and copy the content (without cleaning the web apps directory before) ;-)

John Childress

unread,
Feb 26, 2014, 12:35:49 PM2/26/14
to haze...@googlegroups.com, John Childress, noctar...@googlemail.com
You are correct... of course :-(

Some how the sources I pulled down from github were "bad".... User error without a doubt... 

thanks for confirming...

I re-pulled and built and it works great.

Noctarius

unread,
Feb 26, 2014, 12:49:26 PM2/26/14
to John Childress, haze...@googlegroups.com
No problem :) As you said "rather a small but embarrassing problem than a real one“
Reply all
Reply to author
Forward
0 new messages