Camel
  1. Camel
  2. CAMEL-4695

Calling the camel-smpp component results in a NullPointerException

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.0
    • Component/s: camel-smpp
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When the camel-smpp component is called to submit a SMS, a NullPointerException is thrown:

      Stacktrace
      Caused by: java.lang.NullPointerException
             at org.jsmpp.util.PDUByteBuffer.appendAll(PDUByteBuffer.java:182)[149:org.apache.servicemix.bundles.jsmpp:2.1.0.3]
             at org.jsmpp.util.DefaultComposer.submitSm(DefaultComposer.java:238)[149:org.apache.servicemix.bundles.jsmpp:2.1.0.3]
             at org.jsmpp.DefaultPDUSender.sendSubmitSm(DefaultPDUSender.java:196)[149:org.apache.servicemix.bundles.jsmpp:2.1.0.3]
             at org.jsmpp.SynchronizedPDUSender.sendSubmitSm(SynchronizedPDUSender.java:192)[149:org.apache.servicemix.bundles.jsmpp:2.1.0.3]
             at org.jsmpp.session.SubmitSmCommandTask.executeTask(SubmitSmCommandTask.java:86)[149:org.apache.servicemix.bundles.jsmpp:2.1.0.3]
             at org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:248)[149:org.apache.servicemix.bundles.jsmpp:2.1.0.3]
             at org.jsmpp.session.SMPPSession.submitShortMessage(SMPPSession.java:320)[149:org.apache.servicemix.bundles.jsmpp:2.1.0.3]
             at org.apache.camel.component.smpp.SmppSubmitSmCommand.execute(SmppSubmitSmCommand.java:56)
             ... 62 more
      

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        5m 21s 1 Christian Müller 18/Nov/11 22:37
        Hide
        Christian Müller added a comment -

        It's easy if you have a look at the change set Claus mentioned [1]. The fix is also back ported to the camel-2.8.x maintenance branch...

        [1] https://fisheye6.atlassian.com/changelog/camel?cs=1165993

        Show
        Christian Müller added a comment - It's easy if you have a look at the change set Claus mentioned [1] . The fix is also back ported to the camel-2.8.x maintenance branch... [1] https://fisheye6.atlassian.com/changelog/camel?cs=1165993
        Hide
        Ruslan added a comment -

        Ok, but the fix has been done in new SmppSubmitSmCommand file

        Where do I add this fix in 2.8.0 version?

        Show
        Ruslan added a comment - Ok, but the fix has been done in new SmppSubmitSmCommand file Where do I add this fix in 2.8.0 version ?
        Hide
        Claus Ibsen added a comment -

        Yes you can patch the code yourself. Click the Source tab on this ticket to see the code changes.

        Show
        Claus Ibsen added a comment - Yes you can patch the code yourself. Click the Source tab on this ticket to see the code changes.
        Hide
        Ruslan added a comment -

        Christian, how this issue has been resolved? Can I patch 2.8.0 version?

        Show
        Ruslan added a comment - Christian, how this issue has been resolved? Can I patch 2.8.0 version?
        Christian Müller made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Christian Müller made changes -
        Field Original Value New Value
        Affects Version/s 2.8.2 [ 12317866 ]
        Christian Müller created issue -

          People

          • Assignee:
            Christian Müller
            Reporter:
            Christian Müller
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development