Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Eclipse cannot start because of org.eclipse.equinox.weaving.hook?
Eclipse cannot start because of org.eclipse.equinox.weaving.hook? [message #480460] Mon, 17 August 2009 09:03 Go to next message
Miles Daffin is currently offline Miles DaffinFriend
Messages: 86
Registered: July 2009
Member
Hi All,

Many of our users have been having this issue with Eclipse 3.4 of and on
over the past year. Suddenly, for no apparent reason, Eclipse fails to
start. The error in the timestamped configuration error logs is always the
same (I can provide the full stack trace if required):

org.osgi.framework.BundleException: Exception in
org.eclipse.equinox.internal.simpleconfigurator.Activator.st art() of
bundle org.eclipse.equinox.simpleconfigurator.
<snip>
Caused by: java.lang.IllegalStateException: The state indicates the bundle
is resolved
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.getR esolutionFailureMessage(AbstractBundle.java:1381)
<snip>

In desperation someone found this thread and tried the solution suggested
there, which worked:

http://www.eclipsezone.com/eclipse/forums/t116650.html#92258 119

Is this a bug? If so has someone raised it before? Please advise.

Thanks,

Miles
Re: Eclipse cannot start because of org.eclipse.equinox.weaving.hook? [message #480750 is a reply to message #480460] Tue, 18 August 2009 11:42 Go to previous messageGo to next message
Miles Daffin is currently offline Miles DaffinFriend
Messages: 86
Registered: July 2009
Member
If this is the wrong forum for this question please let me know.

Thanks,

Miles

Miles Daffin wrote:

> Hi All,

> Many of our users have been having this issue with Eclipse 3.4 of and on
> over the past year. Suddenly, for no apparent reason, Eclipse fails to
> start. The error in the timestamped configuration error logs is always the
> same (I can provide the full stack trace if required):

> org.osgi.framework.BundleException: Exception in
> org.eclipse.equinox.internal.simpleconfigurator.Activator.st art() of
> bundle org.eclipse.equinox.simpleconfigurator.
> <snip>
> Caused by: java.lang.IllegalStateException: The state indicates the bundle
> is resolved
> at
>
org.eclipse.osgi.framework.internal.core.AbstractBundle.getR esolutionFailureMessage(AbstractBundle.java:1381)
> <snip>

> In desperation someone found this thread and tried the solution suggested
> there, which worked:

> http://www.eclipsezone.com/eclipse/forums/t116650.html#92258 119

> Is this a bug? If so has someone raised it before? Please advise.

> Thanks,

> Miles
Re: Eclipse cannot start because of org.eclipse.equinox.weaving.hook? [message #481425 is a reply to message #480750] Thu, 20 August 2009 22:29 Go to previous messageGo to next message
Martin Lippert is currently offline Martin LippertFriend
Messages: 124
Registered: July 2009
Senior Member
Hi Miles!

> If this is the wrong forum for this question please let me know.

For equinox.weaving its perfectly fine to consult this forum... :-)

I would be very happy to get some more information: Do you observe this
problem using the latest versions of AJDT or do you use an older build
than 2.0.0? And do you have idea when this problem occurs/steps to
reproduce?

-Martin



>
> Thanks,
>
> Miles
>
> Miles Daffin wrote:
>
>> Hi All,
>
>> Many of our users have been having this issue with Eclipse 3.4 of and
>> on over the past year. Suddenly, for no apparent reason, Eclipse fails
>> to start. The error in the timestamped configuration error logs is
>> always the same (I can provide the full stack trace if required):
>
>> org.osgi.framework.BundleException: Exception in
>> org.eclipse.equinox.internal.simpleconfigurator.Activator.st art() of
>> bundle org.eclipse.equinox.simpleconfigurator.
>> <snip>
>> Caused by: java.lang.IllegalStateException: The state indicates the
>> bundle is resolved
>> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.getR esolutionFailureMessage(AbstractBundle.java:1381)
>
>> <snip>
>
>> In desperation someone found this thread and tried the solution
>> suggested there, which worked:
>
>> http://www.eclipsezone.com/eclipse/forums/t116650.html#92258 119
>
>> Is this a bug? If so has someone raised it before? Please advise.
>
>> Thanks,
>
>> Miles
>
>
Re: Eclipse cannot start because of org.eclipse.equinox.weaving.hook? [message #490195 is a reply to message #481425] Wed, 07 October 2009 18:34 Go to previous messageGo to next message
Miles Daffin is currently offline Miles DaffinFriend
Messages: 86
Registered: July 2009
Member
Hi Martin,

Sorry - I missed your response.

The AJDT version info is as follows:

Eclipse AspectJ Development Tools
Version: 2.0.0.e34x-20090622-2000
AspectJ version: 1.6.5.20090618034232

The problem suddenly occurred for lots of people one week, and has occurred for many people over the last year at various times. The best I might be able to do would be to provide an install that exhibited the problem. I have no idea about steps to reproduce.

From the information I provided do you have any idea what might be the underlying cause? (I should say that features have been installed into these installs using both the standalone updater and the p2 director. Things that were installed using the standalone updater have then been updated using P2. I wonder if this mixed way of doing things could have caused this IllegalStateException?)

Thanks,

Miles

[Updated on: Wed, 07 October 2009 18:38]

Report message to a moderator

Re: Eclipse cannot start because of org.eclipse.equinox.weaving.hook? [message #490210 is a reply to message #490195] Wed, 07 October 2009 20:46 Go to previous messageGo to next message
Martin Lippert is currently offline Martin LippertFriend
Messages: 124
Registered: July 2009
Senior Member
Hi Miles!

It would be great to get an installation that exhibited the problem.
Could you make this available as a download for me to tryout?

Cheers,
-Martin



On 07.10.09 20:34, Miles Daffin wrote:
> Hi Martin,
>
> Sorry - I missed your response.
> The AJDT version info is as follows:
>
> Eclipse AspectJ Development Tools
> Version: 2.0.0.e34x-20090622-2000
> AspectJ version: 1.6.5.20090618034232
>
> The problem suddenly occurred for lots of people one week, and has
> occurred for many people over the last year at various times. The best I
> might be able to do would be to provide an install that exhibited the
> problem. I have no idea about steps to reproduce.
>
> From the information I provided do you have any idea what might be the
> underlying cause?
>
> Thanks,
>
> Miles
Re: Eclipse cannot start because of org.eclipse.equinox.weaving.hook? [message #490500 is a reply to message #490210] Thu, 08 October 2009 20:27 Go to previous messageGo to next message
Andrew Eisenberg is currently offline Andrew EisenbergFriend
Messages: 382
Registered: July 2009
Senior Member
Chiming in a little late here.

I'd recommend switching to Eclipse 3.5, where there is much more robust support for OSGi hooks. However, if that were possible, I'd bet that you would have already done so. So, if you can't do that, I'd recommend upgrading to AJDT 2.0.1 (released recently). We added some slightly better support for enabling and disabling the JDT Weaving service (that uses the weaving hook), but it is limited by the poor support for weaving hooks in Eclipse 3.4.

And I'd also recommend that you edit your config.ini to remove all references to org.eclipse.equinox.weaving.hook. This will disable advanced AJDT support, but at least Eclipse should start.

Once again, I do not expect that there is a problem like this in Eclipse 3.5.

Andrew Eisenberg
(AJDT Team)
Re: Eclipse cannot start because of org.eclipse.equinox.weaving.hook? [message #490886 is a reply to message #490500] Mon, 12 October 2009 09:14 Go to previous message
Miles Daffin is currently offline Miles DaffinFriend
Messages: 86
Registered: July 2009
Member
Hi Andrew,

We are about to release 3.5 internally here and I hope not to see this issue with it. As for 3.4, the solution was to remove all references to org.eclipse.equinox.weaving.hook from the config.ini.

Thanks all for your responses. I think we can leave it here for now.

Miles
Previous Topic:Does singleton bundle means its fragment has to be singleton
Next Topic:button add in install window
Goto Forum:
  


Current Time: Thu Apr 25 11:08:54 GMT 2024

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

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

Back to the top