• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. phantom

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website
    P
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 6
    • Best 0
    • Controversial 0
    • Groups 0

    phantom

    @phantom

    0
    Reputation
    309
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    phantom Unfollow Follow

    Latest posts made by phantom

    • BUG - StringLocator::bytesToValueRealOffset

      If using DataType.VARCHAR the null check iterates from the absolute positioned zero index of the data array rather than the relative position index denoted by the variable offset.

      --- StringLocator.java.bug	2012-07-17 16:08:03.000000000 -0400
      +++ StringLocator.java.fix	2012-07-17 16:08:51.000000000 -0400
      @@ -61,7 +61,7 @@
       
               if (dataType == DataType.VARCHAR) {
                   int nullPos = -1;
      -            for (int i = 0; i < length; i++) {
      +            for (int i = offset; i < (offset + length); i++) {
                       if (data* == 0) {
                           nullPos = i;
                           break;
      
      

      Attachment: download link

      posted in Modbus4J general discussion
      P
      phantom
    • RE: BUG - StringLocator::bytesToValueRealOffset

      If using DataType.VARCHAR the null check iterates from the absolute positioned zero index of the data array rather than the relative position index denoted by the variable offset.

      --- StringLocator.java.bug	2012-07-17 16:08:03.000000000 -0400
      +++ StringLocator.java.fix	2012-07-17 16:08:51.000000000 -0400
      @@ -61,7 +61,7 @@
       
               if (dataType == DataType.VARCHAR) {
                   int nullPos = -1;
      -            for (int i = 0; i < length; i++) {
      +            for (int i = offset; i < (offset + length); i++) {
                       if (data* == 0) {
                           nullPos = i;
                           break;
      
      
      posted in Modbus4J general discussion
      P
      phantom
    • RE: SeroUtils.jar ClassNotFoundException
      Caused by: java.lang.NoClassDefFoundError: com/serotonin/timer/TimeSource
      	at com.serotonin.modbus4j.ModbusMaster.getMessageControl(ModbusMaster.java:302)
      	at com.serotonin.modbus4j.serial.rtu.RtuMaster.init(RtuMaster.java:48)
      Caused by: java.lang.ClassNotFoundException: com.serotonin.timer.TimeSource
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      	... 6 more
      

      From the class view provided by eclipse on MessageControl.class I can clearly see

      // Field descriptor #99 Lcom/serotonin/timer/TimeSource;
      private com.serotonin.timer.TimeSource timeSource;
      

      and its constructor

      39  aload_0 [this]
      40  new com.serotonin.timer.SystemTimeSource [11]
      43  dup
      44  invokespecial com.serotonin.timer.SystemTimeSource() [12]
      47  putfield com.serotonin.messaging.MessageControl.timeSource : com.serotonin.timer.TimeSource [13]
      
      posted in Modbus4J general discussion
      P
      phantom
    • RE: SeroUtils.jar ClassNotFoundException

      Hacked together my own fix for the time being

      package com.serotonin.timer;
      
      public interface TimeSource {
      
      	long currentTimeMillis();
      
      }
      
      package com.serotonin.timer;
      
      public class SystemTimeSource implements TimeSource {
      
      	@Override
      	public long currentTimeMillis() {
      		return System.currentTimeMillis();
      	}
      
      }
      

      injected into seroUtils.jar

      jar uf seroUtils.jar com/serotonin/timer/
      
      posted in Modbus4J general discussion
      P
      phantom
    • SeroUtils.jar ClassNotFoundException

      com.serotonin.timer.TimeSource

      Using latest CVS

      posted in Modbus4J general discussion
      P
      phantom
    • RE: SeroUtils.jar ClassNotFoundException

      com.serotonin.timer.TimeSource

      Using latest CVS

      posted in Modbus4J general discussion
      P
      phantom