facebook

MyEclipse 10.7.1 + scala plugin = ‘Building workspace’ error

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #338218 Reply

    SteveCorwin
    Member

    Hi,

    I’ve inherited some Scala code so I need IDE support for it. Today I downloaded MyEclipse 10.7.1-20130201 and installed it in a new directory. Then I installed the Scala plugin from within MyEclipse. I opened some of my existing projects, let it upgrade them, and added a Scala directory tree. Finally I added the Scala Nature to that project. Now I get an error every time MyEclipse starts up, and it can’t build any of my Java code.

    The error:
    “‘Building workspace’ has encountered a problem.
    Errors occurred during the build.”
    “Errors occurred during the build.
    Error instantiating builder ‘ch.epfl.lamp.sdt.core.scalabuilder’.
    Plug-in “ch.epfl.lamp.sdt.core” was unable to instantiate class “scala.tools.eclipse.Builder”.
    java.lang.ExceptionInInitializerError
    Plug-in “ch.epfl.lamp.sdt.core” was unable to instantiate class “scala.tools.eclipse.Builder”.
    java.lang.ExceptionInInitializerError”

    In the logs I found an exception:
    java.lang.ExceptionInInitializerError
    at scala.tools.eclipse.Builder.<init>(Builder.scala:23)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184)
    at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
    at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
    at org.eclipse.core.internal.events.BuildManager.instantiateBuilder(BuildManager.java:896)
    at org.eclipse.core.internal.events.BuildManager.initializeBuilder(BuildManager.java:849)
    at org.eclipse.core.internal.events.BuildManager.getBuilder(BuildManager.java:538)
    at org.eclipse.core.internal.events.BuildManager.getBuilder(BuildManager.java:567)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:237)
    at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
    at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    Caused by: java.lang.RuntimeException: java.security.PrivilegedActionException: java.lang.NoSuchMethodException: org.eclipse.core.internal.events.InternalBuilder.setProject(org.eclipse.core.resources.IProject)
    at scala.tools.eclipse.contribution.weaving.jdt.util.ReflectionUtils.getMethod(ReflectionUtils.java:42)
    at scala.tools.eclipse.contribution.weaving.jdt.builderoptions.ScalaJavaBuilder.<clinit>(ScalaJavaBuilder.java:26)
    … 24 more
    Caused by: java.security.PrivilegedActionException: java.lang.NoSuchMethodException: org.eclipse.core.internal.events.InternalBuilder.setProject(org.eclipse.core.resources.IProject)
    at java.security.AccessController.doPrivileged(Native Method)
    at scala.tools.eclipse.contribution.weaving.jdt.util.ReflectionUtils.getMethod(ReflectionUtils.java:33)
    … 25 more
    Caused by: java.lang.NoSuchMethodException: org.eclipse.core.internal.events.InternalBuilder.setProject(org.eclipse.core.resources.IProject)
    at java.lang.Class.getDeclaredMethod(Class.java:1937)
    at scala.tools.eclipse.contribution.weaving.jdt.util.ReflectionUtils$2.run(ReflectionUtils.java:35)
    at scala.tools.eclipse.contribution.weaving.jdt.util.ReflectionUtils$2.run(ReflectionUtils.java:1)
    … 27 more

    My installation details:
    *** Date:
    Thursday, April 18, 2013 5:51:41 PM PDT

    *** System properties:
    OS=Linux
    OS version=2.6.32.5-686-bigmem
    OS arch=i386
    Profile arch=x86
    Window system=gtk
    Java version=1.6.0_13
    Workspace=file:/home/scorwin/Workspaces/MyEclipse10/
    VM Args=-Xmx512m
    -XX:MaxPermSize=256m
    -XX:ReservedCodeCacheSize=64m
    -Dosgi.nls.warnings=ignore
    -jar
    /home/scorwin/apps/eclipseMyEclipse10/MyEclipse 10//../Common/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar

    *** Subscription information
    Product Id: E3MP (MyEclipse Professional Subscription)
    License version: 3.0
    Full Maintenance Included
    Subscription expiration date (YYYYMMDD): 20130520
    Number of users: 1

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 10.7.1
    Build id: 10.7.1-20130201

    Blueprint: MyEclipse 10

    com.genuitec.myeclipse.database – 10.7.0.me201302031636
    com.genuitec.myeclipse.desktop – 10.7.0.me201302031636
    com.genuitec.myeclipse.editor – 10.7.0.me201302031636
    com.genuitec.myeclipse.enterprise.workbench – 10.7.0.me201302031636
    com.genuitec.myeclipse.icefaces.feature – 10.7.0.me201302031636
    com.genuitec.myeclipse.jboss – 10.7.0.me201302031636
    com.genuitec.myeclipse.jetty – 10.7.0.me201302031636
    com.genuitec.myeclipse.jsf – 10.7.0.me201302031636
    com.genuitec.myeclipse.matisse – 10.7.0.me201302031636
    com.genuitec.myeclipse.maven – 10.7.0.me201302031636
    com.genuitec.myeclipse.persistence – 10.7.0.me201302031636
    com.genuitec.myeclipse.pulse – 10.7.0.me201302031636
    com.genuitec.myeclipse.reports – 10.7.0.me201302031636
    com.genuitec.myeclipse.struts – 10.7.0.me201302031636
    com.genuitec.myeclipse.tomcat – 10.7.0.me201302031636
    com.genuitec.myeclipse.uml2 – 10.7.0.me201302031636
    com.genuitec.myeclipse.visualvm – 10.7.0.me201302031636
    com.genuitec.myeclipse.visualvm.server – 10.7.0.me201302031636
    com.genuitec.myeclipse.ws – 10.7.0.me201302031636
    org.eclipse.birt – 2.6.1.me201302031636
    org.eclipse.datatools.connectivity.feature – 1.9.0.me201302031636
    org.eclipse.datatools.enablement.feature – 1.9.0.me201302031636
    org.eclipse.datatools.modelbase.feature – 1.9.0.v201106031100-77078CcNBHCBYKYEbNV
    org.eclipse.datatools.sqldevtools.feature – 1.9.0.me201302031636
    org.eclipse.emf – 2.7.0.v20110606-0949
    org.eclipse.gef – 3.7.0.v20110425-2050-777D-81B2Bz0685C3A6E34272
    org.eclipse.graphiti.feature – 0.8.0.v20110607-1252
    org.eclipse.jpt.jpa.feature – 3.0.0.me201302031636
    org.eclipse.jpt.jpadiagrameditor.feature – 1.0.0.me201302031636
    org.eclipse.jst.common.fproj.enablement.jdt – 3.3.0.me201302031636
    org.eclipse.jst.enterprise_ui.feature – 3.3.0.me201302031636
    org.eclipse.jst.server_adapters.ext.feature – 3.3.0.me201302031636
    org.eclipse.jst.server_adapters.feature – 3.2.100.me201302031636
    org.eclipse.jst.server_ui.feature – 3.3.0.me201302031636
    org.eclipse.jst.ws.axis2tools.feature – 1.1.200.me201302031636
    org.eclipse.m2e.feature – 1.0.0.me201302031636
    org.eclipse.sapphire.platform – 0.3.0.201106221325
    org.eclipse.wst.common.fproj – 3.3.0.me201302031636
    org.eclipse.wst.server_adapters.feature – 3.2.100.me201302031636
    org.eclipse.xsd – 2.7.0.v20110606-0949
    org.springframework.ide.eclipse.feature – 2.9.1.me201302031636

    ch.epfl.lamp.sdt – 2.7.7.final
    fr.obeo.acceleo.bridge.feature – 2.6.0.200906261742
    org.eclipse.cvs – 1.3.100.v20110520-0800-7B78FHl9VF7BD7KBM4GP9C
    org.eclipse.draw2d – 3.7.0.v20110425-2050-46-7w3122153603161
    org.eclipse.equinox.p2.core.feature – 1.0.1.v20110906-1605-8290FZ9FVKHVRKtmx3fpNuo02129
    org.eclipse.equinox.p2.extras.feature – 1.0.1.v20110906-1605-7A4FD4DiVOMap8cHSc6vPuny4gqO
    org.eclipse.equinox.p2.rcp.feature – 1.0.1.v20110906-1605-782EqBqNKGVkiV-PUsgz-uny4gqO
    org.eclipse.equinox.p2.user.ui – 2.1.2.R37x_v20110815-1155-6-Bk8pYWZz0qUTX5I15GZWwbXkrl
    org.eclipse.help – 1.3.0.v20110530-0844-7i7uFFmFFl8nvqbDpEqTvx
    org.eclipse.jdt – 3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1
    org.eclipse.jsf.feature – 3.3.0.me201302031636
    org.eclipse.ocl – 3.1.0.v20110606-1427
    org.eclipse.pde – 3.7.2.v20120120-1420-7b7rFUOFEx2Xnqafnpz0E–0
    org.eclipse.platform – 3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q
    org.eclipse.rcp – 3.7.2.v20120120-1424-9DB5FmnFq5JCf1UA38R-kz0S0272

    Eclipse startup command=-os
    linux
    -ws
    gtk
    -arch
    x86
    -showsplash
    -launcher
    /home/scorwin/apps/eclipseMyEclipse10/MyEclipse 10/myeclipse
    -name
    Myeclipse
    –launcher.library
    /home/scorwin/apps/eclipseMyEclipse10/MyEclipse 10//../Common/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.100.v20110505/eclipse_1407.so
    -startup
    /home/scorwin/apps/eclipseMyEclipse10/MyEclipse 10//../Common/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
    –launcher.overrideVmargs
    -exitdata
    30358008
    -install
    /home/scorwin/apps/eclipseMyEclipse10/MyEclipse 10
    -configuration
    /home/scorwin/apps/eclipseMyEclipse10/MyEclipse 10/configuration
    -vm
    /home/scorwin/apps/eclipseMyEclipse10/Common/binary/com.sun.java.jdk.linux.x86_1.6.0.013/bin/java

    The exception looks like a version mismatch, but I installed the plugin from with MyEclipse so I’d expect it to make sure the versions matched?

    Any suggestions would be appreciated.

    Thanks,
    Steve

    #338233

    Steve,

    We don’t provide intrinsic support for third party plugins. But we will try to assist you in this case.

    > Can you please mention how did you install scala plugin from MyEclipse ?
    > Can you please mention how did you create scala directory tree ? Please mention step by step process you did after installing scala plugin.
    > If possible can you please attach the project(scala directory tree, added scala nature) to help us investigate further ?

    Can you please try installing scala plugin for MyEclipse using the following update site :
    http://download.scala-ide.org/sdk/e37/scala210/stable/site

    For more information on adding plugins using update site please take a look at this link –
    http://www.genuitec.com/blog/?p=1628#add-site

    #338269

    SteveCorwin
    Member

    Pradeep,

    Thanks for your help.

    > Can you please mention how did you install scala plugin from MyEclipse ?

    When I first launched MyEclipse it opened the Software and Workspace Center. I went to the Software tab. There’s a search box so I typed “scala”. There was a choice for Scala Plugin. I right-clicked and chose “Add to profile…”.

    Today I installed the Scala IDE from the update site you recommended. That installed v3.0.0. I was still getting the errors, so I went to the Software and Workspace Center and used it to remove the Scala Plugin I originally installed (which appears to be v2.7.7). After a restart there were no more errors and everything appears to be working!

    -Steve

    #338298

    Steve,

    Glad that you got it working.
    Let us know if you see any issues.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: MyEclipse 10.7.1 + scala plugin = ‘Building workspace’ error

You must be logged in to post in the forum log in