[mashup-dev] [jira] Closed: (MASHUP-209) Gives an error when
deploying a service
of a test scenario given in the 'Description' section.
Yumani Ranaweera (JIRA)
jira at wso2.org
Fri Jul 6 02:42:41 PDT 2007
[ http://www.wso2.org/jira/browse/MASHUP-209?page=all ]
Yumani Ranaweera closed MASHUP-209.
-----------------------------------
Verified closed in 0.1.
> Gives an error when deploying a service of a test scenario given in the 'Description' section.
> ----------------------------------------------------------------------------------------------
>
> Key: MASHUP-209
> URL: http://www.wso2.org/jira/browse/MASHUP-209
> Project: WSO2 Mashup Server
> Issue Type: Bug
> Components: HostObjects
> Affects Versions: 0.1-RC2
> Environment: WinXP, jdk1.5
> Reporter: Yumani Ranaweera
> Assigned To: Thilina Gunarathne
>
> The error is as below;
> INFO [2007-07-03 11:19:42,187] The fileManupulation.js service, which is not valid, caused org.mozilla.javascript.WrappedException: Wrapped org.wso2
> .mashup.MashupFault: Error obtaining the MessageContext. (<cmd>#3)
> at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1693)
> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:160)
> at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:414)
> at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:313)
> at org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2070)
> at org.mozilla.javascript.gen.c76._c0(<cmd>:3)
> at org.mozilla.javascript.gen.c76.call(<cmd>)
> at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:340)
> at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2758)
> at org.mozilla.javascript.gen.c76.call(<cmd>)
> at org.mozilla.javascript.gen.c76.exec(<cmd>)
> at org.mozilla.javascript.Context.evaluateReader(Context.java:1163)
> at org.wso2.javascript.rhino.JavaScriptEngine.evaluate(JavaScriptEngine.java:76)
> at org.wso2.mashup.deployer.JSDeployer.processService(JSDeployer.java:228)
> at org.wso2.mashup.deployer.JSDeployer.deploy(JSDeployer.java:107)
> at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:146)
> at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:540)
> at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:132)
> at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:301)
> at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:211)
> at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:295)
> at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:61)
> at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:68)
> at org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:80)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)
> Caused by: org.wso2.mashup.MashupFault: Error obtaining the MessageContext.
> Steps to recreate.
> 1. Copy the syntax below and save in the MASHUP_HOME/scripts folder. It throws the error (above) when saving\deploying.
> var text = "Hello World!";
> var file = new File("temp.txt");
> if (!file.exists)
> file.createFile();
>
> file.openForWriting();
> file.write(text);
> file.close();
> file.move("backup/goodbye.txt");
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://www.wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the Mashup-dev
mailing list