https://kotlinlang.org logo
m

matiaslev

01/22/2020, 7:18 PM
Hi! I am facing this problem building arrow meta
Copy code
e: /Users/matias.lev/IdeaProjects/arrow-meta/gradle-plugin/src/main/kotlin/arrow/meta/plugin/gradle/InstallIdeaPlugin.kt: (3, 51): Symbol is declared in module 'java.xml' which does not export package '<http://com.sun.org|com.sun.org>.apache.xerces.internal.parsers'
has Someone an insight of what could be the problem?
r

Rachel

01/23/2020, 9:09 AM
Hi @matiaslev, how are you building the project? Do you have any plugin in the dev environment which can be making that kind of check?
Please, try to import DOMParser which is included in Gradle API:
org.apache.xerces.parsers.DOMParser
Does that error disappear?
In any case, don't hesitate to propose another way to parse the XML
DOM strategy fits in this case because it's a very small file and it's not necessary a SAX strategy
However, there are other options as a document builder
Thanks @matiaslev!!
m

matiaslev

01/23/2020, 12:52 PM
hi! 🙂
Copy code
./gradlew build or ./gradlew buildMeta
also from the IDE, give the same error. the error points to the import
Copy code
import <http://com.sun.org|com.sun.org>.apache.xerces.internal.parsers.DOMParser
and to the places when is used. I am using JDK 1.8. has to be something about my configuration, I think. I don't find the problem so far. I will share what is going on when I find it.
r

Rachel

01/23/2020, 12:55 PM
Thanks @matiaslev!! I build the project in the same way with the same JDK and I don't get that error
What happens if you change that import by
import org.apache.xerces.parsers.DOMParser
?
m

matiaslev

01/23/2020, 12:59 PM
that change fix the problem 🎉
r

Rachel

01/23/2020, 1:00 PM
Great! Thanks for the info! Would you like to propose that change?
m

matiaslev

01/23/2020, 1:04 PM
Choose Runtime plugin could be the problem although it was uninstalled while trying to fix it 🤔
yes! I will create the PR
r

Rachel

01/23/2020, 1:05 PM
Thank you so much!! 👏
2 Views