{"action":"created","issue":{"url":"https://api.github.com/repos/rackerlabs/gradle-jaxb-plugin/issues/38","repository_url":"https://api.github.com/repos/rackerlabs/gradle-jaxb-plugin","labels_url":"https://api.github.com/repos/rackerlabs/gradle-jaxb-plugin/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/rackerlabs/gradle-jaxb-plugin/issues/38/comments","events_url":"https://api.github.com/repos/rackerlabs/gradle-jaxb-plugin/issues/38/events","html_url":"https://github.com/rackerlabs/gradle-jaxb-plugin/issues/38","id":326667321,"node_id":"MDU6SXNzdWUzMjY2NjczMjE=","number":38,"title":"Cannot get property 'managedNodes' on null objects","user":{"login":"felixgao","id":1153820,"node_id":"MDQ6VXNlcjExNTM4MjA=","avatar_url":"https://avatars1.githubusercontent.com/u/1153820?v=4","gravatar_id":"","url":"https://api.github.com/users/felixgao","html_url":"https://github.com/felixgao","followers_url":"https://api.github.com/users/felixgao/followers","following_url":"https://api.github.com/users/felixgao/following{/other_user}","gists_url":"https://api.github.com/users/felixgao/gists{/gist_id}","starred_url":"https://api.github.com/users/felixgao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixgao/subscriptions","organizations_url":"https://api.github.com/users/felixgao/orgs","repos_url":"https://api.github.com/users/felixgao/repos","events_url":"https://api.github.com/users/felixgao/events{/privacy}","received_events_url":"https://api.github.com/users/felixgao/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-05-25T21:20:41Z","updated_at":"2018-06-28T18:22:27Z","closed_at":"2018-06-28T18:22:27Z","author_association":"NONE","body":"Trying to use the jaxb plugin and my xsd file is located at src/main/resources/schema/axml.xsd\r\n\r\nThe interesting part of the gradle file is the following\r\n```\r\ndependencies {\r\n    //####################### XJC - JDK 1.7/1.8 ####################\r\n    jaxb 'com.sun.xml.bind:jaxb-xjc:2.2.7-b41'\r\n    jaxb 'com.sun.xml.bind:jaxb-impl:2.2.7-b41'\r\n    jaxb 'javax.xml.bind:jaxb-api:2.2.7'\r\n    jaxb 'org.jvnet.jaxb2_commons:jaxb2-basics-ant:0.6.5'\r\n\r\n\r\n    compile \"org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version\"\r\n    testCompile group: 'junit', name: 'junit', version: '4.12'\r\n}\r\ndef generatedSrcDir = '${project.buildDir}/generated-sources'\r\n//####################### XJC - JDK 1.7/1.8 ####################\r\njaxb {\r\n    xsdDir = \"src/main/resources/schema\"\r\n\r\n    xjc {\r\n        generateEpisodeFiles = false\r\n        taskClassname        = \"org.jvnet.jaxb2_commons.xjc.XJC2Task\"\r\n        generatePackage      = \"com.example.bizapps.service.osb.generated.schema\"\r\n        args                 = [\"-Xinheritance\", \"-Xannotate\"]\r\n        destinationDir       = generatedSrcDir\r\n    }\r\n}\r\n\r\nsourceSets {\r\n    generated {\r\n        java {\r\n            srcDirs += generatedSrcDir\r\n        }\r\n    }\r\n    main {\r\n        java {\r\n            compileClasspath += generated.output\r\n            runtimeClasspath += generated.output\r\n        }\r\n        output.dir(sourceSets.generated.output.classesDir, builtBy: 'compileGeneratedJava')\r\n    }\r\n}\r\n\r\ncompileJava.dependsOn xjc\r\n```\r\n\r\n./gradlew --version \r\n```\r\n------------------------------------------------------------\r\nGradle 4.4\r\n------------------------------------------------------------\r\n\r\nBuild time:   2017-12-06 09:05:06 UTC\r\nRevision:     cf7821a6f79f8e2a598df21780e3ff7ce8db2b82\r\n\r\nGroovy:       2.4.12\r\nAnt:          Apache Ant(TM) version 1.9.9 compiled on February 2 2017\r\nJVM:          1.8.0_144 (Oracle Corporation 25.144-b01)\r\nOS:           Mac OS X 10.13.4 x86_64\r\n```\r\nwhen I run ./gradlew --stacktrace :xjc\r\n\r\n```\r\nCaused by: java.lang.NullPointerException: Cannot get property 'managedNodes' on null object\r\n        at org.openrepose.gradle.plugins.jaxb.task.JaxbXjc.start(JaxbXjc.groovy:104)\r\n        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)\r\n        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:46)\r\n        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)\r\n        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)\r\n        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:780)\r\n        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:747)\r\n        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:121)\r\n        at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)\r\n        at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)\r\n        at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)\r\n        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)\r\n        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:110)\r\n        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)\r\n        ... 29 more\r\n```\r\nNot sure what it is actually looking for since the doc does not mention anything regarding the 'managedNodes' property."},"comment":{"url":"https://api.github.com/repos/rackerlabs/gradle-jaxb-plugin/issues/comments/401128140","html_url":"https://github.com/rackerlabs/gradle-jaxb-plugin/issues/38#issuecomment-401128140","issue_url":"https://api.github.com/repos/rackerlabs/gradle-jaxb-plugin/issues/38","id":401128140,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTEyODE0MA==","user":{"login":"wdschei","id":7366196,"node_id":"MDQ6VXNlcjczNjYxOTY=","avatar_url":"https://avatars2.githubusercontent.com/u/7366196?v=4","gravatar_id":"","url":"https://api.github.com/users/wdschei","html_url":"https://github.com/wdschei","followers_url":"https://api.github.com/users/wdschei/followers","following_url":"https://api.github.com/users/wdschei/following{/other_user}","gists_url":"https://api.github.com/users/wdschei/gists{/gist_id}","starred_url":"https://api.github.com/users/wdschei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wdschei/subscriptions","organizations_url":"https://api.github.com/users/wdschei/orgs","repos_url":"https://api.github.com/users/wdschei/repos","events_url":"https://api.github.com/users/wdschei/events{/privacy}","received_events_url":"https://api.github.com/users/wdschei/received_events","type":"User","site_admin":false},"created_at":"2018-06-28T18:22:27Z","updated_at":"2018-06-28T18:22:27Z","author_association":"COLLABORATOR","body":"This is a duplicate of #36 ."}}
{"actor":{"display_login":"wdschei"}}