Android Cling - space at end of some action names

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Android Cling - space at end of some action names

Owain
Hi,

I'm using the cling-core 2.0.1 and cling-support 2.0.1 to try and open a port on a upnp router.

I'm finding that some of the Actions are being stored in the Registry with a Space at the end e.g. "AddPortMapping" is actually "AddPortMapping " which is causing the internal port mapping code to fail with "Action can not be null".

I've attached a copy of one of the xml files that are causing issues, which doesn't contain spaces. igd_wic.xml

I'm very sorry but I can't follow the code well enough to find where the error is.

I'm running Android 1.0.2, Java JDK 1.8.0_25 with the following maven config:

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:support-annotations:21.0.0'
    //compile 'com.ximpleware:vtd-xml:2.11'
    compile 'org.fourthline.cling:cling-core:2.0.1'
    compile 'org.fourthline.cling:cling-support:2.0.1'
    compile 'org.eclipse.jetty:jetty-server:8.1.8.v20121106'
    compile 'org.eclipse.jetty:jetty-servlet:8.1.8.v20121106'
    compile 'org.eclipse.jetty:jetty-client:8.1.8.v20121106'
    compile 'org.slf4j:slf4j-android:1.7.10'
}

Thanks,



 
Reply | Threaded
Open this post in threaded view
|

Re: Android Cling - space at end of some action names

Christian Bauer
Administrator
Can you control the device with the Cling Workbench?