Status: Accepted
Owner: [email protected]
CC: [email protected], [email protected], [email protected]
Labels: Type-Defect Priority-Medium Component-SS7 Roadmap-Fix
Version-2.0.0.BETA4
New issue 188 by [email protected]: CLI interface incorrect work
http://code.google.com/p/jss7/issues/detail?id=188
SS7 CLI interface sometimes gives some bugs.
I have two examples now:
1.
telscale>connect 127.0.0.1 3435
Connected to TelScale CLI 6.1.3.GA-TelScale TeleStax Authenticating against
conf
igured security realm
Username:admin
Passowrd:*****
telscale(127.0.0.1:3435)>sctp association create <assoc-name> <CLIENT |
SERVER>
<server-name> <peer-ip> <peer-port> <host-
Invalid Command
telscale(127.0.0.1:3435)>
telscale(127.0.0.1:3435)>Exception in thread "main"
java.lang.NumberFormatExcept
ion: For input string: "1B"
at
java.lang.NumberFormatException.forInputString(NumberFormatException.
java:65)
at java.lang.Integer.parseInt(Integer.java:492)
at java.lang.Integer.<init>(Integer.java:677)
at
org.fusesource.jansi.AnsiOutputStream.write(AnsiOutputStream.java:120
)
at java.io.FilterOutputStream.write(FilterOutputStream.java:125)
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291)
at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295)
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
at java.io.PrintWriter.flush(PrintWriter.java:320)
at
org.jboss.jreadline.terminal.WindowsTerminal.write(WindowsTerminal.ja
va:86)
at org.jboss.jreadline.console.Console.drawLine(Console.java:711)
at org.jboss.jreadline.console.Console.redrawLine(Console.java:697)
at
org.jboss.jreadline.console.Console.getHistoryElement(Console.java:47
4)
at org.jboss.jreadline.console.Console.read(Console.java:392)
at org.jboss.jreadline.console.Console.read(Console.java:221)
at
org.mobicents.ss7.management.console.ConsoleImpl.readLine(ConsoleImpl
.java:238)
at
org.mobicents.ss7.management.console.CommandContextImpl.readLine(Comm
andContextImpl.java:302)
at org.mobicents.ss7.management.console.Shell.start(Shell.java:94)
at org.mobicents.ss7.management.console.Shell.main(Shell.java:60)
Для продолжения нажмите любую клавишу . . .
E:\JavaT\telscale-slee-6.1.1.GA\jboss-5.1.0.GA\bin>
How to represent:
- login
- insert a command "sctp association create <assoc-name> <CLIENT |
SERVER> <server-name> <peer-ip> <peer-port> <host-"
- you have a messge "invalid command" are still online
- press an "up arrow" (to get a previous inserted command)
- you have an exception and a colsole is terminated
2. Possible bug in m3ua (may be it is not a bug but feature)
telscale(127.0.0.1:3435)>m3ua as create as1 IPSP mode SE ipspType server rc
101
traffic-mode loadsharing network-appearance 102
Successfully created AS name=as1
telscale(127.0.0.1:3435)>m3ua asp create asp1 ass1
Successfully created ASP name=asp1
telscale(127.0.0.1:3435)>m3ua as add as1 asp1
Successfully added ASP name=asp1 to AS name=as1
telscale(127.0.0.1:3435)>m3ua asp start asp1
Successfully started ASP name=asp1
telscale(127.0.0.1:3435)>
telscale(127.0.0.1:3435)>m3ua asp stop asp1
Successfully stopped ASP name=asp1
telscale(127.0.0.1:3435)>m3ua as remove as1 asp1
Successfully removed ASP name=asp1 from AS name=as1
telscale(127.0.0.1:3435)>m3ua as destroy as1
Successfully destroyed AS name=as1
telscale(127.0.0.1:3435)>
telscale(127.0.0.1:3435)>m3ua as create as1 IPSP mode DE ipspType server rc
101
traffic-mode loadsharing network-appearance 102
Successfully created AS name=as1
telscale(127.0.0.1:3435)>m3ua as add as1 asp1
Conversion = 'to'
telscale(127.0.0.1:3435)>
If I recreate an AS with another "double exchange" SE->DE but do not
recreate ASP that was used with the old AS we have an error in:
assignAspToAs(String asName, String aspName):
if (aspFactroy.getExchangeType() != null &&
aspFactroy.getExchangeType() != asImpl.getExchangeType()) {
throw new Exception(String.format(
M3UAOAMMessages.ADD_ASP_TO_AS_FAIL_ALREADY_ASSIGNED_TO_OTHER_AS_EXCHANGETYPE,
aspName, asName,
aspFactroy.getExchangeType()));
}
3. Sometimes when incorrect data are inserted a CLI answers are not so
clear to understand what was wrong
Please if you know any bug examples, reports them here.