Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DSL based on Thing.xtext fails #13

Closed
kgoderis opened this issue Sep 26, 2014 · 2 comments
Closed

DSL based on Thing.xtext fails #13

kgoderis opened this issue Sep 26, 2014 · 2 comments

Comments

@kgoderis
Copy link
Contributor

Kai, is ESH in OH2 up to date? based on the Thing.xtext DSL I tried to define a .thing as follows:

Bridge irtrans:ethernet:livingroom [ipAddress="192.168.0.55", portNumber="21000", refreshInterval="50", timeOut="200", bufferSize="1024"]
{Thing irtrans:blaster:thing1 [led="E", remote="samsung", command="*"]}

It fails with following errors:

14:14:07.970 DEBUG o.e.s.m.t.i.GenericThingProvider[:134] - Creating thing for type 'irtrans:ethernet' with UID 'irtrans:ethernet:livingroom.
SLF4J: Failed toString() invocation on an object of type [org.eclipse.smarthome.core.thing.ThingTypeUID]
java.lang.NullPointerException
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:192)
at com.google.common.base.Joiner.toString(Joiner.java:436)
at com.google.common.base.Joiner.appendTo(Joiner.java:111)
at com.google.common.base.Joiner.appendTo(Joiner.java:152)
at com.google.common.base.Joiner.join(Joiner.java:193)
at com.google.common.base.Joiner.join(Joiner.java:183)
at com.google.common.base.Joiner.join(Joiner.java:201)
at org.eclipse.smarthome.core.thing.UID.toString(UID.java:88)
at org.slf4j.helpers.MessageFormatter.safeObjectAppend(MessageFormatter.java:304)
at org.slf4j.helpers.MessageFormatter.deeplyAppendParameter(MessageFormatter.java:276)
at org.slf4j.helpers.MessageFormatter.arrayFormat(MessageFormatter.java:230)

14:14:07.980 DEBUG o.e.s.m.t.i.GenericThingProvider[:134] - Creating thing for type '[FAILED toString()]' with UID '[FAILED toString()].

14:14:08.220 ERROR o.e.s.c.c.r.AbstractRegistry[:107] - Could not inform the listener 'org.eclipse.smarthome.config.discovery.internal.PersistentInbox@1d521927' about the 'ADDED' event!: null
java.lang.NullPointerException: null
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:192)
at com.google.common.base.Joiner.toString(Joiner.java:436)
at com.google.common.base.Joiner.appendTo(Joiner.java:111)
at com.google.common.base.Joiner.appendTo(Joiner.java:152)
at com.google.common.base.Joiner.join(Joiner.java:193)

and so on...

@kaikreuzer
Copy link
Member

Yes, it is fully up to date! Would have to investigate on why this happens, but probably won't have the time the next few days :-(

@kgoderis
Copy link
Contributor Author

I can not reproduce the problem right now, so I close it for now

@Mr-Eskildsen Mr-Eskildsen mentioned this issue Nov 1, 2016
pboos referenced this issue in carecon/openhab2-addons Jun 15, 2017
* fix smart light switches

Signed-off-by: Dimalo <dima.loschkin@gmail.com>

* update README with battery

Signed-off-by: Dimalo <dima.loschkin@gmail.com>
Wire82 added a commit to Wire82/openhab-addons that referenced this issue Oct 21, 2017
Do not ignore MANIFEST.MF file (deleting .gitignore)
magx2 added a commit to SUPLA/openhab2-addons that referenced this issue Jun 16, 2019
Flole998 pushed a commit to Flole998/openhab-addons that referenced this issue Dec 30, 2021
lolodomo pushed a commit to lolodomo/openhab-addons that referenced this issue Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants