Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[kura-dev] NoSuchPortException using ExampleSerialPublisher in Kura 1.1.0 emulator

Hi all,
I just compiled Kura release 1.1.0 and imported the user workspace to Eclipse.
I would like to use the Serial Publisher example included, but I get
this error after configuring the serial port for the component. The
port actually exists, it is free and works using other applications.

This is the error stacktrace:

16:01:39,249 [Component Resolve Thread (Bundle 45)] INFO
ExampleSerialPublisher:154  - Updated ExampleSerialPublisher...
16:01:39,249 [Component Resolve Thread (Bundle 45)] INFO
ExampleSerialPublisher:220  - Update - component.name:
org.eclipse.kura.example.serial.publisher.ExampleSerialPublisher
16:01:39,249 [Component Resolve Thread (Bundle 45)] INFO
ExampleSerialPublisher:220  - Update - serial.baudrate: 115200
16:01:39,249 [Component Resolve Thread (Bundle 45)] INFO
ExampleSerialPublisher:220  - Update - serial.device:
/dev/tty.usbserial-NXGVOOYF
16:01:39,249 [Component Resolve Thread (Bundle 45)] INFO
ExampleSerialPublisher:220  - Update - objectClass:
[Ljava.lang.String;@c859af3
16:01:39,250 [Component Resolve Thread (Bundle 45)] INFO
ExampleSerialPublisher:220  - Update - serial.parity: none
16:01:39,250 [Component Resolve Thread (Bundle 45)] INFO
ExampleSerialPublisher:220  - Update - publish.semanticTopic: data
16:01:39,250 [Component Resolve Thread (Bundle 45)] INFO
ExampleSerialPublisher:220  - Update - serial.stop-bits: 1
16:01:39,250 [Component Resolve Thread (Bundle 45)] INFO
ExampleSerialPublisher:220  - Update - serial.cloud-echo: false
16:01:39,250 [Component Resolve Thread (Bundle 45)] INFO
ExampleSerialPublisher:220  - Update - service.pid:
org.eclipse.kura.example.serial.publisher.ExampleSerialPublisher
16:01:39,250 [Component Resolve Thread (Bundle 45)] INFO
ExampleSerialPublisher:220  - Update - serial.data-bits: 8
16:01:39,251 [Component Resolve Thread (Bundle 45)] INFO
ExampleSerialPublisher:220  - Update - component.id: 21
16:01:39,251 [Component Resolve Thread (Bundle 45)] INFO
ExampleSerialPublisher:220  - Update - serial.echo: false
16:01:39,251 [Component Resolve Thread (Bundle 45)] INFO
ExampleSerialPublisher:220  - Update - publish.qos: 0
16:01:39,251 [Component Resolve Thread (Bundle 45)] INFO
ExampleSerialPublisher:220  - Update - publish.retain: false
16:01:39,252 [Component Resolve Thread (Bundle 45)] INFO
MqttDataTransport:399  - Unsubscribing to topic:
user/10:DD:B1:B6:C5:8B/EXAMPLE_SERIAL_PUBLISHER/data
16:01:39,345 [Component Resolve Thread (Bundle 45)] ERROR
ExampleSerialPublisher:306  - Failed to open port
java.io.IOException: javax.comm.NoSuchPortException
at org.eclipse.kura.core.comm.CommConnectionFactory.createConnection(CommConnectionFactory.java:62)
at org.eclipse.kura.example.serial.publisher.ExampleSerialPublisher.openPort(ExampleSerialPublisher.java:297)
at org.eclipse.kura.example.serial.publisher.ExampleSerialPublisher.doUpdate(ExampleSerialPublisher.java:242)
at org.eclipse.kura.example.serial.publisher.ExampleSerialPublisher.updated(ExampleSerialPublisher.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.modified(ServiceComponent.java:310)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.modify(ServiceComponentProp.java:187)
at org.eclipse.equinox.internal.ds.InstanceProcess.modifyComponent(InstanceProcess.java:690)
at org.eclipse.equinox.internal.ds.SCRManager.processConfigurationChange(SCRManager.java:523)
at org.eclipse.equinox.internal.ds.SCRManager.processConfigurationEvent(SCRManager.java:352)
at org.eclipse.equinox.internal.ds.SCRManager.processConfigurationEvent(SCRManager.java:303)
at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:91)
at org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70)
Caused by: javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:106)
at org.eclipse.kura.core.comm.CommConnectionImpl.<init>(CommConnectionImpl.java:85)
at org.eclipse.kura.core.comm.CommConnectionFactory.createConnection(CommConnectionFactory.java:59)
... 15 more
16:01:39,347 [Component Resolve Thread (Bundle 45)] INFO
ExampleSerialPublisher:158  - Updated ExampleSerialPublisher... Done.



Do I need to configure the port somewhere to make it available from
soda.dk library?

My configuration is
Eclipse Version: Kepler Service Release 2 - Build id: 20140224-0627

$> java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

OSX Yosemite 10.10.1

Thank you


Back to the top