{"action":"created","issue":{"url":"https://api.github.com/repos/OpenLiberty/open-liberty-tools/issues/29","repository_url":"https://api.github.com/repos/OpenLiberty/open-liberty-tools","labels_url":"https://api.github.com/repos/OpenLiberty/open-liberty-tools/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/OpenLiberty/open-liberty-tools/issues/29/comments","events_url":"https://api.github.com/repos/OpenLiberty/open-liberty-tools/issues/29/events","html_url":"https://github.com/OpenLiberty/open-liberty-tools/issues/29","id":262532849,"number":29,"title":"Display error message when module fails to publish","user":{"login":"johnmcollier","id":6880023,"avatar_url":"https://avatars3.githubusercontent.com/u/6880023?v=4","gravatar_id":"","url":"https://api.github.com/users/johnmcollier","html_url":"https://github.com/johnmcollier","followers_url":"https://api.github.com/users/johnmcollier/followers","following_url":"https://api.github.com/users/johnmcollier/following{/other_user}","gists_url":"https://api.github.com/users/johnmcollier/gists{/gist_id}","starred_url":"https://api.github.com/users/johnmcollier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnmcollier/subscriptions","organizations_url":"https://api.github.com/users/johnmcollier/orgs","repos_url":"https://api.github.com/users/johnmcollier/repos","events_url":"https://api.github.com/users/johnmcollier/events{/privacy}","received_events_url":"https://api.github.com/users/johnmcollier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"johnmcollier","id":6880023,"avatar_url":"https://avatars3.githubusercontent.com/u/6880023?v=4","gravatar_id":"","url":"https://api.github.com/users/johnmcollier","html_url":"https://github.com/johnmcollier","followers_url":"https://api.github.com/users/johnmcollier/followers","following_url":"https://api.github.com/users/johnmcollier/following{/other_user}","gists_url":"https://api.github.com/users/johnmcollier/gists{/gist_id}","starred_url":"https://api.github.com/users/johnmcollier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnmcollier/subscriptions","organizations_url":"https://api.github.com/users/johnmcollier/orgs","repos_url":"https://api.github.com/users/johnmcollier/repos","events_url":"https://api.github.com/users/johnmcollier/events{/privacy}","received_events_url":"https://api.github.com/users/johnmcollier/received_events","type":"User","site_admin":false},"assignees":[{"login":"johnmcollier","id":6880023,"avatar_url":"https://avatars3.githubusercontent.com/u/6880023?v=4","gravatar_id":"","url":"https://api.github.com/users/johnmcollier","html_url":"https://github.com/johnmcollier","followers_url":"https://api.github.com/users/johnmcollier/followers","following_url":"https://api.github.com/users/johnmcollier/following{/other_user}","gists_url":"https://api.github.com/users/johnmcollier/gists{/gist_id}","starred_url":"https://api.github.com/users/johnmcollier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnmcollier/subscriptions","organizations_url":"https://api.github.com/users/johnmcollier/orgs","repos_url":"https://api.github.com/users/johnmcollier/repos","events_url":"https://api.github.com/users/johnmcollier/events{/privacy}","received_events_url":"https://api.github.com/users/johnmcollier/received_events","type":"User","site_admin":false},{"login":"eharris369","id":9484320,"avatar_url":"https://avatars0.githubusercontent.com/u/9484320?v=4","gravatar_id":"","url":"https://api.github.com/users/eharris369","html_url":"https://github.com/eharris369","followers_url":"https://api.github.com/users/eharris369/followers","following_url":"https://api.github.com/users/eharris369/following{/other_user}","gists_url":"https://api.github.com/users/eharris369/gists{/gist_id}","starred_url":"https://api.github.com/users/eharris369/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eharris369/subscriptions","organizations_url":"https://api.github.com/users/eharris369/orgs","repos_url":"https://api.github.com/users/eharris369/repos","events_url":"https://api.github.com/users/eharris369/events{/privacy}","received_events_url":"https://api.github.com/users/eharris369/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-10-03T18:19:37Z","updated_at":"2017-10-03T18:57:08Z","closed_at":null,"author_association":"MEMBER","body":"Currently if a module fails to publish on to a server, a NPE will be thrown without any further information as to which module failed to publish. A solution is to wrap the call to either publishDir in JEEPublisher.publishModule (or the call to publishSmart in ApplicationPublisher.publishDir) with a try/catch and print out an error message informing the user which module failed to publish. \r\n\r\n**Example Stack Trace:**\r\n```\r\njava.lang.NullPointerException\r\nat org.eclipse.wst.server.core.util.PublishHelper.publishSmart(PublishHelper.java:331)\r\nat org.eclipse.wst.server.core.util.PublishHelper.publishSmart(PublishHelper.java:367)\r\nat org.eclipse.wst.server.core.util.PublishHelper.publishSmart(PublishHelper.java:367)\r\nat org.eclipse.wst.server.core.util.PublishHelper.publishSmart(PublishHelper.java:188)\r\nat com.ibm.ws.st.core.internal.ApplicationPublisher.publishDir(ApplicationPublisher.java:886)\r\nat com.ibm.ws.st.jee.core.internal.JEEPublisher.publishModule(JEEPublisher.java:170)\r\nat com.ibm.ws.st.core.internal.ApplicationPublisher.publishModuleAndChildren(ApplicationPublisher.java:147)\r\nat com.ibm.ws.st.core.internal.ApplicationPublisher.publishModuleAndChildren(ApplicationPublisher.java:153)\r\nat com.ibm.ws.st.core.internal.ServerExtensionWrapper.publishModuleAndChildren(ServerExtensionWrapper.java:358)\r\nat com.ibm.ws.st.core.internal.WebSphereServerBehaviour.publishApplication(WebSphereServerBehaviour.java:1195)\r\nat com.ibm.ws.st.core.internal.WebSphereServerBehaviour.publishModules(WebSphereServerBehaviour.java:946)\r\nat org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:987)\r\nat org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774)\r\nat org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3172)\r\nat org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:345)\r\nat org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)\r\n```"},"comment":{"url":"https://api.github.com/repos/OpenLiberty/open-liberty-tools/issues/comments/333943854","html_url":"https://github.com/OpenLiberty/open-liberty-tools/issues/29#issuecomment-333943854","issue_url":"https://api.github.com/repos/OpenLiberty/open-liberty-tools/issues/29","id":333943854,"user":{"login":"johnmcollier","id":6880023,"avatar_url":"https://avatars3.githubusercontent.com/u/6880023?v=4","gravatar_id":"","url":"https://api.github.com/users/johnmcollier","html_url":"https://github.com/johnmcollier","followers_url":"https://api.github.com/users/johnmcollier/followers","following_url":"https://api.github.com/users/johnmcollier/following{/other_user}","gists_url":"https://api.github.com/users/johnmcollier/gists{/gist_id}","starred_url":"https://api.github.com/users/johnmcollier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnmcollier/subscriptions","organizations_url":"https://api.github.com/users/johnmcollier/orgs","repos_url":"https://api.github.com/users/johnmcollier/repos","events_url":"https://api.github.com/users/johnmcollier/events{/privacy}","received_events_url":"https://api.github.com/users/johnmcollier/received_events","type":"User","site_admin":false},"created_at":"2017-10-03T18:57:08Z","updated_at":"2017-10-03T18:57:08Z","author_association":"MEMBER","body":"@eharris369 Assigning this to you since this seems to be server tools change that needs to be made, feel free to reassign if necessary."}}
{"actor":{"display_login":"johnmcollier"}}