Read thread is stopped for socket

435 views
Skip to first unread message

Yessica Marianata Susanto

unread,
Feb 19, 2014, 11:47:49 PM2/19/14
to mobicent...@googlegroups.com
Hello, may I know
if I install mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA
and
mobicents-diameter-mux-1.5.0.FINAL.sar
and diameter-openims-1.7.0-SNAPSHOT.war

Is it true output console?

--When Starting Jboss---
INFO  [TCPTransportClient] (TCPReader-4) Read thread is stopped for socket [Socket[addr=hss.open-ims.test/127.0.0.1,port=3868,localport=53824]]

--When Jboss has been started---
INFO  [TCPTransportClient] (TCPReader-5) Read thread is stopped for socket [Socket[addr=hss.open-ims.test/127.0.0.1,port=3868,localport=53824]]
INFO  [TCPTransportClient] (TCPReader-6) Read thread is stopped for socket [Socket[addr=hss.open-ims.test/127.0.0.1,port=3868,localport=
53824]]
INFO  [TCPTransportClient] (TCPReader-7) Read thread is stopped for socket [Socket[addr=hss.open-ims.test/127.0.0.1,port=3868,localport=
53824]]
INFO  [TCPTransportClient] (TCPReader-8) Read thread is stopped for socket [Socket[addr=hss.open-ims.test/127.0.0.1,port=3868,localport=
53824]]
INFO  [TCPTransportClient] (TCPReader-9) Read thread is stopped for socket [Socket[addr=hss.open-ims.test/127.0.0.1,port=3868,localport=
53824]]


Best Regard
Yessica
Message has been deleted

Yessica Marianata Susanto

unread,
Feb 21, 2014, 5:02:09 AM2/21/14
to mobicent...@googlegroups.com
Hi all,
I've just found that the problem is from when CEA_EVENT and State Initialize
sending CEA message
on method org.jdiameter.client.impl.
controller.PeerImpl#processCeaMessage()


After sending CER message finished
         IMessage imessage = ((FsmEvent) event).getMessage();
         Avp resCode = message.getAvps().getAvp(RESULT_CODE);
makes value 5010

  /**
   * This error is returned when a CER message is received, and there
   * are no common applications supported between the peers.
   */
  public static final int NO_COMMON_APPLICATION = 5010;


And I'm still confused about this. Why?

I've just read  https://www.java.net/node/695017 by Alexandre Mendonca
Is it possible because I'm not inserting     ?
    - diameter-base-ra-DU-1.0.1.GA.jar (found in resources\base\)
    - diameter-base-example-DU-1.0.1.GA.jar (found in examples/base)


Best Regard
Yessica

Alexandre Mendonça

unread,
Feb 21, 2014, 5:54:23 AM2/21/14
to Mobicents Public
Hi,

You are mixing things. 

mobicents-diameter-mux-1.5.0.FINAL.sar is the Diameter MUX which includes the Diameter stack.
diameter-openims-1.7.0-SNAPSHOT.war is a SIP Servlets application, not a JAIN SLEE application.

The reason why you are getting the NO_COMMON_APPLICATION error, is because there's no Diameter Sh RA deployed, thus the stack won't advertise support for the Sh application.

If you want to run the JAIN SLEE and use the OpenIMS example you will need the Diameter RAs for Base and for Sh-Client. These can be found in the JAIN SLEE binary release, under resources directory.

You'll also need the OpenIMS SLEE example, which can be found at diameter release binary at examples directory.

Regards,


--
You received this message because you are subscribed to the Google Groups "mobicents-public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobicents-publ...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Yessica Marianata Susanto

unread,
Feb 21, 2014, 8:16:00 AM2/21/14
to mobicent...@googlegroups.com
Hello Alexandre Mendonça

Finally you answered, that really relieved me, for sure. Thank you very much.

 So, I need to drop  :

1.  mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA / resources / diameter-base / diameter-base-ra-DU-2.7.0.FINAL.jar   file
     or mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA / resources / diameter-base /  directory
     into
     mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA / jboss-5.1.0.GA / server / default / deploy /

2. mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA / resources / diameter-sh-client / diameter-sh-client-ra-DU-2.7.0.FINAL.jar   file
    or mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA / resources / diameter-sh-client / directory
    into
    mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/deploy/

3. For OpenIMS Slee Example, is it right with this one?
    http://code.google.com/p/mobicents/source/browse/trunk/servers/jain-slee/examples/?r=11448#examples%2Fdiameter-openims
   
    OpenIMS example also will be dropped
    into
    mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/deploy/

I will try :).

But may I ask something?
If I used diameter-openims-1.7.0-SNAPSHOT.war in  a  SIP Servlets application (MSS I mean)
Do I need  number 1 and 2 ?


Yessica Marianata :D
   

Alexandre Mendonça

unread,
Feb 23, 2014, 5:20:10 PM2/23/14
to Mobicents Public
Hi Yessica,

We answer as time permits. And it's always a good learning experience for the users to try a few things meanwhile :)

For JAIN-SLEE (asuming you already have the Diameter MUX deployed), your steps are right (deploying the DU jar file is enough, no need for the whole directory). Keep in mind that for 3, that's the source code, from where you can build the binary.. but you can also find a released binary in the diameter binary zip.

As for MSS, you'd need the Diameter MUX as well, but at the moment there's no MSS for JBoss 5 and there''s no Diameter MUX for AS7, so it won't work out of the box. You can try to incorporate JDiameter stack as a library to you MSS application, you should have no issues.

Hope it helps. Regards,


--

Alexandre Mendonça

unread,
Feb 24, 2014, 6:05:11 PM2/24/14
to Yessica Marianata Susanto, Mobicents Public
HI Yessica,

No worries, just be patient :)

Your SIP11 RA DU is correct, that's the one to use. What is happening is that both OpenIMS and SLEE are trying to use port 5060 for SIP. In MSS there was no need to change as it was using port 5080 by default instead of 5060.

See http://docs.jboss.org/mobicents/jain-slee/2.7.0.FINAL/resources/sip11/user-guide/en-US/html_single/#ra_configuration on how to configure the RA, to set it to 5080 instead so there's no collision.

Regards,


On Mon, Feb 24, 2014 at 12:41 PM, Yessica Marianata Susanto <yessica14...@gmail.com> wrote:
Hi Alexandre Mendonça,
Ouww, Ok I see with you time permit and I'm sorry.


I have tried it and no error again about
"Read thread is stopped for socket" :D
with them :
1. diameter-base-ra-DU-2.7.0.FINAL.jar
2. diameter-sh-client-ra-DU-2.7.0.FINAL.jar
3. diameter-openims-example-DU-2.6.0-SNAPSHOT.jar (I installed this version because there was no the newer version that same with 2.7.0)
    http://code.google.com/p/mobicents/source/browse/trunk/servers/jain-slee/examples/?r=11448#examples%2Fdiameter-openims
 




Based on https://groups.google.com/forum/#!topic/mobicents-public/Z1TK53NXp0E,
I also installed :
a. sip-services-proxy-with-initial-invite-DU-2.4.1-SNAPSHOT.jar
    from
    http://code.google.com/p/mobicents/source/browse/trunk/servers/jain-slee/examples/?r=9114#examples%2Fsip-services%2Fproxy-with-initial-invite-services-DU
    (same with source of number 3 above = diameter-openims-example-DU-2.6.0-SNAPSHOT.jar)

b. sip11-ra-DU-2.7.0.FINAL.jar
    from
    /home/firswap/Workspace/server/mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/resources/sip11





And now appear other problem :
i.)
Missing dependencies for diameter-openims-example-DU-2.6.0-SNAPSHOT.jar:
 +-- DiameterShClient
 +-- EventTypeID[name=javax.slee.serviceactivity.ServiceStartedEvent,vendor=javax.slee,version=1.0]
 +-- EventTypeID[name=javax.slee.ActivityEndEvent,vendor=javax.slee,version=1.0]
 +-- ResourceAdaptorTypeID[name=JAIN SIP,vendor=javax.sip,version=1.2]
 +-- EventTypeID[name=javax.sip.message.Response.CLIENT_ERROR,vendor=net.java.slee,version=1.2]
 +-- ResourceAdaptorTypeID[name=Diameter Sh-Client,vendor=java.net,version=0.8.1]
 +-- ProfileSpecificationID[name=AddressProfileSpec,vendor=javax.slee,version=1.1]
 +-- SipRA
 +-- EventTypeID[name=net.java.slee.resource.diameter.sh.events.SubscribeNotificationsAnswer,vendor=java.net,version=0.8]
 +-- EventTypeID[name=javax.slee.facilities.TimerEvent,vendor=javax.slee,version=1.0]
 +-- EventTypeID[name=net.java.slee.resource.diameter.sh.events.PushNotificationRequest,vendor=java.net,version=0.8]
WARN  [DeploymentManager] (pool-20-thread-1) Unable to INSTALL diameter-openims-example-DU-2.6.0-SNAPSHOT.jar right now. Waiting for dependencies to be resolved.


ii.)
 Missing dependencies for diameter-openims-example-DU-2.6.0-SNAPSHOT.jar:
 +-- DiameterShClient
 +-- EventTypeID[name=javax.slee.serviceactivity.ServiceStartedEvent,vendor=javax.slee,version=1.0]
 +-- EventTypeID[name=javax.slee.ActivityEndEvent,vendor=javax.slee,version=1.0]
 +-- ResourceAdaptorTypeID[name=JAIN SIP,vendor=javax.sip,version=1.2]
 +-- EventTypeID[name=javax.sip.message.Response.CLIENT_ERROR,vendor=net.java.slee,version=1.2]
 +-- ResourceAdaptorTypeID[name=Diameter Sh-Client,vendor=java.net,version=0.8.1]
 +-- ProfileSpecificationID[name=AddressProfileSpec,vendor=javax.slee,version=1.1]
 +-- SipRA
 +-- EventTypeID[name=net.java.slee.resource.diameter.sh.events.SubscribeNotificationsAnswer,vendor=java.net,version=0.8]
 +-- EventTypeID[name=javax.slee.facilities.TimerEvent,vendor=javax.slee,version=1.0]
 +-- EventTypeID[name=net.java.slee.resource.diameter.sh.events.PushNotificationRequest,vendor=java.net,version=0.8]
WARN  [DeploymentManager] (pool-20-thread-1) Unable to INSTALL diameter-openims-example-DU-2.6.0-SNAPSHOT.jar right now. Waiting for dependencies to be resolved.


iii.)
INFO  [DeploymentMBeanImpl] Installed DeployableUnitID[url=file:/home/firswap/Workspace/server/mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/deploy/sip11-ra-DU-2.7.0.FINAL.jar/]

ERROR [SLEESubDeployer] (pool-20-thread-1)
javax.slee.resource.InvalidConfigurationException: Address already in use
    at org.mobicents.slee.resource.sip11.SipResourceAdaptor.raVerifyConfiguration(SipResourceAdaptor.java:1506)
    at org.mobicents.slee.resource.ResourceAdaptorObjectImpl.verifyConfigProperties(ResourceAdaptorObjectImpl.java:236)
    at org.mobicents.slee.resource.ResourceAdaptorObjectImpl.raConfigure(ResourceAdaptorObjectImpl.java:174)
    at org.mobicents.slee.resource.ResourceAdaptorEntityImpl.<init>(ResourceAdaptorEntityImpl.java:208)
    at org.mobicents.slee.container.management.ResourceManagementImpl.createResourceAdaptorEntity(ResourceManagementImpl.java:210)
    at org.mobicents.slee.container.deployment.jboss.action.CreateResourceAdaptorEntityAction.invoke(CreateResourceAdaptorEntityAction.java:52)
    at org.mobicents.slee.container.deployment.jboss.DeploymentManager.sciAction(DeploymentManager.java:316)
    at org.mobicents.slee.container.deployment.jboss.DeploymentManager.installDeployableUnit(DeploymentManager.java:161)
    at org.mobicents.slee.container.deployment.jboss.SLEESubDeployer.start(SLEESubDeployer.java:281)
    at org.mobicents.slee.container.deployment.jboss.SleeContainerDeployerImpl.start(SleeContainerDeployerImpl.java:268)
    at org.mobicents.slee.container.deployment.jboss.SLEEDeployer.callSubDeployer(SLEEDeployer.java:124)
    at org.mobicents.slee.container.deployment.jboss.SLEEDeployer.setInternalDeployer(SLEEDeployer.java:170)
    at org.mobicents.slee.container.deployment.jboss.SleeContainerDeployerImpl$1.run(SleeContainerDeployerImpl.java:139)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)
Caused by: java.net.BindException: Address already in use
    at java.net.PlainDatagramSocketImpl.bind0(Native Method)
    at java.net.AbstractPlainDatagramSocketImpl.bind(AbstractPlainDatagramSocketImpl.java:95)
    at java.net.DatagramSocket.bind(DatagramSocket.java:376)
    at java.net.DatagramSocket.<init>(DatagramSocket.java:231)
    at org.mobicents.slee.resource.sip11.SipResourceAdaptor.raVerifyConfiguration(SipResourceAdaptor.java:1474)
    ... 17 more


iv.)
WARN  [SleeContainerDeployerImpl] (pool-20-thread-1) SLEE DUs not deployed, due to missing dependencies:
file:/home/firswap/Workspace/server/mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/deploy/diameter-openims-example-DU-2.6.0-SNAPSHOT.jar/
    Missing Dependencies:
        SipRA

file:/home/firswap/Workspace/server/mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/deploy/sip-services-proxy-with-initial-invite-DU-2.4.1-SNAPSHOT.jar/
    Missing Dependencies:
        SipRA





So, I think I should remove sip11-ra-du   &   get the sip-ra-du    &    install sip-ra-du with management console
based on https://www.java.net/node/680601

But I don't know where should I found this sip-ra-du,
because I just found sip11-ra-du.jar 
in  /home/firswap/Workspace/server/mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/resources/sip11/  directory
 

Where will I found that sip-ra-du?

Yessica Marianata


Message has been deleted

Yessica Marianata Susanto

unread,
Feb 26, 2014, 4:27:53 AM2/26/14
to mobicent...@googlegroups.com
 Hi Alexandre Mendonça,

The error number   iii.)   and   iv.)  finally  disappeared.  :D
But missing dependency  number   i.)   or   ii.)   still exist.


After  I only :
---------------------
1.  Changed   javax.sip.PORT (from 5060 into 5080)    and    javax.sip.IP_ADDRESS (into 127.0.0.1
          (  from  http://code.google.com/p/mobicents/source/browse/trunk/servers/jain-slee/ )
     /home/firswap/Workspace/server/JainSleeTrunk/resources/sip11/ra/src/main/resources/META-INF/resource-adaptor-jar.xml

2.  Changed pom.xml   at  /home/firswap/Workspace/server/JainSleeTrunk/resources/sip11 directory
     part  <artifactId>jain-sip-ri</artifactId>    (from  1.2.170   into    1.2.167)
     because there is no that  1.2.170  <version>  at:
                   - central (http://repo1.maven.org/maven2),
                   - jboss-deprecated-repository (https://repository.jboss.org/nexus/content/repositories/deprecated/),
                   - jboss-public-repository-group (https://repository.jboss.org/nexus/content/groups/public)


3.  And mvn clean install in   /home/firswap/Workspace/server/JainSleeTrunk/resources/sip11/ directory
     So produce    sip11-ra-DU-2.8.0-SNAPSHOT.jar     at
     /home/firswap/Workspace/server/mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/deploy/




Then appeared other errors that like these :
---------------------------------------------------------------
a.)
ERROR [SipResourceAdaptor] (main) error in initializing resource adaptor
javax.sip.PeerUnavailableException: The Peer SIP Stack: org.mobicents.ha.javax.sip.SipStackImpl could not be instantiated. Ensure the Path Name has been set.
    at javax.sip.SipFactory.createStack(SipFactory.java:324)
    at javax.sip.SipFactory.createSipStack(SipFactory.java:165)
    at org.mobicents.slee.resource.sip11.SipResourceAdaptor.raActive(SipResourceAdaptor.java:1195)
    at org.mobicents.slee.resource.ResourceAdaptorObjectImpl.raActive(ResourceAdaptorObjectImpl.java:255)
    at org.mobicents.slee.resource.ResourceAdaptorEntityImpl.sleeRunning(ResourceAdaptorEntityImpl.java:299)
    at org.mobicents.slee.container.management.ResourceManagementImpl.sleeRunning(ResourceManagementImpl.java:1053)
    at org.mobicents.slee.container.SleeContainer$1.run(SleeContainer.java:625)
    at org.mobicents.slee.container.SleeContainer.setSleeState(SleeContainer.java:649)
    at org.mobicents.slee.container.management.jmx.SleeManagementMBeanImpl$1.requestCompleted(SleeManagementMBeanImpl.java:179)
    at org.mobicents.slee.container.SleeContainer$1.run(SleeContainer.java:645)
    at org.mobicents.slee.container.SleeContainer.setSleeState(SleeContainer.java:649)
    at org.mobicents.slee.container.management.jmx.SleeManagementMBeanImpl.start(SleeManagementMBeanImpl.java:204)
    at org.mobicents.slee.container.management.jmx.SleeManagementMBeanImpl.startSlee(SleeManagementMBeanImpl.java:648)
     ...
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at javax.sip.SipFactory.createStack(SipFactory.java:314)
    ... 71 more
Caused by: javax.sip.PeerUnavailableException: The SipCache class name: org.mobicents.ha.javax.sip.cache.SipResourceAdaptorMobicentsSipCache could not be instantiated. Ensure the org.mobicents.ha.javax.sip.CACHE_CLASS_NAME property has been set correctly and that the class is on the classpath.
    at org.mobicents.ha.javax.sip.cache.SipCacheFactory.createSipCache(SipCacheFactory.java:54)
    at org.mobicents.ha.javax.sip.ClusteredSipStackImpl.<init>(ClusteredSipStackImpl.java:156)
    at org.mobicents.ha.javax.sip.SipStackImpl.<init>(SipStackImpl.java:58)
    ... 76 more
Caused by: java.lang.ClassNotFoundException: org.mobicents.ha.javax.sip.cache.SipResourceAdaptorMobicentsSipCache from BaseClassLoader


b.)
 ERROR [ResourceAdaptorEntity] (main) Got exception invoking raActive() for entity SipRA
java.lang.RuntimeException: error in initializing resource adaptor
    at org.mobicents.slee.resource.sip11.SipResourceAdaptor.raActive(SipResourceAdaptor.java:1232)
    at org.mobicents.slee.resource.ResourceAdaptorObjectImpl.raActive(ResourceAdaptorObjectImpl.java:255)
    at org.mobicents.slee.resource.ResourceAdaptorEntityImpl.sleeRunning(ResourceAdaptorEntityImpl.java:299)
    at org.mobicents.slee.container.management.ResourceManagementImpl.sleeRunning(ResourceManagementImpl.java:1053)
    at org.mobicents.slee.container.SleeContainer$1.run(SleeContainer.java:625)
    at org.mobicents.slee.container.SleeContainer.setSleeState(SleeContainer.java:649)
    at org.mobicents.slee.container.management.jmx.SleeManagementMBeanImpl$1.requestCompleted(SleeManagementMBeanImpl.java:179)
    at org.mobicents.slee.container.SleeContainer$1.run(SleeContainer.java:645)
    at org.mobicents.slee.container.SleeContainer.setSleeState(SleeContainer.java:649)
    at org.mobicents.slee.container.management.jmx.SleeManagementMBeanImpl.start(SleeManagementMBeanImpl.java:204)
    at org.mobicents.slee.container.management.jmx.SleeManagementMBeanImpl.startSlee(SleeManagementMBeanImpl.java:648)
   ...
Caused by: javax.sip.PeerUnavailableException: The Peer SIP Stack: org.mobicents.ha.javax.sip.SipStackImpl could not be instantiated. Ensure the Path Name has been set.
    at javax.sip.SipFactory.createStack(SipFactory.java:324)
    at javax.sip.SipFactory.createSipStack(SipFactory.java:165)
    at org.mobicents.slee.resource.sip11.SipResourceAdaptor.raActive(SipResourceAdaptor.java:1195)
    ... 69 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at javax.sip.SipFactory.createStack(SipFactory.java:314)
    ... 71 more
Caused by: javax.sip.PeerUnavailableException: The SipCache class name: org.mobicents.ha.javax.sip.cache.SipResourceAdaptorMobicentsSipCache could not be instantiated. Ensure the org.mobicents.ha.javax.sip.CACHE_CLASS_NAME property has been set correctly and that the class is on the classpath.
    at org.mobicents.ha.javax.sip.cache.SipCacheFactory.createSipCache(SipCacheFactory.java:54)
    at org.mobicents.ha.javax.sip.ClusteredSipStackImpl.<init>(ClusteredSipStackImpl.java:156)
    at org.mobicents.ha.javax.sip.SipStackImpl.<init>(SipStackImpl.java:58)
    ... 76 more
Caused by: java.lang.ClassNotFoundException: org.mobicents.ha.javax.sip.cache.SipResourceAdaptorMobicentsSipCache from BaseClassLoader


c.)
 ERROR [DiameterOpenIMSExampleSbb] (pool-28-thread-1) Unable to set sbb context.
java.lang.IllegalStateException: ra not active
    at org.mobicents.slee.resource.sip11.SleeSipProviderImpl.checkState(SleeSipProviderImpl.java:123)
    at org.mobicents.slee.resource.sip11.SleeSipProviderImpl.getAddressFactory(SleeSipProviderImpl.java:140)
    at org.mobicents.slee.examples.diameter.openims.DiameterOpenIMSExampleSbb.setSbbContext(DiameterOpenIMSExampleSbb.java:152)
    at org.mobicents.slee.runtime.sbb.SbbObjectImpl.<init>(SbbObjectImpl.java:124)
    at org.mobicents.slee.runtime.sbb.SbbObjectPoolFactory.makeObject(SbbObjectPoolFactory.java:146)
    at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974)
    at org.mobicents.slee.runtime.sbb.SbbObjectPoolImpl.borrowObject(SbbObjectPoolImpl.java:68)
    at org.mobicents.slee.runtime.sbbentity.SbbEntityImpl.assignSbbObject(SbbEntityImpl.java:740)
    at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.routeQueuedEvent(EventRoutingTaskImpl.java:360)
    at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.run(EventRoutingTaskImpl.java:126)
    at org.mobicents.slee.runtime.eventrouter.EventRouterExecutorImpl$EventRoutingTaskStatsCollector.run(EventRouterExecutorImpl.java:73)
 

d.)
ERROR [SbbEntityImpl] (pool-28-thread-1) Failed to assign and create sbb object
java.lang.IllegalStateException: ra not active
    at org.mobicents.slee.resource.sip11.SleeSipProviderImpl.checkState(SleeSipProviderImpl.java:123)
    at org.mobicents.slee.resource.sip11.SleeSipProviderImpl.getMessageFactory(SleeSipProviderImpl.java:225)
    at org.mobicents.slee.services.sip.registrar.RegistrarSbb.setSbbContext(RegistrarSbb.java:107)
    at org.mobicents.slee.runtime.sbb.SbbObjectImpl.<init>(SbbObjectImpl.java:124)
    at org.mobicents.slee.runtime.sbb.SbbObjectPoolFactory.makeObject(SbbObjectPoolFactory.java:146)
    at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974)
    at org.mobicents.slee.runtime.sbb.SbbObjectPoolImpl.borrowObject(SbbObjectPoolImpl.java:68)
    at org.mobicents.slee.runtime.sbbentity.SbbEntityImpl.assignSbbObject(SbbEntityImpl.java:740)
    at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.routeQueuedEvent(EventRoutingTaskImpl.java:360)
    at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.run(EventRoutingTaskImpl.java:126)
    at org.mobicents.slee.runtime.eventrouter.EventRouterExecutorImpl$EventRoutingTaskStatsCollector.run(EventRouterExecutorImpl.java:73)


e.)
ERROR [EventRoutingTaskImpl] (pool-28-thread-1) Caught exception while routing EventContext[event type id = EventTypeID[name=javax.slee.serviceactivity.ServiceStartedEvent,vendor=javax.slee,version=1.1] , event = org.mobicents.slee.container.service.ServiceStartedEventImpl@69f032ae , local ac = ACH=SERVICE>ServiceID[name=SIP Registrar Service,vendor=org.mobicents,version=1.2] , address = null , serviceID = ServiceID[name=SIP Registrar Service,vendor=org.mobicents,version=1.2]]
java.lang.IllegalStateException: ra not active
    at org.mobicents.slee.resource.sip11.SleeSipProviderImpl.checkState(SleeSipProviderImpl.java:123)
    at org.mobicents.slee.resource.sip11.SleeSipProviderImpl.getMessageFactory(SleeSipProviderImpl.java:225)
    at org.mobicents.slee.services.sip.registrar.RegistrarSbb.setSbbContext(RegistrarSbb.java:107)
    at org.mobicents.slee.runtime.sbb.SbbObjectImpl.<init>(SbbObjectImpl.java:124)
    at org.mobicents.slee.runtime.sbb.SbbObjectPoolFactory.makeObject(SbbObjectPoolFactory.java:146)
    at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974)
    at org.mobicents.slee.runtime.sbb.SbbObjectPoolImpl.borrowObject(SbbObjectPoolImpl.java:68)
    at org.mobicents.slee.runtime.sbbentity.SbbEntityImpl.assignSbbObject(SbbEntityImpl.java:740)
    at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.routeQueuedEvent(EventRoutingTaskImpl.java:360)
    at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.run(EventRoutingTaskImpl.java:126)
    at org.mobicents.slee.runtime.eventrouter.EventRouterExecutorImpl$EventRoutingTaskStatsCollector.run(EventRouterExecutorImpl.java:73)


f.)
 ERROR [SbbEntityImpl] (pool-28-thread-1) Failed to assign and create sbb object
java.lang.IllegalStateException: ra not active
    at org.mobicents.slee.resource.sip11.SleeSipProviderImpl.checkState(SleeSipProviderImpl.java:123)
    at org.mobicents.slee.resource.sip11.SleeSipProviderImpl.getMessageFactory(SleeSipProviderImpl.java:225)
    at org.mobicents.slee.services.sip.registrar.RegistrarSbb.setSbbContext(RegistrarSbb.java:107)
    at org.mobicents.slee.runtime.sbb.SbbObjectImpl.<init>(SbbObjectImpl.java:124)
    at org.mobicents.slee.runtime.sbb.SbbObjectPoolFactory.makeObject(SbbObjectPoolFactory.java:146)
    at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974)
    at org.mobicents.slee.runtime.sbb.SbbObjectPoolImpl.borrowObject(SbbObjectPoolImpl.java:68)
    at org.mobicents.slee.runtime.sbbentity.SbbEntityImpl.assignSbbObject(SbbEntityImpl.java:740)
    at org.mobicents.slee.runtime.eventrouter.routingtask.HandleSbbRollback.handleSbbRolledBack(HandleSbbRollback.java:153)
    at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.routeQueuedEvent(EventRoutingTaskImpl.java:608)
    at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.run(EventRoutingTaskImpl.java:126)
    at org.mobicents.slee.runtime.eventrouter.EventRouterExecutorImpl$EventRoutingTaskStatsCollector.run(EventRouterExecutorImpl.java:73)


g.)
ERROR [ProxySbb] (pool-29-thread-1) Could not create SBB properly:
java.lang.IllegalStateException: ra not active
    at org.mobicents.slee.resource.sip11.SleeSipProviderImpl.checkState(SleeSipProviderImpl.java:123)
    at org.mobicents.slee.resource.sip11.SleeSipProviderImpl.getMessageFactory(SleeSipProviderImpl.java:225)
    at org.mobicents.slee.services.sip.proxy.ProxySbb.setSbbContext(ProxySbb.java:633)
    at org.mobicents.slee.runtime.sbb.SbbObjectImpl.<init>(SbbObjectImpl.java:124)
    at org.mobicents.slee.runtime.sbb.SbbObjectPoolFactory.makeObject(SbbObjectPoolFactory.java:146)
    at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974)
    at org.mobicents.slee.runtime.sbb.SbbObjectPoolImpl.borrowObject(SbbObjectPoolImpl.java:68)
    at org.mobicents.slee.runtime.sbbentity.SbbEntityImpl.assignSbbObject(SbbEntityImpl.java:740)
    at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.routeQueuedEvent(EventRoutingTaskImpl.java:360)
    at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.run(EventRoutingTaskImpl.java:126)
    at org.mobicents.slee.runtime.eventrouter.EventRouterExecutorImpl$EventRoutingTaskStatsCollector.run(EventRouterExecutorImpl.java:73)


h.)
ERROR [ProxySbb] (pool-29-thread-1) Failed to start service
java.lang.IllegalStateException: ra not active
    at org.mobicents.slee.resource.sip11.SleeSipProviderImpl.checkState(SleeSipProviderImpl.java:123)
    at org.mobicents.slee.resource.sip11.SleeSipProviderImpl.getListeningPoints(SleeSipProviderImpl.java:332)
    at org.mobicents.slee.services.sip.proxy.ProxySbb.startMBeanConfigurator(ProxySbb.java:207)
    at org.mobicents.slee.services.sip.proxy.ProxySbb.onServiceStarted(ProxySbb.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.mobicents.slee.runtime.sbbentity.SbbEntityImpl.invokeEventHandler(SbbEntityImpl.java:481)
    at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.routeQueuedEvent(EventRoutingTaskImpl.java:379)
    at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.run(EventRoutingTaskImpl.java:126)
    at org.mobicents.slee.runtime.eventrouter.EventRouterExecutorImpl$EventRoutingTaskStatsCollector.run(EventRouterExecutorImpl.java:73)


i.)
INFO  [DiameterOpenIMSExampleSbb] (pool-29-thread-1) ################################################################################
INFO  [DiameterOpenIMSExampleSbb] (pool-29-thread-1) ### O P E N I M S    E X A M P L E    A P P L I C A T I O N  :: S T A R T E D ##
INFO  [DiameterOpenIMSExampleSbb] (pool-29-thread-1) ################################################################################
ERROR [DiameterOpenIMSExampleSbb] (pool-29-thread-1) Unable to handle service started event...
java.lang.NullPointerException
    at org.mobicents.slee.examples.diameter.openims.DiameterOpenIMSExampleSbb.onServiceStartedEvent(DiameterOpenIMSExampleSbb.java:290)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.mobicents.slee.runtime.sbbentity.SbbEntityImpl.invokeEventHandler(SbbEntityImpl.java:481)
    at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.routeQueuedEvent(EventRoutingTaskImpl.java:379)
    at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.run(EventRoutingTaskImpl.java:126)
    at org.mobicents.slee.runtime.eventrouter.EventRouterExecutorImpl$EventRoutingTaskStatsCollector.run(EventRouterExecutorImpl.java:73)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)



Must I change something at the sbb-jar.xml  of diameter-openims-example-DU-2.6.0-SNAPSHOT.jar
based on   3.2. Default Resource Adaptor Entities
at    http://docs.jboss.org/mobicents/jain-slee/2.7.0.FINAL/resources/sip11/user-guide/en-US/html_single/#ra_configuration   ?

Or is the problem from unappropriate setting version of <artifactId>jain-sip-ri</artifactId> at pom.xml ?

Yessica Marianata






Message has been deleted

Yessica Marianata Susanto

unread,
Feb 27, 2014, 4:33:01 AM2/27/14
to mobicent...@googlegroups.com
Hi Alexandre Mendonça

Actually, I've just found that :  (  source from  http://code.google.com/p/mobicents/source/browse/trunk/servers/jain-slee/ )
------------------------------------------
1. I don't need to change  pom.xml   at  /home/firswap/Workspace/server/JainSleeTrunk/resources/sip11 directory

                   part  <artifactId>jain-sip-ri</artifactId>    (from  1.2.170   into    1.2.167)
                   just stay at 1.2.170

2  Search jain-sip-1.2.170.jar   file
    I found it inside sip11-ra-DU-2.7.0.FINAL.jar    at   /home/firswap/Workspace/server/mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/resources/sip11/ directory

3. Do  this  manually install repository maven   ( http://starobjects.sourceforge.net/m2-site/main/documentation/docbkx/html/developers-guide/ch02.html  )

4. Then I have to    mvn clean install  under     /home/firswap/Workspace/server/JainSleeTrunk/resources/sip11/  directory
     so produce sip11-ra-DU-2.8.0-SNAPSHOT.jar  
     at   /home/firswap/Workspace/server/mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/deploy/  directory


5. And there are connections between :
    a. resource-adaptor-type-jar.xml  inside  sip11-ra-DU-2.8.0-SNAPSHOT.jar  at  <resource-adaptor-type-version>
        with sbb-jar.xml  inside  diameter-openims-example-DU-2.6.0-SNAPSHOT.jar  at  <resource-adaptor-type-version>

    b. resource-adaptor-type-jar.xml  inside   diameter-sh-client-ra-DU-2.7.0.FINAL.jar  at <resource-adaptor-type-version>
        with  sbb-jar.xml   inside  diameter-openims-example-DU-2.6.0-SNAPSHOT.jar  at  <resource-adaptor-type-version>


But it still can't solve the errors at my previous post.

Yessica Marianata

Vilius Panevėžys

unread,
Feb 27, 2014, 5:03:07 AM2/27/14
to mobicent...@googlegroups.com
It seems that your current problems have little relation to the
original question described by the thread topic. People often read
threads based on their names, so you are less likely to get help if you
mix different unrelated problems in the same thread. Moreover, at least
for me, it's hard to understand what problem you're having now in the
long process of trial and error, so it's difficult to offer any useful
advice.

As for your original question ("Read thread is stopped for socket"
message in log), one of the possible situations is that a client
connection is refused by the server (unconfigured peer). You could
easily analyse that by monitoring the connection establishment using
wireshark, tcpdump, snoop or a similar tool and looking at the logs of
the other peer.

If you have other problems or questions I would suggest starting a new
thread with an apt name. Describe what you are trying to do, what
documentation you have followed, what components you are using (which
container, deployable units and their versions) and what fails.


--
Vilius Panevėžys
Elitnet
Message has been deleted

Yessica Marianata Susanto

unread,
Feb 27, 2014, 6:41:05 AM2/27/14
to mobicent...@googlegroups.com
Hi, Vilius Panevėžys

Ok I'll move my last two posts  to  the new topic.
Should I remove my last two posts including this one?


Regard
Yessica Marianata

Vilius Panevėžys

unread,
Feb 27, 2014, 6:48:06 AM2/27/14
to mobicent...@googlegroups.com

On Thu, 27 Feb 2014 03:41:05 -0800 (PST)
Yessica Marianata Susanto <yessica14...@gmail.com> wrote:

> Ok I'll move my last two posts to the new topic.
> Should I remove my last two posts including this one?

IMO it does not make any significant difference, I would leave them.

Just concentrate on explaining your problem properly with sufficient
context. You might have spent a lot of time thinking about the
problem, but you're explaining it to people who hear about it for the
fist time. How valuable the advice will be, depends mostly on how well
you ask your question.


--
Vilius Panevėžys
Elitnet
Reply all
Reply to author
Forward
0 new messages