So I encounterd this error just now and this causes my android application not to work on the device. Whenever I debug my application for android it crashes for some reasont. . As a new user to Xamarin I'm clueless.
Here is the error I`m getting:
[art] Late-enabling -Xcheck:jni
[ContextImpl] Unable to create files subdir /data/data/com.comhuis.saleskicker.sales_kicker/cache
[ContextImpl] Unable to create files subdir /data/data/com.comhuis.saleskicker.sales_kicker/files
[AndroidRuntime] Shutting down VM
[AndroidRuntime] FATAL EXCEPTION: main
[AndroidRuntime] Process: com.comhuis.saleskicker.sales_kicker, PID: 5035
[AndroidRuntime] java.lang.RuntimeException: Unable to get provider mono.MonoRuntimeProvider: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getAbsolutePath()' on a null object reference
[AndroidRuntime] at android.app.ActivityThread.installProvider(ActivityThread.java:5015)
[AndroidRuntime] at android.app.ActivityThread.installContentProviders(ActivityThread.java:4607)
[AndroidRuntime] at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4547)
[AndroidRuntime] at android.app.ActivityThread.access$1500(ActivityThread.java:148)
[AndroidRuntime] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
[AndroidRuntime] at android.os.Handler.dispatchMessage(Handler.java:102)
[AndroidRuntime] at android.os.Looper.loop(Looper.java:135)
[AndroidRuntime] at android.app.ActivityThread.main(ActivityThread.java:5272)
[AndroidRuntime] at java.lang.reflect.Method.invoke(Native Method)
[AndroidRuntime] at java.lang.reflect.Method.invoke(Method.java:372)
[AndroidRuntime] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:909)
[AndroidRuntime] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:704)
[AndroidRuntime] Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getAbsolutePath()' on a null object reference
[AndroidRuntime] at mono.MonoPackageManager.LoadApplication(MonoPackageManager.java:27)
[AndroidRuntime] at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:42)
[AndroidRuntime] at android.app.ActivityThread.installProvider(ActivityThread.java:5012)
[AndroidRuntime] ... 11 more
[Process] Sending signal. PID: 5035 SIG: 9
I haven't really got something special in my project. I can't upload a screenshot of my solution just yet but I`ll try and describe it:
My solution exists out of SalesKicker and SalesKicker.Droid. SalesKicker has 3 files MainPage.Xaml MainPage.Xaml.cs SalesKicker.cs.
and SalesKicker.Droid contains the usual stuff plus 1 image called delogo.png which I`m using as appicon. This is my MainActivity.cs code:
namespace SalesKicker.Droid
{
[Activity (Label = #"Sales Kicker", Icon = "#drawable/delogo", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsApplicationActivity
{
protected override void OnCreate (Bundle bundle)
{
Xamarin.Insights.Initialize (global::SalesKicker.Droid.XamarinInsights.ApiKey, this);
base.OnCreate (bundle);
global::Xamarin.Forms.Forms.Init (this, bundle);
LoadApplication (new App ());
}
}
I've also been trying to set some breakpoints. I've tried it on every line and still got the same error over and over again. I also tried to set my "Target Version" to Lollipop 5.0, which is the current software version on my LG G3, and it didn't really have any effect. And I also have every single Android SDK installed. Since I'm quite new to Xamarin I'm clueless. Can someone please tell me what I'm doing wrong here?
I got it after looking at another thread: Why does my Xamarin Android application suddenly require external storage permissions?
I just had to go to: AndroidManifest.xml and set 'Install location' to internalOnly. This worked for me.
Create this folder on your android device if you can.
/data/data/{your.apps.package.name}
Otherwise, uninstall your app then re-install it again.
You may noticed that the exception is rise by "File.getAbsolutePath()".
After decompile my app's .apk package, i found this is cause by getFilesDir() returning null.
// MonoPackageManager.java
String str1 = context.getFilesDir().getAbsolutePath(); // <- Exception
String str2 = context.getCacheDir().getAbsolutePath();
Related
we developed a UWP app, here we use Xamarin Forms for UI, for API we used ASP.net and use the IBM DB2 for Database and host the API in the IIS server.
This exception was thrown only in the Production Environment, not in the Test environment. I don't know what causes this issue. In the Test environment, We continuously check and run the module in which the exception was thrown. But the exception was not replicated. I don't know how to solve this exception. Done a lot of searches on Google. But I didn't get the answer.
This exception has been thrown around for a long time.
If anyone knows the solution, please share it. Thanks in advance :)
----------------------------------------
Timestamp: 8/20/2022 8:21:35 PM
Message: HandlingInstanceID: cc5775ce-32b7-4840-9b9c-56027b4c18e0
An exception of type 'IBM.Data.DB2.iSeries.iDB2CommErrorException' occurred and was caught.
-------------------------------------------------------------------------------------------
08/20/2022 16:21:35
Type : IBM.Data.DB2.iSeries.iDB2CommErrorException, IBM.Data.DB2.iSeries, Version=12.0.0.0, Culture=neutral, PublicKeyToken=9cdb2ebfb1f93a26
Message : A communication error occurred.
Source : DDRAPIDataAccess
Help link :
Errors : IBM.Data.DB2.iSeries.iDB2ErrorCollection
MessageDetails : CWBCO1049 - The IBM i server application is not started, or the connection was blocked by a firewall
MessageCode : 10061
SqlState :
ErrorCode : -2147467259
Data : System.Collections.ListDictionaryInternal
TargetSite : DDRDataAccess.DDRBO.AlertDetails getPopupAlertDetails(Int32, System.String, System.String, System.String)
HResult : -2147467259
Stack Trace : at DDRDataAccess.DDRAPI.AlertsDAL.getPopupAlertDetails(Int32 UserID, String SCID, String v_date, String v_time) in D:\DDRAPI\AlertsDAL.cs:line 281
at DDRAPI.Controllers.AlertController.GetUserPopupAlerts(Int32 UserID, String SCID, String date, String time) in D:\Controllers\AlertController.cs:line 100
Additional Info:
MachineName : WIN-SEI******I
TimeStamp : 8/20/2022 8:21:35 PM
FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
AppDomainName : /LM/W3SVC/2/ROOT-1-133054308451942484
ThreadIdentity :
WindowsIdentity : WIN-SEI******I\Administrator
Category: LoggingDDRAPI
Priority: 0
EventId: 100
Severity: Error
Title:Enterprise Library Exception Handling
Machine: WIN-SEI******I
App Domain: /LM/W3SVC/2/ROOT-1-133**********484
ProcessId: 125712
Process Name: c:\windows\system32\inetsrv\w3wp.exe
Thread Name:
Win32 ThreadId:23796
Extended Properties:
----------------------------------------
this is my first post and I write it out of desperation (excuse me, my English is a translator) I created a small game in unity and it works quite well on Android all the verses except android 8, there is this error throwing me can you help me?
java.lang.RuntimeException:
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3303)
at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3411)
at android.app.ActivityThread.-wrap12 (Unknown Source)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1994)
at android.os.Handler.dispatchMessage (Handler.java:108)
at android.os.Looper.loop (Looper.java:166)
at android.app.ActivityThread.main (ActivityThread.java:7529)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:245)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:921)
Caused by: java.lang.IllegalStateException:
at android.app.Activity.onCreate (Activity.java:1081)
at com.unity3d.player.UnityPlayerActivity.onCreate (Unknown Source:4)
at android.app.Activity.performCreate (Activity.java:7383)
at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1218)
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3256)
I have an App that works fine when I set Android as the startup project but throws an error when I have UWP as the startup project. I have found, by commenting out code here and there, that the error is occurring when I make a call to my WCF. The second line below is causing the error:
_client = new Service1Client(binding, Endpoint);
var result = _client.CreateUser(Txt_UserName.Text , Txt_Password.Text);
The blah error message I can get so far is:
Unhandled exception at 0x0878DC3C (Windows.UI.Xaml.dll) in MyApp.UWP.exe:
0xC000027B: An application-internal exception has occurred (parameters:
0x172E2738, 0x00000006). occurred
Also apparently this was running right before it crashed:
#define BEGIN_DELEGATE_MAP(CLASS)\
ref class delegate_proxy_type;\
msclr::delegate_map::internal::delegate_proxy_factory<CLASS> m_delegate_map_proxy;\
\
ref class delegate_proxy_type\
{\
CLASS* m_p_native_target;\
public:\
delegate_proxy_type(CLASS* pNativeTarget) : m_p_native_target(pNativeTarget) {}\
void detach() { m_p_native_target = NULL; }
#define EVENT_DELEGATE_ENTRY(MEMBER,ARG0,ARG1)\
void MEMBER(ARG0 arg0,ARG1 arg1)\
{\
if(m_p_native_target == NULL)\
throw gcnew System::ArgumentNullException("Delegate call failed: Native sink was not attached or has already detached from the managed proxy (m_p_native_target == NULL). Hint: see if native sink was destructed or not constructed properly");\
\
m_p_native_target->MEMBER(arg0,arg1);\
}
#define END_DELEGATE_MAP()\
};
#define MAKE_DELEGATE(DELEGATE,MEMBER)\
gcnew DELEGATE(m_delegate_map_proxy.get_proxy(this),&delegate_proxy_type::MEMBER)
To further narrow down the cause of this error I created a simple standalone UWP app and I am trying to connect it to a WCF. On this program, I am getting this error message when I make the WCF method call:
'The remote server returned an unexpected response: (405) Method Not Allowed.'
Any ideas on the cause of this error? Thanks in Advance.
Per #Xavier:
Changing the settings in the app manifest solved my problem! It was that simple. Thanks.
I try to use the Azure Mobile Services from my simple Forms app and it don't work. The last command just run forever. I checked the internet connection with a WebClient and it is okay. The code works fine in a simple Windows console application.
var ms = new MobileServiceClient(
#"https://xxx.azure-mobile.net/",
#"xxx"
);
IMobileServiceTable<TodoItem> todoTable =
ms.GetTable<TodoItem>();
List<TodoItem> items = todoTable
.Where(todoItem => todoItem.Complete == false).ToListAsync().Result;
Edit:
I use Xamarin Studio because I only have indie license. For the debug I tried a Samsung Galaxy S3 and a Huawei Ascend P7, the result was same. I have updated the Xamarin and now it produces an interesting exception if I use async-await to get the result.
Java.Lang.RuntimeException: java.lang.reflect.InvocationTargetException
at --- End of managed exception stack trace ---
at java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:675)
at at dalvik.system.NativeStart.main(Native Method)
at Caused by: java.lang.reflect.InvocationTargetException
at at java.lang.reflect.Method.invokeNative(Native Method)
at at java.lang.reflect.Method.invoke(Method.java:515)
at at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:859)
at ... 2 more
at Caused by: md52ce486a14f4bcd95899665e9d932190b.JavaProxyThrowable: System.NullReferenceException: Object reference not set to an instance of an object
at at Xamarin.Forms.Platform.Android.FormsApplicationActivity.OnPrepareOptionsMenu (Android.Views.IMenu) <IL 0x00007, 0x00050>
at Android.App.Activity.n_OnPrepareOptionsMenu_Landroid_view_Menu_ (intptr,intptr,intptr) [0x00011] in /Users/builder/data/lanes/monodroid-mavericks-monodroid-5.1-series/d23da369/source/monodroid/src/Mono.Android/platforms/android-21/src/generated/Android.App.Activity.cs:4151
at at (wrapper dynamic-method) object.fcd55d8e-49be-4c8f-b3a6-37be6bdb988f (intptr,intptr,intptr) <IL 0x00017, 0x0005b>
at at md5530bd51e982e6e7b340b73e88efe666e.FormsApplicationActivity.n_onPrepareOptionsMenu(Native Method)
at at md5530bd51e982e6e7b340b73e88efe666e.FormsApplicationActivity.onPrepareOptionsMenu(FormsApplicationActivity.java:110)
at at android.app.Activity.onPreparePanel(Activity.java:2612)
at at com.android.internal.policy.impl.PhoneWindow.preparePanel(PhoneWindow.java:518)
at at com.android.internal.policy.impl.PhoneWindow.doInvalidatePanelMenu(PhoneWindow.java:872)
at at com.android.internal.policy.impl.PhoneWindow$1.run(PhoneWindow.java:243)
at at android.view.Choreographer$CallbackRecord.run(Choreographer.java:780)
at at android.view.Choreographer.doCallbacks(Choreographer.java:593)
at at android.view.Choreographer.doFrame(Choreographer.java:561)
at at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:766)
at at android.os.Handler.handleCallback(Handler.java:733)
at at android.os.Handler.dispatchMessage(Handler.java:95)
at at android.os.Looper.loop(Looper.java:136)
at at android.app.ActivityThread.main(ActivityThread.java:5290)
at ... 5 more
Are you sure you are not blocking your UI with a combination of async / await (deadlock)?
Modify your code as follows:
IMobileServiceTable<TodoItem> todoTable = await ms.GetTable<TodoItem>();
List<TodoItem> items = todoTable.Where(todoItem => todoItem.Complete == false).ToListAsync().ConfigureAwait(false);
See here for more Information about this specific problem: http://blog.stephencleary.com/2012/07/dont-block-on-async-code.html
For further informations about a deadlock, Stephen Clary has an excellent blog about this: http://blog.stephencleary.com/2012/02/async-and-await.html
Am trying to run Sharpen to convert some Java code to c#. Below is the detail of the instruction I am following, environment and problem statement.
Instruction followed:
http://www.pauldb.me/post/14916717048/a-guide-to-sharpen-a-great-tool-for-converting-java
http://community.versant.com/documentation/reference/db4o-7.12/net2/reference/index_Left.html#CSHID=sharpen%2Fhow_to_setup_sharpen.htm|StartTopic=Content%2Fsharpen%2Fhow_to_setup_sharpen.htm|SkinName=RedVersant
Environment:
Eclipse 4.2.0
JDK 1.7 (jdk1.7.0_03)
Problem:
I am able to set up the project in Eclipse and run the build file to convert the code. While executing the target "sharpen-docs" of the build file it errors out with the following message in the eclipse configuration log.
Any help will be much appreciated. Thanks in advance.
!ENTRY org.eclipse.osgi 2 0 2012-07-31 13:23:04.507
!MESSAGE
!STACK 0
org.osgi.framework.BundleException: The activator sharpen.core.Sharpen for bundle sharpen.core is invalid
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:172)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:236)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:191)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
at org.eclipse.core.launcher.Main.main(Main.java:34)
Caused by: java.lang.ClassNotFoundException: sharpen.core.Sharpen
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:165)
... 25 more
Root exception:
java.lang.ClassNotFoundException: sharpen.core.Sharpen
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:165)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:236)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:191)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
at org.eclipse.core.launcher.Main.main(Main.java:34)
!ENTRY org.eclipse.osgi 4 0 2012-07-31 13:23:04.737
!MESSAGE Application error
!STACK 1
org.eclipse.core.runtime.CoreException: Plug-in sharpen.core was unable to load class sharpen.core.SharpenApplication.
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:176)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:191)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
at org.eclipse.core.launcher.Main.main(Main.java:34)
Caused by: java.lang.ClassNotFoundException: sharpen.core.SharpenApplication
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
... 17 more
For the records:
The problem got resolved after I install Java 6 .. thanks Anders for pointing towards this.