Hi,
After opening an example model I don't see a model in the modelbrowser anymore, nor any symbols under the tab "symbols".
OS: Windows 7 Professional
Java: version 8 update 111
John_R
No symbols and model
-
- Site Admin
- Posts: 31
- Joined: March 11th, 2013, 3:14 pm
Re: No symbols and model
Hi,
Sounds quite strange, maybe there was a failure in the connection between the user interface and the underlying database...? If so, starting from an empty workspace should fix the issue. I'm assuming you're using 1.9.0.
Tuomas
Sounds quite strange, maybe there was a failure in the connection between the user interface and the underlying database...? If so, starting from an empty workspace should fix the issue. I'm assuming you're using 1.9.0.
Tuomas
Re: No symbols and model
Same problem here. Starting from an empty workspace does not help. Indeed using 1.9.0.
Re: No symbols and model
I'm using version 1.9.1.
Tried today a different workspace location, but with the same results.
In the errorlog I've found some entrys that may be helpfull:
!ENTRY org.simantics.workbench 4 0 2017-01-02 12:27:56.063
!MESSAGE Unexpected database problems during search result processing, see exception.
!STACK 0
org.simantics.db.exception.DatabaseException: org.simantics.db.layer0.genericrelation.IndexException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@\\In-pactServer\Users\john.rassin\My Documents\tmp\Workspace\.metadata\.plugins\org.simantics.db.indexing\index\6.0.c281305b-ff00-40e9-99fe-d12d01f3a494.41151.196837\write.lock: java.nio.channels.OverlappingFileLockException
at org.simantics.db.impl.query.CacheEntryBase.checkAndThrow(CacheEntryBase.java:108)
at org.simantics.db.impl.query.ReadEntry.get(ReadEntry.java:154)
at org.simantics.db.impl.query.QueryProcessor.performForEach(QueryProcessor.java:1060)
at org.simantics.db.impl.query.QueryProcessor.queryRead(QueryProcessor.java:853)
at org.simantics.db.impl.graph.ReadGraphImpl.syncRequest(ReadGraphImpl.java:1940)
at org.simantics.db.impl.graph.ReadGraphImpl.syncRequest(ReadGraphImpl.java:1927)
at org.simantics.db.layer0.adapter.impl.EntityInstances.findRec(EntityInstances.java:135)
at org.simantics.db.layer0.adapter.impl.EntityInstances.find(EntityInstances.java:162)
at org.simantics.db.layer0.adapter.impl.EntityInstances.find(EntityInstances.java:53)
at org.simantics.workbench.internal.contributions.search.SearchServiceImpl.findSearchContributions(SearchServiceImpl.java:594)
at org.simantics.workbench.internal.contributions.search.SearchServiceImpl.getSearchEnginesByModel(SearchServiceImpl.java:510)
at org.simantics.workbench.internal.contributions.search.SearchServiceImpl.access$5(SearchServiceImpl.java:499)
at org.simantics.workbench.internal.contributions.search.SearchServiceImpl$6.perform(SearchServiceImpl.java:559)
at org.simantics.workbench.internal.contributions.search.SearchServiceImpl$6.perform(SearchServiceImpl.java:1)
at fi.vtt.simantics.procore.internal.SessionImplSocket$6.run(SessionImplSocket.java:1525)
at fi.vtt.simantics.procore.internal.SessionRequestManager$1.run(SessionRequestManager.java:123)
at org.simantics.db.impl.query.QueryThread.run(QueryThread.java:251)
Caused by: org.simantics.db.layer0.genericrelation.IndexException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@\\In-pactServer\Users\john.rassin\My Documents\tmp\Workspace\.metadata\.plugins\org.simantics.db.indexing\index\6.0.c281305b-ff00-40e9-99fe-d12d01f3a494.41151.196837\write.lock: java.nio.channels.OverlappingFileLockException
at org.simantics.db.indexing.IndexedRelationsImpl.waitLoaded(IndexedRelationsImpl.java:182)
at org.simantics.db.indexing.IndexedRelationsImpl.queryResources(IndexedRelationsImpl.java:308)
at org.simantics.db.layer0.genericrelation.DependenciesRelation.queryResources(DependenciesRelation.java:238)
at org.simantics.db.layer0.genericrelation.DependencyResources.apply(DependencyResources.java:70)
at org.simantics.db.layer0.genericrelation.DependencyResources.apply(DependencyResources.java:54)
at org.simantics.db.layer0.genericrelation.DependencyResources.apply(DependencyResources.java:1)
at org.simantics.db.layer0.adapter.impl.EntityInstances$QueryIndex.perform(EntityInstances.java:92)
at org.simantics.db.layer0.adapter.impl.EntityInstances$QueryIndex.perform(EntityInstances.java:1)
at org.simantics.db.impl.query.QueryProcessor.performForEach(QueryProcessor.java:1050)
... 14 more
Caused by: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@\\In-pactServer\Users\john.rassin\My Documents\tmp\Workspace\.metadata\.plugins\org.simantics.db.indexing\index\6.0.c281305b-ff00-40e9-99fe-d12d01f3a494.41151.196837\write.lock: java.nio.channels.OverlappingFileLockException
at org.apache.lucene.store.Lock.obtain(Lock.java:89)
at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:724)
at org.simantics.db.indexing.IndexedRelationsSearcherBase.initializeIndex(IndexedRelationsSearcherBase.java:689)
at org.simantics.db.indexing.IndexedRelationsImpl.waitLoaded(IndexedRelationsImpl.java:176)
... 22 more
Caused by: java.nio.channels.OverlappingFileLockException
at sun.nio.ch.SharedFileLockTable.checkList(Unknown Source)
at sun.nio.ch.SharedFileLockTable.add(Unknown Source)
at sun.nio.ch.FileChannelImpl.tryLock(Unknown Source)
at java.nio.channels.FileChannel.tryLock(Unknown Source)
at org.apache.lucene.store.NativeFSLock.obtain(NativeFSLockFactory.java:169)
at org.apache.lucene.store.Lock.obtain(Lock.java:96)
... 25 more
Tried today a different workspace location, but with the same results.
In the errorlog I've found some entrys that may be helpfull:
!ENTRY org.simantics.workbench 4 0 2017-01-02 12:27:56.063
!MESSAGE Unexpected database problems during search result processing, see exception.
!STACK 0
org.simantics.db.exception.DatabaseException: org.simantics.db.layer0.genericrelation.IndexException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@\\In-pactServer\Users\john.rassin\My Documents\tmp\Workspace\.metadata\.plugins\org.simantics.db.indexing\index\6.0.c281305b-ff00-40e9-99fe-d12d01f3a494.41151.196837\write.lock: java.nio.channels.OverlappingFileLockException
at org.simantics.db.impl.query.CacheEntryBase.checkAndThrow(CacheEntryBase.java:108)
at org.simantics.db.impl.query.ReadEntry.get(ReadEntry.java:154)
at org.simantics.db.impl.query.QueryProcessor.performForEach(QueryProcessor.java:1060)
at org.simantics.db.impl.query.QueryProcessor.queryRead(QueryProcessor.java:853)
at org.simantics.db.impl.graph.ReadGraphImpl.syncRequest(ReadGraphImpl.java:1940)
at org.simantics.db.impl.graph.ReadGraphImpl.syncRequest(ReadGraphImpl.java:1927)
at org.simantics.db.layer0.adapter.impl.EntityInstances.findRec(EntityInstances.java:135)
at org.simantics.db.layer0.adapter.impl.EntityInstances.find(EntityInstances.java:162)
at org.simantics.db.layer0.adapter.impl.EntityInstances.find(EntityInstances.java:53)
at org.simantics.workbench.internal.contributions.search.SearchServiceImpl.findSearchContributions(SearchServiceImpl.java:594)
at org.simantics.workbench.internal.contributions.search.SearchServiceImpl.getSearchEnginesByModel(SearchServiceImpl.java:510)
at org.simantics.workbench.internal.contributions.search.SearchServiceImpl.access$5(SearchServiceImpl.java:499)
at org.simantics.workbench.internal.contributions.search.SearchServiceImpl$6.perform(SearchServiceImpl.java:559)
at org.simantics.workbench.internal.contributions.search.SearchServiceImpl$6.perform(SearchServiceImpl.java:1)
at fi.vtt.simantics.procore.internal.SessionImplSocket$6.run(SessionImplSocket.java:1525)
at fi.vtt.simantics.procore.internal.SessionRequestManager$1.run(SessionRequestManager.java:123)
at org.simantics.db.impl.query.QueryThread.run(QueryThread.java:251)
Caused by: org.simantics.db.layer0.genericrelation.IndexException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@\\In-pactServer\Users\john.rassin\My Documents\tmp\Workspace\.metadata\.plugins\org.simantics.db.indexing\index\6.0.c281305b-ff00-40e9-99fe-d12d01f3a494.41151.196837\write.lock: java.nio.channels.OverlappingFileLockException
at org.simantics.db.indexing.IndexedRelationsImpl.waitLoaded(IndexedRelationsImpl.java:182)
at org.simantics.db.indexing.IndexedRelationsImpl.queryResources(IndexedRelationsImpl.java:308)
at org.simantics.db.layer0.genericrelation.DependenciesRelation.queryResources(DependenciesRelation.java:238)
at org.simantics.db.layer0.genericrelation.DependencyResources.apply(DependencyResources.java:70)
at org.simantics.db.layer0.genericrelation.DependencyResources.apply(DependencyResources.java:54)
at org.simantics.db.layer0.genericrelation.DependencyResources.apply(DependencyResources.java:1)
at org.simantics.db.layer0.adapter.impl.EntityInstances$QueryIndex.perform(EntityInstances.java:92)
at org.simantics.db.layer0.adapter.impl.EntityInstances$QueryIndex.perform(EntityInstances.java:1)
at org.simantics.db.impl.query.QueryProcessor.performForEach(QueryProcessor.java:1050)
... 14 more
Caused by: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@\\In-pactServer\Users\john.rassin\My Documents\tmp\Workspace\.metadata\.plugins\org.simantics.db.indexing\index\6.0.c281305b-ff00-40e9-99fe-d12d01f3a494.41151.196837\write.lock: java.nio.channels.OverlappingFileLockException
at org.apache.lucene.store.Lock.obtain(Lock.java:89)
at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:724)
at org.simantics.db.indexing.IndexedRelationsSearcherBase.initializeIndex(IndexedRelationsSearcherBase.java:689)
at org.simantics.db.indexing.IndexedRelationsImpl.waitLoaded(IndexedRelationsImpl.java:176)
... 22 more
Caused by: java.nio.channels.OverlappingFileLockException
at sun.nio.ch.SharedFileLockTable.checkList(Unknown Source)
at sun.nio.ch.SharedFileLockTable.add(Unknown Source)
at sun.nio.ch.FileChannelImpl.tryLock(Unknown Source)
at java.nio.channels.FileChannel.tryLock(Unknown Source)
at org.apache.lucene.store.NativeFSLock.obtain(NativeFSLockFactory.java:169)
at org.apache.lucene.store.Lock.obtain(Lock.java:96)
... 25 more
-
- Posts: 1
- Joined: January 9th, 2017, 10:20 am
Re: No symbols and model
Hello,
based on the trace you're trying to use a network drive for storing the workspace. I have no idea yet why exactly Lucene indexing can fail in this case. However, https://bugs.eclipse.org/bugs/show_bug.cgi?id=438813 shows a very similar case where the workspace has also been stored on a network drive.
Is it possible for you to try to create the workspace on a local drive instead of a network drive?
-Tuukka
based on the trace you're trying to use a network drive for storing the workspace. I have no idea yet why exactly Lucene indexing can fail in this case. However, https://bugs.eclipse.org/bugs/show_bug.cgi?id=438813 shows a very similar case where the workspace has also been stored on a network drive.
Is it possible for you to try to create the workspace on a local drive instead of a network drive?
-Tuukka
Re: No symbols and model
Hi,
I've made a workspace in the root of my C-drive. Although the log shows no errors, symbols and model are not shown.
John.
I've made a workspace in the root of my C-drive. Although the log shows no errors, symbols and model are not shown.
John.