- This topic has 16 replies, 5 voices, and was last updated 14 years, 11 months ago by strqst400.
-
AuthorPosts
-
strqst400MemberHi All,
Am running Version 7.5. Installation Details Below
While editing jsps in a Web/jsp/servlet application, myeclipse reacts very slowly.
My metadata/.log has quite a few ClassCastExceptions:
java.lang.ClassCastException: org.eclipse.wst.jsdt.internal.compiler.lookup.BaseTypeBinding cannot be cast to org.eclipse.wst.jsdt.internal.compiler.lookup.ReferenceBindingIs there something that can be done to alleviate this ?
Thanks in advance.
!STACK 0 java.lang.ClassCastException: org.eclipse.wst.jsdt.internal.compiler.lookup.BaseTypeBinding cannot be cast to org.eclipse.wst.jsdt.internal.compiler.lookup.ReferenceBinding at org.eclipse.wst.jsdt.core.infer.InferredType.resolveSuperType(InferredType.java:332) at org.eclipse.wst.jsdt.internal.compiler.lookup.ClassScope.findInferredSupertype(ClassScope.java:1192) at org.eclipse.wst.jsdt.internal.compiler.lookup.ClassScope.connectSuperclass(ClassScope.java:868) at org.eclipse.wst.jsdt.internal.compiler.lookup.ClassScope.connectTypeHierarchy(ClassScope.java:1032) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.connectTypeHierarchy(CompilationUnitScope.java:696) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:316) at org.eclipse.wst.jsdt.internal.compiler.Compiler.resolve(Compiler.java:683) at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:258) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:233) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.JavaElement.getElementInfo(JavaElement.java:282) at org.eclipse.wst.jsdt.internal.core.JavaElement.getElementInfo(JavaElement.java:268) at org.eclipse.wst.jsdt.internal.core.JavaElement.getChildren(JavaElement.java:216) at org.eclipse.wst.jsdt.web.ui.views.contentoutline.JFaceNodeAdapterForJs.getJSElementsFromNode(JFaceNodeAdapterForJs.java:257) at org.eclipse.wst.jsdt.web.ui.views.contentoutline.JFaceNodeAdapterForJs.hasChildren(JFaceNodeAdapterForJs.java:387) at org.eclipse.wst.xml.ui.internal.contentoutline.JFaceNodeContentProvider.hasChildren(JFaceNodeContentProvider.java:100) at org.eclipse.jface.viewers.AbstractTreeViewer.isExpandable(AbstractTreeViewer.java:2076) at org.eclipse.jface.viewers.TreeViewer.isExpandable(TreeViewer.java:582) at org.eclipse.jface.viewers.AbstractTreeViewer.isExpandable(AbstractTreeViewer.java:2102) at org.eclipse.jface.viewers.AbstractTreeViewer.updateChildren(AbstractTreeViewer.java:2536) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefreshStruct(AbstractTreeViewer.java:1856) at org.eclipse.jface.viewers.TreeViewer.internalRefreshStruct(TreeViewer.java:711) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:1831) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:1787) at org.eclipse.jface.viewers.StructuredViewer$8.run(StructuredViewer.java:1457) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1365) at org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:397) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1328) at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1455) at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java:548) at org.eclipse.wst.xml.ui.internal.contentoutline.RefreshStructureJob$1.run(RefreshStructureJob.java:192) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193) 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:386) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Installation details
*** Date:
Friday, July 17, 2009 11:49:50 AM EDT** System properties:
OS=WindowsXP
OS version=5.1.0
Java version=1.6.0_13*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 7.5
Build id: 7.5-20090609*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 7.5
Build id: 7.5-20090609Eclipse Plug-in Development Environment
Version: 3.4.2.R342_v20090122-7T7U1E9imVKz-A8Vz-p_jRS
Build id: M20080703-0800Eclipse Platform
Version: 3.4.2.R342_v20090122-9I96EiWElHi8lheoJKJIvhM3JfVsYbRrgVIWL
Build id: M20090211-1700Eclipse Graphical Editing Framework GEF
Version: 3.4.2.v20090218-1145-67728084A56B4I233613552
Build id: 200809101400Eclipse RCP
Version: 3.4.200.R342_v20090122-989JESTEbig-SVaL8UJHcYBr4A63
Build id: M20090211-1700Eclipse Java Development Tools
Version: 3.4.2.r342_v20081217-7o7tEAoEEDWEm5HTrKn-svO4BbDI
Build id: M20090211-1700Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\Program Files\Genuitec\MyEclipse 7.5\myeclipse.exe
-name
Myeclipse
–launcher.library
C:\Program Files\Genuitec\MyEclipse 7.5\../Common\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731\eclipse_1115.dll
-startup
C:\Program Files\Genuitec\MyEclipse 7.5\../Common\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
-clean
-configuration
configuration
-vm
C:\Program Files\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\client\jvm.dll
Loyal WaterMemberstrqst400,
Can you paste a sample jsp file that would help us reproduce this issue at our end. What editor are you opening the file with?
strqst400MemberNipun,
With a bit more digging, it now evident that the problem is *NOT* with jsps. It is with javascript.
I have uninstalled pulse, 7.1 and 7.5 and have reinstalled 7.5. The javascript that is causing issues is quite simple
var a= {};
. This is the full code. Just clicking in the source will produce the dump. I will also attach my Installation details
!MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- var a = {}; ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.ClassCastException: org.eclipse.wst.jsdt.internal.compiler.lookup.BaseTypeBinding cannot be cast to org.eclipse.wst.jsdt.internal.compiler.lookup.ReferenceBinding at org.eclipse.wst.jsdt.core.infer.InferredType.resolveSuperType(InferredType.java:332) at org.eclipse.wst.jsdt.internal.compiler.lookup.ClassScope.findInferredSupertype(ClassScope.java:1192) at org.eclipse.wst.jsdt.internal.compiler.lookup.ClassScope.connectSuperclass(ClassScope.java:868) at org.eclipse.wst.jsdt.internal.compiler.lookup.ClassScope.connectTypeHierarchy(ClassScope.java:1032) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.connectTypeHierarchy(CompilationUnitScope.java:696) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:316) at org.eclipse.wst.jsdt.internal.compiler.Compiler.resolve(Compiler.java:683) at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:258) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:248) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1066) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1215) at org.eclipse.wst.jsdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:95) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.wst.jsdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:76) at org.eclipse.wst.jsdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:143) at org.eclipse.wst.jsdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:85) at org.eclipse.wst.jsdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:147) at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:77) at org.eclipse.wst.jsdt.internal.ui.text.JavaReconciler.process(JavaReconciler.java:371) at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:206)
Installation Details:
*** Date:
Tuesday, September 1, 2009 6:21:36 PM EDT** System properties:
OS=WindowsXP
OS version=5.1.0
Java version=1.6.0_13*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 7.5
Build id: 7.5-20090609*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 7.5
Build id: 7.5-20090609Eclipse Plug-in Development Environment
Version: 3.4.2.R342_v20090122-7T7U1E9imVKz-A8Vz-p_jRS
Build id: M20080703-0800Eclipse Platform
Version: 3.4.2.R342_v20090122-9I96EiWElHi8lheoJKJIvhM3JfVsYbRrgVIWL
Build id: M20090211-1700Eclipse Graphical Editing Framework GEF
Version: 3.4.2.v20090218-1145-67728084A56B4I233613552
Build id: 200809101400Eclipse RCP
Version: 3.4.200.R342_v20090122-989JESTEbig-SVaL8UJHcYBr4A63
Build id: M20090211-1700Eclipse Java Development Tools
Version: 3.4.2.r342_v20081217-7o7tEAoEEDWEm5HTrKn-svO4BbDI
Build id: M20090211-1700Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\Program Files\Genuitec\MyEclipse 7.5\myeclipse.exe
-name
Myeclipse
–launcher.library
C:\Program Files\Genuitec\MyEclipse 7.5\../Common\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731\eclipse_1115.dll
-startup
C:\Program Files\Genuitec\MyEclipse 7.5\../Common\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
-clean
-configuration
configuration
-clean
-vm
C:\Program Files\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\client\jvm.dll
support-joyMemberstrqst400,
Good to hear that you have isolated the issue to javascript. Thank you for the providing detailed information.
Can you please send a sample project with minimal files(1 or 2 files) to test here. Also explain the steps to reproduce the issue. You can PM the attachment or send an e-mail to support@genuitec.com. Please add “Attn: Joy” in the subject and refer to this post url, this will help in easy tracking. Can you also attach your .log file? You can find it here – [your workspace dir]/.metadata/.log.
strqst400MemberJoy,
Further information, before I send you the details. I cannot reproduce the issue with a plain Web Project with javascript enabled. The issue is triggered when the Ext framework ( 3.0 ) is added to the project, specifically the ext-all.js file.
The process to reproduce is as follows
- Download Ext js 3.0 and unzip into some directory EXTJS_HOME
- Create a MyEclipse Web Project
- Copy EXTJS_HOME/adapter, EXTJS_HOME/resources and EXTJS_HOME/examples/shared to Project_home/WebRoot ( Note that this point you do not get any issues )
- Copy the EXTJS_HOME/ext-all.js to the Project_Home/WebRoot and the issues start.
If you need any more information, do not hesitate to ask.
Thanks,
strqst400
support-joyMemberstrqst400,
I am not able to replicate the issue at my end. I did as you mentioned in the steps above.
I have created web project, downloaded the Ext Framework 3.0, added it to the project webroot.
Can you send me sample jsp file where you get the problem, so that I’ll include that jsp and test on my desktop.
strqst400MemberJoy,
I have mailed support@eclipse.com with the problem causing project and the .log
Thanks,
strqst400
support-joyMemberstrqst400,
Thank you very much. I’ll investigate this issue further and get back to you.
thealxMemberHi,
I have the same issue using ExtJS 3. Are there any known workarounds?Could you provide some ID of the issue which have been submitted to eclipse support?
support-joyMemberthealx,
Can you give me some more information to investigate further:
1) Can you send me sample jsp file where you get the problem.
2) Can you tell me the steps to reproduce the issue?
3) Can you send the Installation Details? Details are available in “MyEclipse–>Installation Summary–>Installation Details”
4) Can you send the error log file? Log file is available at “~\[your workspace dir]\.metadata\.log”
5) Can you list the plug-ins you have installed? You can get it from “Help–>Software Updates–>Add/Remove Software–>Personal Software”.You can send an e-mail to support@genuitec.com with the above mentioned attachments. Please mention “Attn: Joy” in the subject line. Also, refer this post url in the e-mail.
strqst400MemberHi Joy,
Picked a new workspace and the the problem still exists. Upon attempting to edit a javascript file, the java.lang.ClassCastException: org.eclipse.wst.jsdt.internal.compiler.lookup.BaseTypeBinding cannot be cast to org.eclipse.wst.jsdt.internal.compiler.lookup.ReferenceBinding error pops up without question. The javascript file consists of one line var a = {};
Thanks,
Pillai
support-joyMemberPillai, thealx ,
Can you send a sample project to replicate your issue to support@genuitec.com, please refer to this thread in your mail, this will help in quick tracking. And add ATTN:Joy in the subject line. I would prefer the project to be simple with just 1 or 2 files.
bheinzMemberHi,
I have the same issue using ExtJS 3.
Are there any known workarounds?
I have the same ClassCastExceptions in metadata/.log.
Is there a fix?
Working on JSP files in eclipse is now almost impossible with the lag time.
VERY frustrating.
I’m using
Version: 7.5
Build id: 7.5-20090609I can attach my eclipse installation details, but they are very similar to the ones mentioned above.
Is there a fix yet?Thanks,
bheinz
Loyal WaterMemberbheinz,
Have you tried using 8.0M1? This is a bug in JSDT that is causing the problem and it got upgraded in 8.0M1 and we are going to try and enhance it further for 8.x series.
bheinzMember@support-nipun wrote:
bheinz,
Have you tried using 8.0M1? This is a bug in JSDT that is causing the problem and it got upgraded in 8.0M1 and we are going to try and enhance it further for 8.x series.Nipun,
Thank you for the quick reply.
I will let you know if the upgrade takes care of my issue.Over and out,
bheinz
-
AuthorPosts