Open eclipse-ocl-bot opened 1 month ago
By Ed Willink on Feb 02, 2023 01:03
The stack trace suggests that something was not correctly initialized and that the deficiency occurred during an Xtext Validation Job. Use of CompositeEValidator indicates an unusual co-existence of multiple validators perhaps CompleteOCL combined with Xtext and ...
I can try to guess at scenarios where this might happen but it would be very time consuming and I might not guess correctly.
Details of the software versions and a repro are therefore essential.
| --- | --- | | Bugzilla Link | 581468 | | Status | UNCONFIRMED | | Importance | P3 normal | | Reported | Feb 01, 2023 18:46 EDT | | Modified | Feb 02, 2023 01:03 EDT | | Reporter | Steve Hickman |
Description
1350 [Worker-10: Xtext validation] ERROR org.eclipse.xtext.validation.CompositeEValidator - Error executing EValidator\ java.lang.NullPointerException: Cannot invoke "org.eclipse.emf.common.notify.Adapter.isAdapterForType(Object)" because "adapter" is null\ at org.eclipse.emf.common.notify.impl.BasicNotifierImpl$EAdapterList.getAdapterForType(BasicNotifierImpl.java:350)\ at org.eclipse.emf.ecore.util.EcoreUtil.getAdapter(EcoreUtil.java:152)\ at org.eclipse.ocl.pivot.utilities.ClassUtil.getAdapter(ClassUtil.java:143)\ at org.eclipse.ocl.pivot.internal.utilities.AliasAdapter.getAdapter(AliasAdapter.java:54)\ at org.eclipse.ocl.pivot.internal.ecore.es2as.Ecore2ASDeclarationSwitch.caseEPackage(Ecore2ASDeclarationSwitch.java:479)\ at org.eclipse.emf.ecore.util.EcoreSwitch.doSwitch(EcoreSwitch.java:188)\ at org.eclipse.ocl.pivot.internal.ecore.es2as.Ecore2ASDeclarationSwitch.doInPackageSwitch(Ecore2ASDeclarationSwitch.java:862)\ at org.eclipse.ocl.pivot.internal.ecore.es2as.Ecore2AS.resolveDeclarations(Ecore2AS.java:889)\ at org.eclipse.ocl.pivot.internal.ecore.es2as.Ecore2AS.update(Ecore2AS.java:1126)\ at org.eclipse.ocl.pivot.internal.ecore.es2as.Ecore2AS.importObjects(Ecore2AS.java:517)\ at org.eclipse.ocl.pivot.internal.ecore.es2as.Ecore2AS.getASModel(Ecore2AS.java:353)\ at org.eclipse.ocl.pivot.internal.ecore.es2as.Ecore2AS.getASType(Ecore2AS.java:383)\ at org.eclipse.ocl.pivot.internal.ecore.es2as.Ecore2AS.resolveDataType(Ecore2AS.java:855)\ at org.eclipse.ocl.pivot.internal.ecore.es2as.Ecore2AS.resolveType(Ecore2AS.java:1054)\ at org.eclipse.ocl.pivot.internal.ecore.es2as.Ecore2AS.resolveSpecializations(Ecore2AS.java:1004)\ at org.eclipse.ocl.pivot.internal.ecore.es2as.Ecore2AS.update(Ecore2AS.java:1148)\ at org.eclipse.ocl.pivot.internal.ecore.es2as.Ecore2AS.importObjects(Ecore2AS.java:517)\ at org.eclipse.ocl.pivot.internal.ecore.es2as.Ecore2AS.getASModel(Ecore2AS.java:353)\ at org.eclipse.ocl.xtext.completeocl.validation.CompleteOCLEObjectValidator.initialize(CompleteOCLEObjectValidator.java:102)\ at org.eclipse.ocl.xtext.completeocl.validation.CompleteOCLEObjectValidator.validatePivot(CompleteOCLEObjectValidator.java:133)\ at org.eclipse.ocl.pivot.internal.validation.PivotEObjectValidator.validate(PivotEObjectValidator.java:375)\ at org.eclipse.xtext.validation.CompositeEValidator.validate(CompositeEValidator.java:151)\ at org.eclipse.emf.ecore.util.Diagnostician.doValidate(Diagnostician.java:299)\ at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:245)\ at org.eclipse.xtext.validation.CancelableDiagnostician.validate(CancelableDiagnostician.java:41)\ at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:200)\ at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:142)\ at org.eclipse.xtext.validation.ResourceValidatorImpl.validate(ResourceValidatorImpl.java:147)\ at org.eclipse.xtext.validation.ResourceValidatorImpl.validate(ResourceValidatorImpl.java:125)\ at org.eclipse.xtext.validation.ResourceValidatorImpl.validate(ResourceValidatorImpl.java:91)\ at org.eclipse.xtext.ui.editor.validation.ValidationJob$1.exec(ValidationJob.java:92)\ at org.eclipse.xtext.ui.editor.validation.ValidationJob$1.exec(ValidationJob.java:1)\ at org.eclipse.xtext.util.concurrent.CancelableUnitOfWork.exec(CancelableUnitOfWork.java:27)\ at org.eclipse.xtext.util.concurrent.WrappingCancelableUnitOfWork.exec(WrappingCancelableUnitOfWork.java:58)\ at org.eclipse.xtext.util.concurrent.CancelableUnitOfWork.exec(CancelableUnitOfWork.java:27)\ at org.eclipse.xtext.resource.OutdatedStateManager.exec(OutdatedStateManager.java:70)\ at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.internalReadOnly(XtextDocument.java:525)\ at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.readOnly(XtextDocument.java:497)\ at org.eclipse.xtext.ui.editor.model.XtextDocument.readOnly(XtextDocument.java:136)\ at org.eclipse.xtext.util.concurrent.IReadAccess.tryReadOnly(IReadAccess.java:50)\ at org.eclipse.xtext.ui.editor.validation.ValidationJob.createIssues(ValidationJob.java:87)\ at org.eclipse.xtext.ui.editor.validation.ValidationJob.run(ValidationJob.java:68)\ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)