Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332419 - "java.lang.IllegalArgumentException: can not calculate a model ID without a document reference"
Summary: "java.lang.IllegalArgumentException: can not calculate a model ID without a d...
Status: CLOSED DUPLICATE of bug 332418
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.sse (show other bugs)
Version: 3.2.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: wst.sse CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-13 04:57 EST by ltx71cm CLA
Modified: 2011-01-13 00:10 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ltx71cm CLA 2010-12-13 04:57:09 EST
What steps will reproduce the problem?
1. Unknown


-- Error Details --
Date: Mon Dec 13 03:51:07 CST 2010
Message: can not calculate a model ID without a document reference
Severity: Error
Product: Eclipse 1.3.1.20100913-1228 (org.eclipse.epp.package.php.product)
Plugin: org.eclipse.wst.sse.core
Session Data:
eclipse.buildId=M20100909-0800
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.php.product
Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.php.product


Exception Stack Trace:
java.lang.IllegalArgumentException: can not calculate a model ID without a document reference
at org.eclipse.wst.sse.core.internal.FileBufferModelManager.calculateId(FileBufferModelManager.java:402)
at org.eclipse.wst.sse.core.internal.model.ModelManagerImpl._getModelFor(ModelManagerImpl.java:613)
at org.eclipse.wst.sse.core.internal.model.ModelManagerImpl.getModelForRead(ModelManagerImpl.java:1433)
at org.eclipse.wst.sse.ui.internal.style.SemanticHighlightingReconciler.reconcile(SemanticHighlightingReconciler.java:114)
at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.endProcessing(DocumentRegionProcessor.java:119)
at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor.run(DirtyRegionProcessor.java:682)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 1 Nick Sandonato CLA 2010-12-13 10:20:39 EST
Looks like something that would happen if the job was still running after the model had been released.
Comment 2 Ravi CLA 2011-01-11 09:13:16 EST
I think the problem is there in SemanticHighlightingReconciler line 243
241	public void setDocument(IDocument document) {
242		fDocument = document;
243		refresh();
244	}

There is a call to setDocument(null) during DocumentRegionProcessor.uninstall()
In this case refresh shouldn't be called...
Comment 3 Nick Sandonato CLA 2011-01-11 10:37:13 EST
(In reply to comment #2)
> I think the problem is there in SemanticHighlightingReconciler line 243
> 241    public void setDocument(IDocument document) {
> 242        fDocument = document;
> 243        refresh();
> 244    }
> 
> There is a call to setDocument(null) during DocumentRegionProcessor.uninstall()
> In this case refresh shouldn't be called...

As of Helios SR1, refresh() is no longer called. If your source is showing that you have refresh() called please make sure that you have the plug-in org.eclipse.wst.sse.ui with the qualifier greater than or equal to v201008102046.
Comment 4 Ravi CLA 2011-01-12 00:24:37 EST
Okay. I was using 3.6
Comment 5 Nitin Dahyabhai CLA 2011-01-13 00:10:12 EST

*** This bug has been marked as a duplicate of bug 332418 ***