Looks like a bug, although looking at the code, I can't figure out how you could get a NPE in that specific spot. It is surrounded by a Null check. Anyway, can you write up a bug report? Please make sure to be very clear about what toolkit you are using and what source you are trying to attach. Hopefully I can recreate it.
In terms of whether you will actually be able to debug, that is not guaranteed. It all depends on whether the classes in the jar file have debugging information compiled into them. If not, attaching source won't help. Craig Ed Welch wrote: > Okay, I looked in the .log file and this is the only error that I found: > !ENTRY org.eclipse.jface 4 2 2006-12-15 09:09:25.515 > !MESSAGE Problems occurred when invoking code from plug-in: > "org.eclipse.jface". > !STACK 0 > java.lang.NullPointerException > at > eclipseme.ui.internal.device.editor.DeviceLibrariesEditorPage$LibraryLabelProvider.getColumnText(DeviceLibrariesEditorPage.java:293) > at org.eclipse.jface.viewers.TableViewer.doUpdateItem > (TableViewer.java:486) > at > org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:465) > at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) > at org.eclipse.core.runtime.Platform.run (Platform.java:843) > at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44) > at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149) > at org.eclipse.jface.viewers.StructuredViewer.updateItem > (StructuredViewer.java:1955) > at > org.eclipse.jface.viewers.TableViewer.internalRefresh(TableViewer.java:825) > at > org.eclipse.jface.viewers.StructuredViewer$8.run(StructuredViewer.java:1415) > at org.eclipse.jface.viewers.StructuredViewer.preservingSelection > (StructuredViewer.java:1323) > at > org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1413) > at > eclipseme.ui.internal.device.editor.DeviceLibrariesEditorPage$CellModifier.modify(DeviceLibrariesEditorPage.java > > :158) > at > org.eclipse.jface.viewers.TableEditorImpl.saveEditorValue(TableEditorImpl.java:320) > at > org.eclipse.jface.viewers.TableEditorImpl.applyEditorValue(TableEditorImpl.java:162) > at org.eclipse.jface.viewers.TableEditorImpl$3.applyEditorValue > (TableEditorImpl.java:291) > at org.eclipse.jface.viewers.CellEditor$1.run(CellEditor.java:305) > at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) > at org.eclipse.core.runtime.Platform.run(Platform.java :843) > at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44) > at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149) > at > org.eclipse.jface.viewers.CellEditor.fireApplyEditorValue(CellEditor.java > :303) > at > org.eclipse.jface.viewers.DialogCellEditor$2.widgetSelected(DialogCellEditor.java:255) > at > org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90) > at org.eclipse.swt.widgets.EventTable.sendEvent (EventTable.java:66) > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) > at > org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348) > at org.eclipse.swt.widgets.Display.readAndDispatch (Display.java:2968) > at org.eclipse.jface.window.Window.runEventLoop(Window.java:820) > at org.eclipse.jface.window.Window.open(Window.java:796) > at > eclipseme.ui.DefaultDeviceEditorActionDelegate.run(DefaultDeviceEditorActionDelegate.java > > :44) > at > eclipseme.ui.internal.preferences.DeviceManagementPreferencePage.editDevice(DeviceManagementPreferencePage.java:377) > at > eclipseme.ui.internal.preferences.DeviceManagementPreferencePage.handleEditButton > > (DeviceManagementPreferencePage.java:521) > at > eclipseme.ui.internal.preferences.DeviceManagementPreferencePage.access$3(DeviceManagementPreferencePage.java:519) > at > eclipseme.ui.internal.preferences.DeviceManagementPreferencePage$3.widgetSelected > > (DeviceManagementPreferencePage.java:271) > at > org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90) > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) > at org.eclipse.swt.widgets.Widget.sendEvent (Widget.java:928) > at > org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348) > at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968) > at org.eclipse.jface.window.Window.runEventLoop (Window.java:820) > at org.eclipse.jface.window.Window.open(Window.java:796) > at > org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:65) > at org.eclipse.jface.action.Action.runWithEvent (Action.java:499) > at > org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539) > at > org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java > > :488) > at > org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400) > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) > at org.eclipse.swt.widgets.Widget.sendEvent (Widget.java:928) > at > org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348) > at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968) > at org.eclipse.ui.internal.Workbench.runEventLoop > (Workbench.java:1914) > at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878) > at > org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419) > at org.eclipse.ui.PlatformUI.createAndRunWorkbench > (PlatformUI.java:149) > at > org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) > at > org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) > at > org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication > (EclipseAppLauncher.java:92) > at > org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) > at > org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) > at > org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336) > at org.eclipse.core.launcher.Main.basicRun (Main.java:280) > at org.eclipse.core.launcher.Main.run(Main.java:977) > at org.eclipse.core.launcher.Main.main(Main.java:952) > > > The error happens on a WinXP pc. I tried the same thing on Win2000 and > I get no error. Despite that when you step into the String class code > it still can't find the source code > > > On 12/14/06, *Craig Setera* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Ed, > > This *should* work as you say. It sounds like you've hit a bug. See > the troubleshooting steps concerning the log file here > http://eclipseme.org/docs/troubleshooting.html#x3 > <http://eclipseme.org/docs/troubleshooting.html#x3>. > > Craig > > Ed Welch wrote: > > I'm trying to link the java source for CLDC 1.1, so in the "source > > attachment configuration" (under "device management") I select > > "external folder", then specify > > "C:\phoneme\phoneME_feature\cldc\src\javaapi\cldc1.1" (this is the > > sorce code downloaded from > > > > http://download.java.net/mobileembedded/phoneme/feature/phoneme_feature-mr1-rel-src-b04-09_nov_2006.zip > > ) > > but I get this error: "an error has occurred. See log file for > details" > > > > Not a very useful message, it doesn't tell you the name of the log > > file or anything, so it's impossible to find it. > > Does anyone know how to link the source files to the WTK libraries? > > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance > to share your > > opinions on IT & business topics through brief surveys - and > earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV> > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Eclipseme-users mailing list > > [email protected] > <mailto:[email protected]> > > https://lists.sourceforge.net/lists/listinfo/eclipseme-users > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV> > _______________________________________________ > Eclipseme-users mailing list > [email protected] > <mailto:[email protected]> > https://lists.sourceforge.net/lists/listinfo/eclipseme-users > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ------------------------------------------------------------------------ > > _______________________________________________ > Eclipseme-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/eclipseme-users > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Eclipseme-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/eclipseme-users
