{"action":"created","issue":{"url":"https://api.github.com/repos/webanno/webanno/issues/76","labels_url":"https://api.github.com/repos/webanno/webanno/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/webanno/webanno/issues/76/comments","events_url":"https://api.github.com/repos/webanno/webanno/issues/76/events","html_url":"https://github.com/webanno/webanno/issues/76","id":101125642,"number":76,"title":"Importing same Tagset file twice causes application to crash","user":{"login":"aakashysharma","id":1897100,"avatar_url":"https://avatars.githubusercontent.com/u/1897100?v=3","gravatar_id":"","url":"https://api.github.com/users/aakashysharma","html_url":"https://github.com/aakashysharma","followers_url":"https://api.github.com/users/aakashysharma/followers","following_url":"https://api.github.com/users/aakashysharma/following{/other_user}","gists_url":"https://api.github.com/users/aakashysharma/gists{/gist_id}","starred_url":"https://api.github.com/users/aakashysharma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aakashysharma/subscriptions","organizations_url":"https://api.github.com/users/aakashysharma/orgs","repos_url":"https://api.github.com/users/aakashysharma/repos","events_url":"https://api.github.com/users/aakashysharma/events{/privacy}","received_events_url":"https://api.github.com/users/aakashysharma/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webanno/webanno/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/webanno/webanno/labels/Settings","name":"Settings","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"aakashysharma","id":1897100,"avatar_url":"https://avatars.githubusercontent.com/u/1897100?v=3","gravatar_id":"","url":"https://api.github.com/users/aakashysharma","html_url":"https://github.com/aakashysharma","followers_url":"https://api.github.com/users/aakashysharma/followers","following_url":"https://api.github.com/users/aakashysharma/following{/other_user}","gists_url":"https://api.github.com/users/aakashysharma/gists{/gist_id}","starred_url":"https://api.github.com/users/aakashysharma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aakashysharma/subscriptions","organizations_url":"https://api.github.com/users/aakashysharma/orgs","repos_url":"https://api.github.com/users/aakashysharma/repos","events_url":"https://api.github.com/users/aakashysharma/events{/privacy}","received_events_url":"https://api.github.com/users/aakashysharma/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/webanno/webanno/milestones/1","html_url":"https://github.com/webanno/webanno/milestones/3.0.0","labels_url":"https://api.github.com/repos/webanno/webanno/milestones/1/labels","id":1141640,"number":1,"title":"3.0.0","description":"","creator":{"login":"reckart","id":1410238,"avatar_url":"https://avatars.githubusercontent.com/u/1410238?v=3","gravatar_id":"","url":"https://api.github.com/users/reckart","html_url":"https://github.com/reckart","followers_url":"https://api.github.com/users/reckart/followers","following_url":"https://api.github.com/users/reckart/following{/other_user}","gists_url":"https://api.github.com/users/reckart/gists{/gist_id}","starred_url":"https://api.github.com/users/reckart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reckart/subscriptions","organizations_url":"https://api.github.com/users/reckart/orgs","repos_url":"https://api.github.com/users/reckart/repos","events_url":"https://api.github.com/users/reckart/events{/privacy}","received_events_url":"https://api.github.com/users/reckart/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":18,"state":"open","created_at":"2015-05-31T10:52:24Z","updated_at":"2015-08-15T18:52:14Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-08-15T00:19:09Z","updated_at":"2015-08-15T23:49:30Z","closed_at":null,"body":"Steps to recreate\r\n\r\n1.Import same tagset file twice, it'd import without showing an error.\r\n2.Navigate to Layers tab in Project settings.\r\n3. Select the layer which is already configured to use the tagset used in step 1.\r\n4. The application crashes.\r\n\r\n```\r\nCaused by: javax.persistence.EntityNotFoundException: Unable to find de.tudarmstadt.ukp.clarin.webanno.model.TagSet with id 11\r\n\tat org.hibernate.ejb.Ejb3Configuration$Ejb3EntityNotFoundDelegate.handleEntityNotFound(Ejb3Configuration.java:155)\r\n\tat org.hibernate.event.internal.DefaultLoadEventListener.load(DefaultLoadEventListener.java:210)\r\n\tat org.hibernate.event.internal.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:251)\r\n\tat org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:148)\r\n\tat org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1079)\r\n\tat org.hibernate.internal.SessionImpl.internalLoad(SessionImpl.java:1006)\r\n\tat org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:613)\r\n\tat org.hibernate.type.EntityType.resolve(EntityType.java:441)\r\n\tat org.hibernate.engine.internal.TwoPhaseLoad.doInitializeEntity(TwoPhaseLoad.java:168)\r\n\tat org.hibernate.engine.internal.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:134)\r\n\tat org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:995)\r\n\tat org.hibernate.loader.Loader.doQuery(Loader.java:874)\r\n\tat org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:289)\r\n\tat org.hibernate.loader.Loader.doList(Loader.java:2438)\r\n\tat org.hibernate.loader.Loader.doList(Loader.java:2424)\r\n\tat org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2254)\r\n\tat org.hibernate.loader.Loader.list(Loader.java:2249)\r\n\tat org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:470)\r\n\tat org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:355)\r\n\tat org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:195)\r\n\tat org.hibernate.internal.SessionImpl.list(SessionImpl.java:1248)\r\n\tat org.hibernate.internal.QueryImpl.list(QueryImpl.java:101)\r\n\tat org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:257)\r\n\tat de.tudarmstadt.ukp.clarin.webanno.api.dao.AnnotationServiceImpl.listAnnotationFeature(AnnotationServiceImpl.java:676)\r\n\tat sun.reflect.GeneratedMethodAccessor146.invoke(Unknown Source)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)\r\n\tat java.lang.reflect.Method.invoke(Unknown Source)\r\n\tat org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)\r\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)\r\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)\r\n\tat org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)\r\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)\r\n\tat org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)\r\n\tat com.sun.proxy.$Proxy38.listAnnotationFeature(Unknown Source)\r\n\tat sun.reflect.GeneratedMethodAccessor146.invoke(Unknown Source)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)\r\n\tat java.lang.reflect.Method.invoke(Unknown Source)\r\n\tat org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:480)\r\n\tat com.sun.proxy.$Proxy52.listAnnotationFeature(Unknown Source)\r\n\tat de.tudarmstadt.ukp.clarin.webanno.project.page.ProjectLayersPanel$FeatureSelectionForm$3.load(ProjectLayersPanel.java:1138)\r\n\tat de.tudarmstadt.ukp.clarin.webanno.project.page.ProjectLayersPanel$FeatureSelectionForm$3.load(ProjectLayersPanel.java:1)\r\n\tat org.apache.wicket.model.LoadableDetachableModel.getObject(LoadableDetachableModel.java:124)\r\n\tat org.apache.wicket.markup.html.form.AbstractChoice.getChoices(AbstractChoice.java:230)\r\n\tat org.apache.wicket.markup.html.form.AbstractChoice.onComponentTagBody(AbstractChoice.java:368)\r\n\tat org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:71)\r\n\tat org.apache.wicket.Component.internalRenderComponent(Component.java:2536)\r\n\t... 82 more\r\n```"},"comment":{"url":"https://api.github.com/repos/webanno/webanno/issues/comments/131469970","html_url":"https://github.com/webanno/webanno/issues/76#issuecomment-131469970","issue_url":"https://api.github.com/repos/webanno/webanno/issues/76","id":131469970,"user":{"login":"reckart","id":1410238,"avatar_url":"https://avatars.githubusercontent.com/u/1410238?v=3","gravatar_id":"","url":"https://api.github.com/users/reckart","html_url":"https://github.com/reckart","followers_url":"https://api.github.com/users/reckart/followers","following_url":"https://api.github.com/users/reckart/following{/other_user}","gists_url":"https://api.github.com/users/reckart/gists{/gist_id}","starred_url":"https://api.github.com/users/reckart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reckart/subscriptions","organizations_url":"https://api.github.com/users/reckart/orgs","repos_url":"https://api.github.com/users/reckart/repos","events_url":"https://api.github.com/users/reckart/events{/privacy}","received_events_url":"https://api.github.com/users/reckart/received_events","type":"User","site_admin":false},"created_at":"2015-08-15T23:49:30Z","updated_at":"2015-08-15T23:49:30Z","body":"This should be resolved when double-import is prevented in the first place."}}