Mobicents-sgw and AS issue

179 views
Skip to first unread message

faizan naqvi

unread,
Jun 2, 2011, 2:54:13 PM6/2/11
to mobicent...@googlegroups.com
Hi

AS

Everytime I try to do asp start I get java.lang.NoClassDefFoundError: com/sun/nio/sctp/SctpStandardSocketOption

I am using openjdk-7-ea-src-b144-26_may_2011 and have tried as well with jdk1.7 form sun/oracle itself.


19:43:12,550 INFO  [STDOUT] received m3ua asp start ASP1
19:43:12,559 ERROR [STDERR] Exception in thread "Thread-17"
19:43:12,559 ERROR [STDERR] java.lang.NoClassDefFoundError: com/sun/nio/sctp/SctpStandardSocketOption
19:43:12,559 ERROR [STDERR]     at org.mobicents.protocols.ss7.m3ua.impl.sctp.SctpChannel.<init>(SctpChannel.java:72)
19:43:12,559 ERROR [STDERR]     at org.mobicents.protocols.ss7.m3ua.impl.sctp.SctpChannel.open(SctpChannel.java:105)
19:43:12,559 ERROR [STDERR]     at org.mobicents.protocols.ss7.m3ua.impl.sctp.SctpProvider.openChannel(SctpProvider.java:66)
19:43:12,559 ERROR [STDERR]     at org.mobicents.protocols.ss7.m3ua.impl.as.RemSgpImpl.startAsp(RemSgpImpl.java:274)
19:43:12,559 ERROR [STDERR]     at org.mobicents.protocols.ss7.m3ua.impl.oam.M3UAShellExecutor.execute(M3UAShellExecutor.java:139)
19:43:12,559 ERROR [STDERR]     at org.mobicents.ss7.ShellExecutor.run(ShellExecutor.java:182)
19:43:12,560 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:722)



SGW

In SGW BETA9 when I try do run.sh I get this error. Interestingly I had this error and resolved it in BETA8 but I can't figure out again how I solved it last time.

DEPLOYMENTS IN ERROR:
  Deployment "SgpImpl" is in error due to: java.lang.ClassNotFoundException: org.mobicents.protocols.ss7.m3ua.impl.sg.SgpImpl

DEPLOYMENTS MISSING DEPENDENCIES:
  Deployment "NodalInterworkingFunction" is missing the following dependencies:
    Dependency "SgpImpl" (should be in state "Installed", but is actually in state "**ERROR**")
  Deployment "SignalingGateway" is missing the following dependencies:
    Dependency "ShellExecutor" (should be in state "Installed", but is actually in state "Instantiated")
    Dependency "NodalInterworkingFunction" (should be in state "Installed", but is actually in state "Instantiated")
  Deployment "M3UAShellExecutor" is missing the following dependencies:
    Dependency "SgpImpl" (should be in state "Installed", but is actually in state "**ERROR**")
  Deployment "ShellExecutor" is missing the following dependencies:
    Dependency "M3UAShellExecutor" (should be in state "Installed", but is actually in state "Instantiated")


--
Regards
Faizan Naqvi (Tili)

Amit Bhayani

unread,
Jun 2, 2011, 10:11:18 PM6/2/11
to mobicent...@googlegroups.com

faizan naqvi

unread,
Jun 3, 2011, 6:29:45 AM6/3/11
to mobicent...@googlegroups.com
Thanks Amit.
I thought sctp support was already in the jdk7 I downloaded. Anyway, I am a java newb.


What am I missing for sgw and I keep getting error on run  for ss7-beta9


DEPLOYMENTS IN ERROR:
  Deployment "SgpImpl" is in error due to: java.lang.
ClassNotFoundException: org.mobicents.protocols.ss7.m3ua.impl.sg.SgpImpl


faizan naqvi

unread,
Jun 3, 2011, 8:48:36 AM6/3/11
to mobicent...@googlegroups.com
Looks like I am still missing proper java7 version with sctp.
I downloaded binaries from http://download.java.net/jdk7/sctp/ for linux.

I get following exception when I do m3ua asp start
14:35:32,914 INFO  [STDOUT] received m3ua asp start ASP1
14:35:32,934 INFO  [ClientM3UAManagement] Started ASP name=ASP1 local-ip=127.0.0.1 local-pot=9000 rem-ip=127.0.0.1 rem-port=3434
14:35:32,938 ERROR [STDERR] Exception in thread "pool-15-thread-1"
14:35:32,938 ERROR [STDERR] java.lang.NoSuchMethodError: com.sun.nio.sctp.MessageInfo.createOutgoing(Ljava/net/SocketAddress;I)Lcom/sun/nio/sctp/MessageInfo;
14:35:32,938 ERROR [STDERR]     at org.mobicents.protocols.ss7.m3ua.impl.sctp.SctpChannel.doWrite(SctpChannel.java:243)
14:35:32,938 ERROR [STDERR]     at org.mobicents.protocols.ss7.m3ua.impl.M3UASelectorImpl.selectNow(M3UASelectorImpl.java:104)

Amit Bhayani

unread,
Jun 6, 2011, 4:34:59 AM6/6/11
to mobicent...@googlegroups.com
Use the latest version of JDK 7

faizan naqvi

unread,
Jun 6, 2011, 7:29:29 AM6/6/11
to mobicent...@googlegroups.com
OK tried the latest one as well.
The SGW BETA8 I can start but not for BETA9.

I think this is deployment issue but not sure what is going on.
I have tried with jdk1.7.0-144b and jdk-7-sctp_ea-bin-b10-linux-i586-24_feb_2009

Amit Bhayani

unread,
Jun 6, 2011, 7:54:01 AM6/6/11
to mobicent...@googlegroups.com
Same error?

By the way which SS7 card do you have? 

faizan naqvi

unread,
Jun 6, 2011, 8:16:22 AM6/6/11
to mobicent...@googlegroups.com
Sorry, I was not clear earlier. I have issue in mobicents-sgw setup.
I get this error on running it.


DEPLOYMENTS IN ERROR:
  Deployment "SgpImpl" is in error due to: java.lang.
ClassNotFoundException: org.mobicents.protocols.ss7.m3ua.impl.sg.SgpImpl

No cards. I am trying to setup pure SIGTRAN.

Amit Bhayani

unread,
Jun 6, 2011, 8:23:09 AM6/6/11
to mobicent...@googlegroups.com
I am assuming that you want to connect the Mobicents SS7 stack to some signaling gateway on other side over SIGTRAN (M3UA).

You don't need Moicents SGW for this. As doc explains Mobicents SGW is used to send the SS7 signals at the edge of IP network. So on one side of Mobicents SGW there is SS7 link and on other side IP.

For your case, use the mobicents-ss7-service deployed in Mobicents JAIN SLEE server and execute commands to create AS/ASP as explained in docs. 

Hope that helps.

faizan naqvi

unread,
Jun 6, 2011, 8:30:55 AM6/6/11
to mobicent...@googlegroups.com
Alright.

Thanks for the info. I will start setting up SIGTRAN on other side and only use jain-slee AS.
Reply all
Reply to author
Forward
0 new messages