abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Gagne <da...@dannygagne.com>
Subject Re: Abdera Support on Android
Date Thu, 24 Feb 2011 17:41:32 GMT
I've done  some more research into it; I changed to the latest version and
didn't get the dalvik error.

I'm using abdera-1.1.2.jar

When I run this code, I get the following error:

 Abdera abdera;
 Factory factory;
 abdera = new Abdera();
 factory = abdera.getFactory();

Unable to resolve superclass of Lorg/apache/abdera/parser/stax/FOMFactory;
(955)
02-24 12:30:51.202: WARN/dalvikvm(527): Link of class
'Lorg/apache/abdera/parser/stax/FOMFactory;' failed

I think this is due to the fact that android uses part of abdera...

Full Trace:

02-24 12:30:49.433: INFO/ActivityManager(58): Start proc abdera.android.test
for activity abdera.android.test/.test: pid=527 uid=10039 gids={}
02-24 12:30:49.443: DEBUG/dalvikvm(520): Debugger has detached; object
registry had 1 entries
02-24 12:30:49.533: INFO/AndroidRuntime(520): NOTE: attach of thread 'Binder
Thread #3' failed
02-24 12:30:50.112: DEBUG/dalvikvm(178): GC_EXPLICIT freed 1209 objects /
162784 bytes in 2181ms
02-24 12:30:51.122: DEBUG/dalvikvm(527): GC_FOR_MALLOC freed 1778 objects /
145808 bytes in 77ms
02-24 12:30:51.202: WARN/dalvikvm(527): Unable to resolve superclass of
Lorg/apache/abdera/parser/stax/FOMFactory; (955)
02-24 12:30:51.202: WARN/dalvikvm(527): Link of class
'Lorg/apache/abdera/parser/stax/FOMFactory;' failed
02-24 12:30:51.212: DEBUG/AndroidRuntime(527): Shutting down VM
02-24 12:30:51.212: WARN/dalvikvm(527): threadid=1: thread exiting with
uncaught exception (group=0x4001d800)
02-24 12:30:51.293: ERROR/AndroidRuntime(527): FATAL EXCEPTION: main
02-24 12:30:51.293: ERROR/AndroidRuntime(527): java.lang.RuntimeException:
Unable to start activity
ComponentInfo{abdera.android.test/abdera.android.test.test}:
java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.ClassNotFoundException: org.apache.abdera.parser.stax.FOMFactory
in loader dalvik.system.PathClassLoader[/data/app/abdera.android.test-2.apk]
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     at
android.app.ActivityThread.access$2300(ActivityThread.java:125)
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     at
android.os.Handler.dispatchMessage(Handler.java:99)
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     at
android.os.Looper.loop(Looper.java:123)
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     at
android.app.ActivityThread.main(ActivityThread.java:4627)
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     at
java.lang.reflect.Method.invokeNative(Native Method)
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     at
java.lang.reflect.Method.invoke(Method.java:521)
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     at
dalvik.system.NativeStart.main(Native Method)
02-24 12:30:51.293: ERROR/AndroidRuntime(527): Caused by:
java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.ClassNotFoundException: org.apache.abdera.parser.stax.FOMFactory
in loader dalvik.system.PathClassLoader[/data/app/abdera.android.test-2.apk]
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     at
org.apache.abdera.util.Discover.locate(Discover.java:37)
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     at
org.apache.abdera.util.Discover.locate(Discover.java:21)
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     at
org.apache.abdera.util.AbderaConfiguration.newFactoryInstance(AbderaConfiguration.java:288)
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     at
org.apache.abdera.Abdera.newFactory(Abdera.java:206)
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     at
org.apache.abdera.Abdera.getFactory(Abdera.java:139)
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     at
abdera.android.test.test.onCreate(test.java:20)
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     ... 11 more
02-24 12:30:51.293: ERROR/AndroidRuntime(527): Caused by:
java.lang.RuntimeException: java.lang.ClassNotFoundException:
org.apache.abdera.parser.stax.FOMFactory in loader
dalvik.system.PathClassLoader[/data/app/abdera.android.test-2.apk]
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     at
org.apache.abdera.util.Discover.getClass(Discover.java:162)
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     at
org.apache.abdera.util.Discover.load(Discover.java:143)
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     at
org.apache.abdera.util.Discover.locate(Discover.java:33)
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     ... 18 more
02-24 12:30:51.293: ERROR/AndroidRuntime(527): Caused by:
java.lang.ClassNotFoundException: org.apache.abdera.parser.stax.FOMFactory
in loader dalvik.system.PathClassLoader[/data/app/abdera.android.test-2.apk]
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     at
dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     at
java.lang.ClassLoader.loadClass(ClassLoader.java:573)
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     at
java.lang.ClassLoader.loadClass(ClassLoader.java:532)
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     at
org.apache.abdera.util.Discover.getClass(Discover.java:159)
02-24 12:30:51.293: ERROR/AndroidRuntime(527):     ... 20 more
02-24 12:30:51.332: WARN/ActivityManager(58):   Force finishing activity
abdera.android.test/.test
02-24 12:30:51.843: WARN/ActivityManager(58): Activity pause timeout for
HistoryRecord{44fdc6b0 abdera.android.test/.test}
02-24 12:31:02.552: WARN/ActivityManager(58): Activity destroy timeout for
HistoryRecord{44fdc6b0 abdera.android.test/.test}


On Fri, Feb 18, 2011 at 4:43 AM, ant elder <ant.elder@gmail.com> wrote:

> On Wed, Feb 16, 2011 at 9:20 PM, Daniel Gagne <danny@dannygagne.com>
> wrote:
> > I've tried running abdera on android and during the dalvik conversion
> > process there are errors because parts of it are built into android.
>  I've
> > done some searching around, and haven't seen anything on how to get
> abdera
> > working on android; though I've found a few other people with this
> problem.
> >  I was wondering if this has been encountered and solved?
> >
> > Thanks,
> >
> > Danny
> >
>
> I don't recall anyone talking about doing this in the past. Could you
> provided any more detail about what goes wrong - stacktraces or error
> messages, etc?
>
>   ...ant
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message