[Mono-bugs] [Bug 649173] New: custom components with periods in their namespace won't load
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Oct 26 01:14:05 EDT 2010
https://bugzilla.novell.com/show_bug.cgi?id=649173
https://bugzilla.novell.com/show_bug.cgi?id=649173#c0
Summary: custom components with periods in their namespace
won't load
Classification: Mono
Product: MonoDroid
Version: unspecified
Platform: 64bit
OS/Version: Windows 7
Status: NEW
Severity: Major
Priority: P5 - None
Component: Runtime
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: bryancostanich at hotmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: Customer
Blocker: No
Description of Problem:
if you create a custom component in a namespace such as
Test_CustomComponent.Test and then try to use it in an xml file:
<test_CustomComponent.Test.CustomComponent android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
you get a java error:
E/AndroidRuntime( 2139): java.lang.RuntimeException: Unable to start activity
ComponentInfo{Test_CustomComponent.Test_CustomComponent/test_CustomCompo
nent.Activity1}: android.view.InflateException: Binary XML file line #7: Error
inflating class test_CustomComponent.Test.CustomComponent
E/AndroidRuntime( 2139): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
E/AndroidRuntime( 2139): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
E/AndroidRuntime( 2139): at
android.app.ActivityThread.access$2300(ActivityThread.java:125)
E/AndroidRuntime( 2139): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
E/AndroidRuntime( 2139): at
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2139): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 2139): at
android.app.ActivityThread.main(ActivityThread.java:4627)
E/AndroidRuntime( 2139): at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime( 2139): at
java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 2139): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
E/AndroidRuntime( 2139): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
E/AndroidRuntime( 2139): at dalvik.system.NativeStart.main(Native
Method)
E/AndroidRuntime( 2139): Caused by: android.view.InflateException: Binary XML
file line #7: Error inflating class test_CustomComponent.Test.CustomComp
onent
E/AndroidRuntime( 2139): at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:576)
E/AndroidRuntime( 2139): at
android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
E/AndroidRuntime( 2139): at
android.view.LayoutInflater.inflate(LayoutInflater.java:407)
E/AndroidRuntime( 2139): at
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
E/AndroidRuntime( 2139): at
android.view.LayoutInflater.inflate(LayoutInflater.java:276)
E/AndroidRuntime( 2139): at
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)
E/AndroidRuntime( 2139): at
android.app.Activity.setContentView(Activity.java:1647)
E/AndroidRuntime( 2139): at
test_CustomComponent.Activity1.n_onCreate(Native Method)
E/AndroidRuntime( 2139): at
test_CustomComponent.Activity1.onCreate(Activity1.java:23)
E/AndroidRuntime( 2139): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime( 2139): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
E/AndroidRuntime( 2139): ... 11 more
E/AndroidRuntime( 2139): Caused by: java.lang.ClassNotFoundException:
test_CustomComponent.Test.CustomComponent in loader
dalvik.system.PathClassLoade
r[/data/app/Test_CustomComponent.Test_CustomComponent-1.apk]
E/AndroidRuntime( 2139): at
dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
E/AndroidRuntime( 2139): at
java.lang.ClassLoader.loadClass(ClassLoader.java:573)
E/AndroidRuntime( 2139): at
java.lang.ClassLoader.loadClass(ClassLoader.java:532)
E/AndroidRuntime( 2139): at
android.view.LayoutInflater.createView(LayoutInflater.java:466)
E/AndroidRuntime( 2139): at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:565)
-
however, if you shorten the namespace to not have any periods in it, then it
works just fine.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list