Discussion:
[FreeMarker-user] [SPAM] Exception when using FreeMarker in Android
mareden
2012-08-26 02:02:11 UTC
Permalink
When I use FreeMarker in an Android application, I faced an Exception:

08-26 01:56:16.879: E/AndroidRuntime(465): FATAL EXCEPTION: main
08-26 01:56:16.879: E/AndroidRuntime(465):
java.lang.ExceptionInInitializerError
......
08-26 01:56:16.879: E/AndroidRuntime(465): Caused by:
java.lang.ExceptionInInitializerError
08-26 01:56:16.879: E/AndroidRuntime(465): at
freemarker.template.Configurable.<init>(Configurable.java:124)
08-26 01:56:16.879: E/AndroidRuntime(465): at
freemarker.template.Configuration.<init>(Configuration.java:121)
08-26 01:56:16.879: E/AndroidRuntime(465): at
freemarker.template.Configuration.<clinit>(Configuration.java:105)
08-26 01:56:16.879: E/AndroidRuntime(465): ... 16 more
08-26 01:56:16.879: E/AndroidRuntime(465): Caused by: java.lang.VerifyError:
freemarker.ext.beans.BeansWrapper
08-26 01:56:16.879: E/AndroidRuntime(465): at
freemarker.template.ObjectWrapper.<clinit>(ObjectWrapper.java:69)
08-26 01:56:16.879: E/AndroidRuntime(465): ... 19 more

This issue exists by using either FreeMarker 2.3.19 or 2.2.8.

Can anyone help me on this issue?

Thanks.



--
View this message in context: http://freemarker.624813.n4.nabble.com/Exception-when-using-FreeMarker-in-Android-tp4654256.html
Sent from the freemarker-user mailing list archive at Nabble.com.
Daniel Dekany
2012-08-26 08:32:31 UTC
Permalink
Post by mareden
08-26 01:56:16.879: E/AndroidRuntime(465): FATAL EXCEPTION: main
java.lang.ExceptionInInitializerError
......
java.lang.ExceptionInInitializerError
08-26 01:56:16.879: E/AndroidRuntime(465): at
freemarker.template.Configurable.<init>(Configurable.java:124)
08-26 01:56:16.879: E/AndroidRuntime(465): at
freemarker.template.Configuration.<init>(Configuration.java:121)
08-26 01:56:16.879: E/AndroidRuntime(465): at
freemarker.template.Configuration.<clinit>(Configuration.java:105)
08-26 01:56:16.879: E/AndroidRuntime(465): ... 16 more
freemarker.ext.beans.BeansWrapper
08-26 01:56:16.879: E/AndroidRuntime(465): at
freemarker.template.ObjectWrapper.<clinit>(ObjectWrapper.java:69)
08-26 01:56:16.879: E/AndroidRuntime(465): ... 19 more
This issue exists by using either FreeMarker 2.3.19 or 2.2.8.
Can anyone help me on this issue?
Android is not an officially supported target, mind you.

Anyway, I guess the issues is that the FreeMarker binary you are using
wasn't compiled against the platform (some version of Andorid) where
you run it. Maybe you couldn't even compile it because of
methods/classes missing on that platform, that the binary tries to
call, hence the VerifyError. Maybe the rest of the stack trace or "adb
logcat" could tell us what exactly is missing or has an incompatible
signature.
Post by mareden
Thanks.
--
Best regards,
Daniel Dekany
Loading...