function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
dev_jhdev_jh 

Problems manually editing XLM and deploying with Eclipse

Hi all,

 

We have an org with several hundred workflow alerts that send different emails. We need quite a few of these emails copied to a specific email address.

 

Rather than manually modifying all these through the GUI we thought about connecting with Eclipse to the Production Org and modifying the Workflow XMLs to include on each alert a line:

 

<ccEmails>xxxx@yyyy.com</ccEmails>

 

We have done so successfully for one of the Objects. When we try to proceed with another object it does not seem to work. As soon as we edit the XML with Ultra Edit we get a mark in Eclipse stating the data is dirty. Even if we try to refresh it, it remains dirty. When we deploy, we get an error message (here is the Eclipse Log for it). Can anyone help or suggest another approach? Thanks!!!

 

 

!SESSION 2009-05-01 16:07:45.415 ----------------------------------------------- eclipse.buildId=M20080221-1800 java.version=1.6.0_13 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 !ENTRY com.salesforce.ide.core 2 0 2009-05-01 16:07:53.234 !MESSAGE WARN [2009-05-01 16:07:53,225] (ProxyManager.java:init:49) - No proxy bundle found - default proxy service will be initialized !ENTRY org.eclipse.osgi 2 0 2009-05-01 16:07:59.676 !MESSAGE While loading class "com.salesforce.ide.upgrade.internal.UpgradeNotifier$3", thread "Thread[main,6,main]" timed out waiting (5000ms) for thread "Thread[Worker-2,5,main]" to finish starting bundle "update@plugins/com.salesforce.ide.upgrade_15.0.0.200902181452.jar [288]". To avoid deadlock, thread "Thread[main,6,main]" is proceeding but "com.salesforce.ide.upgrade.internal.UpgradeNotifier$3" may not be fully initialized. !STACK 0 org.osgi.framework.BundleException: State change in progress for bundle "update@plugins/com.salesforce.ide.upgrade_15.0.0.200902181452.jar" by thread "Worker-2". at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1141) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:258) at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400) at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:417) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:189) at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:340) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:408) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at com.salesforce.ide.upgrade.internal.UpgradeNotifier.addViewListener(UpgradeNotifier.java:300) at com.salesforce.ide.upgrade.internal.UpgradeNotifier.addPackagesViewListener(UpgradeNotifier.java:265) at com.salesforce.ide.upgrade.internal.UpgradeNotifier.addOpenedViewListeners(UpgradeNotifier.java:243) at com.salesforce.ide.upgrade.internal.UpgradeNotifier.access$0(UpgradeNotifier.java:239) at com.salesforce.ide.upgrade.internal.UpgradeNotifier$1.run(UpgradeNotifier.java:108) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:129) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219) at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176) 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:508) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447) at org.eclipse.equinox.launcher.Main.run(Main.java:1173) Caused by: org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException ... 42 more Root exception: org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1141) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:258) at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400) at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:417) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:189) at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:340) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:408) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at com.salesforce.ide.upgrade.internal.UpgradeNotifier.addViewListener(UpgradeNotifier.java:300) at com.salesforce.ide.upgrade.internal.UpgradeNotifier.addPackagesViewListener(UpgradeNotifier.java:265) at com.salesforce.ide.upgrade.internal.UpgradeNotifier.addOpenedViewListeners(UpgradeNotifier.java:243) at com.salesforce.ide.upgrade.internal.UpgradeNotifier.access$0(UpgradeNotifier.java:239) at com.salesforce.ide.upgrade.internal.UpgradeNotifier$1.run(UpgradeNotifier.java:108) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:129) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219) at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176) 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:508) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447) at org.eclipse.equinox.launcher.Main.run(Main.java:1173) !ENTRY com.salesforce.ide.core 2 0 2009-05-01 16:09:56.163 !MESSAGE WARN [2009-05-01 16:09:56,162] (ProjectService.java:handleDeployResult:1892) - Save failed! !ENTRY com.salesforce.ide.core 2 0 2009-05-01 16:09:56.201 !MESSAGE WARN [2009-05-01 16:09:56,200] (ProjectService.java:handleRetrieveResult:2023) - Nothing to save to project - retrieve result is empty

 

 

 

Best Answer chosen by Admin (Salesforce Developers) 
SomeshSomesh
sorry...should've mentioned it. add it in a new line. restart. and then edit the xml and save and see if there was an error.

All Answers

SomeshSomesh

Hi,

The trace you've mentioned seems to be unrelated. But just to make sure... could you please set the logging level to Debug and let us know what the error is.There should be a save related error, if any.

 

1. Set the following JVM property:

  • eclipse.ini or cmd-line
    • -vmargs -Dforce-ide-debug=true

2. Restart Eclipse 3. The log file is $workspace/.metadata/.plugins/com.salesforce.ide.core/force-ide.log and can be view from within Eclipse via the Error Log (Windows-> Perferences...->PDE Runtime->Error Log)

Also, your Eclipse project should be set to build automatically, otherwise you'll have to explicitly save to server from the force.com context menu.

 

 

dev_jhdev_jh

Thanks Somesh. Unfortunately, that log is not too verbose:

 

 

WARN [2009-05-01 19:15:49,777] (ProxyManager.java:init:49) - No proxy bundle found - default proxy service will be initialized WARN [2009-05-01 19:20:39,181] (ProjectService.java:handleDeployResult:1892) - Save failed! WARN [2009-05-01 19:20:39,209] (ProjectService.java:handleRetrieveResult:2023) - Nothing to save to project - retrieve result is empty WARN [2009-05-01 19:21:37,021] (ProjectService.java:handleDeployResult:1892) - Save failed! WARN [2009-05-01 19:21:37,023] (ProjectService.java:handleRetrieveResult:2023) - Nothing to save to project - retrieve result is empty

 

 How do I make the project build automatically? Can´t see an option in the Properties menu. Thanks,

 

J

 

SomeshSomesh

It should be under the Standard Eclipse Menu.

Project->Build Automatically.

 

Also, the messages are only Warn messages, if you add the vm argument in your eclipse.ini and restart, there will be debug messages that might give us more info.

 

Thanks

 

dev_jhdev_jh

Thanks again. The Project is set to "Build Automatically"

 

The ini file has what you requested and I restarted, maybe I failed to add the parameter correctly? See below (in red it is highlighted what I added on your suggestion, the "-vmargs" was already present):

 

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs -Dforce-ide-debug=true
-Xms40m
-Xmx256m
-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog

SomeshSomesh
sorry...should've mentioned it. add it in a new line. restart. and then edit the xml and save and see if there was an error.
This was selected as the best answer
dev_jhdev_jh

Bingo!

 

Got a meaningful log and saw the following line:

 

(1) (F) filename = workflows/Embarque__c.workflow, result = FAILED, affect = none, problem = Name must be unique., line# = null, column# = null, id = null, fullname = Embarque__c.Embarque%5F%5Fcambio al cierre

 

Apparently the name "Embarque%5F%5Fcambio al cierre" was driving both me and Eclipse completely crazy. Renamed and works fine now. Many thanks!

 

J