{"action":"created","issue":{"url":"https://api.github.com/repos/hazelcast/hazelcast/issues/8573","repository_url":"https://api.github.com/repos/hazelcast/hazelcast","labels_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/8573/labels{/name}","comments_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/8573/comments","events_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/8573/events","html_url":"https://github.com/hazelcast/hazelcast/issues/8573","id":167006252,"number":8573,"title":"HazelCast OSGI classloader issue NOsuchMethodException","user":{"login":"jmavasa","id":7574698,"avatar_url":"https://avatars.githubusercontent.com/u/7574698?v=3","gravatar_id":"","url":"https://api.github.com/users/jmavasa","html_url":"https://github.com/jmavasa","followers_url":"https://api.github.com/users/jmavasa/followers","following_url":"https://api.github.com/users/jmavasa/following{/other_user}","gists_url":"https://api.github.com/users/jmavasa/gists{/gist_id}","starred_url":"https://api.github.com/users/jmavasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmavasa/subscriptions","organizations_url":"https://api.github.com/users/jmavasa/orgs","repos_url":"https://api.github.com/users/jmavasa/repos","events_url":"https://api.github.com/users/jmavasa/events{/privacy}","received_events_url":"https://api.github.com/users/jmavasa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hazelcast/hazelcast/labels/Team:%20Core","name":"Team: Core","color":"109def"},{"url":"https://api.github.com/repos/hazelcast/hazelcast/labels/Type:%20Defect","name":"Type: Defect","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-22T09:30:01Z","updated_at":"2016-07-22T09:35:37Z","closed_at":null,"body":"I am trying to  run Hazel Cast inside OSGI  when running hazelcast I get this error \r\n\r\ncom.hazelcast.core.HazelcastException: java.lang.NoSuchMethodException: com.hazelcast.instance.DefaultNodeExtension.<init>(com.hazelcast.instance.Node)\r\n    at com.hazelcast.util.ExceptionUtil.peel(ExceptionUtil.java:73)\r\n    at com.hazelcast.util.ExceptionUtil.peel(ExceptionUtil.java:52)\r\n    at com.hazelcast.util.ExceptionUtil.rethrow(ExceptionUtil.java:83)\r\n    at com.hazelcast.instance.NodeExtensionFactory.create(NodeExtensionFactory.java:45)\r\n    at com.hazelcast.instance.DefaultNodeContext.createNodeExtension(DefaultNodeContext.java:33)\r\n    at com.hazelcast.instance.Node.<init>(Node.java:170)\r\n    at com.hazelcast.instance.HazelcastInstanceImpl.<init>(HazelcastInstanceImpl.java:125)\r\n    at com.hazelcast.instance.HazelcastInstanceFactory.constructHazelcastInstance(HazelcastInstanceFactory.java:160)\r\n    at com.hazelcast.instance.HazelcastInstanceFactory.newHazelcastInstance(HazelcastInstanceFactory.java:143)\r\n    at com.hazelcast.instance.HazelcastInstanceFactory.newHazelcastInstance(HazelcastInstanceFactory.java:111)\r\n    at com.hazelcast.core.Hazelcast.newHazelcastInstance(Hazelcast.java:58)\r\n    at com.agentslab.datAdmcore.HazelStarter.start(HazelStarter.java:114)\r\n    at com.agentslab.ame.protege.core.UnderSubMenu.actionPerformed(UnderSubMenu.java:22)\r\n    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)\r\n    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)\r\n    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)\r\n    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)\r\n    at javax.swing.AbstractButton.doClick(AbstractButton.java:376)\r\n    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)\r\n    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)\r\n    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)\r\n    at java.awt.Component.processMouseEvent(Component.java:6535)\r\n    at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)\r\n    at java.awt.Component.processEvent(Component.java:6300)\r\n    at java.awt.Container.processEvent(Container.java:2236)\r\n    at java.awt.Component.dispatchEventImpl(Component.java:4891)\r\n    at java.awt.Container.dispatchEventImpl(Container.java:2294)\r\n    at java.awt.Component.dispatchEvent(Component.java:4713)\r\n    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)\r\n    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)\r\n    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)\r\n    at java.awt.Container.dispatchEventImpl(Container.java:2280)\r\n    at java.awt.Window.dispatchEventImpl(Window.java:2750)\r\n    at java.awt.Component.dispatchEvent(Component.java:4713)\r\n    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)\r\n    at java.awt.EventQueue.access$500(EventQueue.java:97)\r\n    at java.awt.EventQueue$3.run(EventQueue.java:709)\r\n    at java.awt.EventQueue$3.run(EventQueue.java:703)\r\n    at java.security.AccessController.doPrivileged(Native Method)\r\n    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)\r\n    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)\r\n    at java.awt.EventQueue$4.run(EventQueue.java:731)\r\n    at java.awt.EventQueue$4.run(EventQueue.java:729)\r\n    at java.security.AccessController.doPrivileged(Native Method)\r\n    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)\r\n    at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)\r\n    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)\r\n    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)\r\n    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)\r\n    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)\r\n    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)\r\n    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)\r\nCaused by: java.lang.NoSuchMethodException: com.hazelcast.instance.DefaultNodeExtension.<init>(com.hazelcast.instance.Node)\r\n    at java.lang.Class.getConstructor0(Class.java:3082)\r\n    at java.lang.Class.getDeclaredConstructor(Class.java:2178)\r\n    at com.hazelcast.instance.NodeExtensionFactory.create(NodeExtensionFactory.java:39)\r\n    ... 48 more\r\nwhen I run this outside the OSGI it runs and only has one classloader, inside the OSGI it shows two class loaders the other being a bundewiringimp bundleclass loader with the name of the OSGI.\r\nany idea of what is causing this error \r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/hazelcast/hazelcast/issues/comments/234499786","html_url":"https://github.com/hazelcast/hazelcast/issues/8573#issuecomment-234499786","issue_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/8573","id":234499786,"user":{"login":"jerrinot","id":158619,"avatar_url":"https://avatars.githubusercontent.com/u/158619?v=3","gravatar_id":"","url":"https://api.github.com/users/jerrinot","html_url":"https://github.com/jerrinot","followers_url":"https://api.github.com/users/jerrinot/followers","following_url":"https://api.github.com/users/jerrinot/following{/other_user}","gists_url":"https://api.github.com/users/jerrinot/gists{/gist_id}","starred_url":"https://api.github.com/users/jerrinot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerrinot/subscriptions","organizations_url":"https://api.github.com/users/jerrinot/orgs","repos_url":"https://api.github.com/users/jerrinot/repos","events_url":"https://api.github.com/users/jerrinot/events{/privacy}","received_events_url":"https://api.github.com/users/jerrinot/received_events","type":"User","site_admin":false},"created_at":"2016-07-22T09:35:37Z","updated_at":"2016-07-22T09:35:37Z","body":"Hi @jmavasa, \r\n\r\nthanks for reporting the issue. What version of HAzelcast are you using? What OSGi container you are using? Do you have any idea why there are 2 classloaders? Are you sure you have just a single bundle with Hazelcast? "}}
{"actor":{"display_login":"jerrinot"}}