

15:13, EET

December 20, 2016

Hi,
I’m currently trying to get a server running on android. Currently my biggest problem is, that I can’t get the logging running. As explained here https://www.prosysopc.com/blog/developing-opc-ua-for-android/ I included org.slf4j:log4j-over-slf4j:1.7.21 but. I get a SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder” and no log output in the logcat.
lg Manu
16:10, EET

December 20, 2016

Ok – I did finally find out: If you additionally add
compile ‘org.slf4j:slf4j-android:1.7.21’
it works.
But now I have the next problem: A error message: org.xml.sax.SAXException: Can’t create default XMLReader; is system property org.xml.sax.driver set? seems like the normal sax parser is not working on android, but without code access I can’t change the parser initialization…
lg
16:38, EET

December 21, 2011

16:48, EET

December 20, 2016

18:20, EET

December 21, 2011

Yes, that might be necessary. We have investigated this issue in the past, but no simple solution was identified. The Android environment is not a full Java environment and the libraries are often too different to have all functionality included.
Open JDK 9 should come with support for Android (http://openjdk.java.net/projec…..droid.html), so hopefully that will help in future – if we just get the stack and SDK to support Java 9 first 🙂
Most Users Ever Online: 1919
Currently Online:
30 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 90
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 742
Moderators: 8
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1544
Posts: 6513
Newest Members:
SamuelGed, Joseph, GregoryLet, CharlesDum, cbd gummies, Keithwearp, Williamcor, jodiexae492966, fayetozer72, anglea06o05589Moderators: Jouni Aro: 1029, Pyry: 1, Petri: 0, Bjarne Boström: 1044, Jimmy Ni: 26, Matti Siponen: 353, Lusetti: 0, Elias: 0
Administrators: admin: 1