Hi Sanaz,

sorry for my quiet period but I was stuck with a customer.

I will resume my investigation today and keep you posted.

Regards
JB

Sanazj wrote:
Hi JB,

I'm still waiting to hear back from you on the message exchange bug issue.
It'd be great if you could review my code and let me know what's causing the
errors that appear in the SM log.

Regards,

Sanaz


Sanazj wrote:
My smpp project file is too large to attach so instead I'm including SU
POM, Xbean, MyRouteBuilder and Camel's camel_context files:
http://www.nabble.com/file/p25917260/xbean.xml xbean.xml http://www.nabble.com/file/p25917260/pom.xml pom.xml http://www.nabble.com/file/p25917260/MyRouteBuilder.java MyRouteBuilder.java http://www.nabble.com/file/p25917260/camel-context.xml camel-context.xml

Sanazj wrote:
Hi JB,

Following my previous post I'm wondering if you have fixed the exchange
yet in the new build.I'm experiencing the same issue that Joel mentioned
in his post when deploying this snap shot:
servicemix-smpp-2009.02-20091008.130308-11-installer.  I followed the
instruction in your last post and replied with a log file and now come
across a new issue when reducing the level of debugging int the root from
DEBUG to ERROR. When using the latest snapshot dated Oct 12th,
servicemix-smpp-2009.02-20091012.200809-12-installer, but servicemix
simply freezes and the log file doesn't get updated!

To make debugging this issue easier I've attached the my component named
smpp_project containing all the su and sa units that I'm using. In
addition the attached SM logs are labeled based on the level of debugging
enabled DEBUG and ERROR.

Once again any help is greatly appreciated.

Sanaz

 http://www.nabble.com/file/p25917055/servicemix_ERROR_Log.log
servicemix_ERROR_Log.log http://www.nabble.com/file/p25917055/servicemix_DEBUG_LOG.log servicemix_DEBUG_LOG.log
Jean-Baptiste Onofré wrote:
Hi Joel,

I have found a bug in the SMPP component:
the exchange is created, the marshaler populates the normalized message but the exchange is not send :/ (big shame on me ://).

So I have corrected and commited the issue. We're going to launch a hudson build and you will be able to make a new test using the 2009.02-SNAPSHOT.

Regards
JB

gardion1 wrote:
Hello,

I generated another log file with even more log information.  It has
camel
set to debug and activemq in case you need more information.  However,
it
has a lot more information.
http://www.nabble.com/file/p25798102/servicemix.log servicemix.log
Joel


gardion1 wrote:
Gert,

I have set the log level to debug for root (following these
instructions
http://servicemix.apache.org/how-do-i-change-the-logging.html).  I
have
attached the  http://www.nabble.com/file/p25795442/servicemix.log
servicemix.log  file.  In the test case I sent a single sm_delevier
request from the smsc simulator to the smpp-servicemix module.  I
included
earlier parts of the log file in case they were useful.

My configuration for smpp (xbean.xml) is as follows

<?xml version="1.0"?>
<beans xmlns:smpp="http://servicemix.apache.org/smpp/1.0";
       xmlns:tut="urn:org:apache:servicemix:tutorial:testsmpp">

  <smpp:consumer service="tut:smpp_service"
                 endpoint="endpoint"
                 host="agsbd02"
                 port="2775"
                 systemId="test"
                 password="test"
                 targetService="tut:smpp_service"/>
</beans>

I added a targetService since it complained otherwise if I didn't.

the MyRouteBuilder.java has the change you suggested.

package org.apache.servicemix.aegis.smpp;
import javax.xml.transform.dom.DOMSource; import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.camel.builder.RouteBuilder;

/**
 * A Camel Router
 *
 * @version $Revision: 1.1 $
 */
public class MyRouteBuilder extends RouteBuilder {

    public void configure() {
from("jbi:endpoint:urn:org:apache:servicemix:tutorial:testsmpp:smpp_service:endpoint") // 1 .to("log:tutorial-jbi") // 2 .convertBodyTo(DOMSource.class) // 3 .to("log:tutorial-domsource") // 2 .convertBodyTo(String.class) // 3
            .to("log:tutorial-string");
        /*
from("timer://tutorial?fixedRate=true&delay=3000&period=10000") //
1
.setBody(constant("Hello world!")) // 2 .to("log:tutorial"); */ }
}

...
INFO  - AutoDeploymentService          - Directory: hotdeploy: Archive
changed:
processing smpp-sa-1.0-SNAPSHOT.jar ...
DEBUG - AutoDeploymentService          - Unpacked archive
C:\service_mix\apache-
servicemix-3.3.1\hotdeploy\smpp-sa-1.0-SNAPSHOT.jar to
C:\service_mix\apache-ser
vicemix-3.3.1\data\smx\tmp\smpp-sa-1.0-SNAPSHOT.0.tmp
DEBUG - AutoDeploymentService          - SA dependencies:
[servicemix-camel, ser
vicemix-smpp]
DEBUG - DeploymentService              - Moving
C:\service_mix\apache-servicemix
-3.3.1\data\smx\tmp\smpp-sa-1.0-SNAPSHOT.0.tmp to
C:\service_mix\apache-servicem
ix-3.3.1\data\smx\service-assemblies\smpp-sa\version_11\install
DEBUG - DeploymentService              - Unpack service unit archive
C:\service_
mix\apache-servicemix-3.3.1\data\smx\service-assemblies\smpp-sa\version_11\insta
ll\test-smpp-producer-su-1.0-SNAPSHOT.zip to
C:\service_mix\apache-servicemix-3.
3.1\data\smx\service-assemblies\smpp-sa\version_11\sus\servicemix-smpp\test-smpp
-producer-su
DEBUG - SmppComponent                  - Deploying service unit
DEBUG - SmppComponent                  - Looking for
C:\service_mix\apache-servi
cemix-3.3.1\data\smx\service-assemblies\smpp-sa\version_11\sus\servicemix-smpp\t
est-smpp-producer-su\xbean.xml: true
DEBUG - SmppComponent                  - Service unit deployed
DEBUG - DeploymentService              - Unpack service unit archive
C:\service_
mix\apache-servicemix-3.3.1\data\smx\service-assemblies\smpp-sa\version_11\insta
ll\test-smpp-camel-su-1.0-SNAPSHOT.zip to
C:\service_mix\apache-servicemix-3.3.1
\data\smx\service-assemblies\smpp-sa\version_11\sus\servicemix-camel\test-smpp-c
amel-su
DEBUG - CamelJbiComponent              - Deploying service unit
DEBUG - CamelJbiComponent              - Looking for
C:\service_mix\apache-servi
cemix-3.3.1\data\smx\service-assemblies\smpp-sa\version_11\sus\servicemix-camel\
test-smpp-camel-su\camel-context.xml: true
DEBUG - CamelJbiComponent              - Service unit deployed
INFO  - ServiceAssemblyLifeCycle       - Starting service assembly:
smpp-sa
INFO  - ServiceUnitLifeCycle           - Initializing service unit:
test-smpp-pr
oducer-su
DEBUG - SmppComponent                  - Initializing service unit
DEBUG - SmppComponent                  - Service unit initialized
INFO  - ServiceUnitLifeCycle           - Initializing service unit:
test-smpp-ca
mel-su
DEBUG - CamelJbiComponent              - Initializing service unit
DEBUG - ComponentContextImpl           - Component: servicemix-camel
activated e
ndpoint: {urn:org:apache:servicemix:tutorial:testsmpp}smpp_service :
endpoint
DEBUG - CamelJbiComponent              - Querying service description
for
Servic
eEndpoint[service={urn:org:apache:servicemix:tutorial:testsmpp}smpp_service,endp
oint=endpoint]
DEBUG - CamelJbiComponent              - No description found for
{urn:org:apach
e:servicemix:tutorial:testsmpp}smpp_service:endpoint
DEBUG - WSDL1Processor                 - Endpoint
ServiceEndpoint[service={urn:o
rg:apache:servicemix:tutorial:testsmpp}smpp_service,endpoint=endpoint]
has
no se
rvice description
DEBUG - CamelJbiComponent              - Querying service description
for
Servic
eEndpoint[service={urn:org:apache:servicemix:tutorial:testsmpp}smpp_service,endp
oint=endpoint]
DEBUG - CamelJbiComponent              - No description found for
{urn:org:apach
e:servicemix:tutorial:testsmpp}smpp_service:endpoint
DEBUG - WSDL2Processor                 - Endpoint
ServiceEndpoint[service={urn:o
rg:apache:servicemix:tutorial:testsmpp}smpp_service,endpoint=endpoint]
has
no se
rvice description
DEBUG - ComponentContextImpl           - Component: servicemix-camel
activated e
ndpoint: {http://activemq.apache.org/camel/schema/jbi}provider :
camel:test-smpp
-camel-su-controlBus
DEBUG - JCAFlow                        - ServiceMix: broadcasting info
for
org.a
pache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={urn:org
:apache:servicemix:tutorial:testsmpp}smpp_service,endpoint=endpoint]]
DEBUG - CamelJbiComponent              - Querying service description
for
Servic
eEndpoint[service={http://activemq.apache.org/camel/schema/jbi}provider,endpoint
=camel:test-smpp-camel-su-controlBus]
DEBUG - CamelJbiComponent              - No description found for
{http://active
mq.apache.org/camel/schema/jbi}provider:camel:test-smpp-camel-su-controlBus
DEBUG - WSDL1Processor                 - Endpoint
ServiceEndpoint[service={http:
//activemq.apache.org/camel/schema/jbi}provider,endpoint=camel:test-smpp-camel-s
u-controlBus] has no service description
DEBUG - CamelJbiComponent              - Querying service description
for
Servic
eEndpoint[service={http://activemq.apache.org/camel/schema/jbi}provider,endpoint
=camel:test-smpp-camel-su-controlBus]
DEBUG - CamelJbiComponent              - No description found for
{http://active
mq.apache.org/camel/schema/jbi}provider:camel:test-smpp-camel-su-controlBus
DEBUG - WSDL2Processor                 - Endpoint
ServiceEndpoint[service={http:
//activemq.apache.org/camel/schema/jbi}provider,endpoint=camel:test-smpp-camel-s
u-controlBus] has no service description
DEBUG - CamelJbiComponent              - Service unit initialized
INFO  - ServiceUnitLifeCycle           - Starting service unit:
test-smpp-produc
er-su
DEBUG - SmppComponent                  - Starting service unit
DEBUG - JMSFlow                        - ServiceMix: broadcasting info
for
org.a
pache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={urn:org
:apache:servicemix:tutorial:testsmpp}smpp_service,endpoint=endpoint]]
DEBUG - JCAFlow                        - ServiceMix: broadcasting info
for
org.a
pache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://
activemq.apache.org/camel/schema/jbi}provider,endpoint=camel:test-smpp-camel-su-
controlBus]]
DEBUG - JMSFlow                        - ServiceMix: broadcasting info
for
org.a
pache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://
activemq.apache.org/camel/schema/jbi}provider,endpoint=camel:test-smpp-camel-su-
controlBus]]
DEBUG - SMPPSession                    - Connect and bind to agsbd02
port
2775
INFO  - SMPPSession                    - Connected
INFO  - SMPPSession                    - Starting PDUReaderWorker with
processor
 degree:3 ...
DEBUG - AbstractSessionContext         - Activity notified
DEBUG - SMPPSessionOpen                - Bind Response header (29,
80000001, 000
00000, 1)
DEBUG - AbstractSession                - bind response received
DEBUG - SmppComponent                  - Service unit started
INFO  - SMPPSession                    - Starting EnquireLinkSender
INFO  - ServiceUnitLifeCycle           - Starting service unit:
test-smpp-camel-
su
DEBUG - CamelJbiComponent              - Starting service unit
DEBUG - CamelJbiComponent              - Service unit started
INFO  - AutoDeploymentService          - Directory: hotdeploy:
Finished
installa
tion of archive:  smpp-sa-1.0-SNAPSHOT.jar
DEBUG - AbstractSessionContext         - Activity notified
DEBUG - SMPPSession                    - Sending enquire_link_resp
DEBUG - AbstractSessionContext         - Activity notified
DEBUG - SMPPSession                    - deliver_sm_resp with
seq_number 4
has b
een sent
DEBUG - AbstractSessionContext         - Activity notified
INFO  - AbstractGenericSMPPSessionBound - Receving unbind request
INFO  - SMPPSession                    - EnquireLinkSender stop
DEBUG - SMPPSession                    - No activity notified
DEBUG - SMPPSession                    - Sending enquire link notify
INFO  - SMPPSession                    - PDUReaderWorker stop




Gert Vanthienen wrote:
Joel,

Do you get any additional warnings/error in the log file?  If there's
a routing problem, the log should at least indicate that the endpoint
could not be found.  Could you try raising the log level to DEBUG and
posting us the log for a single message flow, so we can take a look
at
that to help you figure out what's wrong?

Regards,

Gert Vanthienen
------------------------
Open Source SOA: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com






Reply via email to