rst/positronic_net — Issue #4: Error with the Todo demo - Scala 2.8.2.final.
Author: wpoosanguansit
Created: 2012-01-07 17:04:11+00:00
State: open

Hi,

I was not able to compile the sample as is with the project code. So I just moved the code into my project which has the setup. However, I get this weird and (I hope it is appropriate to say) hairy issue with byte code and delvik dec again.

01-07 11:58:32.413: D/dalvikvm(652): GC_CONCURRENT freed 249K, 4% free 10172K/10503K, paused 5ms+9ms
01-07 11:58:32.453: W/dalvikvm(652): VFY: unable to resolve static field 8417 (MODULE$) in Lscala/collection/mutable/HashMap$;
01-07 11:58:32.483: D/dalvikvm(652): VFY: replacing opcode 0x62 at 0x0000
01-07 11:58:32.483: W/dalvikvm(652): Unable to resolve superclass of Lorg/positronicnet/orm/Scope$$anonfun$count$1; (4190)
01-07 11:58:32.493: W/dalvikvm(652): Link of class 'Lorg/positronicnet/orm/Scope$$anonfun$count$1;' failed
01-07 11:58:32.493: E/dalvikvm(652): Could not find class 'org.positronicnet.orm.Scope$$anonfun$count$1', referenced from method org.positronicnet.orm.Scope$class.count
01-07 11:58:32.493: W/dalvikvm(652): VFY: unable to resolve new-instance 2324 (Lorg/positronicnet/orm/Scope$$anonfun$count$1;) in Lorg/positronicnet/orm/Scope$class;
01-07 11:58:32.503: D/dalvikvm(652): VFY: replacing opcode 0x22 at 0x0000
01-07 11:58:32.553: W/dalvikvm(652): Unable to resolve superclass of Lorg/positronicnet/orm/Scope$$anonfun$count$1; (4190)
01-07 11:58:32.553: W/dalvikvm(652): Link of class 'Lorg/positronicnet/orm/Scope$$anonfun$count$1;' failed
01-07 11:58:32.553: D/dalvikvm(652): DexOpt: unable to opt direct call 0x4290 at 0x02 in Lorg/positronicnet/orm/Scope$class;.count
01-07 11:58:32.553: W/dalvikvm(652): Exception Ljava/lang/NoClassDefFoundError; thrown while initializing Lcom/shopme/activity/TodoItem$;
01-07 11:58:32.563: D/AndroidRuntime(652): Shutting down VM
01-07 11:58:32.563: W/dalvikvm(652): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
01-07 11:58:32.643: E/AndroidRuntime(652): FATAL EXCEPTION: main
01-07 11:58:32.643: E/AndroidRuntime(652): java.lang.ExceptionInInitializerError
01-07 11:58:32.643: E/AndroidRuntime(652):	at com.myapp.activity.TodoItemsActivity$$anonfun$1.apply$mcV$sp(TodoItemsActivity.scala:55)
01-07 11:58:32.643: E/AndroidRuntime(652):	at org.positronicnet.ui.PositronicActivityHelpers$Handlers$$anonfun$runAll$1.apply(PositronicActivityHelpers.scala:89)
01-07 11:58:32.643: E/AndroidRuntime(652):	at org.positronicnet.ui.PositronicActivityHelpers$Handlers$$anonfun$runAll$1.apply(PositronicActivityHelpers.scala:89)
01-07 11:58:32.643: E/AndroidRuntime(652):	at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:57)
01-07 11:58:32.643: E/AndroidRuntime(652):	at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:43)
01-07 11:58:32.643: E/AndroidRuntime(652):	at org.positronicnet.ui.PositronicActivityHelpers$Handlers.runAll(PositronicActivityHelpers.scala:89)
01-07 11:58:32.643: E/AndroidRuntime(652):	at org.positronicnet.ui.PositronicActivityHelpers$class.onCreate(PositronicActivityHelpers.scala:109)
01-07 11:58:32.643: E/AndroidRuntime(652):	at com.myapp.activity.TodoItemsActivity.onCreate(TodoItemsActivity.scala:47)
01-07 11:58:32.643: E/AndroidRuntime(652):	at org.positronicnet.ui.PositronicActivityHelpers$class.onCreate(PositronicActivityHelpers.scala:101)
01-07 11:58:32.643: E/AndroidRuntime(652):	at com.myapp.activity.TodoItemsActivity.onCreate(TodoItemsActivity.scala:47)
01-07 11:58:32.643: E/AndroidRuntime(652):	at android.app.Activity.performCreate(Activity.java:4465)

I am not sure if there is any way to get around this? Thank you for your help.

Watt P.