Body: <p>Since today, no matter what program that uses sensors I try to run on my EV3 I get the following error:</p>
  <pre><code>lejos.hardware.DeviceException: unable to open port
      at lejos.internal.ev3.EV3Port.open(EV3Port.java:75)
      at lejos.hardware.sensor.AnalogSensor.&lt;init&gt;(AnalogSensor.java:24)
      at lejos.hardware.sensor.AnalogSensor.&lt;init&gt;(AnalogSensor.java:35)
      at lejos.hardware.sensor.EV3TouchSensor.&lt;init&gt;(EV3TouchSensor.java:61)
      at ia.Sensor.&lt;init&gt;(Sensor.java:19)
      at ia.Robot.&lt;init&gt;(Robot.java:16)
      at ia.Jeu.main(Jeu.java:16)
      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 lejos.internal.ev3.EV3Wrapper.invokeClass(EV3Wrapper.java:62)
      at lejos.internal.ev3.EV3Wrapper.main(EV3Wrapper.java:46)
  </code></pre>
  <p>I've checked the ports, the cables and my ultrasonic sensor (which seems to be where the problem is) but nothing. I get the same error when I try closing the sensor.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-12-01T00:18:23.220Z
Comments.Text: This is a stack trace. What is the actual error? Are you using LeJOS firmware or ev3dev-lang-java?
Comments.UserDisplayName: David Lechner
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-12-01T12:25:07.530Z
Comments.Text: @DavidLechner Sorry, I didn't paste it correctly, it should appear now. I'm using ev3dev-lang-java.
Comments.UserDisplayName: celia
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-12-02T16:38:34.900Z
Comments.Text: Do the sensors show up in the in the "Device Browser" on the EV3?
Comments.UserDisplayName: David Lechner
Tags: <ev3><ev3dev><sensor><lejos>
Title: Unable to open port error
UserDisplayName: celia
ThreadText: # Unable to open port error
  
  (Asked by: username_0 on 2023-11-30)
  
  Since today, no matter what program that uses sensors I try to run on my EV3 I get the following error:
  lejos.hardware.DeviceException: unable to open port
      at lejos.internal.ev3.EV3Port.open(EV3Port.java:75)
      at lejos.hardware.sensor.AnalogSensor.(AnalogSensor.java:24)
      at lejos.hardware.sensor.AnalogSensor.(AnalogSensor.java:35)
      at lejos.hardware.sensor.EV3TouchSensor.(EV3TouchSensor.java:61)
      at ia.Sensor.(Sensor.java:19)
      at ia.Robot.(Robot.java:16)
      at ia.Jeu.main(Jeu.java:16)
      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 lejos.internal.ev3.EV3Wrapper.invokeClass(EV3Wrapper.java:62)
      at lejos.internal.ev3.EV3Wrapper.main(EV3Wrapper.java:46)
  
  I've checked the ports, the cables and my ultrasonic sensor (which seems to be where the problem is) but nothing. I get the same error when I try closing the sensor.
  
  **Tags:** ev3, ev3dev, sensor, lejos
  > **Comments:**
  > **username_1**: This is a stack trace. What is the actual error? Are you using LeJOS firmware or ev3dev-lang-java?  
  > **username_0**: @DavidLechner Sorry, I didn't paste it correctly, it should appear now. I'm using ev3dev-lang-java.  
  > **username_1**: Do the sensors show up in the in the "Device Browser" on the EV3?  
  
  ---
  
  ## 0 answers
  
  