From: Arno P. <ar...@pu...> - 2011-03-19 16:25:39
|
XMLVM tries to instantiate a UI element that it finds in your .xml resource via Java reflection, but that particular UI element does not yet exist in XMLVM. You can find the UI elements that are supported by XMLVM in source folder src/android2iphone in packages android.widget and android.view. If you tell me which UI element you are trying to use I can give you an estimate on how difficult it would be to implement it in XMLVM. Arno On 3/19/11 4:04 AM, Miggi wrote: > After the java_lang_RuntimeException and the error in > android_webkit_WebView_2 (which is gone without changing something) the > project still won't run. > > Now I get a NSException in the class java_lang_reflect_Constructor in > the method newInstance___java_lang_Object_ARRAYTYPE. > > Here's again the output from Xcode console: > <I> <Resources>: Unable to resolve resources for > de.android.ContactForms: array > <I> <Resources>: Unable to resolve resources for > de.android.ContactForms: dimen > <I> <Resources>: Unable to resolve resources for > de.android.ContactForms: raw > <I> <Resources>: Unable to resolve resources for > de.android.ContactForms: array > <I> <Resources>: Unable to resolve resources for > de.android.ContactForms: dimen > <I> <Resources>: Unable to resolve resources for > de.android.ContactForms: raw > 2011-03-19 11:52:11.887 de.android.ContactForms[7701:207] *** > Terminating app due to uncaught exception 'NSInvalidArgumentException', > reason: '+[NSInvocation invocationWithMethodSignature:]: method > signature argument cannot be nil' > *** Call stack at first throw: > ( > 0 CoreFoundation 0x030c1b99 > __exceptionPreprocess + 185 > 1 libobjc.A.dylib 0x02eb640e > objc_exception_throw + 47 > 2 CoreFoundation 0x03031a59 +[NSInvocation > invocationWithMethodSignature:] + 553 > 3 de.android.ContactForms 0x00016e7b > -[java_lang_reflect_Constructor > newInstance___java_lang_Object_ARRAYTYPE:] + 320 > 4 de.android.ContactForms 0x00089ca4 > -[android_internal_LayoutParser > createView___java_lang_String_android_content_Context_android_util_AttributeSet:::] > + 1027 > 5 de.android.ContactForms 0x00088883 > -[android_internal_LayoutParser > didStartElement___org_xmlvm_iphone_NSXMLParser_java_lang_String_java_lang_String_java_lang_String_java_util_Map:::::] > + 1000 > 6 de.android.ContactForms 0x0002b6e3 > -[org_xmlvm_iphone_NSXMLParserDelegate > parser:didStartElement:namespaceURI:qualifiedName:attributes:] + 130 > 7 Foundation 0x005bb999 _startElementNs > + 1478 > 8 libxml2.2.dylib 0x03d32ac0 xmlParseXMLDecl > + 8539 > 9 libxml2.2.dylib 0x03d3b3c4 xmlParseChunk + 1955 > 10 Foundation 0x005babaa -[NSXMLParser > parse] + 321 > 11 de.android.ContactForms 0x0002b608 > -[NSXMLParser(cat_NSXMLParser) parse__] + 36 > 12 de.android.ContactForms 0x0008787e > +[android_internal_LayoutManager > getLayout___android_content_Context_int_android_view_ViewGroup:::] + 533 > 13 de.android.ContactForms 0x000c3dbf > -[android_view_Window setContentView___int:] + 203 > 14 de.android.ContactForms 0x00042113 > -[android_app_Activity setContentView___int:] + 137 > 15 de.android.ContactForms 0x00002459 > -[de_android_ContactForms_ContactForm onCreate___android_os_Bundle:] + 157 > 16 de.android.ContactForms 0x00040e4e > -[android_app_Activity create___java_lang_Object:] + 600 > 17 Foundation 0x00500978 > -[NSObject(NSThreadPerformAdditions) > performSelector:onThread:withObject:waitUntilDone:modes:] + 229 > 18 Foundation 0x00512f86 > -[NSObject(NSThreadPerformAdditions) > performSelectorOnMainThread:withObject:waitUntilDone:] + 184 > 19 de.android.ContactForms 0x00029e77 > +[NSObject(cat_org_xmlvm_iphone_NSObject) > performSelectorOnMainThread___java_lang_Object_java_lang_String_java_lang_Object_boolean::::] > + 175 > 20 de.android.ContactForms 0x000408c4 > -[android_app_Activity xmlvmCreate___android_os_Bundle:] + 173 > 21 de.android.ContactForms 0x0004aae7 > -[android_content_Context > startActivityForResult___android_content_Intent_int::] + 1528 > 22 de.android.ContactForms 0x0004aeda > -[android_content_Context startActivity___android_content_Intent:] + 118 > 23 de.android.ContactForms 0x00046370 > -[android_app_Application onCreate__] + 707 > 24 de.android.ContactForms 0x0007c619 > -[android_internal_AndroidAppLauncher > applicationDidFinishLaunching___org_xmlvm_iphone_UIApplication:] + 140 > 25 de.android.ContactForms 0x0002ffc9 > -[org_xmlvm_iphone_UIApplicationDelegate applicationDidFinishLaunching:] > + 43 > 26 UIKit 0x00782f80 -[UIApplication > _callInitializationDelegatesForURL:payload:suspended:] + 1252 > 27 UIKit 0x007853b0 -[UIApplication > _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 346 > 28 UIKit 0x0078f3ec -[UIApplication > handleEvent:withNewEvent:] + 1958 > 29 UIKit 0x00787b3c -[UIApplication > sendEvent:] + 71 > 30 UIKit 0x0078c9bf > _UIApplicationHandleEvent + 7672 > 31 GraphicsServices 0x03603822 > PurpleEventCallback + 1550 > 32 CoreFoundation 0x030a2ff4 > __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52 > 33 CoreFoundation 0x03003807 > __CFRunLoopDoSource1 + 215 > 34 CoreFoundation 0x03000a93 __CFRunLoopRun + 979 > 35 CoreFoundation 0x03000350 > CFRunLoopRunSpecific + 208 > 36 CoreFoundation 0x03000271 > CFRunLoopRunInMode + 97 > 37 UIKit 0x00784c6d -[UIApplication > _run] + 625 > 38 UIKit 0x00790af2 > UIApplicationMain + 1160 > 39 de.android.ContactForms 0x0002fb70 > +[org_xmlvm_iphone_UIApplication > main___java_lang_String_ARRAYTYPE_java_lang_Class_java_lang_Class:::] + 565 > 40 de.android.ContactForms 0x0007ca6d > +[android_internal_AndroidAppLauncher > main___java_lang_String_ARRAYTYPE:] + 173 > 41 de.android.ContactForms 0x0007cdf0 main + 278 > 42 de.android.ContactForms 0x0000226d start + 53 > 43 ??? 0x00000001 0x0 + 1 > ) > terminate called after throwing an instance of 'NSException' > > Stil an idea what's going wrong? Shall I post the unerlying > android-project with its main.xml and string.xml? > > Thank you > Miggi > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |