{"action":"created","issue":{"url":"https://api.github.com/repos/spring-cloud-stream-app-starters/python/issues/12","repository_url":"https://api.github.com/repos/spring-cloud-stream-app-starters/python","labels_url":"https://api.github.com/repos/spring-cloud-stream-app-starters/python/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud-stream-app-starters/python/issues/12/comments","events_url":"https://api.github.com/repos/spring-cloud-stream-app-starters/python/issues/12/events","html_url":"https://github.com/spring-cloud-stream-app-starters/python/issues/12","id":303884654,"number":12,"title":"Caused by: java.lang.IllegalArgumentException: Cannot access script json2xml.py","user":{"login":"ashley-stendel","id":29064534,"avatar_url":"https://avatars3.githubusercontent.com/u/29064534?v=4","gravatar_id":"","url":"https://api.github.com/users/ashley-stendel","html_url":"https://github.com/ashley-stendel","followers_url":"https://api.github.com/users/ashley-stendel/followers","following_url":"https://api.github.com/users/ashley-stendel/following{/other_user}","gists_url":"https://api.github.com/users/ashley-stendel/gists{/gist_id}","starred_url":"https://api.github.com/users/ashley-stendel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashley-stendel/subscriptions","organizations_url":"https://api.github.com/users/ashley-stendel/orgs","repos_url":"https://api.github.com/users/ashley-stendel/repos","events_url":"https://api.github.com/users/ashley-stendel/events{/privacy}","received_events_url":"https://api.github.com/users/ashley-stendel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-09T15:46:08Z","updated_at":"2018-03-09T16:27:15Z","closed_at":null,"author_association":"NONE","body":"Hi!\r\n\r\nWe are trying to pass in a python script with 1.0.1.RELEASE. The file is executable. \r\nwe created the following stream \r\n`stream create --name converter --definition \" http | python-jython --git.uri=https://github.com/ritceynoah/json2xml --jython.script=json2xml.py | log\"`\r\n\r\nand \r\n\r\n`stream create --name converter --definition \" http | python-jython --jython.script=~/Documents/json2xml.py | log\"`\r\n\r\nWe are deploying to kubernetes and we get the following error in our logs.\r\n`Caused by: java.lang.IllegalArgumentException: Cannot access script json2xml.py`\r\n\r\nI think it can't find the file.... any suggestions on where we went wrong?\r\n\r\nThank you! "},"comment":{"url":"https://api.github.com/repos/spring-cloud-stream-app-starters/python/issues/comments/371862953","html_url":"https://github.com/spring-cloud-stream-app-starters/python/issues/12#issuecomment-371862953","issue_url":"https://api.github.com/repos/spring-cloud-stream-app-starters/python/issues/12","id":371862953,"user":{"login":"sabbyanandan","id":1562654,"avatar_url":"https://avatars1.githubusercontent.com/u/1562654?v=4","gravatar_id":"","url":"https://api.github.com/users/sabbyanandan","html_url":"https://github.com/sabbyanandan","followers_url":"https://api.github.com/users/sabbyanandan/followers","following_url":"https://api.github.com/users/sabbyanandan/following{/other_user}","gists_url":"https://api.github.com/users/sabbyanandan/gists{/gist_id}","starred_url":"https://api.github.com/users/sabbyanandan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabbyanandan/subscriptions","organizations_url":"https://api.github.com/users/sabbyanandan/orgs","repos_url":"https://api.github.com/users/sabbyanandan/repos","events_url":"https://api.github.com/users/sabbyanandan/events{/privacy}","received_events_url":"https://api.github.com/users/sabbyanandan/received_events","type":"User","site_admin":false},"created_at":"2018-03-09T16:27:15Z","updated_at":"2018-03-09T16:27:15Z","author_association":"CONTRIBUTOR","body":"Thanks. A quick review of how [`PathMatchingResourcePatternResolver`](https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/core/io/support/PathMatchingResourcePatternResolver.html) resolves artifacts (we use it [here](https://github.com/spring-cloud-stream-app-starters/python/blob/master/python-app-starters-common/src/main/java/org/springframework/cloud/stream/app/python/script/ScriptProperties.java#L66)), it appears the script may have to be a fully qualified path. \r\n\r\nYou could enable DEBUG logs for --logging.org.springframework.core.io.support=DEBUG` - you can supply it as a property for `python-jython` in the stream definition.\r\n\r\nAlso, it might be easier to troubleshoot it in the Local server - quicker feedback. If it works Local, it will on K8S, too.\r\n\r\n@dturanski: Any other ideas?"}}
{"actor":{"display_login":"sabbyanandan"}}