Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test s1apsetup encode fail #46

Open
lester-001 opened this issue Nov 30, 2019 · 0 comments
Open

test s1apsetup encode fail #46

lester-001 opened this issue Nov 30, 2019 · 0 comments

Comments

@lester-001
Copy link

I have tested two ways to add the IE broadcastPLMNs in the SupportedTAs, but the encoder fail at parsing xml nodes.
the first way:

<SupportedTAs>
    <SupportedTAs>
		<tAC>1</tAC>
		<broadcastPLMNs>
		<broadcastPLMNs>
                       <PLMNidentity>00f110</PLMNidentity>
		</broadcastPLMNs>
		</broadcastPLMNs>
	</SupportedTAs>
</SupportedTAs>

MTS reports this error :
CAUSE: Could not find element null, child of broadcastPLMNs

Complete stack :
java.lang.RuntimeException: Could not find element null, child of broadcastPLMNs
com.ericsson.mts.asn1.XMLFormatReader.getChildNode(XMLFormatReader.java:197)
com.ericsson.mts.asn1.XMLFormatReader.bytesValue(XMLFormatReader.java:152)
com.ericsson.mts.asn1.translator.AbstractOctetStringTranslator.encode(AbstractOctetStringTranslator.java:50)
com.ericsson.mts.asn1.translator.AbstractTranslator.encode(AbstractTranslator.java:82)
com.ericsson.mts.asn1.translator.PERSequenceOfTranslator.launchEncode(PERSequenceOfTranslator.java:77)

application.log

the second way :

<SupportedTAs>
   <SupportedTAs>
		<tAC>1</tAC>
		<broadcastPLMNs>
                       <PLMNidentity>00f110</PLMNidentity>
		</broadcastPLMNs>
	</SupportedTAs>
</SupportedTAs>

the encode is fail in this:
CAUSE: Could not find element broadcastPLMNs, child of broadcastPLMNs

Complete stack :
java.lang.RuntimeException: Could not find element broadcastPLMNs, child of broadcastPLMNs
com.ericsson.mts.asn1.XMLFormatReader.getChildNode(XMLFormatReader.java:197)

Here is the ASN.1:

SupportedTAs ::= SEQUENCE (SIZE(1.. maxnoofTACs)) OF SupportedTAs-Item
SupportedTAs-Item ::=	SEQUENCE  {
	tAC					TAC,
	broadcastPLMNs		BPLMNs,
	iE-Extensions		ProtocolExtensionContainer { {SupportedTAs-Item-ExtIEs} } OPTIONAL,
	...
}
BPLMNs ::= SEQUENCE (SIZE(1.. maxnoofBPLMNs)) OF PLMNidentity	
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant