{"action":"created","issue":{"url":"https://api.github.com/repos/tiku01/oryx-editor/issues/522","labels_url":"https://api.github.com/repos/tiku01/oryx-editor/issues/522/labels{/name}","comments_url":"https://api.github.com/repos/tiku01/oryx-editor/issues/522/comments","events_url":"https://api.github.com/repos/tiku01/oryx-editor/issues/522/events","html_url":"https://github.com/tiku01/oryx-editor/issues/522","id":74315834,"number":522,"title":"BPMN import only working by copy&paste, file-selector dis-functional","user":{"login":"tiku01","id":10668325,"avatar_url":"https://avatars.githubusercontent.com/u/10668325?v=3","gravatar_id":"","url":"https://api.github.com/users/tiku01","html_url":"https://github.com/tiku01","followers_url":"https://api.github.com/users/tiku01/followers","following_url":"https://api.github.com/users/tiku01/following{/other_user}","gists_url":"https://api.github.com/users/tiku01/gists{/gist_id}","starred_url":"https://api.github.com/users/tiku01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiku01/subscriptions","organizations_url":"https://api.github.com/users/tiku01/orgs","repos_url":"https://api.github.com/users/tiku01/repos","events_url":"https://api.github.com/users/tiku01/events{/privacy}","received_events_url":"https://api.github.com/users/tiku01/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-08T10:28:48Z","updated_at":"2015-05-26T07:21:47Z","closed_at":null,"body":"When trying to import an exported BPMN, selecting a file and choosing OK doesn't work. Error message given by UI is \"An error occurred while generating the BPMN 2.0 DI XML Serialization\". The log-file shows this after the operation:\r\n````\r\njavax.xml.bind.UnmarshalException\r\n - with linked exception:\r\n[org.xml.sax.SAXParseException; Premature end of file.]\r\n        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:335)\r\n        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:481)\r\n        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:199)\r\n        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)\r\n        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:157)\r\n        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:214)\r\n        at org.oryxeditor.server.BPMN2_0Importer.getJsonFromBpmn20Xml(Unknown Source)\r\n        at org.oryxeditor.server.BPMN2_0Importer.doPost(Unknown Source)\r\n        at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)\r\n        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)\r\n        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)\r\n        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\r\n        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)\r\n        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)\r\n        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)\r\n        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)\r\n        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)\r\n        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)\r\n        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)\r\n        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)\r\n        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)\r\n        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)\r\n        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)\r\n        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\r\n        at java.lang.Thread.run(Thread.java:745)\r\nCaused by: org.xml.sax.SAXParseException; Premature end of file.\r\n        at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)\r\n        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)\r\n        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)\r\n        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)\r\n        at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)\r\n        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)\r\n        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)\r\n        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)\r\n        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)\r\n        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)\r\n        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:195)\r\n        ... 24 more\r\n````\r\nIf one uses copy&paste to input the same file content into the dialogue-box one gets a result (with the problem reported in https://github.com/tiku01/oryx-editor/issues/521). So is the problem with the file content or with the import-routine?"},"comment":{"url":"https://api.github.com/repos/tiku01/oryx-editor/issues/comments/105423440","html_url":"https://github.com/tiku01/oryx-editor/issues/522#issuecomment-105423440","issue_url":"https://api.github.com/repos/tiku01/oryx-editor/issues/522","id":105423440,"user":{"login":"gautamsawala","id":4013622,"avatar_url":"https://avatars.githubusercontent.com/u/4013622?v=3","gravatar_id":"","url":"https://api.github.com/users/gautamsawala","html_url":"https://github.com/gautamsawala","followers_url":"https://api.github.com/users/gautamsawala/followers","following_url":"https://api.github.com/users/gautamsawala/following{/other_user}","gists_url":"https://api.github.com/users/gautamsawala/gists{/gist_id}","starred_url":"https://api.github.com/users/gautamsawala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gautamsawala/subscriptions","organizations_url":"https://api.github.com/users/gautamsawala/orgs","repos_url":"https://api.github.com/users/gautamsawala/repos","events_url":"https://api.github.com/users/gautamsawala/events{/privacy}","received_events_url":"https://api.github.com/users/gautamsawala/received_events","type":"User","site_admin":false},"created_at":"2015-05-26T07:21:47Z","updated_at":"2015-05-26T07:21:47Z","body":"Fixed the event handler that was not importing the file data into the dialog, due to which the error was thrown. \r\nFixed all such event handlers across oryx with #531 "}}