{"action":"closed","issue":{"url":"https://api.github.com/repos/michel-kraemer/citeproc-java/issues/16","labels_url":"https://api.github.com/repos/michel-kraemer/citeproc-java/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/michel-kraemer/citeproc-java/issues/16/comments","events_url":"https://api.github.com/repos/michel-kraemer/citeproc-java/issues/16/events","html_url":"https://github.com/michel-kraemer/citeproc-java/issues/16","id":47655152,"number":16,"title":"java.lang.NoSuchMethodError: org.mozilla.javascript.ScriptRuntime.getObjectProp","user":{"login":"pcj","id":50580,"avatar_url":"https://avatars.githubusercontent.com/u/50580?v=3","gravatar_id":"","url":"https://api.github.com/users/pcj","html_url":"https://github.com/pcj","followers_url":"https://api.github.com/users/pcj/followers","following_url":"https://api.github.com/users/pcj/following{/other_user}","gists_url":"https://api.github.com/users/pcj/gists{/gist_id}","starred_url":"https://api.github.com/users/pcj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcj/subscriptions","organizations_url":"https://api.github.com/users/pcj/orgs","repos_url":"https://api.github.com/users/pcj/repos","events_url":"https://api.github.com/users/pcj/events{/privacy}","received_events_url":"https://api.github.com/users/pcj/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-11-03T22:45:39Z","updated_at":"2015-01-29T06:37:06Z","closed_at":"2015-01-29T06:37:06Z","body":"I'm trying to compile the [Getting Started](http://michel-kraemer.github.io/citeproc-java/using/getting-started/) example; I am running into a NoSuchMethodError that I can't seem to overcome.  My code compiles fine through maven with dependencies below.  At runtime, it appears that `citeproc-java/src-gen/main/resources/de/undercouch/citeproc/xmle4x.js` is getting compiled on-the-fly, but it won't run due to mismatch on the method signature with the rhino engine.  AFAIK, this should be loaded in java7 and not present a problem.  Have tried adding in rhino dependencies `org.mozilla:rhino:1.7R4` and `rhino:js:1.7R2` without success.  That's frustrating as the mozilla rhino does seem to have the right method signature.  Any ideas?\r\n\r\n### Stacktrace\r\n\r\n```\r\njava.lang.NoSuchMethodError: org.mozilla.javascript.ScriptRuntime.getObjectProp(Ljava/lang/Object;Ljava/lang/String;Lorg/mozilla/javascript/Context;Lorg/mozilla/javascript/Scriptable;)Ljava/lang/Object;\r\n\tat de.undercouch.citeproc.xmle4x._c_script_0(Unknown Source)\r\n\tat de.undercouch.citeproc.xmle4x.call(Unknown Source)\r\n\tat org.mozilla.javascript.ContextFactory.doTopCall(Unknown Source)\r\n\tat org.mozilla.javascript.ScriptRuntime.doTopCall(Unknown Source)\r\n\tat de.undercouch.citeproc.xmle4x.call(Unknown Source)\r\n\tat de.undercouch.citeproc.xmle4x.exec(Unknown Source)\r\n\tat de.undercouch.citeproc.script.RhinoScriptRunner.loadScript(RhinoScriptRunner.java:97)\r\n\tat de.undercouch.citeproc.CSL.<init>(CSL.java:162)\r\n\tat de.undercouch.citeproc.CSL.<init>(CSL.java:130)\r\n\tat de.undercouch.citeproc.CSL.<init>(CSL.java:94)\r\n\tat de.undercouch.citeproc.CSL.<init>(CSL.java:63)\r\n```\r\n\r\n### Example Code\r\n```java\r\n        CSL citeproc = new CSL(new DummyProvider(), \"ieee\");\r\n        citeproc.setOutputFormat(\"html\");\r\n\r\n        citeproc.registerCitationItems(\"ID-1\", \"ID-2\", \"ID-3\");\r\n\r\n        List<Citation> s1 = citeproc.makeCitation(\"ID-1\");\r\n        System.out.println(s1.get(0).getText());\r\n        //=> [1] (for the \"ieee\" style)\r\n\r\n        List<Citation> s2 = citeproc.makeCitation(\"ID-2\");\r\n        System.out.println(s2.get(0).getText());\r\n        //=> [2]\r\n\r\n        Bibliography bibl = citeproc.makeBibliography();\r\n        for (String entry : bibl.getEntries()) {\r\n            System.out.println(entry);\r\n        }\r\n```\r\n### Maven Dependencies\r\n\r\n```xml\r\n        <repository>\r\n            <id>oss-snapshots-repo</id>\r\n            <name>Sonatype OSS Maven Repository</name>\r\n            <url>https://oss.sonatype.org/content/groups/public</url>\r\n            <snapshots\r\n                <enabled>true</enabled>\r\n                <updatePolicy>always</updatePolicy>\r\n            </snapshots>\r\n        </repository>\r\n\r\n        <dependency>\r\n            <groupId>de.undercouch</groupId>\r\n            <artifactId>citeproc-java</artifactId>\r\n            <version>0.6</version>\r\n        </dependency>\r\n        <dependency>\r\n            <groupId>org.citationstyles</groupId>\r\n            <artifactId>styles</artifactId>\r\n            <version>1.0.1-SNAPSHOT</version>\r\n        </dependency>\r\n        <dependency>\r\n            <groupId>org.citationstyles</groupId>\r\n            <artifactId>locales</artifactId>\r\n            <version>1.0.1-SNAPSHOT</version>\r\n        </dependency>\r\n\r\n```\r\n\r\n```sh\r\n$ env | grep JAVA\r\nJAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/\r\n\r\n$ java -version\r\njava version \"1.7.0_60\"\r\nJava(TM) SE Runtime Environment (build 1.7.0_60-b19)\r\nJava HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)\r\n\r\n$ mvn -v\r\nApache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T10:37:52-07:00)\r\nMaven home: /usr/local/Cellar/maven/3.2.1/libexec\r\nJava version: 1.7.0_60, vendor: Oracle Corporation\r\nJava home: /Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre\r\nDefault locale: en_US, platform encoding: UTF-8\r\nOS name: \"mac os x\", version: \"10.9.2\", arch: \"x86_64\", family: \"mac\"\r\n\r\n$ javap -cp  ~/.m2/repository/org/mozilla/rhino/1.7R4/rhino-1.7R4.jar org.mozilla.javascript.ScriptRuntime | grep getObjectProp\r\n  public static java.lang.Object getObjectProp(java.lang.Object, java.lang.String, org.mozilla.javascript.Context);\r\n  public static java.lang.Object getObjectProp(java.lang.Object, java.lang.String, org.mozilla.javascript.Context, org.mozilla.javascript.Scriptable);\r\n  public static java.lang.Object getObjectProp(org.mozilla.javascript.Scriptable, java.lang.String, org.mozilla.javascript.Context);\r\n  public static java.lang.Object getObjectPropNoWarn(java.lang.Object, java.lang.String, org.mozilla.javascript.Context);\r\n```"}}