{"action":"opened","issue":{"url":"https://api.github.com/repos/jkuhnert/ognl/issues/17","repository_url":"https://api.github.com/repos/jkuhnert/ognl","labels_url":"https://api.github.com/repos/jkuhnert/ognl/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/jkuhnert/ognl/issues/17/comments","events_url":"https://api.github.com/repos/jkuhnert/ognl/issues/17/events","html_url":"https://github.com/jkuhnert/ognl/issues/17","id":139353145,"number":17,"title":"ArrayIndexOutOfBoundsException when trying to access BeanFactory","user":{"login":"marvkis","id":11214652,"avatar_url":"https://avatars.githubusercontent.com/u/11214652?v=3","gravatar_id":"","url":"https://api.github.com/users/marvkis","html_url":"https://github.com/marvkis","followers_url":"https://api.github.com/users/marvkis/followers","following_url":"https://api.github.com/users/marvkis/following{/other_user}","gists_url":"https://api.github.com/users/marvkis/gists{/gist_id}","starred_url":"https://api.github.com/users/marvkis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marvkis/subscriptions","organizations_url":"https://api.github.com/users/marvkis/orgs","repos_url":"https://api.github.com/users/marvkis/repos","events_url":"https://api.github.com/users/marvkis/events{/privacy}","received_events_url":"https://api.github.com/users/marvkis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-08T18:18:53Z","updated_at":"2016-03-08T18:18:53Z","closed_at":null,"body":"Hi,\r\n\r\nwhen trying to access a BeanFactory with `factory.getBean(\"test\")` an ArrayIndexOutOfBoundsExceptions is thrown:\r\n\r\n```java\r\njava.lang.ArrayIndexOutOfBoundsException\r\n\tat java.lang.System.arraycopy(Native Method)\r\n\tat ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1265)\r\n\tat ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)\r\n\tat ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1370)\r\n\tat ognl.ASTMethod.getValueBody(ASTMethod.java:90)\r\n\tat ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)\r\n\tat ognl.SimpleNode.getValue(SimpleNode.java:258)\r\n\tat ognl.ASTChain.getValueBody(ASTChain.java:141)\r\n\tat ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)\r\n\tat ognl.SimpleNode.getValue(SimpleNode.java:258)\r\n\tat ognl.ASTMethod.getValueBody(ASTMethod.java:87)\r\n...\r\n```\r\n\r\nI created a small Dummy-BeanFactory to reproduce the issue:\r\n\r\n```java\r\npackage org.ognl.test.objects;\r\n\r\nimport java.util.Arrays;\r\n\r\npublic class BeanFactory {\r\n\t//---------------------------------------------------------------------\r\n\t// Implementation of BeanFactory interface\r\n\t//---------------------------------------------------------------------\r\n\r\n\tpublic Object getBean(String name) {\r\n\t\treturn \"NamedBean: \"+name;\r\n\t}\r\n\r\n\tpublic <T> T getBean(String name, Class<T> requiredType) {\r\n\t\treturn (T) (\"NamedTypedBean: \"+name+\" \"+requiredType.getSimpleName());\r\n\t}\r\n\r\n\tpublic <T> T getBean(Class<T> requiredType) {\r\n\t\treturn (T) (\"TypedBean: \"+requiredType.getSimpleName());\r\n\t}\r\n\r\n\tpublic Object getBean(String name, Object... args) {\r\n\t\treturn \"NamedBeanWithArgs: \"+name+\" \"+Arrays.toString(args);\r\n\t}\r\n\r\n}\r\n```\r\n\r\n.. might also be related to the issue in #16 "}}