facebook

Getting an error while trying to attach the src to jar

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #294636 Reply

    Tolga Umut
    Participant

    Hi I was trying to attach a src to a jar in my web project through the “Properties” of the jar. I tried both External file and External Folder. Got the following error message in a dialogue, and the stack trace from the Error Log. Help!

    Error Message

    An Error occured while Associating the source
    Attempted to beginRule: R/, does not match outer scope rule: P/Workbench

    Stack Trace

    eclipse.buildId=unknown
    java.version=1.5.0_11
    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 -clean

    Error
    Tue Feb 10 10:38:26 CST 2009
    Internal Error

    java.lang.reflect.InvocationTargetException
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:415)
    at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
    at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:275)
    at org.eclipse.ui.internal.progress.ProgressManager$3.run(ProgressManager.java:977)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:1012)
    at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:987)
    at org.eclipse.ui.internal.progress.ProgressManager.run(ProgressManager.java:1195)
    at org.eclipse.jdt.internal.ui.preferences.SourceAttachmentPropertyPage.performOk(SourceAttachmentPropertyPage.java:165)
    at org.eclipse.jface.preference.PreferencePage.performApply(PreferencePage.java:435)
    at org.eclipse.jface.preference.PreferencePage$2.widgetSelected(PreferencePage.java:284)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
    at org.eclipse.jface.window.Window.open(Window.java:801)
    at org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:157)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
    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(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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)
    Caused by: java.lang.IllegalArgumentException: Attempted to beginRule: R/, does not match outer scope rule: P/Workbench
    at org.eclipse.core.runtime.Assert.isLegal(Assert.java:64)
    at org.eclipse.core.internal.jobs.ThreadJob.illegalPush(ThreadJob.java:122)
    at org.eclipse.core.internal.jobs.ThreadJob.push(ThreadJob.java:232)
    at org.eclipse.core.internal.jobs.ImplicitJobs.begin(ImplicitJobs.java:58)
    at org.eclipse.core.internal.jobs.JobManager.beginRule(JobManager.java:230)
    at org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:117)
    at org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:1747)
    at org.eclipse.core.internal.resources.File.setContents(File.java:364)
    at org.eclipse.jdt.internal.core.JavaProject.setSharedProperty(JavaProject.java:2888)
    at org.eclipse.jdt.internal.core.JavaProject.writeFileEntries(JavaProject.java:2654)
    at org.eclipse.jdt.internal.core.JavaModelManager$7.run(JavaModelManager.java:1188)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
    at org.eclipse.jdt.internal.core.JavaModelManager$PerProjectInfo.writeAndCacheClasspath(JavaModelManager.java:1182)
    at org.eclipse.jdt.internal.core.SetClasspathOperation.executeOperation(SetClasspathOperation.java:61)
    at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:709)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
    at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:775)
    at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:2818)
    at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:2849)
    at org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathSupport.updateProjectClasspath(BuildPathSupport.java:277)
    at org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathSupport.modifyClasspathEntry(BuildPathSupport.java:186)
    at org.eclipse.jdt.internal.ui.wizards.buildpaths.SourceAttachmentBlock$1.run(SourceAttachmentBlock.java:587)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
    Root exception:
    java.lang.IllegalArgumentException: Attempted to beginRule: R/, does not match outer scope rule: P/Workbench
    at org.eclipse.core.runtime.Assert.isLegal(Assert.java:64)
    at org.eclipse.core.internal.jobs.ThreadJob.illegalPush(ThreadJob.java:122)
    at org.eclipse.core.internal.jobs.ThreadJob.push(ThreadJob.java:232)
    at org.eclipse.core.internal.jobs.ImplicitJobs.begin(ImplicitJobs.java:58)
    at org.eclipse.core.internal.jobs.JobManager.beginRule(JobManager.java:230)
    at org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:117)
    at org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:1747)
    at org.eclipse.core.internal.resources.File.setContents(File.java:364)
    at org.eclipse.jdt.internal.core.JavaProject.setSharedProperty(JavaProject.java:2888)
    at org.eclipse.jdt.internal.core.JavaProject.writeFileEntries(JavaProject.java:2654)
    at org.eclipse.jdt.internal.core.JavaModelManager$7.run(JavaModelManager.java:1188)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
    at org.eclipse.jdt.internal.core.JavaModelManager$PerProjectInfo.writeAndCacheClasspath(JavaModelManager.java:1182)
    at org.eclipse.jdt.internal.core.SetClasspathOperation.executeOperation(SetClasspathOperation.java:61)
    at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:709)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
    at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:775)
    at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:2818)
    at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:2849)
    at org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathSupport.updateProjectClasspath(BuildPathSupport.java:277)
    at org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathSupport.modifyClasspathEntry(BuildPathSupport.java:186)
    at org.eclipse.jdt.internal.ui.wizards.buildpaths.SourceAttachmentBlock$1.run(SourceAttachmentBlock.java:587)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

    #294647 Reply

    Loyal Water
    Member

    Are you facing this issue with MyEclipse version 7.0 ? Can you go to MyEclipse > Installation Summary > Installation Details and paste the information here for me.

    #294801 Reply

    Tolga Umut
    Participant

    Below is my installation summary.

    *** Date:
    Friday, February 13, 2009 10:40:02 AM CST

    ** System properties:
    OS=WindowsXP
    OS version=5.1.0
    Java version=1.5.0_11

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 7.0
    Build id: 7.0-20081201

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 7.0
    Build id: 7.0-20081201

    Eclipse Platform

    Version: 3.4.1.r341_v20080731-9I96EiDElYevwz-p1bP5z-NlAaP7vtX6Utotqsu
    Build id: M20080911-1700

    Eclipse Java Development Tools

    Version: 3.4.1.r341_v20080709-0800-7o7tEAfEF_U5qyUgrb2HAp539P97
    Build id: M20080709-0800

    Eclipse Graphical Editing Framework GEF

    Version: 3.4.1.v20080806-67718083A56B4H2A3213573
    Build id: 200809101400

    Eclipse RCP

    Version: 3.4.100.r341_v20080814-989JESIEdAciFYfkZZsBfSwQ2341
    Build id: M20080703-0800

    Eclipse Plug-in Development Environment

    Version: 3.4.1.r341_v20080731-7T7U0E9mlRIuGUYviF_VP
    Build id: M20080703-0800

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Program Files\Genuitec\MyEclipse 7.0\myeclipse.exe
    -name
    Myeclipse
    –launcher.library
    C:\Program Files\Genuitec\MyEclipse 7.0\../Common\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731\eclipse_1115.dll
    -startup
    C:\Program Files\Genuitec\MyEclipse 7.0\../Common\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
    -clean
    -configuration
    configuration
    -vm
    C:\Program Files\Genuitec\Common\binary\com.sun.java.jre.win32.x86_1.5.0.011\bin\client\jvm.dll

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Getting an error while trying to attach the src to jar

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