You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Steve Gansemer (JIRA)" <ji...@apache.org> on 2011/04/04 22:39:06 UTC

[jira] [Created] (CAMEL-3834) SmppProducer sends incorrect data_coding parameter

SmppProducer sends incorrect data_coding parameter
--------------------------------------------------

                 Key: CAMEL-3834
                 URL: https://issues.apache.org/jira/browse/CAMEL-3834
             Project: Camel
          Issue Type: Bug
          Components: camel-smpp
    Affects Versions: 2.5.0
            Reporter: Steve Gansemer


The dataCoding parameter on the SMPP uri allows for a value of 0,4, or 8.  Our aggregator expects the data_coding parameter on the SMPP request from the SmppProducer to be 0=SMSC Default Alphabet.  However, when 0, 4, or 8 is specified for the dataCoding parameter, the actual value sent on the smpp request is 1, 5, or 9.  It appears the MessageClass.Class1 on the GeneralDataCoding object in SmppProducer is masking an additional 1 to the byte value.

It seems the dataCoding parameter should allow you to specify the actual value that is needed as defined by the SMPP Protocol specification.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CAMEL-3834) SmppProducer sends incorrect data_coding parameter

Posted by "Christian Müller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Müller updated CAMEL-3834:
------------------------------------

    Affects Version/s:     (was: 2.5.0)
                       2.7.0
        Fix Version/s: 2.8.0

> SmppProducer sends incorrect data_coding parameter
> --------------------------------------------------
>
>                 Key: CAMEL-3834
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3834
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-smpp
>    Affects Versions: 2.7.0
>            Reporter: Steve Gansemer
>            Assignee: Christian Müller
>             Fix For: 2.8.0
>
>
> The dataCoding parameter on the SMPP uri allows for a value of 0,4, or 8.  Our aggregator expects the data_coding parameter on the SMPP request from the SmppProducer to be 0=SMSC Default Alphabet.  However, when 0, 4, or 8 is specified for the dataCoding parameter, the actual value sent on the smpp request is 1, 5, or 9.  It appears the MessageClass.Class1 on the GeneralDataCoding object in SmppProducer is masking an additional 1 to the byte value.
> It seems the dataCoding parameter should allow you to specify the actual value that is needed as defined by the SMPP Protocol specification.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CAMEL-3834) SmppProducer sends incorrect data_coding parameter

Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hadrian Zbarcea updated CAMEL-3834:
-----------------------------------

    Fix Version/s: 2.7.2

> SmppProducer sends incorrect data_coding parameter
> --------------------------------------------------
>
>                 Key: CAMEL-3834
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3834
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-smpp
>    Affects Versions: 2.7.0
>            Reporter: Steve Gansemer
>            Assignee: Christian Müller
>             Fix For: 2.7.2, 2.8.0
>
>
> The dataCoding parameter on the SMPP uri allows for a value of 0,4, or 8.  Our aggregator expects the data_coding parameter on the SMPP request from the SmppProducer to be 0=SMSC Default Alphabet.  However, when 0, 4, or 8 is specified for the dataCoding parameter, the actual value sent on the smpp request is 1, 5, or 9.  It appears the MessageClass.Class1 on the GeneralDataCoding object in SmppProducer is masking an additional 1 to the byte value.
> It seems the dataCoding parameter should allow you to specify the actual value that is needed as defined by the SMPP Protocol specification.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CAMEL-3834) SmppProducer sends incorrect data_coding parameter

Posted by "Christian Müller (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-3834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018938#comment-13018938 ] 

Christian Müller commented on CAMEL-3834:
-----------------------------------------

Steve, I think I fixed this issue. I applied a patch which uses the same configuration as in the jsmpp [SimpleSubmitExample|http://code.google.com/p/jsmpp/source/browse/tags/2.1.0/src/java/examples/org/jsmpp/examples/SimpleSubmitExample.java] for the data coding.
Could you please test this fix with the latest code from trunk or with the snapshot version from tomorrow?

Christian

> SmppProducer sends incorrect data_coding parameter
> --------------------------------------------------
>
>                 Key: CAMEL-3834
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3834
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-smpp
>    Affects Versions: 2.7.0
>            Reporter: Steve Gansemer
>            Assignee: Christian Müller
>             Fix For: 2.8.0
>
>
> The dataCoding parameter on the SMPP uri allows for a value of 0,4, or 8.  Our aggregator expects the data_coding parameter on the SMPP request from the SmppProducer to be 0=SMSC Default Alphabet.  However, when 0, 4, or 8 is specified for the dataCoding parameter, the actual value sent on the smpp request is 1, 5, or 9.  It appears the MessageClass.Class1 on the GeneralDataCoding object in SmppProducer is masking an additional 1 to the byte value.
> It seems the dataCoding parameter should allow you to specify the actual value that is needed as defined by the SMPP Protocol specification.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CAMEL-3834) SmppProducer sends incorrect data_coding parameter

Posted by "Christian Müller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Müller resolved CAMEL-3834.
-------------------------------------

    Resolution: Fixed

> SmppProducer sends incorrect data_coding parameter
> --------------------------------------------------
>
>                 Key: CAMEL-3834
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3834
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-smpp
>    Affects Versions: 2.7.0
>            Reporter: Steve Gansemer
>            Assignee: Christian Müller
>             Fix For: 2.8.0
>
>
> The dataCoding parameter on the SMPP uri allows for a value of 0,4, or 8.  Our aggregator expects the data_coding parameter on the SMPP request from the SmppProducer to be 0=SMSC Default Alphabet.  However, when 0, 4, or 8 is specified for the dataCoding parameter, the actual value sent on the smpp request is 1, 5, or 9.  It appears the MessageClass.Class1 on the GeneralDataCoding object in SmppProducer is masking an additional 1 to the byte value.
> It seems the dataCoding parameter should allow you to specify the actual value that is needed as defined by the SMPP Protocol specification.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CAMEL-3834) SmppProducer sends incorrect data_coding parameter

Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hadrian Zbarcea resolved CAMEL-3834.
------------------------------------

    Resolution: Fixed

> SmppProducer sends incorrect data_coding parameter
> --------------------------------------------------
>
>                 Key: CAMEL-3834
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3834
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-smpp
>    Affects Versions: 2.7.0
>            Reporter: Steve Gansemer
>            Assignee: Christian Müller
>             Fix For: 2.7.2, 2.8.0
>
>
> The dataCoding parameter on the SMPP uri allows for a value of 0,4, or 8.  Our aggregator expects the data_coding parameter on the SMPP request from the SmppProducer to be 0=SMSC Default Alphabet.  However, when 0, 4, or 8 is specified for the dataCoding parameter, the actual value sent on the smpp request is 1, 5, or 9.  It appears the MessageClass.Class1 on the GeneralDataCoding object in SmppProducer is masking an additional 1 to the byte value.
> It seems the dataCoding parameter should allow you to specify the actual value that is needed as defined by the SMPP Protocol specification.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CAMEL-3834) SmppProducer sends incorrect data_coding parameter

Posted by "Steve Gansemer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-3834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018333#comment-13018333 ] 

Steve Gansemer commented on CAMEL-3834:
---------------------------------------

The value that ends up being sent on the smpp request for the data_coding byte ends up being 1,5, or 9. I believe this is caused because the GeneralDataCoding object that is used by the SmppProducer is using a MessageClass.CLASS1 which ends up masking an additional bit onto the value.  

In my case, our back end aggregator expects the data_coding value to be 0 which I can't specify because this extra bit is being set.

> SmppProducer sends incorrect data_coding parameter
> --------------------------------------------------
>
>                 Key: CAMEL-3834
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3834
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-smpp
>    Affects Versions: 2.5.0
>            Reporter: Steve Gansemer
>            Assignee: Christian Müller
>
> The dataCoding parameter on the SMPP uri allows for a value of 0,4, or 8.  Our aggregator expects the data_coding parameter on the SMPP request from the SmppProducer to be 0=SMSC Default Alphabet.  However, when 0, 4, or 8 is specified for the dataCoding parameter, the actual value sent on the smpp request is 1, 5, or 9.  It appears the MessageClass.Class1 on the GeneralDataCoding object in SmppProducer is masking an additional 1 to the byte value.
> It seems the dataCoding parameter should allow you to specify the actual value that is needed as defined by the SMPP Protocol specification.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CAMEL-3834) SmppProducer sends incorrect data_coding parameter

Posted by "Christian Müller (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-3834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13017122#comment-13017122 ] 

Christian Müller commented on CAMEL-3834:
-----------------------------------------

Steve, what exactly is the problem?
SmppProducer use the Alphabet [1] class from jsmpp to set the data coding parameter. The Alphabet enum defines the values 0x00, 0x04 and 0x08. We use the Alphabet.valueOf(dataCoding) method to set the dataCoding. If you try to set a different value than 0x00, 0x04 and 0x08, you will get an IllegalArgumentException. So, everything looks good for me. Where do you receive the 1, 5 and 9 value?

[1] http://code.google.com/p/jsmpp/source/browse/tags/2.1.0/src/java/main/org/jsmpp/bean/Alphabet.java

Christian

> SmppProducer sends incorrect data_coding parameter
> --------------------------------------------------
>
>                 Key: CAMEL-3834
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3834
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-smpp
>    Affects Versions: 2.5.0
>            Reporter: Steve Gansemer
>            Assignee: Christian Müller
>
> The dataCoding parameter on the SMPP uri allows for a value of 0,4, or 8.  Our aggregator expects the data_coding parameter on the SMPP request from the SmppProducer to be 0=SMSC Default Alphabet.  However, when 0, 4, or 8 is specified for the dataCoding parameter, the actual value sent on the smpp request is 1, 5, or 9.  It appears the MessageClass.Class1 on the GeneralDataCoding object in SmppProducer is masking an additional 1 to the byte value.
> It seems the dataCoding parameter should allow you to specify the actual value that is needed as defined by the SMPP Protocol specification.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Reopened] (CAMEL-3834) SmppProducer sends incorrect data_coding parameter

Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hadrian Zbarcea reopened CAMEL-3834:
------------------------------------


> SmppProducer sends incorrect data_coding parameter
> --------------------------------------------------
>
>                 Key: CAMEL-3834
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3834
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-smpp
>    Affects Versions: 2.7.0
>            Reporter: Steve Gansemer
>            Assignee: Christian Müller
>             Fix For: 2.7.2, 2.8.0
>
>
> The dataCoding parameter on the SMPP uri allows for a value of 0,4, or 8.  Our aggregator expects the data_coding parameter on the SMPP request from the SmppProducer to be 0=SMSC Default Alphabet.  However, when 0, 4, or 8 is specified for the dataCoding parameter, the actual value sent on the smpp request is 1, 5, or 9.  It appears the MessageClass.Class1 on the GeneralDataCoding object in SmppProducer is masking an additional 1 to the byte value.
> It seems the dataCoding parameter should allow you to specify the actual value that is needed as defined by the SMPP Protocol specification.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Closed] (CAMEL-3834) SmppProducer sends incorrect data_coding parameter

Posted by "Christian Müller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Müller closed CAMEL-3834.
-----------------------------------


> SmppProducer sends incorrect data_coding parameter
> --------------------------------------------------
>
>                 Key: CAMEL-3834
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3834
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-smpp
>    Affects Versions: 2.7.0
>            Reporter: Steve Gansemer
>            Assignee: Christian Müller
>             Fix For: 2.8.0
>
>
> The dataCoding parameter on the SMPP uri allows for a value of 0,4, or 8.  Our aggregator expects the data_coding parameter on the SMPP request from the SmppProducer to be 0=SMSC Default Alphabet.  However, when 0, 4, or 8 is specified for the dataCoding parameter, the actual value sent on the smpp request is 1, 5, or 9.  It appears the MessageClass.Class1 on the GeneralDataCoding object in SmppProducer is masking an additional 1 to the byte value.
> It seems the dataCoding parameter should allow you to specify the actual value that is needed as defined by the SMPP Protocol specification.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Assigned] (CAMEL-3834) SmppProducer sends incorrect data_coding parameter

Posted by "Christian Müller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Müller reassigned CAMEL-3834:
---------------------------------------

    Assignee: Christian Müller

> SmppProducer sends incorrect data_coding parameter
> --------------------------------------------------
>
>                 Key: CAMEL-3834
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3834
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-smpp
>    Affects Versions: 2.5.0
>            Reporter: Steve Gansemer
>            Assignee: Christian Müller
>
> The dataCoding parameter on the SMPP uri allows for a value of 0,4, or 8.  Our aggregator expects the data_coding parameter on the SMPP request from the SmppProducer to be 0=SMSC Default Alphabet.  However, when 0, 4, or 8 is specified for the dataCoding parameter, the actual value sent on the smpp request is 1, 5, or 9.  It appears the MessageClass.Class1 on the GeneralDataCoding object in SmppProducer is masking an additional 1 to the byte value.
> It seems the dataCoding parameter should allow you to specify the actual value that is needed as defined by the SMPP Protocol specification.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira