varamfer / openhab

Automatically exported from code.google.com/p/openhab
0 stars 0 forks source link

Loading model resources sometimes throws exceptions #171

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I had a working configuration of openhab 1.0.0
Today I tried to migrate it to latest snapshot version. Migration seems 
sucseeded, but log file is gowing with following error loggings:
11 Dec 2012 21:56:25.582 ERROR o.e.x.l.l.LazyLinkingResource[:214]- resolution 
of uriFragment 'xtextL
ink_::0::1::/12' failed.
org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=0, 
size=0
        at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:346)
        at org.eclipse.xtext.linking.lazy.LazyURIEncoder.resolveShortFragment(LazyURIEncoder.java:101
)
        at org.eclipse.xtext.linking.lazy.LazyURIEncoder.decode(LazyURIEncoder.java:89)
        at org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(LazyLinkingResource.java:166
)
        at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getEObject(ResourceSetImpl.java:223)
        at org.eclipse.emf.ecore.util.EcoreUtil.resolve(EcoreUtil.java:201)
11 Dec 2012 21:56:25.610 ERROR o.e.x.l.l.LazyLinkingResource[:214]- resolution 
of uriFragment 'xtextL
ink_::0::1::/12' failed.
org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=0, 
size=0
        at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:346)
        at org.eclipse.xtext.linking.lazy.LazyURIEncoder.resolveShortFragment(LazyURIEncoder.java:101
)
        at org.eclipse.xtext.linking.lazy.LazyURIEncoder.decode(LazyURIEncoder.java:89)
        at org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(LazyLinkingResource.java:166
)
        at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getEObject(ResourceSetImpl.java:223)
        at org.eclipse.emf.ecore.util.EcoreUtil.resolve(EcoreUtil.java:197)

the log lines appear in my log file almost every 5 seconds. So log file will 
become huge.
What could be the problem ?

Original issue reported on code.google.com by ramazany...@gmail.com on 11 Dec 2012 at 9:02

GoogleCodeExporter commented 8 years ago
Addition: I open all config files in designer, and it did not find any errors 
in items,rules,scripts...

Original comment by ramazany...@gmail.com on 11 Dec 2012 at 9:04

GoogleCodeExporter commented 8 years ago
the first time when the error appeared in the openhab.log:

11 Dec 2012 21:56:18.855 ERROR o.o.m.c.i.f.FolderObserver[:125]- An unexpected 
exception has occured
java.lang.IllegalStateException: A resource with the normalized URI 
'logging.persist' was already registered. The resource with the URI 
'org.eclipse.xtext.linking.lazy.LazyLinkingResource@e31699 
uri='logging.persist'' is no longer registered with the normalized form.
    at org.eclipse.xtext.resource.XtextResourceSet.registerURI(XtextResourceSet.java:75)
    at org.eclipse.xtext.resource.XtextResourceSet$ResourcesList.inverseAdd(XtextResourceSet.java:95)
    at org.eclipse.xtext.resource.XtextResourceSet$ResourcesList.inverseAdd(XtextResourceSet.java:1)
    at org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:312)
    at org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:301)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.createResource(ResourceSetImpl.java:435)
11 Dec 2012 21:56:18.974 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 
'rrd4j.persist'
11 Dec 2012 21:56:19.132 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 
'db4o.persist'
11 Dec 2012 21:56:19.192 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 
'presencesimulation.persist'
11 Dec 2012 21:56:21.151 ERROR o.e.x.l.l.LazyLinkingResource[:214]- resolution 
of uriFragment 'xtextLink_::0::1::/12' failed.
org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=0, 
size=0
    at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:346)
    at org.eclipse.xtext.linking.lazy.LazyURIEncoder.resolveShortFragment(LazyURIEncoder.java:101)
    at org.eclipse.xtext.linking.lazy.LazyURIEncoder.decode(LazyURIEncoder.java:89)
    at org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(LazyLinkingResource.java:166)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getEObject(ResourceSetImpl.java:223)
    at org.eclipse.emf.ecore.util.EcoreUtil.resolve(EcoreUtil.java:201)
11 Dec 2012 21:56:21.179 ERROR o.e.x.l.l.LazyLinkingResource[:214]- resolution 
of uriFragment 'xtextLink_::0::1::/12' failed.
org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=0, 
size=0
    at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:346)
    at org.eclipse.xtext.linking.lazy.LazyURIEncoder.resolveShortFragment(LazyURIEncoder.java:101)
    at org.eclipse.xtext.linking.lazy.LazyURIEncoder.decode(LazyURIEncoder.java:89)
    at org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(LazyLinkingResource.java:166)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getEObject(ResourceSetImpl.java:223)
    at org.eclipse.emf.ecore.util.EcoreUtil.resolve(EcoreUtil.java:197)

Original comment by ramazany...@gmail.com on 11 Dec 2012 at 9:06

GoogleCodeExporter commented 8 years ago
I'm running it on D2Plug with debian linux and use jdk1.7 for ARM: 
opt/jdk1.7.0_06/bin/java -version
java version "1.7.0_06"
Java(TM) SE Runtime Environment (build 1.7.0_06-b24)
Java HotSpot(TM) Client VM (build 23.2-b09, mixed mode)
PlugPBX:/mnt/internalsd/opt/openhab/runtime#

Original comment by ramazany...@gmail.com on 11 Dec 2012 at 9:08