I updated the WIKI. Let me know what you think.
We have to use an empty string as default, otherwise we will get an NPE
from the JSMPP library:

java.lang.NullPointerException
    at
org.jsmpp.session.BindParameter.hasEqualAddressRange(BindParameter.java:130)
    at org.jsmpp.session.BindParameter.equals(BindParameter.java:184)
    at org.easymock.internal.matchers.Equals.matches(Equals.java:40)
    at
org.easymock.internal.ExpectedInvocation.matches(ExpectedInvocation.java:94)
    at
org.easymock.internal.ExpectedInvocation.matches(ExpectedInvocation.java:85)
    at
org.easymock.internal.UnorderedBehavior.addActual(UnorderedBehavior.java:57)
    at org.easymock.internal.MocksBehavior.addActual(MocksBehavior.java:87)
    at org.easymock.internal.ReplayState.invokeInner(ReplayState.java:58)
    at org.easymock.internal.ReplayState.invoke(ReplayState.java:46)
    at
org.easymock.internal.MockInvocationHandler.invoke(MockInvocationHandler.java:40)
    at
org.easymock.internal.ObjectMethodsFilter.invoke(ObjectMethodsFilter.java:85)
    at
org.easymock.internal.ClassProxyFactory$MockMethodInterceptor.intercept(ClassProxyFactory.java:94)
    at
org.jsmpp.session.SMPPSession$$EnhancerByCGLIB$$e99eb034.connectAndBind(<generated>)
    at
org.apache.camel.component.smpp.SmppConsumer.createSession(SmppConsumer.java:95)
    at
org.apache.camel.component.smpp.SmppConsumer.doStart(SmppConsumer.java:84)
    at
org.apache.camel.component.smpp.SmppConsumerTest.doStartShouldStartANewSmppSession(SmppConsumerTest.java:88)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
    at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
    at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
    at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
    at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
    at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)



Best,
Christian

On Tue, Oct 30, 2012 at 3:18 PM, Glen Mazza <gma...@talend.com> wrote:

> Hi Willem (or anybody else), could we have more detail added concerning
> the new SMPP addressRange option, here is what we have:
> https://cwiki.apache.org/**confluence/pages/diffpages.**
> action?pageId=9012014&**originalId=30739775<https://cwiki.apache.org/confluence/pages/diffpages.action?pageId=9012014&originalId=30739775>
>
> A few questions:
> 1.) What does the default value of "" indicate?
> 2.) Can/should we have a default value of null like we have for the other
> options with this component?  This is the only empty-string default we
> have.  (I would guess the default value doesn't necessarily have to be the
> value used to internally represent it in the code.)
> 3.) When you say "the address range for the SmppConsumer to use", do you
> write to or listen from, what does "use" mean here?
> 4.) Can we have some example ranges given in this description so people
> would know the syntax of what they can place here?
>
> You can either answer here & I'll update or go ahead and update directly
> the page.
>
> Thanks,
> Glen
>
>
>
> --
> Glen Mazza
> Talend Community Coders - coders.talend.com
> blog: www.jroller.com/gmazza
>
>


--

Reply via email to