{"action":"created","issue":{"url":"https://api.github.com/repos/sequenceiq/ambari-shell/issues/41","labels_url":"https://api.github.com/repos/sequenceiq/ambari-shell/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/sequenceiq/ambari-shell/issues/41/comments","events_url":"https://api.github.com/repos/sequenceiq/ambari-shell/issues/41/events","html_url":"https://github.com/sequenceiq/ambari-shell/issues/41","id":96899565,"number":41,"title":"Cluster auto-assign throws error for non-default blueprints","user":{"login":"zbears","id":3253321,"avatar_url":"https://avatars.githubusercontent.com/u/3253321?v=3","gravatar_id":"","url":"https://api.github.com/users/zbears","html_url":"https://github.com/zbears","followers_url":"https://api.github.com/users/zbears/followers","following_url":"https://api.github.com/users/zbears/following{/other_user}","gists_url":"https://api.github.com/users/zbears/gists{/gist_id}","starred_url":"https://api.github.com/users/zbears/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbears/subscriptions","organizations_url":"https://api.github.com/users/zbears/orgs","repos_url":"https://api.github.com/users/zbears/repos","events_url":"https://api.github.com/users/zbears/events{/privacy}","received_events_url":"https://api.github.com/users/zbears/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-23T20:33:06Z","updated_at":"2015-07-27T13:42:41Z","closed_at":"2015-07-27T13:42:41Z","body":"For any blueprint that is not a default blueprint (i.e. one that has been added from a file), I get the following error when using cluster autoAssign:\r\n```\r\nCLUSTER_BUILD:hdpsparkhive>cluster autoAssign\r\nCommand failed java.lang.VerifyError: Bad <init> method call from inside of a branch\r\nException Details:\r\n  Location:\r\n    com/sequenceiq/ambari/client/InvalidHostGroupHostAssociation.<init>(Ljava/lang/String;I)V @91: invokespecial\r\n  Reason:\r\n    Error exists in the bytecode\r\n  Bytecode:\r\n    0000000: b800 184e 04bd 001a 5903 2b53 5908 1204\r\n    0000010: b800 205a 047e 9900 0803 32c0 0022 5f2a\r\n    0000020: 5f10 087a ab00 0000 0000 00b7 0000 0005\r\n    0000030: 0000 0000 0000 0034 0000 0001 0000 003d\r\n    0000040: 0000 0002 0000 0052 0000 0003 0000 0073\r\n    0000050: 0000 0004 0000 00a2 5f5a 57b7 0025 a700\r\n    0000060: 875f 5a59 0332 1227 b800 2bc0 0027 5f57\r\n    0000070: b700 2ea7 0072 5f5a 5903 3212 27b8 002b\r\n    0000080: c000 275f 5904 3212 30b8 002b c000 305f\r\n    0000090: 57b7 0033 a700 515f 5a59 0332 1227 b800\r\n    00000a0: 2bc0 0027 5f59 0432 1230 b800 2bc0 0030\r\n    00000b0: 5f59 0532 b800 395f 5906 32b8 0039 5f57\r\n    00000c0: b700 3ca7 0022 5f5a 5903 3212 30b8 002b\r\n    00000d0: c000 305f 57b7 003f a700 0dbb 0041 5912\r\n    00000e0: 43b7 0044 bf57 2ab6 0048 3a04 1904 2a5f\r\n    00000f0: b500 4a19 0457 1c36 0515 05b8 0050 b800\r\n    0000100: 542a 5fb5 0056 1505 57b1               \r\n  Stackmap Table:\r\n    full_frame(@30,{UninitializedThis,Object[#39],Integer,Object[#92]},{Integer,Object[#34]})\r\n    full_frame(@88,{UninitializedThis,Object[#39],Integer,Object[#92]},{Object[#34],UninitializedThis})\r\n    full_frame(@97,{UninitializedThis,Object[#39],Integer,Object[#92]},{Object[#34],UninitializedThis})\r\n    full_frame(@118,{UninitializedThis,Object[#39],Integer,Object[#92]},{Object[#34],UninitializedThis})\r\n    full_frame(@151,{UninitializedThis,Object[#39],Integer,Object[#92]},{Object[#34],UninitializedThis})\r\n    full_frame(@198,{UninitializedThis,Object[#39],Integer,Object[#92]},{Object[#34],UninitializedThis})\r\n    full_frame(@219,{UninitializedThis,Object[#39],Integer,Object[#92]},{Object[#34],UninitializedThis})\r\n    full_frame(@229,{Object[#2],Object[#39],Integer,Object[#92]},{Object[#34]})\r\n\r\nException in thread \"Spring Shell\" java.lang.VerifyError: Bad <init> method call from inside of a branch\r\nException Details:\r\n  Location:\r\n    com/sequenceiq/ambari/client/InvalidHostGroupHostAssociation.<init>(Ljava/lang/String;I)V @91: invokespecial\r\n  Reason:\r\n    Error exists in the bytecode\r\n  Bytecode:\r\n    0000000: b800 184e 04bd 001a 5903 2b53 5908 1204\r\n    0000010: b800 205a 047e 9900 0803 32c0 0022 5f2a\r\n    0000020: 5f10 087a ab00 0000 0000 00b7 0000 0005\r\n    0000030: 0000 0000 0000 0034 0000 0001 0000 003d\r\n    0000040: 0000 0002 0000 0052 0000 0003 0000 0073\r\n    0000050: 0000 0004 0000 00a2 5f5a 57b7 0025 a700\r\n    0000060: 875f 5a59 0332 1227 b800 2bc0 0027 5f57\r\n    0000070: b700 2ea7 0072 5f5a 5903 3212 27b8 002b\r\n    0000080: c000 275f 5904 3212 30b8 002b c000 305f\r\n    0000090: 57b7 0033 a700 515f 5a59 0332 1227 b800\r\n    00000a0: 2bc0 0027 5f59 0432 1230 b800 2bc0 0030\r\n    00000b0: 5f59 0532 b800 395f 5906 32b8 0039 5f57\r\n    00000c0: b700 3ca7 0022 5f5a 5903 3212 30b8 002b\r\n    00000d0: c000 305f 57b7 003f a700 0dbb 0041 5912\r\n    00000e0: 43b7 0044 bf57 2ab6 0048 3a04 1904 2a5f\r\n    00000f0: b500 4a19 0457 1c36 0515 05b8 0050 b800\r\n    0000100: 542a 5fb5 0056 1505 57b1               \r\n  Stackmap Table:\r\n    full_frame(@30,{UninitializedThis,Object[#39],Integer,Object[#92]},{Integer,Object[#34]})\r\n    full_frame(@88,{UninitializedThis,Object[#39],Integer,Object[#92]},{Object[#34],UninitializedThis})\r\n    full_frame(@97,{UninitializedThis,Object[#39],Integer,Object[#92]},{Object[#34],UninitializedThis})\r\n    full_frame(@118,{UninitializedThis,Object[#39],Integer,Object[#92]},{Object[#34],UninitializedThis})\r\n    full_frame(@151,{UninitializedThis,Object[#39],Integer,Object[#92]},{Object[#34],UninitializedThis})\r\n    full_frame(@198,{UninitializedThis,Object[#39],Integer,Object[#92]},{Object[#34],UninitializedThis})\r\n    full_frame(@219,{UninitializedThis,Object[#39],Integer,Object[#92]},{Object[#34],UninitializedThis})\r\n    full_frame(@229,{Object[#2],Object[#39],Integer,Object[#92]},{Object[#34]})\r\n\r\n\tat java.lang.Class.getDeclaredConstructors0(Native Method)\r\n\tat java.lang.Class.privateGetDeclaredConstructors(Class.java:2532)\r\n\tat java.lang.Class.getDeclaredConstructors(Class.java:1901)\r\n\tat org.codehaus.groovy.reflection.CachedClass$2$1.run(CachedClass.java:69)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat org.codehaus.groovy.reflection.CachedClass$2.initValue(CachedClass.java:66)\r\n\tat org.codehaus.groovy.reflection.CachedClass$2.initValue(CachedClass.java:64)\r\n\tat org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46)\r\n\tat org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33)\r\n\tat org.codehaus.groovy.reflection.CachedClass.getConstructors(CachedClass.java:258)\r\n\tat groovy.lang.MetaClassImpl.<init>(MetaClassImpl.java:189)\r\n\tat groovy.lang.MetaClassImpl.<init>(MetaClassImpl.java:193)\r\n\tat groovy.lang.MetaClassRegistry$MetaClassCreationHandle.createNormalMetaClass(MetaClassRegistry.java:158)\r\n\tat groovy.lang.MetaClassRegistry$MetaClassCreationHandle.createWithCustomLookup(MetaClassRegistry.java:148)\r\n\tat groovy.lang.MetaClassRegistry$MetaClassCreationHandle.create(MetaClassRegistry.java:131)\r\n\tat org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:175)\r\n\tat org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:192)\r\n\tat org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.getMetaClass(MetaClassRegistryImpl.java:255)\r\n\tat org.codehaus.groovy.runtime.InvokerHelper.getMetaClass(InvokerHelper.java:806)\r\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallConstructorSite(CallSiteArray.java:84)\r\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)\r\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182)\r\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:194)\r\n\tat com.sequenceiq.ambari.client.AmbariClient.recommendAssignments(AmbariClient.groovy:519)\r\n\tat com.sequenceiq.ambari.shell.commands.ClusterCommands.autoAssign(ClusterCommands.java:157)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:196)\r\n\tat org.springframework.shell.core.SimpleExecutionStrategy.invoke(SimpleExecutionStrategy.java:64)\r\n\tat org.springframework.shell.core.SimpleExecutionStrategy.execute(SimpleExecutionStrategy.java:57)\r\n\tat org.springframework.shell.core.AbstractShell.executeCommand(AbstractShell.java:127)\r\n\tat org.springframework.shell.core.JLineShell.promptLoop(JLineShell.java:533)\r\n\tat org.springframework.shell.core.JLineShell.run(JLineShell.java:179)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n```"},"comment":{"url":"https://api.github.com/repos/sequenceiq/ambari-shell/issues/comments/125207755","html_url":"https://github.com/sequenceiq/ambari-shell/issues/41#issuecomment-125207755","issue_url":"https://api.github.com/repos/sequenceiq/ambari-shell/issues/41","id":125207755,"user":{"login":"zbears","id":3253321,"avatar_url":"https://avatars.githubusercontent.com/u/3253321?v=3","gravatar_id":"","url":"https://api.github.com/users/zbears","html_url":"https://github.com/zbears","followers_url":"https://api.github.com/users/zbears/followers","following_url":"https://api.github.com/users/zbears/following{/other_user}","gists_url":"https://api.github.com/users/zbears/gists{/gist_id}","starred_url":"https://api.github.com/users/zbears/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbears/subscriptions","organizations_url":"https://api.github.com/users/zbears/orgs","repos_url":"https://api.github.com/users/zbears/repos","events_url":"https://api.github.com/users/zbears/events{/privacy}","received_events_url":"https://api.github.com/users/zbears/received_events","type":"User","site_admin":false},"created_at":"2015-07-27T13:42:41Z","updated_at":"2015-07-27T13:42:41Z","body":"Yep. The slave and master names fixed it. Thanks for your help!"}}