USSD Gateway not compiling

58 views
Skip to first unread message

Mncedisi Kasper

unread,
Mar 29, 2015, 2:28:40 PM3/29/15
to mobicent...@googlegroups.com
Hi Guys,

I can see this has been revisited a couple of times, but I don't see a solution yet. I've recently checked out the code and can't compile it yet, could you please assist.
I've tried with maven2, and maven3, as well as java6 and java7.

Below is the error I'm getting, any assistance will be appreciated



[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

/home/crystalude/projects/soteri/ussdgateway/core/slee/sbbs/src/main/java/org/mobicents/ussdgateway/slee/cdr/CDRCreateException.java:[70,8] cannot find symbol
symbol  : constructor RuntimeException(java.lang.String,java.lang.Throwable,boolean,boolean)
location: class java.lang.RuntimeException

/home/crystalude/projects/soteri/ussdgateway/core/slee/sbbs/src/main/java/org/mobicents/ussdgateway/slee/ParentSbb.java:[92,65] cannot find symbol
symbol  : method getLocalDialogId()
location: interface org.mobicents.protocols.ss7.map.api.MAPDialog

/home/crystalude/projects/soteri/ussdgateway/core/slee/sbbs/src/main/java/org/mobicents/ussdgateway/slee/ChildSbb.java:[147,26] cannot find symbol
symbol  : method getLocalDialogId()
location: interface org.mobicents.protocols.ss7.map.api.service.supplementary.MAPDialogSupplementary

/home/crystalude/projects/soteri/ussdgateway/core/slee/sbbs/src/main/java/org/mobicents/ussdgateway/slee/ChildSbb.java:[186,26] cannot find symbol
symbol  : method getLocalDialogId()
location: interface org.mobicents.protocols.ss7.map.api.service.supplementary.MAPDialogSupplementary

/home/crystalude/projects/soteri/ussdgateway/core/slee/sbbs/src/main/java/org/mobicents/ussdgateway/slee/ChildSbb.java:[191,69] cannot find symbol
symbol  : method getLocalDialogId()
location: interface org.mobicents.protocols.ss7.map.api.service.supplementary.MAPDialogSupplementary

Mncedisi Kasper

unread,
Mar 30, 2015, 12:20:11 AM3/30/15
to mobicent...@googlegroups.com
 I finally got this to compile by doing two workarounds
  1. For the error :  CDRCreateException.java:[70,8] cannot find symbol  : constructor RuntimeException(java.lang.String,java.lang.Throwable,boolean,boolean)
      I change super to super to refer super(String, Throwable)
  2. For the error : ChildSbb.java:[147,26] cannot find symbol : method getLocalDialogId()
      I changed the code to use getDialogId()

Now I dont know what the impact of these changes will be, and it's kinda scary that I had to do it, but will see when we get to testing (if anyone has a comment/worries about the changes, please let me know).

Regards

Vilius Panevėžys

unread,
Mar 30, 2015, 4:24:09 AM3/30/15
to mobicent...@googlegroups.com

On Sun, 29 Mar 2015 03:03:54 -0700 (PDT)
Mncedisi Kasper <mncedis...@gmail.com> wrote:

> /home/crystalude/projects/soteri/ussdgateway/core/slee/sbbs/src/main/java/org/mobicents/ussdgateway/slee/cdr/CDRCreateException.java:[70,8]
> cannot find symbol
> symbol : constructor
> RuntimeException(java.lang.String,java.lang.Throwable,boolean,boolean)
> location: class java.lang.RuntimeException

That constructor is available since Java 1.7.

> /home/crystalude/projects/soteri/ussdgateway/core/slee/sbbs/src/main/java/org/mobicents/ussdgateway/slee/ParentSbb.java:[92,65]
> cannot find symbol
> symbol : method getLocalDialogId()
> location: interface org.mobicents.protocols.ss7.map.api.MAPDialog
>
> /home/crystalude/projects/soteri/ussdgateway/core/slee/sbbs/src/main/java/org/mobicents/ussdgateway/slee/ChildSbb.java:[147,26]
> cannot find symbol
> symbol : method getLocalDialogId()
> location: interface
> org.mobicents.protocols.ss7.map.api.service.supplementary.MAPDialogSupplementary
>
> /home/crystalude/projects/soteri/ussdgateway/core/slee/sbbs/src/main/java/org/mobicents/ussdgateway/slee/ChildSbb.java:[186,26]
> cannot find symbol
> symbol : method getLocalDialogId()
> location: interface
> org.mobicents.protocols.ss7.map.api.service.supplementary.MAPDialogSupplementary
>
> /home/crystalude/projects/soteri/ussdgateway/core/slee/sbbs/src/main/java/org/mobicents/ussdgateway/slee/ChildSbb.java:[191,69]
> cannot find symbol
> symbol : method getLocalDialogId()
> location: interface
> org.mobicents.protocols.ss7.map.api.service.supplementary.MAPDialogSupplementary

jSS7 API has been changed (more than 2 years ago [1]): getDialogId has
been dropped in favour of get(Local|Remote)DialogId. USSD gateway has
been adapted to that API change [2]. I would try using the latest
release of jSS7 instead of trying to adapt other projects to the old
API.

That's the problem with using snapshots as dependencies - snapshots
change and builds break... Using proper releases of dependencies should
make the build stable.


[1]
https://code.google.com/p/jss7/source/detail?r=003cfd8611231b272d24c3e841f032d8235a6323
[2]
https://code.google.com/p/ussdgateway/source/detail?r=8eb05ea4012c8e08a92237a9ca02e0c43f57fd46


--
Vilius Panevėžys
Elitnet

Mncedisi Kasper

unread,
Mar 30, 2015, 7:58:58 AM3/30/15
to mobicent...@googlegroups.com, vil...@elitnet.lt
Thanx Vilius for the response, appreciate it.

I think you might look into the instructions on the wiki : https://code.google.com/p/ussdgateway/wiki/DeployUSSDGWFromTrunk

The code we check out from the main page has the code that does not compile. It might just be an issue of updating the wiki as I also had to change the POMs as well to get this to work.

Regards

https://code.google.com/p/ussdgateway/wiki/DeployUSSDGWFromTrunk

huu nhan Tran

unread,
Mar 31, 2015, 5:31:45 AM3/31/15
to mobicent...@googlegroups.com, vil...@elitnet.lt
Excellent guild from andrew for GMLC, please check:
https://github.com/Mobicents/gmlc/blob/master/README.md
Reply all
Reply to author
Forward
0 new messages