{"action":"closed","issue":{"url":"https://api.github.com/repos/UnifiedViews/Core/issues/23","labels_url":"https://api.github.com/repos/UnifiedViews/Core/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/UnifiedViews/Core/issues/23/comments","events_url":"https://api.github.com/repos/UnifiedViews/Core/issues/23/events","html_url":"https://github.com/UnifiedViews/Core/issues/23","id":29626476,"number":23,"title":"When trying to replace jar file with a different one, problem is not clearly presented to the user","user":{"login":"tomas-knap","id":3014917,"avatar_url":"https://avatars.githubusercontent.com/u/3014917?v=3","gravatar_id":"","url":"https://api.github.com/users/tomas-knap","html_url":"https://github.com/tomas-knap","followers_url":"https://api.github.com/users/tomas-knap/followers","following_url":"https://api.github.com/users/tomas-knap/following{/other_user}","gists_url":"https://api.github.com/users/tomas-knap/gists{/gist_id}","starred_url":"https://api.github.com/users/tomas-knap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomas-knap/subscriptions","organizations_url":"https://api.github.com/users/tomas-knap/orgs","repos_url":"https://api.github.com/users/tomas-knap/repos","events_url":"https://api.github.com/users/tomas-knap/events{/privacy}","received_events_url":"https://api.github.com/users/tomas-knap/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/UnifiedViews/Core/labels/priority:%20Low","name":"priority: Low","color":"bfe5bf"},{"url":"https://api.github.com/repos/UnifiedViews/Core/labels/severity:%20enhancement","name":"severity: enhancement","color":"c7def8"}],"state":"closed","locked":false,"assignee":{"login":"skodape","id":3341693,"avatar_url":"https://avatars.githubusercontent.com/u/3341693?v=3","gravatar_id":"","url":"https://api.github.com/users/skodape","html_url":"https://github.com/skodape","followers_url":"https://api.github.com/users/skodape/followers","following_url":"https://api.github.com/users/skodape/following{/other_user}","gists_url":"https://api.github.com/users/skodape/gists{/gist_id}","starred_url":"https://api.github.com/users/skodape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skodape/subscriptions","organizations_url":"https://api.github.com/users/skodape/orgs","repos_url":"https://api.github.com/users/skodape/repos","events_url":"https://api.github.com/users/skodape/events{/privacy}","received_events_url":"https://api.github.com/users/skodape/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2014-03-18T08:14:04Z","updated_at":"2015-03-10T10:12:44Z","closed_at":"2015-03-10T10:12:44Z","body":"When replacing an existing jar file X, but accidentally selects jar file Y, which is already loaded as DPU template, a generic error appears: \r\n\r\n\"Cannot replace DPU template\"\r\n\r\nBut in the log, there is more useful message: \r\n\r\n2014-03-18 09:08:21,188 [http-bio-8080-exec-660] WARN  c.c.m.x.o.commons.app.module.DPUModuleManipulator - Failed to load bunle during replace.\r\ncz.cuni.mff.xrg.odcs.commons.app.module.ModuleException: Failed to update bundle.\r\n\tat cz.cuni.mff.xrg.odcs.commons.app.module.osgi.OSGIModuleFacade.update(OSGIModuleFacade.java:203) ~[commons-app-1.0.0.jar:na]\r\n\tat cz.cuni.mff.xrg.odcs.commons.app.module.DPUModuleManipulator.replace(DPUModuleManipulator.java:309) ~[commons-app-1.0.0.jar:na]\r\n\tat cz.cuni.mff.xrg.odcs.frontend.gui.views.dpu.DPUPresenterImpl.copyToTarget(DPUPresenterImpl.java:237) [DPUPresenterImpl.class:na]\r\n\tat cz.cuni.mff.xrg.odcs.frontend.gui.views.dpu.DPUPresenterImpl.dpuUploaded(DPUPresenterImpl.java:217) [DPUPresenterImpl.class:na]\r\n\tat cz.cuni.mff.xrg.odcs.frontend.gui.views.dpu.DPUPresenterImpl.dpuUploadedEventHandler(DPUPresenterImpl.java:278) [DPUPresenterImpl.class:na]\r\n\tat cz.cuni.mff.xrg.odcs.frontend.gui.views.dpu.DPUViewImpl$15.uploadSucceeded(DPUViewImpl.java:637) [DPUViewImpl$15.class:na]\r\n\tat cz.cuni.mff.xrg.odcs.frontend.gui.AuthAwareUploadSucceededWrapper.uploadSucceeded(AuthAwareUploadSucceededWrapper.java:50) [AuthAwareUploadSucceededWrapper.class:na]\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_40]\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_40]\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_40]\r\n\tat java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_40]\r\n\tat com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:508) [vaadin-server-7.1.8.jar:7.1.8]\r\n\tat com.vaadin.event.EventRouter.fireEvent(EventRouter.java:167) [vaadin-server-7.1.8.jar:7.1.8]\r\n\tat com.vaadin.server.AbstractClientConnector.fireEvent(AbstractClientConnector.java:969) [vaadin-server-7.1.8.jar:7.1.8]\r\n\tat com.vaadin.ui.Upload.fireUploadSuccess(Upload.java:811) [vaadin-server-7.1.8.jar:7.1.8]\r\n\tat com.vaadin.ui.Upload$1.streamingFinished(Upload.java:1070) [vaadin-server-7.1.8.jar:7.1.8]\r\n\tat com.vaadin.server.communication.FileUploadHandler.streamToReceiver(FileUploadHandler.java:567) [vaadin-server-7.1.8.jar:7.1.8]\r\n\tat com.vaadin.server.communication.FileUploadHandler.handleFileUploadValidationAndData(FileUploadHandler.java:432) [vaadin-server-7.1.8.jar:7.1.8]\r\n\tat com.vaadin.server.communication.FileUploadHandler.doHandleSimpleMultipartFileUpload(FileUploadHandler.java:395) [vaadin-server-7.1.8.jar:7.1.8]\r\n\tat com.vaadin.server.communication.FileUploadHandler.handleRequest(FileUploadHandler.java:280) [vaadin-server-7.1.8.jar:7.1.8]\r\n\tat com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1371) [vaadin-server-7.1.8.jar:7.1.8]\r\n\tat com.vaadin.server.VaadinServlet.service(VaadinServlet.java:238) [vaadin-server-7.1.8.jar:7.1.8]\r\n\tat cz.cuni.mff.xrg.odcs.frontend.ODCSApplicationServlet.service(ODCSApplicationServlet.java:74) [ODCSApplicationServlet.class:na]\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:728) [servlet-api.jar:na]\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) [catalina.jar:7.0.33]\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.33]\r\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) [catalina.jar:7.0.33]\r\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) [catalina.jar:7.0.33]\r\n\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) [catalina.jar:7.0.33]\r\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) [catalina.jar:7.0.33]\r\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) [catalina.jar:7.0.33]\r\n\tat org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:931) [catalina.jar:7.0.33]\r\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [catalina.jar:7.0.33]\r\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) [catalina.jar:7.0.33]\r\n\tat org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004) [tomcat-coyote.jar:7.0.33]\r\n\tat org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) [tomcat-coyote.jar:7.0.33]\r\n\tat org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) [tomcat-coyote.jar:7.0.33]\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_40]\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_40]\r\n\tat java.lang.Thread.run(Thread.java:724) [na:1.7.0_40]\r\nCaused by: org.eclipse.osgi.framework.internal.core.Framework$DuplicateBundleException: Bundle \"cz.cuni.mff.xrg.odcs.MetadataForm\" version \"1.0.0\" has already been installed from: file:////data/odcs/target/dpu/MetadataForm/MetadataForm-1.0.0.jar\r\n\tat org.eclipse.osgi.framework.internal.core.Framework.createAndVerifyBundle(Framework.java:722) ~[org.eclipse.osgi-3.9.0.v20130305-2200.jar:na]\r\n\tat org.eclipse.osgi.framework.internal.core.Framework.installWorkerPrivileged(Framework.java:942) ~[org.eclipse.osgi-3.9.0.v20130305-2200.jar:na]\r\n\tat org.eclipse.osgi.framework.internal.core.Framework$1.run(Framework.java:845) ~[org.eclipse.osgi-3.9.0.v20130305-2200.jar:na]\r\n\tat org.eclipse.osgi.framework.internal.core.Framework$1.run(Framework.java:1) ~[org.eclipse.osgi-3.9.0.v20130305-2200.jar:na]\r\n\tat java.security.AccessController.doPrivileged(Native Method) ~[na:1.7.0_40]\r\n\tat org.eclipse.osgi.framework.internal.core.Framework.installWorker(Framework.java:904) ~[org.eclipse.osgi-3.9.0.v20130305-2200.jar:na]\r\n\tat org.eclipse.osgi.framework.internal.core.Framework.installBundle(Framework.java:840) ~[org.eclipse.osgi-3.9.0.v20130305-2200.jar:na]\r\n\tat org.eclipse.osgi.framework.internal.core.BundleContextImpl.installBundle(BundleContextImpl.java:137) ~[org.eclipse.osgi-3.9.0.v20130305-2200.jar:na]\r\n\tat org.eclipse.osgi.framework.internal.core.BundleContextImpl.installBundle(BundleContextImpl.java:131) ~[org.eclipse.osgi-3.9.0.v20130305-2200.jar:na]\r\n\tat cz.cuni.mff.xrg.odcs.commons.app.module.osgi.BundleContainer.update(BundleContainer.java:223) ~[commons-app-1.0.0.jar:na]\r\n\tat cz.cuni.mff.xrg.odcs.commons.app.module.osgi.OSGIModuleFacade.update(OSGIModuleFacade.java:201) ~[commons-app-1.0.0.jar:na]\r\n\t... 39 common frames omitted\r\n2014-03-18 09:08:21,218 [http-bio-8080-exec-660] DEBUG org.eclipse.persistence.logging.sql - 2014-03-18 09:08:21.218--ServerSession(1794356567)--Connection(624302659)--SELECT ID, config_valid, description, jar_description, jar_directory, jar_name, name, configuration, visibility, TYPE, use_dpu_description, user_id, parent_id FROM dpu_template WHERE (ID = ?)\r\n\tbind => [226]\r\n\r\n\r\nSolution: Please provide more information to the user, so that he is informed that he is trying to replace DPU template X with DPU template Y, which will not work. "}}