{"action":"created","issue":{"url":"https://api.github.com/repos/vidhya03/http-patch-jax-rs/issues/12","repository_url":"https://api.github.com/repos/vidhya03/http-patch-jax-rs","labels_url":"https://api.github.com/repos/vidhya03/http-patch-jax-rs/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/vidhya03/http-patch-jax-rs/issues/12/comments","events_url":"https://api.github.com/repos/vidhya03/http-patch-jax-rs/issues/12/events","html_url":"https://github.com/vidhya03/http-patch-jax-rs/issues/12","id":290951405,"number":12,"title":"Running  AppRunner.java throws - jdk.nashorn.internal.runtime.ECMAException: ReferenceError: \"karate\" is not defined","user":{"login":"vidhya03","id":534679,"avatar_url":"https://avatars3.githubusercontent.com/u/534679?v=4","gravatar_id":"","url":"https://api.github.com/users/vidhya03","html_url":"https://github.com/vidhya03","followers_url":"https://api.github.com/users/vidhya03/followers","following_url":"https://api.github.com/users/vidhya03/following{/other_user}","gists_url":"https://api.github.com/users/vidhya03/gists{/gist_id}","starred_url":"https://api.github.com/users/vidhya03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vidhya03/subscriptions","organizations_url":"https://api.github.com/users/vidhya03/orgs","repos_url":"https://api.github.com/users/vidhya03/repos","events_url":"https://api.github.com/users/vidhya03/events{/privacy}","received_events_url":"https://api.github.com/users/vidhya03/received_events","type":"User","site_admin":false},"labels":[{"id":337626124,"url":"https://api.github.com/repos/vidhya03/http-patch-jax-rs/labels/bug","name":"bug","color":"fc2929","default":true},{"id":337626127,"url":"https://api.github.com/repos/vidhya03/http-patch-jax-rs/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":{"login":"vidhya03","id":534679,"avatar_url":"https://avatars3.githubusercontent.com/u/534679?v=4","gravatar_id":"","url":"https://api.github.com/users/vidhya03","html_url":"https://github.com/vidhya03","followers_url":"https://api.github.com/users/vidhya03/followers","following_url":"https://api.github.com/users/vidhya03/following{/other_user}","gists_url":"https://api.github.com/users/vidhya03/gists{/gist_id}","starred_url":"https://api.github.com/users/vidhya03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vidhya03/subscriptions","organizations_url":"https://api.github.com/users/vidhya03/orgs","repos_url":"https://api.github.com/users/vidhya03/repos","events_url":"https://api.github.com/users/vidhya03/events{/privacy}","received_events_url":"https://api.github.com/users/vidhya03/received_events","type":"User","site_admin":false},"assignees":[{"login":"vidhya03","id":534679,"avatar_url":"https://avatars3.githubusercontent.com/u/534679?v=4","gravatar_id":"","url":"https://api.github.com/users/vidhya03","html_url":"https://github.com/vidhya03","followers_url":"https://api.github.com/users/vidhya03/followers","following_url":"https://api.github.com/users/vidhya03/following{/other_user}","gists_url":"https://api.github.com/users/vidhya03/gists{/gist_id}","starred_url":"https://api.github.com/users/vidhya03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vidhya03/subscriptions","organizations_url":"https://api.github.com/users/vidhya03/orgs","repos_url":"https://api.github.com/users/vidhya03/repos","events_url":"https://api.github.com/users/vidhya03/events{/privacy}","received_events_url":"https://api.github.com/users/vidhya03/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-01-23T18:47:58Z","updated_at":"2018-02-09T17:42:10Z","closed_at":null,"author_association":"OWNER","body":"Running the standalone AppRunner.java throws the below error\r\n\r\n`jdk.nashorn.internal.runtime.ECMAException: ReferenceError: \"karate\" is not defined`\r\n`\r\n------------------------------------------------------------------------\r\nBuilding HTTP-PATCH-JAX-RS Web APP 1.0-SNAPSHOT\r\n------------------------------------------------------------------------\r\n\r\n--- exec-maven-plugin:1.2.1:exec (default-cli) @ HTTP-PATCH-JAX-RS ---\r\n00:02:15.465 [JavaFX Application Thread] ERROR com.intuit.karate.ui.AppSession - javascript function call failed, arg: null\r\nfunction() {   \r\n  var env = karate.env; // get system property 'karate.env'\r\n  karate.log('karate.env system property was:', env);\r\n  if (!env) {\r\n    env = 'live';\r\n  }\r\n  var config = {\r\n    env: env,\r\n   apiUrl: 'http://http-patch-vidhya.1d35.starter-us-east-1.openshiftapps.com/v1/'\r\n  };\r\n  if (env === 'dev') {\r\n    // customize\r\n   config.apiUrl = 'http://localhost:18080/http-patch-jax-rs/v1';\r\n  } else if (env === 'e2e') {\r\n    // customize\r\n  }\r\n  //Right now commenting the below for future use\r\n//  config.myObject = karate.read('classpath:test.json');\r\n  return config;\r\n}\r\njdk.nashorn.internal.runtime.ECMAException: ReferenceError: \"karate\" is not defined\r\n\tat jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:57)\r\n\tat jdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:319)\r\n\tat jdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:291)\r\n\tat jdk.nashorn.internal.objects.Global.__noSuchProperty__(Global.java:1426)\r\n\tat jdk.nashorn.internal.scripts.Script$Recompilation$4$11$\\^eval\\_.L:1(<eval>:2)\r\n\tat jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:637)\r\n\tat jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494)\r\n\tat jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)\r\n\tat jdk.nashorn.api.scripting.ScriptObjectMirror.call(ScriptObjectMirror.java:117)\r\n\tat com.intuit.karate.Script.evalFunctionCall(Script.java:1491)\r\n\tat com.intuit.karate.Script.call(Script.java:1449)\r\n\tat com.intuit.karate.Script.callAndUpdateConfigAndAlsoVarsIfMapReturned(Script.java:1564)\r\n\tat com.intuit.karate.ScriptContext.<init>(ScriptContext.java:144)\r\n\tat com.intuit.karate.StepDefs.<init>(StepDefs.java:81)\r\n\tat com.intuit.karate.cucumber.KarateObjectFactory.getInstance(KarateObjectFactory.java:80)\r\n\tat com.intuit.karate.cucumber.KarateObjectFactory.getStepDefs(KarateObjectFactory.java:87)\r\n\tat com.intuit.karate.cucumber.KarateBackend.getStepDefs(KarateBackend.java:104)\r\n\tat com.intuit.karate.ui.AppSession.getVars(AppSession.java:150)\r\n\tat com.intuit.karate.ui.VarsPanel.<init>(VarsPanel.java:62)\r\n\tat com.intuit.karate.ui.AppSession.<init>(AppSession.java:104)\r\n\tat com.intuit.karate.ui.AppSession.<init>(AppSession.java:69)\r\n\tat com.intuit.karate.ui.App.initUi(App.java:63)\r\n\tat com.intuit.karate.ui.App.start(App.java:102)\r\n\tat com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)\r\n\tat com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)\r\n\tat com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)\r\n\tat com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)\r\n\tat com.sun.glass.ui.win.WinApplication._runLoop(Native Method)\r\n\tat com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nException in Application start method\r\nException in thread \"main\" java.lang.RuntimeException: Exception in Application start method\r\n\tat com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)\r\n\tat com.sun.javafx.application.LauncherImpl.lambda$launchApplication$155(LauncherImpl.java:182)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: java.lang.RuntimeException: evaluation of karate-config.js failed:\r\n\tat com.intuit.karate.ScriptContext.<init>(ScriptContext.java:153)\r\n\tat com.intuit.karate.StepDefs.<init>(StepDefs.java:81)\r\n\tat com.intuit.karate.cucumber.KarateObjectFactory.getInstance(KarateObjectFactory.java:80)\r\n\tat com.intuit.karate.cucumber.KarateObjectFactory.getStepDefs(KarateObjectFactory.java:87)\r\n\tat com.intuit.karate.cucumber.KarateBackend.getStepDefs(KarateBackend.java:104)\r\n\tat com.intuit.karate.ui.AppSession.getVars(AppSession.java:150)\r\n\tat com.intuit.karate.ui.VarsPanel.<init>(VarsPanel.java:62)\r\n\tat com.intuit.karate.ui.AppSession.<init>(AppSession.java:104)\r\n\tat com.intuit.karate.ui.AppSession.<init>(AppSession.java:69)\r\n\tat com.intuit.karate.ui.App.initUi(App.java:63)\r\n\tat com.intuit.karate.ui.App.start(App.java:102)\r\n\tat com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)\r\n\tat com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)\r\n\tat com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)\r\n\tat com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)\r\n\tat com.sun.glass.ui.win.WinApplication._runLoop(Native Method)\r\n\tat com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)\r\n\t... 1 more\r\nCaused by: com.intuit.karate.exception.KarateException: \r\nReferenceError: \"karate\" is not defined\r\n\tat com.intuit.karate.Script.evalFunctionCall(Script.java:1497)\r\n\tat com.intuit.karate.Script.call(Script.java:1449)\r\n\tat com.intuit.karate.Script.callAndUpdateConfigAndAlsoVarsIfMapReturned(Script.java:1564)\r\n\tat com.intuit.karate.ScriptContext.<init>(ScriptContext.java:144)\r\n\t... 19 more\r\n------------------------------------------------------------------------\r\nBUILD FAILURE\r\n------------------------------------------------------------------------\r\nTotal time: 2.729s\r\nFinished at: Wed Jan 24 00:02:15 IST 2018\r\nFinal Memory: 8M/153M\r\n`"},"comment":{"url":"https://api.github.com/repos/vidhya03/http-patch-jax-rs/issues/comments/364505071","html_url":"https://github.com/vidhya03/http-patch-jax-rs/issues/12#issuecomment-364505071","issue_url":"https://api.github.com/repos/vidhya03/http-patch-jax-rs/issues/12","id":364505071,"user":{"login":"vidhya03","id":534679,"avatar_url":"https://avatars3.githubusercontent.com/u/534679?v=4","gravatar_id":"","url":"https://api.github.com/users/vidhya03","html_url":"https://github.com/vidhya03","followers_url":"https://api.github.com/users/vidhya03/followers","following_url":"https://api.github.com/users/vidhya03/following{/other_user}","gists_url":"https://api.github.com/users/vidhya03/gists{/gist_id}","starred_url":"https://api.github.com/users/vidhya03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vidhya03/subscriptions","organizations_url":"https://api.github.com/users/vidhya03/orgs","repos_url":"https://api.github.com/users/vidhya03/repos","events_url":"https://api.github.com/users/vidhya03/events{/privacy}","received_events_url":"https://api.github.com/users/vidhya03/received_events","type":"User","site_admin":false},"created_at":"2018-02-09T17:42:10Z","updated_at":"2018-02-09T17:42:10Z","author_association":"OWNER","body":"This is because of java old version. upgrading to latest java version 1.8.0_161 fixes this issue"}}
{"actor":{"display_login":"vidhya03"}}