You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org> on 2010/10/12 19:17:35 UTC

[jira] Commented: (SYNAPSE-700) Script Mediator must throw an exception when ScriptEngineManager fails to find the specified Script Engine

    [ https://issues.apache.org/jira/browse/SYNAPSE-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12920262#action_12920262 ] 

Hiranya Jayathilaka commented on SYNAPSE-700:
---------------------------------------------

Can you provide a test case to reproduce this scenario? I just modified sample 351 by changing the language attribute to "abc" from "js". At Synapse startup now I get this error:

2010-10-12 22:44:59,252 [-] [main] ERROR SynapseConfigurationBuilder Could not initialize Synapse : No script engine found for language: abc
org.apache.synapse.SynapseException: No script engine found for language: abc
	at org.apache.synapse.mediators.bsf.ScriptMediator.handleException(ScriptMediator.java:425)
	at org.apache.synapse.mediators.bsf.ScriptMediator.initScriptEngine(ScriptMediator.java:398)
	at org.apache.synapse.mediators.bsf.ScriptMediator.initInlineScript(ScriptMediator.java:266)
	at org.apache.synapse.mediators.bsf.ScriptMediator.<init>(ScriptMediator.java:121)
	at org.apache.synapse.mediators.bsf.ScriptMediatorFactory.createSpecificMediator(ScriptMediatorFactory.java:94)
	at org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:89)
	at org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:185)
	at org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:41)
	at org.apache.synapse.config.xml.InMediatorFactory.createSpecificMediator(InMediatorFactory.java:48)
	at org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:89)
	at org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:185)
	at org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:41)
	at org.apache.synapse.config.xml.SequenceMediatorFactory.createSpecificMediator(SequenceMediatorFactory.java:84)
	at org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:89)
	at org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:185)
	at org.apache.synapse.config.xml.SynapseXMLConfigurationFactory.defineSequence(SynapseXMLConfigurationFactory.java:139)
	at org.apache.synapse.config.xml.SynapseXMLConfigurationFactory.getConfiguration(SynapseXMLConfigurationFactory.java:72)
	at org.apache.synapse.config.xml.ConfigurationFactoryAndSerializerFinder.getConfiguration(ConfigurationFactoryAndSerializerFinder.java:161)
	at org.apache.synapse.config.xml.XMLConfigurationBuilder.getConfiguration(XMLConfigurationBuilder.java:48)
	at org.apache.synapse.config.SynapseConfigurationBuilder.getConfiguration(SynapseConfigurationBuilder.java:91)
	at org.apache.synapse.Axis2SynapseController.createSynapseConfiguration(Axis2SynapseController.java:432)
	at org.apache.synapse.ServerManager.start(ServerManager.java:177)
	at org.apache.synapse.SynapseServer.main(SynapseServer.java:68)

So to me it seems the script mediator does throw an error when it cannot find the specified script engine

> Script Mediator must throw an exception when ScriptEngineManager fails to find the specified Script Engine
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-700
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-700
>             Project: Synapse
>          Issue Type: Bug
>          Components: Script mediator
>            Reporter: Kasun Indrasiri
>
> Currently when we creating the script mediator, if the scripting language that we specify is not available to load the classes, then it fails with out throwing exceptions and therefore we cannot handle this at top level layers.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org