Closed GoogleCodeExporter closed 9 years ago
Hi pamjagtap,
you get this error because your Android app doesn't reference the
icu4j-3.4.4.jar library: that's why the bytecode verifier cannot resolve the
com.ibm.icu.text.IDNA.convertIDNToASCII static method.
Please make sure that all the libraries listed below are referenced and
packaged with your application:
- androjena_0.2.jar
- icu4j-3.4.4.jar
- iri-0.7.jar
- slf4j-android-1.6.1-RC1.jar
If you're using Eclipse, just make sure that those libraries are correctly
referenced in the Libraries tab inside the Java Build Path project properties
(follow the instructions in the README file contained in the androjena release
package)
Please let me know if this solves the issue; if it doesn't, please add a
comment to this issue with the following application files attached (when
available):
- the portion of your source code where the exception is thrown
- AndroidManifest.xml
- .classpath (it's an Eclipse file in the root of your project)
- default.properties
Thanks,
lorenzo
Original comment by loreca...@gmail.com
on 17 Nov 2010 at 11:17
I have filed these issues and henceforth I will use this ID to comment.
Please go over Issue 6 because of which I had to remove "icu4j-3.4.4.jar" from
build path. I understand fixing that issue might resolve this and issue 4
automatically. Still I have attached application files which can be useful for
you.
-- Source Code:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
subjectString.append("****START********");
Model testModel = ModelFactory.createDefaultModel();
testModel.read("http://localhost/rules/SchoolModel.nt");
}
Original comment by pramod.w...@gmail.com
on 17 Nov 2010 at 6:06
Attachments:
Issue 6 solution probably works for this issue too. If not, it'll be reopened.
Original comment by loreca...@gmail.com
on 23 Nov 2010 at 4:36
Hello, i am study in this topic, and i also have problem same you. i can not
execute the in line QueryExecution qe =
QueryExecutionFactory.create(queryString, model); and i have logcat same you.
I/AndroidLoggerFactory( 289): Logger name 'com.hp.hpl.jena.ontology.impl.OntRe
ourceImpl' exceeds maximum length of 23 characters, using 'c*.h*.h*.j*.o*.i*.On
R*' instead.
Hope u help me.
Original comment by tanaporn...@gmail.com
on 5 Sep 2013 at 11:52
Hi tanaporn, please open a new issue and provide all the requested info (logcat
dump, os versions etc) so that I can try to debug this. The error is definitely
related to slf4j-android, but it had been solved ages ago so this is strange.
See you on the new issue, bye.
Original comment by lorenzo....@cubica.eu
on 5 Sep 2013 at 12:43
Original issue reported on code.google.com by
pamjag...@gmail.com
on 16 Nov 2010 at 10:22