I have this same error; as previously raised in Jira: [jira] Created: (SYNAPSE-336) [Windows] Unable to start sample 351 and 352 on Windows due to an issue regarding scripts.
This Jira was never acted on and dismissed; However I can reproduce it on 2 machines and now cannot now use synapse. It appears Synapse is too unstable / unreliable to use on Windows. I am using a large number of other Java applications/app servers etc and this is the first app that fails on Windows !!! I am using Java: JAVA_HOME=C:\Program Files\Java\jdk1.5.0_17 This is related to Random Start Up Error message of last week; however I can now reliable reproduce this as these samples never run.