Re: PLC4J EIP String Reads
Hello Lukas, I've added a ticket in Jira with the pcap. https://issues.apache.org/jira/browse/PLC4X-341 Thanks! Andy On Fri, May 6, 2022 at 2:43 AM Lukas Ott wrote: > Hello Andy, > > Can you also provide a PCAP from Wireshark and add it to a ticket in Jira? > > Thank you! > > BR / otluk > > Am Do., 5. Mai 2022 um 23:48 Uhr schrieb Andy Grebe >: > > > Hello, > > > > I'm working on a project using EIP and need to read string tags from a > > PLC. When I send the read, I see the string coming back in wireshark, > but > > it looks like it is not getting parsed correctly. I am able to read > BOOLs, > > INTs, etc, but I get an error when attempting to read STRINGs. > > > > java.lang.NullPointerException: Cannot invoke > > "org.apache.plc4x.java.api.value.PlcValue.getString()" because the return > > value of > > "org.apache.plc4x.java.api.messages.PlcReadResponse.getPlcValue(String)" > is > > null > > > > I can provide code snippets, but it's written the same for all of the > > fields. > > > > Thanks, > > Andy > > >
Re: PLC4J EIP String Reads
Hello Andy, Can you also provide a PCAP from Wireshark and add it to a ticket in Jira? Thank you! BR / otluk Am Do., 5. Mai 2022 um 23:48 Uhr schrieb Andy Grebe : > Hello, > > I'm working on a project using EIP and need to read string tags from a > PLC. When I send the read, I see the string coming back in wireshark, but > it looks like it is not getting parsed correctly. I am able to read BOOLs, > INTs, etc, but I get an error when attempting to read STRINGs. > > java.lang.NullPointerException: Cannot invoke > "org.apache.plc4x.java.api.value.PlcValue.getString()" because the return > value of > "org.apache.plc4x.java.api.messages.PlcReadResponse.getPlcValue(String)" is > null > > I can provide code snippets, but it's written the same for all of the > fields. > > Thanks, > Andy >
PLC4J EIP String Reads
Hello, I'm working on a project using EIP and need to read string tags from a PLC. When I send the read, I see the string coming back in wireshark, but it looks like it is not getting parsed correctly. I am able to read BOOLs, INTs, etc, but I get an error when attempting to read STRINGs. java.lang.NullPointerException: Cannot invoke "org.apache.plc4x.java.api.value.PlcValue.getString()" because the return value of "org.apache.plc4x.java.api.messages.PlcReadResponse.getPlcValue(String)" is null I can provide code snippets, but it's written the same for all of the fields. Thanks, Andy