- This topic has 5 replies, 3 voices, and was last updated 20 years, 8 months ago by cmfly.
-
AuthorPosts
-
cmflyMember– System Setup ——————————-
Operating System and version: Windows 2000 v5.0
Eclipse version: 2.1.2
Eclipse build id: 200311030802
Fresh Eclipse install (y/n): n
Other installed external plugins: none
Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 10
MyEclipse version: 200402281200-2.7.0-GA
Eclipse JDK version: 1.4.2_04-b05
Application Server JDK version: 1.4.2_04-b05
Are there any exceptions in the Eclipse log file?
See below– Message Body ——————————-
Tomcat Version : Apache Tomcat/5.0.19
JVM Version : 1.4.2_04-b05While debugging I get the following error.
Once the error occurs no more values show up in the variables window.
Can someone please help?Error: An Error has occured. See error log for more details.
Error log:
!SESSION Mar 18, 2004 08:31:07.43 ———————————————-
java.version=1.3.1_01
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_CA
Command-line arguments: -os win32 -ws win32 -arch x86 -install file:C:/eclipse/
!ENTRY org.eclipse.jface 4 2 Mar 18, 2004 08:31:07.43
!MESSAGE Problems occurred when invoking code from plug-in: “org.eclipse.jface”.
!STACK 0
java.lang.IncompatibleClassChangeError
at org.eclipse.jdt.internal.debug.core.model.JDIValue.getValueString(JDIValue.java:129)
at org.eclipse.jdt.internal.debug.ui.JDIModelPresentation.getValueText(JDIModelPresentation.java:421)
at org.eclipse.jdt.internal.debug.ui.JDIModelPresentation.getVariableText(JDIModelPresentation.java:1039)
at org.eclipse.jdt.internal.debug.ui.JDIModelPresentation.getText(JDIModelPresentation.java:199)
at org.eclipse.debug.internal.ui.LazyModelPresentation.getText(LazyModelPresentation.java:74)
at org.eclipse.debug.internal.ui.DelegatingModelPresentation.getText(DelegatingModelPresentation.java:127)
at org.eclipse.debug.internal.ui.VariablesViewModelPresentation.getText(VariablesViewModelPresentation.java:25)
at org.eclipse.debug.internal.ui.views.variables.VariablesView$VariablesViewLabelProvider.getText(VariablesView.java:137)
at org.eclipse.jface.viewers.TreeViewer.doUpdateItem(TreeViewer.java:95)
at org.eclipse.jface.viewers.AbstractTreeViewer$UpdateItemSafeRunnable.run(AbstractTreeViewer.java:87)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:406)
at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:119)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:1271)
at org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem(AbstractTreeViewer.java:320)
at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:303)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:289)
at org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractTreeViewer.java:729)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:801)
at org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(AbstractTreeViewer.java:721)
at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:238)
at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:991)
at org.eclipse.debug.internal.ui.views.variables.VariablesView.setViewerInput(VariablesView.java:368)
at org.eclipse.debug.internal.ui.views.variables.VariablesView.selectionChanged(VariablesView.java:1155)
at org.eclipse.ui.internal.AbstractPartSelectionTracker$1.run(AbstractPartSelectionTracker.java:111)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at org.eclipse.ui.internal.AbstractPartSelectionTracker.fireSelection(AbstractPartSelectionTracker.java:109)
at org.eclipse.ui.internal.PagePartSelectionTracker$1.selectionChanged(PagePartSelectionTracker.java:38)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:159)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:157)
at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:1290)
at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1020)
at org.eclipse.debug.internal.ui.views.launch.LaunchView.autoExpand(LaunchView.java:985)
at org.eclipse.debug.internal.ui.views.launch.LaunchViewEventHandler.doHandleSuspendThreadEvent(LaunchViewEventHandler.java:231)
at org.eclipse.debug.internal.ui.views.launch.LaunchViewEventHandler.doHandleSuspendEvent(LaunchViewEventHandler.java:181)
at org.eclipse.debug.internal.ui.views.launch.LaunchViewEventHandler.doHandleDebugEvents(LaunchViewEventHandler.java:102)
at org.eclipse.debug.internal.ui.views.AbstractDebugEventHandler$1.run(AbstractDebugEventHandler.java:70)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:98)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1999)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1733)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
at java.lang.reflect.Method.invoke(Native Method)
at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
at org.eclipse.core.launcher.Main.run(Main.java:747)
at org.eclipse.core.launcher.Main.main(Main.java:583)
!ENTRY org.eclipse.jface 4 2 Mar 18, 2004 08:31:07.143
!MESSAGE Problems occurred when invoking code from plug-in: “org.eclipse.jface”.
!STACK 0
java.lang.IncompatibleClassChangeError
at org.eclipse.jdt.internal.debug.core.model.JDIValue.getValueString(JDIValue.java:129)
at org.eclipse.jdt.internal.debug.ui.JDIModelPresentation.getValueText(JDIModelPresentation.java:421)
at org.eclipse.jdt.internal.debug.ui.JDIModelPresentation.getVariableText(JDIModelPresentation.java:1039)
at org.eclipse.jdt.internal.debug.ui.JDIModelPresentation.getText(JDIModelPresentation.java:199)
at org.eclipse.debug.internal.ui.LazyModelPresentation.getText(LazyModelPresentation.java:74)
at org.eclipse.debug.internal.ui.DelegatingModelPresentation.getText(DelegatingModelPresentation.java:127)
at org.eclipse.debug.internal.ui.VariablesViewModelPresentation.getText(VariablesViewModelPresentation.java:25)
at org.eclipse.debug.internal.ui.views.variables.VariablesView$VariablesViewLabelProvider.getText(VariablesView.java:137)
at org.eclipse.jface.viewers.TreeViewer.doUpdateItem(TreeViewer.java:95)
at org.eclipse.jface.viewers.AbstractTreeViewer$UpdateItemSafeRunnable.run(AbstractTreeViewer.java:87)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:406)
at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:119)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:1271)
at org.eclipse.jface.viewers.AbstractTreeViewer.updateChildren(AbstractTreeViewer.java:1414)
at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefreshStruct(AbstractTreeViewer.java:960)
at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:940)
at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:911)
at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:897)
at org.eclipse.jface.viewers.StructuredViewer$7.run(StructuredViewer.java:861)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:801)
at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:859)
at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:821)
at org.eclipse.debug.internal.ui.views.variables.VariablesViewer.refresh(VariablesViewer.java:64)
at org.eclipse.debug.internal.ui.views.AbstractDebugEventHandler.refresh(AbstractDebugEventHandler.java:146)
at org.eclipse.debug.internal.ui.views.variables.VariablesViewEventHandler.doHandleSuspendEvent(VariablesViewEventHandler.java:101)
at org.eclipse.debug.internal.ui.views.variables.VariablesViewEventHandler.doHandleDebugEvents(VariablesViewEventHandler.java:44)
at org.eclipse.debug.internal.ui.views.AbstractDebugEventHandler$1.run(AbstractDebugEventHandler.java:70)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:98)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1999)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1733)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:583)
at org.eclipse.jface.window.Window.open(Window.java:563)
at org.eclipse.jface.dialogs.MessageDialog.openError(MessageDialog.java:286)
at org.eclipse.jface.util.SafeRunnable.handleException(SafeRunnable.java:50)
at org.eclipse.jface.viewers.AbstractTreeViewer$UpdateItemSafeRunnable.handleException(AbstractTreeViewer.java:90)
at org.eclipse.core.internal.runtime.InternalPlatform.handleException(InternalPlatform.java:461)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1010)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:406)
at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:119)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:1271)
at org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem(AbstractTreeViewer.java:320)
at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:303)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:289)
at org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractTreeViewer.java:729)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:801)
at org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(AbstractTreeViewer.java:721)
at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:238)
at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:991)
at org.eclipse.debug.internal.ui.views.variables.VariablesView.setViewerInput(VariablesView.java:368)
at org.eclipse.debug.internal.ui.views.variables.VariablesView.selectionChanged(VariablesView.java:1155)
at org.eclipse.ui.internal.AbstractPartSelectionTracker$1.run(AbstractPartSelectionTracker.java:111)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at org.eclipse.ui.internal.AbstractPartSelectionTracker.fireSelection(AbstractPartSelectionTracker.java:109)
at org.eclipse.ui.internal.PagePartSelectionTracker$1.selectionChanged(PagePartSelectionTracker.java:38)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:159)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:157)
at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:1290)
at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1020)
at org.eclipse.debug.internal.ui.views.launch.LaunchView.autoExpand(LaunchView.java:985)
at org.eclipse.debug.internal.ui.views.launch.LaunchViewEventHandler.doHandleSuspendThreadEvent(LaunchViewEventHandler.java:231)
at org.eclipse.debug.internal.ui.views.launch.LaunchViewEventHandler.doHandleSuspendEvent(LaunchViewEventHandler.java:181)
at org.eclipse.debug.internal.ui.views.launch.LaunchViewEventHandler.doHandleDebugEvents(LaunchViewEventHandler.java:102)
at org.eclipse.debug.internal.ui.views.AbstractDebugEventHandler$1.run(AbstractDebugEventHandler.java:70)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:98)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1999)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1733)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
at java.lang.reflect.Method.invoke(Native Method)
at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
at org.eclipse.core.launcher.Main.run(Main.java:747)
at org.eclipse.core.launcher.Main.main(Main.java:583)
nosremaMemberIt looks like your eclipse is using JDK 1.3.1_01 instead of 1.4.2_04-b05. I guess eclipse is picking up this JDK from your windows environment. Typing java -version from a console will reveal this.
You can control what JDK is used to build and run/debug your applications in eclipse: Window -> Preferences -> Java -> Installed JRE’s. This looks like a bug in your combination of Eclipse + JDK. You might try another JDK to see if that fixes it, or get eclipse to run with another JDK by using the -vm switch or by changing the default jvm in windows environment.
Scott AndersonParticipantNosrema is correct. You won’t be able to debug very well with an old 1.3.1 JDK.
cmflyMemberI change the Installed JRE and recompiled and re-deployed the application. The same problem occured. In the error log file it still said:
!SESSION Mar 22, 2004 10:42:19.499 ———————————————
java.version=1.3.1_01
java.vendor=Sun Microsystems Inc.Is there somewhere else I have to change?
Thanks
Scott AndersonParticipantYou need to change the JDK used to launch your server at Window > Preferences > MyEclipse > Application Servers > Tomcat 5 > JDK. Also, changing the JVM used to launch Eclipse would also likely be beneficial. You can do this by specifying the -vm option on the eclipse.exe commandline.
cmflyMemberThanks for all the help. It seems to be working fine now. I’m unable to produce the error.
C:\eclipse\eclipse.exe -vm C:\j2sdk1.4.2_04\jre\bin\java.exe <- is what I used to launch eclipse. I don’t know if my syntax is correct but it seems to be working.
Thanks again!
-
AuthorPosts