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

Wrong SAX parser factory configuration on Android #247

Open
kletzander opened this issue Jan 10, 2019 · 3 comments
Open

Wrong SAX parser factory configuration on Android #247

kletzander opened this issue Jan 10, 2019 · 3 comments

Comments

@kletzander
Copy link

When setting up SAX parser for service description in org.seamless.xml.SAXParser:73 it configures http://apache.org/xml/features/disallow-doctype-decl feature for the factory, but this feature is not supported in org.apache.harmony.xml.parsers.SAXParserFactory, thus it throws org.xml.sax.SAXNotRecognizedException: http://apache.org/xml/features/disallow-doctype-decl.
Consequently it's not possible to use this library on Android.
Or I'm missing some undocumented settings.

@jekapps
Copy link

jekapps commented Jan 16, 2019

Try using the previous release "2.1.2-SNAPSHOT".

Seems to be based on this fix:
4thline/seamless@74e6678

@shmy
Copy link

shmy commented Mar 8, 2019

+1

@Maaajaaa
Copy link

Maaajaaa commented Jul 27, 2020

Workaround: switch to the UDA10ServiceDescriptorBinderImpl as like it's described here in the manual:

override fun getServiceDescriptorBinderUDA10(): ServiceDescriptorBinder? {
                return UDA10ServiceDescriptorBinderImpl()
}

this is Kotlin code, in Java just use the function like you usually would (check the manual link if you need to know which class) and use the same return, but of course don't forget the ;

courville added a commit to nova-video-player/cling that referenced this issue May 5, 2023
use UDA10ServiceDescriptorBinderImpl instead of UDA10ServiceDescriptorBinderSAXImpl in AndroidUpnpServiceConfiguration

See 4thline#247

See nova-video-player/aos-AVP#74
courville added a commit to nova-video-player/seamless that referenced this issue May 5, 2023
…thlineGH-9""

This reverts commit 6613247.

This should not be necessary anymore by using in cling AndroidUpnpServiceConfiguration UDA10ServiceDescriptorBinderImpl instead of UDA10ServiceDescriptorBinderSAXImpl as advised in 4thline/cling#247 for a workaround.
This will maintain seamless codebase aligned with EOL git repo.
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

4 participants