Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » 3.1M4 ClassCastException
3.1M4 ClassCastException [message #47364] Thu, 03 February 2005 18:38 Go to next message
Eclipse UserFriend
Originally posted by: wharold.e2open.com

[posted earlier on eclipse.platform. Darin Swanson pointed out the AJDT
reference at the top of the stack trace and suggested I repost here]

I just moved up from 3.1M3 to 3.1M4. I'm getting frequent Error dialogs,
usually when I go to open a project or package but occasionally when I just
access a file. In the log the error is always the same:

java.lang.ClassCastException: java.util.ArrayList
at
org.eclipse.ajdt.buildconfigurator.PropertyPageManager.extra ctJDTRegistryPag
eContributors(PropertyPageManager.java:120)

Modulo these dialogs everything seems to work. I spent the last 45 minutes
searching the newsgroups but I didn't see a reference to this problem. In
case it's brand new here's the log file header information:

!SESSION 2005-02-03
10:56:39.261 -----------------------------------------------
eclipse.buildId=I20041216-2000
java.version=1.5.0_01
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86

and the complete stack trace:

!ENTRY org.eclipse.core.runtime 4 2 2005-02-03 10:57:29.464
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.core.runtime".
!STACK 0
java.lang.ClassCastException: java.util.ArrayList
at
org.eclipse.ajdt.buildconfigurator.PropertyPageManager.extra ctJDTRegistryPag
eContributors(PropertyPageManager.java:120)
at
org.eclipse.ajdt.buildconfigurator.PropertyPageManager.regis terJDTPropertyPa
ge(PropertyPageManager.java:105)
at
org.eclipse.ajdt.buildconfigurator.BuildConfigurator.selecti onChanged(BuildC
onfigurator.java:93)
at
org.eclipse.ui.internal.AbstractSelectionService$3.run(Abstr actSelectionServ
ice.java:160)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at
org.eclipse.ui.internal.AbstractSelectionService.fireSelecti on(AbstractSelec
tionService.java:158)
at
org.eclipse.ui.internal.AbstractSelectionService$1.selection Changed(Abstract
SelectionService.java:66)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:163)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at
org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer .java:161)
at
org.eclipse.jface.viewers.StructuredViewer.updateSelection(S tructuredViewer.
java:1667)
at
org.eclipse.jface.viewers.StructuredViewer.handleSelect(Stru cturedViewer.jav
a:935)
at
org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected( StructuredViewer
..java:961)
at
org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenS trategy.java:209
)
at
org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.ja va:204)
at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:364)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:833)
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2803)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2448)
at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1569)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1540)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:285)
at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:144)
at
org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:102)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
java:220)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
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.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:710)
at org.eclipse.core.launcher.Main.main(Main.java:694)

I've got some code that requires Java 5 so I'd like to stay on M4 but those
dialogs are getting really annoying.

Thanks ... WkH
Re: 3.1M4 ClassCastException [message #47395 is a reply to message #47364] Fri, 04 February 2005 10:12 Go to previous message
Eclipse UserFriend
Originally posted by: mchapman.uk.ibm.com

On Thu, 03 Feb 2005 12:38:25 -0600, Ward Harold wrote:
> I just moved up from 3.1M3 to 3.1M4. I'm getting frequent Error dialogs,
> usually when I go to open a project or package but occasionally when I
> just access a file. In the log the error is always the same:
>
> java.lang.ClassCastException: java.util.ArrayList
> at
> org.eclipse.ajdt.buildconfigurator.PropertyPageManager.extra ctJDTRegistryPag
....
> I've got some code that requires Java 5 so I'd like to stay on M4 but
> those dialogs are getting really annoying.

Hi,

I think you're using a version of AJDT (1.1.12 perhaps?) which is not
supported on Eclipse 3.1M4. Fortunately there is a version available for
this Eclipse build, although it is a development build. It is available
via the AJDT download page:

http://www.eclipse.org/ajdt/download.html

Look for the 1.2.0.DEVELOPMENT builds section, the current one is
1.2.0.20050202134544. Note there are two of these builds, one for Eclipse
3.0 and one for 3.1M4, so please make sure you get the right one.

Regards,

Matt.

--
Matt Chapman
AJDT Development, http://www.eclipse.org/ajdt
Re: 3.1M4 ClassCastException [message #586420 is a reply to message #47364] Fri, 04 February 2005 10:12 Go to previous message
Matt Chapman is currently offline Matt ChapmanFriend
Messages: 429
Registered: July 2009
Senior Member
On Thu, 03 Feb 2005 12:38:25 -0600, Ward Harold wrote:
> I just moved up from 3.1M3 to 3.1M4. I'm getting frequent Error dialogs,
> usually when I go to open a project or package but occasionally when I
> just access a file. In the log the error is always the same:
>
> java.lang.ClassCastException: java.util.ArrayList
> at
> org.eclipse.ajdt.buildconfigurator.PropertyPageManager.extra ctJDTRegistryPag
....
> I've got some code that requires Java 5 so I'd like to stay on M4 but
> those dialogs are getting really annoying.

Hi,

I think you're using a version of AJDT (1.1.12 perhaps?) which is not
supported on Eclipse 3.1M4. Fortunately there is a version available for
this Eclipse build, although it is a development build. It is available
via the AJDT download page:

http://www.eclipse.org/ajdt/download.html

Look for the 1.2.0.DEVELOPMENT builds section, the current one is
1.2.0.20050202134544. Note there are two of these builds, one for Eclipse
3.0 and one for 3.1M4, so please make sure you get the right one.

Regards,

Matt.

--
Matt Chapman
AJDT Development, http://www.eclipse.org/ajdt
Previous Topic:3.1M4 ClassCastException
Next Topic:Open Editor for IProgramElement
Goto Forum:
  


Current Time: Thu Apr 25 08:29:03 GMT 2024

Powered by FUDForum. Page generated in 0.03198 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top