{"action":"reopened","issue":{"url":"https://api.github.com/repos/eclipse/smarthome/issues/3335","repository_url":"https://api.github.com/repos/eclipse/smarthome","labels_url":"https://api.github.com/repos/eclipse/smarthome/issues/3335/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/smarthome/issues/3335/comments","events_url":"https://api.github.com/repos/eclipse/smarthome/issues/3335/events","html_url":"https://github.com/eclipse/smarthome/issues/3335","id":225116918,"number":3335,"title":"Model validation fails with NPE","user":{"login":"kaikreuzer","id":3244965,"avatar_url":"https://avatars3.githubusercontent.com/u/3244965?v=4","gravatar_id":"","url":"https://api.github.com/users/kaikreuzer","html_url":"https://github.com/kaikreuzer","followers_url":"https://api.github.com/users/kaikreuzer/followers","following_url":"https://api.github.com/users/kaikreuzer/following{/other_user}","gists_url":"https://api.github.com/users/kaikreuzer/gists{/gist_id}","starred_url":"https://api.github.com/users/kaikreuzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaikreuzer/subscriptions","organizations_url":"https://api.github.com/users/kaikreuzer/orgs","repos_url":"https://api.github.com/users/kaikreuzer/repos","events_url":"https://api.github.com/users/kaikreuzer/events{/privacy}","received_events_url":"https://api.github.com/users/kaikreuzer/received_events","type":"User","site_admin":false},"labels":[{"id":74198568,"url":"https://api.github.com/repos/eclipse/smarthome/labels/bug","name":"bug","color":"fc2929","default":true},{"id":294421315,"url":"https://api.github.com/repos/eclipse/smarthome/labels/DSL","name":"DSL","color":"c7def8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-04-28T15:35:04Z","updated_at":"2017-12-15T19:30:21Z","closed_at":null,"author_association":"MEMBER","body":"I sometimes find exceptions like the following in my log:\r\n```\r\n17:21:16.762 [ERROR] [xbase.resource.BatchLinkableResource] - resolution of uriFragment '|::0.2.0.2.0.0.0.6.7::0::/1' failed.\r\njava.lang.NullPointerException\r\n\tat org.eclipse.xtext.xbase.resource.BatchLinkingService.resolveBatched(BatchLinkingService.java:62)\r\n\tat org.eclipse.xtext.xbase.resource.BatchLinkingService.resolveBatched(BatchLinkingService.java:41)\r\n\tat org.eclipse.xtext.xbase.resource.BatchLinkableResource.getEObject(BatchLinkableResource.java:117)\r\n\tat org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getEObject(ResourceSetImpl.java:223)\r\n\tat org.eclipse.emf.ecore.util.EcoreUtil.resolve(EcoreUtil.java:199)\r\n\tat org.eclipse.emf.ecore.util.EcoreUtil.resolve(EcoreUtil.java:259)\r\n\tat org.eclipse.emf.ecore.impl.BasicEObjectImpl.eResolveProxy(BasicEObjectImpl.java:1477)\r\n\tat org.eclipse.xtext.xbase.impl.XAbstractFeatureCallImplCustom.getFeature(XAbstractFeatureCallImplCustom.java:48)\r\n\tat org.eclipse.xtext.xbase.impl.XAbstractFeatureCallImpl.eGet(XAbstractFeatureCallImpl.java:490)\r\n\tat org.eclipse.xtext.xbase.impl.XFeatureCallImpl.eGet(XFeatureCallImpl.java:256)\r\n\tat org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1011)\r\n\tat org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1003)\r\n\tat org.eclipse.emf.ecore.util.EContentsEList$FeatureIteratorImpl.hasNext(EContentsEList.java:439)\r\n\tat org.eclipse.emf.ecore.util.EObjectValidator.validate_EveryReferenceIsContained(EObjectValidator.java:782)\r\n\tat org.eclipse.emf.ecore.util.EObjectValidator.validate_EveryDefaultConstraint(EObjectValidator.java:355)\r\n\tat org.eclipse.emf.ecore.util.EObjectValidator$DynamicEClassValidator.validate(EObjectValidator.java:1420)\r\n\tat org.eclipse.emf.ecore.util.EObjectValidator$DynamicEClassValidator.validate(EObjectValidator.java:1423)\r\n\tat org.eclipse.emf.ecore.util.EObjectValidator$DynamicEClassValidator.validate(EObjectValidator.java:1423)\r\n\tat org.eclipse.emf.ecore.util.EObjectValidator.validate(EObjectValidator.java:333)\r\n\tat org.eclipse.xtext.validation.CompositeEValidator.validate(CompositeEValidator.java:151)\r\n\tat org.eclipse.emf.ecore.util.Diagnostician.doValidate(Diagnostician.java:171)\r\n\tat org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:158)\r\n\tat org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:137)\r\n\tat org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:185)\r\n\tat org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:161)\r\n\tat org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:137)\r\n\tat org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:181)\r\n\tat org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:161)\r\n\tat org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:137)\r\n\tat org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:181)\r\n\tat org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:161)\r\n\tat org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:137)\r\n\tat org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:181)\r\n\tat org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:161)\r\n\tat org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:137)\r\n\tat org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:185)\r\n\tat org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:161)\r\n\tat org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:137)\r\n\tat org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:185)\r\n\tat org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:161)\r\n\tat org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:137)\r\n\tat org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:108)\r\n\tat org.eclipse.smarthome.model.core.internal.ModelRepositoryImpl.validateModel(ModelRepositoryImpl.java:264)\r\n\tat org.eclipse.smarthome.model.core.internal.ModelRepositoryImpl.addOrRefreshModel(ModelRepositoryImpl.java:90)\r\n\tat org.eclipse.smarthome.model.core.internal.folder.FolderObserver.checkFile(FolderObserver.java:244)\r\n\tat org.eclipse.smarthome.model.core.internal.folder.FolderObserver.processIgnoredFiles(FolderObserver.java:97)\r\n\tat org.eclipse.smarthome.model.core.internal.folder.FolderObserver.addModelParser(FolderObserver.java:82)\r\n```\r\nI assume that there is some race condition bug within Xtext - accepting that it exists, we should at least catch and make the log nicer."}}
{"actor":{"display_login":"kaikreuzer"}}