eclipse-ocl / org.eclipse.ocl

Eclipse Public License 2.0
0 stars 0 forks source link

IAE in IQualifiedNameConverter$DefaultImpl.toQualifiedName (59) #1454

Open eclipse-ocl-bot opened 2 hours ago

eclipse-ocl-bot commented 2 hours ago

| --- | --- | | Bugzilla Link | 460169 | | Status | NEW | | Importance | P3 normal | | Reported | Feb 17, 2015 15:36 EDT | | Modified | Feb 17, 2015 15:38 EDT | | Reporter | EPP Error Reports |

Description

The following incident was reported via the automated error reporting:

code:                   0\
plugin:                 org.apache.log4j_1.2.15.v201012070815\
message:                org.eclipse.xtext.linking.lazy.LazyLinkingResource  - resolution of uriFragment '|3' failed.\
fingerprint:            dd330e3a\
exception class:        java.lang.IllegalArgumentException\
exception message:      Qualified name cannot be empty\
number of children:     0\
\
java.lang.IllegalArgumentException: Qualified name cannot be empty\
at org.eclipse.xtext.naming.IQualifiedNameConverter$DefaultImpl.toQualifiedName(IQualifiedNameConverter.java:59)\
at org.eclipse.ocl.xtext.base.services.BaseLinkingService.getLinkedObjects(BaseLinkingService.java:76)\
at org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(LazyLinkingResource.java:250)\
at org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(LazyLinkingResource.java:225)\
at org.eclipse.xtext.linking.lazy.LazyLinkingResource.doResolveLazyCrossReference(LazyLinkingResource.java:192)\
at org.eclipse.xtext.linking.lazy.LazyLinkingResource.resolveLazyCrossReference(LazyLinkingResource.java:151)\
at org.eclipse.xtext.linking.lazy.LazyLinkingResource.resolveLazyCrossReferences(LazyLinkingResource.java:137)\
at org.eclipse.ocl.xtext.essentialocl.utilities.EssentialOCLCSResource.resolveLazyCrossReferences(EssentialOCLCSResource.java:628)\
at org.eclipse.xtext.EcoreUtil2.resolveLazyCrossReferences(EcoreUtil2.java:522)\
at org.eclipse.xtext.validation.ResourceValidatorImpl.resolveProxies(ResourceValidatorImpl.java:162)\
at org.eclipse.ocl.xtext.base.utilities.PivotResourceValidator.validate(PivotResourceValidator.java:159)\
at org.eclipse.xtext.ui.editor.validation.ValidationJob$1.exec(ValidationJob.java:88)\
at org.eclipse.xtext.ui.editor.validation.ValidationJob$1.exec(ValidationJob.java:1)\
at org.eclipse.xtext.util.concurrent.CancelableUnitOfWork.exec(CancelableUnitOfWork.java:26)\
at org.eclipse.xtext.resource.OutdatedStateManager.exec(OutdatedStateManager.java:121)\
at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.internalReadOnly(XtextDocument.java:503)\
at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.readOnly(XtextDocument.java:475)\
at org.eclipse.xtext.ui.editor.model.XtextDocument.readOnly(XtextDocument.java:124)\
at org.eclipse.xtext.ui.editor.validation.ValidationJob.createIssues(ValidationJob.java:83)\
at org.eclipse.xtext.ui.editor.validation.ValidationJob.run(ValidationJob.java:66)\
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)\

\

General Information:

reported-by:      Adolfo SBH\
anonymous-id:     ee6a7cf4-6277-45ce-b349-ac81306b3e3f\
eclipse-build-id: 4.5.0.I20150203-1300\
eclipse-product:  org.eclipse.epp.package.committers.product\
operating system: Windows7 6.1.0 (x86_64) - win32\
jre-version:      1.7.0_45-b18

The following plug-ins were present on the execution stack (*):

  1. org.eclipse.core.jobs_3.7.0.v20150115-2226
  2. org.eclipse.ocl.xtext.base_1.0.0.v20150211-0656
  3. org.eclipse.ocl_3.5.0.v20150120-1323
  4. org.eclipse.ocl.xtext.essentialocl_1.0.0.v20150210-2029
  5. org.eclipse.xtext_2.8.0.v201502030924
  6. org.eclipse.xtext.ui_2.8.0.v201502030924
  7. org.eclipse.xtext.util_2.8.0.v201502030924

Please note that:

Thank you for your assistance.\ Your friendly error-reports-inbox.

eclipse-ocl-bot commented 2 hours ago

By Ed Willink on Feb 17, 2015 15:38

Problem is looking up "" which causes IQualifiedNameConverter to IAE.

Simple fix is to treat "" as null, and find nothing.