{"action":"created","issue":{"url":"https://api.github.com/repos/lastaflute/lasta-di/issues/12","labels_url":"https://api.github.com/repos/lastaflute/lasta-di/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/lastaflute/lasta-di/issues/12/comments","events_url":"https://api.github.com/repos/lastaflute/lasta-di/issues/12/events","html_url":"https://github.com/lastaflute/lasta-di/issues/12","id":108732570,"number":12,"title":"Resolve variables in an array or collection from a container","user":{"login":"jfut","id":128867,"avatar_url":"https://avatars.githubusercontent.com/u/128867?v=3","gravatar_id":"","url":"https://api.github.com/users/jfut","html_url":"https://github.com/jfut","followers_url":"https://api.github.com/users/jfut/followers","following_url":"https://api.github.com/users/jfut/following{/other_user}","gists_url":"https://api.github.com/users/jfut/gists{/gist_id}","starred_url":"https://api.github.com/users/jfut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfut/subscriptions","organizations_url":"https://api.github.com/users/jfut/orgs","repos_url":"https://api.github.com/users/jfut/repos","events_url":"https://api.github.com/users/jfut/events{/privacy}","received_events_url":"https://api.github.com/users/jfut/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-28T19:44:50Z","updated_at":"2015-09-28T20:08:50Z","closed_at":null,"body":"test.xml:\r\n\r\n```xml\r\n<component name=\"foo\" class=\"org.example.Foo\">\r\n<component name=\"foo\" class=\"org.example.Bar\">\r\n\r\n<component name=\"hoge1\">[ foo, bar ]</component>\r\n<component name=\"hoge2\">{ foo, bar }</component>\r\n````\r\n\r\nI get the following error:\r\n\r\n````java\r\nCaused by: java.lang.IllegalStateException: Look! Read the message below.\r\n/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\nFailed to evaluate the JavaScript expression.\r\n\r\n[Di XML]\r\ntest.xml\r\n\r\n[Expression]\r\n[ foo, bar ]\r\n\r\n[Context Map]\r\n{}\r\n* * * * * * * * * */\r\n\tat org.lastaflute.di.core.expression.engine.JavaScriptExpressionEngine.throwJavaScriptExpressionException(JavaScriptExpressionEngine.java:180)\r\n\tat org.lastaflute.di.core.expression.engine.JavaScriptExpressionEngine.actuallyEvaluate(JavaScriptExpressionEngine.java:160)\r\n\tat org.lastaflute.di.core.expression.engine.JavaScriptExpressionEngine.viaFirstNameResolvedEvaluate(JavaScriptExpressionEngine.java:144)\r\n\tat org.lastaflute.di.core.expression.engine.JavaScriptExpressionEngine.viaCastResolvedEvaluate(JavaScriptExpressionEngine.java:98)\r\n\tat org.lastaflute.di.core.expression.engine.JavaScriptExpressionEngine.viaVariableResolvedEvaluate(JavaScriptExpressionEngine.java:75)\r\n\tat org.lastaflute.di.core.expression.engine.JavaScriptExpressionEngine.evaluate(JavaScriptExpressionEngine.java:66)\r\n\tat org.lastaflute.di.core.expression.ScriptingExpression.evaluate(ScriptingExpression.java:85)\r\n\tat org.lastaflute.di.core.assembler.AbstractConstructorAssembler.assembleExpression(AbstractConstructorAssembler.java:56)\r\n\tat org.lastaflute.di.core.assembler.AbstractConstructorAssembler.assemble(AbstractConstructorAssembler.java:44)\r\n\tat org.lastaflute.di.core.deployer.SingletonComponentDeployer.assemble(SingletonComponentDeployer.java:52)\r\n\tat org.lastaflute.di.core.deployer.SingletonComponentDeployer.deploy(SingletonComponentDeployer.java:41)\r\n\tat org.lastaflute.di.core.deployer.SingletonComponentDeployer.init(SingletonComponentDeployer.java:35)\r\n\tat org.lastaflute.di.core.meta.impl.ComponentDefImpl.init(ComponentDefImpl.java:83)\r\n\tat org.lastaflute.di.core.meta.impl.LaContainerImpl.doInit(LaContainerImpl.java:435)\r\n\tat org.lastaflute.di.core.meta.impl.LaContainerImpl.init(LaContainerImpl.java:414)\r\n\t... 21 more\r\nCaused by: javax.script.ScriptException: ReferenceError: \"foo\" is not defined in <eval> at line number 1\r\n\tat jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:467)\r\n\tat jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:451)\r\n\tat jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:403)\r\n\tat jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:399)\r\n\tat jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:155)\r\n\tat javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)\r\n\tat org.lastaflute.di.core.expression.engine.JavaScriptExpressionEngine.actuallyEvaluate(JavaScriptExpressionEngine.java:158)\r\n\t... 34 more\r\nCaused by: <eval>:1 ReferenceError: \"multipartRequestParser\" 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:1432)\r\n\tat jdk.nashorn.internal.scripts.Script$3$\\^eval\\_.:program(<eval>:1)\r\n\tat jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:640)\r\n\tat jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:228)\r\n\tat jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)\r\n\tat jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:446)\r\n\t... 39 more\r\n````\r\n\r\nIs this expression mistaken?"},"comment":{"url":"https://api.github.com/repos/lastaflute/lasta-di/issues/comments/143860743","html_url":"https://github.com/lastaflute/lasta-di/issues/12#issuecomment-143860743","issue_url":"https://api.github.com/repos/lastaflute/lasta-di/issues/12","id":143860743,"user":{"login":"jflute","id":3838830,"avatar_url":"https://avatars.githubusercontent.com/u/3838830?v=3","gravatar_id":"","url":"https://api.github.com/users/jflute","html_url":"https://github.com/jflute","followers_url":"https://api.github.com/users/jflute/followers","following_url":"https://api.github.com/users/jflute/following{/other_user}","gists_url":"https://api.github.com/users/jflute/gists{/gist_id}","starred_url":"https://api.github.com/users/jflute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jflute/subscriptions","organizations_url":"https://api.github.com/users/jflute/orgs","repos_url":"https://api.github.com/users/jflute/repos","events_url":"https://api.github.com/users/jflute/events{/privacy}","received_events_url":"https://api.github.com/users/jflute/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T20:08:50Z","updated_at":"2015-09-28T20:08:50Z","body":"[share] target class is JavaScriptExpressionEngine in Lasta Di."}}