Illegal State Exception: Custom Dialog - android

I have created a custom dialog layout. When invoked, the dialog pops up fine. But when I try to set the content inside the dialog using the two lines commented below, it throws an illegal state exception.
private void showCustomDialog(String content){
final Dialog d = new Dialog(this);
d.setContentView(R.layout.spread_info_popup);
d.show();
// TextView contentTv = (TextView) findViewById(R.id.my_dialog_content);
// contentTv.setText(content);
}
What is wrong here ?
Do i need to inflate the layout spread_info_popup before referring to TextView within it with an id of my_dialog_content ?
the Stacktrace:
03-04 15:03:54.690: E/AndroidRuntime(4194): FATAL EXCEPTION: main
03-04 15:03:54.690: E/AndroidRuntime(4194): java.lang.IllegalStateException: Could not execute method of the activity
03-04 15:03:54.690: E/AndroidRuntime(4194): at android.view.View$1.onClick(View.java:3591)
03-04 15:03:54.690: E/AndroidRuntime(4194): at android.view.View.performClick(View.java:4084)
03-04 15:03:54.690: E/AndroidRuntime(4194): at android.view.View$PerformClick.run(View.java:16966)
03-04 15:03:54.690: E/AndroidRuntime(4194): at android.os.Handler.handleCallback(Handler.java:615)
03-04 15:03:54.690: E/AndroidRuntime(4194): at android.os.Handler.dispatchMessage(Handler.java:92)
03-04 15:03:54.690: E/AndroidRuntime(4194): at android.os.Looper.loop(Looper.java:137)
03-04 15:03:54.690: E/AndroidRuntime(4194): at android.app.ActivityThread.main(ActivityThread.java:4745)
03-04 15:03:54.690: E/AndroidRuntime(4194): at java.lang.reflect.Method.invokeNative(Native Method)
03-04 15:03:54.690: E/AndroidRuntime(4194): at java.lang.reflect.Method.invoke(Method.java:511)
03-04 15:03:54.690: E/AndroidRuntime(4194): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
03-04 15:03:54.690: E/AndroidRuntime(4194): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
03-04 15:03:54.690: E/AndroidRuntime(4194): at dalvik.system.NativeStart.main(Native Method)
03-04 15:03:54.690: E/AndroidRuntime(4194): Caused by: java.lang.reflect.InvocationTargetException
03-04 15:03:54.690: E/AndroidRuntime(4194): at java.lang.reflect.Method.invokeNative(Native Method)
03-04 15:03:54.690: E/AndroidRuntime(4194): at java.lang.reflect.Method.invoke(Method.java:511)
03-04 15:03:54.690: E/AndroidRuntime(4194): at android.view.View$1.onClick(View.java:3586)
03-04 15:03:54.690: E/AndroidRuntime(4194): ... 11 more
03-04 15:03:54.690: E/AndroidRuntime(4194): Caused by: java.lang.NullPointerException
03-04 15:03:54.690: E/AndroidRuntime(4194): at com.me.reader.ui.activity.CompleteList.showSpreadInfoPopup(CompleteList.java:122)
03-04 15:03:54.690: E/AndroidRuntime(4194): at com.me.reader.ui.activity.CompleteList.setSpreadDescriptionfromXML(CompleteList.java:104)
03-04 15:03:54.690: E/AndroidRuntime(4194): at com.me.reader.ui.activity.CompleteList.onAboutIconClicked(CompleteList.java:81)
03-04 15:03:54.690: E/AndroidRuntime(4194): ... 14 more

you should look for the view inside the Dialog:
TextView contentTv = (TextView) dialog.findViewById(R.id.my_dialog_content);
contentTv.setText(content);
here the documentation.

Related

Specific issue with Unfortunately AppName has stopped - NullPointerException

I am having issues with my PhoneGap application that has Urban Airship push notifications running. Everything works fine except when closing the app using Android's native task killer (swiping the app off). When the phone is left idle for 30 seconds to a minute I get the error, "Unfortunately, [app] has stopped". I was viewing LogCat and when this error occured I got these errors:
03-04 10:16:30.420: E/EmbeddedLogger(595): App crashed! Process: com.appname.pacakagename
03-04 10:16:30.420: E/EmbeddedLogger(595): App crashed! Package: com.appname.pacakagename v1 (1.1.2)
03-04 10:16:30.420: E/AndroidRuntime(10257): FATAL EXCEPTION: main
03-04 10:16:30.420: E/AndroidRuntime(10257): java.lang.ExceptionInInitializerError
03-04 10:16:30.420: E/AndroidRuntime(10257): at java.lang.Class.newInstanceImpl(Native Method)
03-04 10:16:30.420: E/AndroidRuntime(10257): at java.lang.Class.newInstance(Class.java:1130)
03-04 10:16:30.420: E/AndroidRuntime(10257): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2909)
03-04 10:16:30.420: E/AndroidRuntime(10257): at android.app.ActivityThread.access$1600(ActivityThread.java:162)
03-04 10:16:30.420: E/AndroidRuntime(10257): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1504)
03-04 10:16:30.420: E/AndroidRuntime(10257): at android.os.Handler.dispatchMessage(Handler.java:99)
03-04 10:16:30.420: E/AndroidRuntime(10257): at android.os.Looper.loop(Looper.java:158)
03-04 10:16:30.420: E/AndroidRuntime(10257): at android.app.ActivityThread.main(ActivityThread.java:5789)
03-04 10:16:30.420: E/AndroidRuntime(10257): at java.lang.reflect.Method.invokeNative(Native Method)
03-04 10:16:30.420: E/AndroidRuntime(10257): at java.lang.reflect.Method.invoke(Method.java:525)
03-04 10:16:30.420: E/AndroidRuntime(10257): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1027)
03-04 10:16:30.420: E/AndroidRuntime(10257): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:843)
03-04 10:16:30.420: E/AndroidRuntime(10257): at dalvik.system.NativeStart.main(Native Method)
03-04 10:16:30.420: E/AndroidRuntime(10257): Caused by: java.lang.NullPointerException
03-04 10:16:30.420: E/AndroidRuntime(10257): at com.urbanairship.Preferences.migratePreferencesFromFileToDb(Preferences.java:173)
03-04 10:16:30.420: E/AndroidRuntime(10257): at com.urbanairship.analytics.AnalyticsPreferences.<init>(AnalyticsPreferences.java:32)
03-04 10:16:30.420: E/AndroidRuntime(10257): at com.urbanairship.analytics.EventService.<clinit>(EventService.java:58)
03-04 10:16:30.420: E/AndroidRuntime(10257): ... 13 more
03-04 10:16:30.430: W/asset(595): Copying FileAsset 0x7860b3b0 (zip:/data/app/com.appname.pacakagename-2.apk:/resources.arsc) to buffer size 200924 to make it aligned.
03-04 10:16:30.430: E/EmbeddedLogger(595): Application Label: appname
So from this I can see these lines:
03-04 10:16:30.420: E/AndroidRuntime(10257): Caused by: java.lang.NullPointerException
03-04 10:16:30.420: E/AndroidRuntime(10257): at com.urbanairship.Preferences.migratePreferencesFromFileToDb(Preferences.java:173)
I wasn't sure where to look to debug that error, I ran this:
find ./ -type f -name *Preferences*
But I couldn't find any file called Preferences.java.
The plugin this is referring to is:
https://github.com/urbanairship/phonegap-ua-push
The Android src is here:
https://github.com/urbanairship/phonegap-ua-push/tree/master/src/android
This was solved by upgrading to the latest version of the Urban Airship plugin and my version of PhoneGap.

PreferenceFragment compile but my program doesn't work . What is the matter ? Exception code is here

03-04 11:09:41.524: E/AndroidRuntime(943): FATAL EXCEPTION: main
03-04 11:09:41.524: E/AndroidRuntime(943): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.otobusumnerede/com.otobusumnerede.AyarlarActivity}: java.lang.NullPointerException
03-04 11:09:41.524: E/AndroidRuntime(943): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
03-04 11:09:41.524: E/AndroidRuntime(943): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
03-04 11:09:41.524: E/AndroidRuntime(943): at android.app.ActivityThread.access$600(ActivityThread.java:141)
03-04 11:09:41.524: E/AndroidRuntime(943): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
03-04 11:09:41.524: E/AndroidRuntime(943): at android.os.Handler.dispatchMessage(Handler.java:99)
03-04 11:09:41.524: E/AndroidRuntime(943): at android.os.Looper.loop(Looper.java:137)
03-04 11:09:41.524: E/AndroidRuntime(943): at android.app.ActivityThread.main(ActivityThread.java:5041)
03-04 11:09:41.524: E/AndroidRuntime(943): at java.lang.reflect.Method.invokeNative(Native Method)
03-04 11:09:41.524: E/AndroidRuntime(943): at java.lang.reflect.Method.invoke(Method.java:511)
03-04 11:09:41.524: E/AndroidRuntime(943): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
03-04 11:09:41.524: E/AndroidRuntime(943): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
03-04 11:09:41.524: E/AndroidRuntime(943): at dalvik.system.NativeStart.main(Native Method)
03-04 11:09:41.524: E/AndroidRuntime(943): Caused by: java.lang.NullPointerException
03-04 11:09:41.524: E/AndroidRuntime(943): at com.otobusumnerede.AyarlarActivity.onCreate(AyarlarActivity.java:24)
03-04 11:09:41.524: E/AndroidRuntime(943): at android.app.Activity.performCreate(Activity.java:5104)
03-04 11:09:41.524: E/AndroidRuntime(943): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
03-04 11:09:41.524: E/AndroidRuntime(943): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
03-04 11:09:41.524: E/AndroidRuntime(943): ... 11 more
03-04 11:24:14.452: E/Trace(1311): error opening trace file: No such file or directory (2)
03-04 11:24:44.843: E/AndroidRuntime(1311): FATAL EXCEPTION: main
03-04 11:24:44.843: E/AndroidRuntime(1311): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.otobusumnerede/com.otobusumnerede.AyarlarActivity}: java.lang.NullPointerException
03-04 11:24:44.843: E/AndroidRuntime(1311): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
03-04 11:24:44.843: E/AndroidRuntime(1311): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
03-04 11:24:44.843: E/AndroidRuntime(1311): at android.app.ActivityThread.access$600(ActivityThread.java:141)
03-04 11:24:44.843: E/AndroidRuntime(1311): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
03-04 11:24:44.843: E/AndroidRuntime(1311): at android.os.Handler.dispatchMessage(Handler.java:99)
03-04 11:24:44.843: E/AndroidRuntime(1311): at android.os.Looper.loop(Looper.java:137)
03-04 11:24:44.843: E/AndroidRuntime(1311): at android.app.ActivityThread.main(ActivityThread.java:5041)
03-04 11:24:44.843: E/AndroidRuntime(1311): at java.lang.reflect.Method.invokeNative(Native Method)
03-04 11:24:44.843: E/AndroidRuntime(1311): at java.lang.reflect.Method.invoke(Method.java:511)
03-04 11:24:44.843: E/AndroidRuntime(1311): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
03-04 11:24:44.843: E/AndroidRuntime(1311): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
03-04 11:24:44.843: E/AndroidRuntime(1311): at dalvik.system.NativeStart.main(Native Method)
03-04 11:24:44.843: E/AndroidRuntime(1311): Caused by: java.lang.NullPointerException
03-04 11:24:44.843: E/AndroidRuntime(1311): at com.otobusumnerede.AyarlarActivity.onCreate(AyarlarActivity.java:25)
03-04 11:24:44.843: E/AndroidRuntime(1311): at android.app.Activity.performCreate(Activity.java:5104)
03-04 11:24:44.843: E/AndroidRuntime(1311): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
03-04 11:24:44.843: E/AndroidRuntime(1311): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
03-04 11:24:44.843: E/AndroidRuntime(1311): ... 11 more
If you can copy text from your activity and paste it, or atleast paste line no.25 of your code, its easier to help you.
Going by as it is so early in your activity, check onCreate() first
#Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.yourlayoutxml);
imageView = (ImageView) findViewById(R.id.yourimageviewid); //just an example
make sure to call setContentView() before any findViewById
check if you have declared, initialized your variables properly
if so, look for a value that could be null

public class TodolistFragment extends Fragment implements OnClickListener, OnKeyListener{

I'm trying to make simple todolist inside Fragment class
I dont have any errors but when I run the application it stops working as soon as I try to access todolist - I'm not sure which part I'm doing wrong
03-04 18:42:29.487: E/AndroidRuntime(7055): FATAL EXCEPTION: main
03-04 18:42:29.487: E/AndroidRuntime(7055): Process: com.projecttracker, PID: 7055
03-04 18:42:29.487: E/AndroidRuntime(7055): android.view.InflateException: Binary XML file line #9: Error inflating class fragment
03-04 18:42:29.487: E/AndroidRuntime(7055): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:713)
03-04 18:42:29.487: E/AndroidRuntime(7055): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
03-04 18:42:29.487: E/AndroidRuntime(7055): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
03-04 18:42:29.487: E/AndroidRuntime(7055): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
03-04 18:42:29.487: E/AndroidRuntime(7055): at com.projecttracker.TodolistFragment.onCreateView(TodolistFragment.java:36)
03-04 18:42:29.487: E/AndroidRuntime(7055): at android.support.v4.app.Fragment.performCreateView(Fragment.java:1460)
03-04 18:42:29.487: E/AndroidRuntime(7055): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:884)
03-04 18:42:29.487: E/AndroidRuntime(7055): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1066)
03-04 18:42:29.487: E/AndroidRuntime(7055): at android.support.v4.app.FragmentManagerImpl.addFragment(FragmentManager.java:1168)
03-04 18:42:29.487: E/AndroidRuntime(7055): at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:280)
03-04 18:42:29.487: E/AndroidRuntime(7055): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
03-04 18:42:29.487: E/AndroidRuntime(7055): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
03-04 18:42:29.487: E/AndroidRuntime(7055): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
03-04 18:42:29.487: E/AndroidRuntime(7055): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
03-04 18:42:29.487: E/AndroidRuntime(7055): at com.projecttracker.TodolistFragment.onCreateView(TodolistFragment.java:36)
03-04 18:42:29.487: E/AndroidRuntime(7055): at android.support.v4.app.Fragment.performCreateView(Fragment.java:1460)
03-04 18:42:29.487: E/AndroidRuntime(7055): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:911)
03-04 18:42:29.487: E/AndroidRuntime(7055): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1088)
03-04 18:42:29.487: E/AndroidRuntime(7055): at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682)
03-04 18:42:29.487: E/AndroidRuntime(7055): at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1444)
03-04 18:42:29.487: E/AndroidRuntime(7055): at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:429)
03-04 18:42:29.487: E/AndroidRuntime(7055): at android.os.Handler.handleCallback(Handler.java:733)
03-04 18:42:29.487: E/AndroidRuntime(7055): at android.os.Handler.dispatchMessage(Handler.java:95)
03-04 18:42:29.487: E/AndroidRuntime(7055): at android.os.Looper.loop(Looper.java:136)
03-04 18:42:29.487: E/AndroidRuntime(7055): at android.app.ActivityThread.main(ActivityThread.java:5017)
03-04 18:42:29.487: E/AndroidRuntime(7055): at java.lang.reflect.Method.invokeNative(Native Method)
03-04 18:42:29.487: E/AndroidRuntime(7055): at java.lang.reflect.Method.invoke(Method.java:515)
03-04 18:42:29.487: E/AndroidRuntime(7055): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
03-04 18:42:29.487: E/AndroidRuntime(7055): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
03-04 18:42:29.487: E/AndroidRuntime(7055): at dalvik.system.NativeStart.main(Native Method)
03-04 18:42:29.487: E/AndroidRuntime(7055): Caused by: java.lang.IllegalArgumentException: Binary XML file line #9: Duplicate id 0x7f0a000c, tag null, or parent id 0x0 with another fragment for com.projecttracker.TodolistFragment
03-04 18:42:29.487: E/AndroidRuntime(7055): at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:285)
03-04 18:42:29.487: E/AndroidRuntime(7055): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
03-04 18:42:29.487: E/AndroidRuntime(7055): ... 29 more
try adding this in your onCreateView Method -
super.onCreateView(inflater, container, savedInstanceState);
before you inflate it:
View rootView = inflater.inflate(R.layout.fragment_todolist, container,
false);
In fragment_todolist.xml you have two view elements that have the same android:id value (duplicated on line #9). Make them both unique

Android ActionBar NullPointerException

I want to enable the Android ActionBar, however it doesn't work for me.
Here is my MainActivity:
public void onCreate(Bundle savedInstanceState) {
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
super.onCreate(savedInstanceState);
setContentView(R.layout.login);
ActionBar actionBar = getActionBar();
actionBar.show();
//more code............
and here is the logcat:
03-04 16:31:09.423: E/AndroidRuntime(1441): FATAL EXCEPTION: main
03-04 16:31:09.423: E/AndroidRuntime(1441): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.salebook/com.example.salebook.MainActivity}: java.lang.NullPointerException
03-04 16:31:09.423: E/AndroidRuntime(1441): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
03-04 16:31:09.423: E/AndroidRuntime(1441): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
03-04 16:31:09.423: E/AndroidRuntime(1441): at android.app.ActivityThread.access$600(ActivityThread.java:141)
03-04 16:31:09.423: E/AndroidRuntime(1441): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
03-04 16:31:09.423: E/AndroidRuntime(1441): at android.os.Handler.dispatchMessage(Handler.java:99)
03-04 16:31:09.423: E/AndroidRuntime(1441): at android.os.Looper.loop(Looper.java:137)
03-04 16:31:09.423: E/AndroidRuntime(1441): at android.app.ActivityThread.main(ActivityThread.java:5041)
03-04 16:31:09.423: E/AndroidRuntime(1441): at java.lang.reflect.Method.invokeNative(Native Method)
03-04 16:31:09.423: E/AndroidRuntime(1441): at java.lang.reflect.Method.invoke(Method.java:511)
03-04 16:31:09.423: E/AndroidRuntime(1441): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
03-04 16:31:09.423: E/AndroidRuntime(1441): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
03-04 16:31:09.423: E/AndroidRuntime(1441): at dalvik.system.NativeStart.main(Native Method)
03-04 16:31:09.423: E/AndroidRuntime(1441): Caused by: java.lang.NullPointerException
03-04 16:31:09.423: E/AndroidRuntime(1441): at com.example.salebook.MainActivity.onCreate(MainActivity.java:130)
03-04 16:31:09.423: E/AndroidRuntime(1441): at android.app.Activity.performCreate(Activity.java:5104)
03-04 16:31:09.423: E/AndroidRuntime(1441): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
03-04 16:31:09.423: E/AndroidRuntime(1441): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
03-04 16:31:09.423: E/AndroidRuntime(1441): ... 11 more
Where line 130 is anctionBar.show() and I have in res/menu/menu.xml:
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="#+id/itemid_0"
android:title="Action Item 0"
android:icon="#drawable/ic_launcher"
android:orderInCategory="0"
android:showAsAction="ifRoom|withText" />
<item android:id="#+id/itemid_1"
android:title="Action Item 1"
android:orderInCategory="0" />
<item android:id="#+id/itemid_2"
android:title="Action Item 2"
android:orderInCategory="0" />
<item android:id="#+id/itemid_3"
android:title="Action Item 3"
android:orderInCategory="0" />
</menu>
I didn't find the problem. Hope someone help me.
Thanks.
Also,in the appThem style:
<style name="AppTheme" parent="AppBaseTheme">
<item name="android:windowActionBar">true</item>
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
You Actionbar returns null because you don't have actionbar but you are requesting using getActionbar()
Make sure that you've window feature to show your actionbar, That is required for the actionbar to show. Check the below links for more details.
...check this question getActionBar returns null And also check this link for the more information on your problem http://blog.perpetumdesign.com/2011/08/strange-case-of-dr-action-and-mr-bar.html
You Remove
android:theme="#style/AppTheme"
in "application" from AndroidManifest.xml
Do you actually see an actionbar if you remove the line actionBar.show()?
If not, it could be related to your theme, e.g. Theme.Light.NoActionBar.
go to the AndroidManifest.xml and replace
android:theme="#style/AppTheme"
by
android:theme="#android:style/Theme.Holo.Light.DarkActionBar"

Apache Felix on Android 4.1 / 4.2 (JellyBean)

Has anyone tried to run Apache Felix on Android 4.1 oder 4.2 ?
To me, it look as if something has been changed on the android classloader and now it no longer works.
i start apache felix programmatically as follow:
config.put("felix.bootdelegation.implicit", "false");
config.put("felix.service.urlhandlers","false");
...
felix.start();
my bundle is also "dexed" !
I'm getting this error:
03-04 23:38:51.360: W/System.err(1431): org.osgi.framework.BundleException: Activator start error in bundle org.apache.felix.shell.remote [25].
...
03-04 23:38:51.360: W/System.err(1431): at dalvik.system.NativeStart.main(Native Method)
03-04 23:38:51.360: W/System.err(1431): Caused by: java.lang.UnsupportedOperationException: can't load this type of class file
03-04 23:38:51.360: W/System.err(1431): at java.lang.VMClassLoader.defineClass(Native Method)
03-04 23:38:51.360: W/System.err(1431): at java.lang.ClassLoader.defineClass(ClassLoader.java:292)
03-04 23:38:51.360: W/System.err(1431): at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2128)
03-04 23:38:51.360: W/System.err(1431): at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1432)
03-04 23:38:51.360: W/System.err(1431): at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72)
03-04 23:38:51.360: W/System.err(1431): at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843)
03-04 23:38:51.360: W/System.err(1431): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
03-04 23:38:51.360: W/System.err(1431): at org.apache.felix.framework.BundleWiringImpl.getClassByDelegation(BundleWiringImpl.java:1317)
03-04 23:38:51.360: W/System.err(1431): at org.apache.felix.framework.Felix.createBundleActivator(Felix.java:4170)
03-04 23:38:51.360: W/System.err(1431): at org.apache.felix.framework.Felix.activateBundle(Felix.java:1972)
03-04 23:38:51.360: W/System.err(1431): ... 15 more
Can somebody confirm that ?
Is their a solution ?
Maybe their is a property that has to be change in apache felix ?!?!
I've added a new comment to the bug report system: https://issues.apache.org/jira/browse/FELIX-3854?focusedCommentId=13594757&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13594757

Categories

Resources