JakeWharton / JakeWharton/diffuse

Exception in thread "main" org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.

Open
#112 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
2.2k
Forks
118
Avg merge
2h 18m
Merged PRs (30d)
19

Description

Tried to run the diffuse but it returns the above error.

the command used

`java -jar diffuse.jar diff "apk1" "apk2"`

the `apk` in question can be found [here](https://play.google.com/store/apps/details?id=com.safarifone.waafi)

the error trace here:
`
at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.checkNamespaceWF(CoreDocumentImpl.java:2535)
at com.sun.org.apache.xerces.internal.dom.AttrNSImpl.setName(AttrNSImpl.java:93)
at com.sun.org.apache.xerces.internal.dom.AttrNSImpl.(AttrNSImpl.java:78)
at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.createAttributeNS(CoreDocumentImpl.java:2164)
at com.sun.org.apache.xerces.internal.dom.ElementImpl.setAttributeNS(ElementImpl.java:659)
at com.jakewharton.diffuse.Manifest$Companion.toManifest$diffuse(Manifest.kt:974)
at com.jakewharton.diffuse.Apk$Companion.parse(Apk.kt:124)
at com.jakewharton.diffuse.DiffCommand.run(diffuse.kt:117)
at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:5266)
at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:5274)
at com.github.ajalt.clikt.core.CliktCommand.parse$default(CliktCommand.kt:281)
at com.jakewharton.diffuse.Diffuse.main(diffuse.kt:23324)
`
although I am not sure it is about the `xml` naming issue? How can I solve this?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at Manifest.kt:974, where the trace shows the namespace-related attribute creation, and reproduce the failure with `java -jar diffuse.jar diff "apk1" "apk2"` using the referenced APK input. Trace the call from Apk.kt:124 and verify that the command no longer raises NAMESPACE_ERR when processing the APK pair.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
cli, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.