You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by Subash Chaturanga <su...@gmail.com> on 2010/05/31 06:16:24 UTC

Error occured when running sample 5

Hi all ,
(Feel sorry for dropping this mail at dev list by mistake.)

When i was trying to run the sample 5 ,i got this error and i couldn't
proceed further.Any idea ?


subash@subash-laptop:~/
synapse_dis/synapse-2.0.0-SNAPSHOT/bin$ ./synapse.sh -sample 5
 [Warn] Synapse is tested only with Java 5
Starting Synapse/Java ...
Using SYNAPSE_HOME:    /home/subash/synapse_dis/synapse-2.0.0-SNAPSHOT
Using JAVA_HOME:       /usr/lib/jvm/java-6-sun-1.6.0.20
Using SYNAPSE_XML:
/home/subash/synapse_dis/synapse-2.0.0-SNAPSHOT/repository/conf/sample/synapse_sample_5.xml
2010-05-31 00:21:26,819 [-] [main]  INFO SynapseServer Starting Apache
Synapse...
2010-05-31 00:21:26,861 [-] [main]  INFO SynapseControllerFactory Using
Synapse home : /home/subash/synapse_dis/synapse-2.0.0-SNAPSHOT
2010-05-31 00:21:26,861 [-] [main]  INFO SynapseControllerFactory Using
Axis2 repository :
/home/subash/synapse_dis/synapse-2.0.0-SNAPSHOT/repository
2010-05-31 00:21:26,861 [-] [main]  INFO SynapseControllerFactory Using
axis2.xml location :
/home/subash/synapse_dis/synapse-2.0.0-SNAPSHOT/repository/conf/axis2.xml
2010-05-31 00:21:26,862 [-] [main]  INFO SynapseControllerFactory Using
synapse.xml location :
/home/subash/synapse_dis/synapse-2.0.0-SNAPSHOT/repository/conf/sample/synapse_sample_5.xml
2010-05-31 00:21:26,862 [-] [main]  INFO SynapseControllerFactory Using
server name : localhost
2010-05-31 00:21:26,889 [-] [main]  INFO SynapseControllerFactory The
timeout handler will run every : 15s
2010-05-31 00:21:27,098 [-] [main]  INFO Axis2SynapseController Initializing
Synapse at : Mon May 31 00:21:27 IST 2010
2010-05-31 00:21:28,048 [-] [main] ERROR SandeshaModule Could not load
module policies. Using default values.
2010-05-31 00:21:28,075 [-] [main]  INFO HttpCoreNIOSSLSender Loading
Identity Keystore from : lib/identity.jks
2010-05-31 00:21:28,097 [-] [main]  INFO HttpCoreNIOSSLSender Loading Trust
Keystore from : lib/trust.jks
2010-05-31 00:21:28,186 [-] [main]  INFO HttpCoreNIOSender HTTPS Sender
starting
2010-05-31 00:21:28,194 [-] [main]  INFO HttpCoreNIOSender HTTP Sender
starting
2010-05-31 00:21:28,194 [-] [main]  INFO JMSSender JMS Sender started
2010-05-31 00:21:28,196 [-] [main]  INFO JMSSender JMS Transport Sender
initialized...
2010-05-31 00:21:28,196 [-] [main]  INFO VFSTransportSender VFS Sender
started
2010-05-31 00:21:28,360 [-] [main]  WARN JmxAdapter Using unsecured JMX
remote access!
2010-05-31 00:21:28,489 [-] [main]  INFO HttpCoreNIOSSLListener Loading
Identity Keystore from : lib/identity.jks
2010-05-31 00:21:28,491 [-] [main]  INFO HttpCoreNIOSSLListener Loading
Trust Keystore from : lib/trust.jks
2010-05-31 00:21:28,505 [-] [main]  INFO Axis2SynapseController Loading
mediator extensions...
2010-05-31 00:21:28,534 [-] [main]  INFO XMLConfigurationBuilder Generating
the Synapse configuration model by parsing the XML configuration
2010-05-31 00:21:28,627 [-] [main] ERROR FaultMediator Invalid Fault code
value for a SOAP 1.2 fault : {
http://schemas.xmlsoap.org/soap/envelope/}Server<http://schemas.xmlsoap.org/soap/envelope/%7DServer>
2010-05-31 00:21:28,628 [-] [main] ERROR SynapseConfigurationBuilder Could
not initialize Synapse : Invalid Fault code value for a SOAP 1.2 fault : {
http://schemas.xmlsoap.org/soap/envelope/}Server<http://schemas.xmlsoap.org/soap/envelope/%7DServer>
org.apache.synapse.SynapseException: Invalid Fault code value for a SOAP 1.2
fault : {http://schemas.xmlsoap.org/soap/envelope/}Server<http://schemas.xmlsoap.org/soap/envelope/%7DServer>
    at
org.apache.synapse.mediators.transform.FaultMediator.handleException(FaultMediator.java:519)
    at
org.apache.synapse.mediators.transform.FaultMediator.setFaultCodeValue(FaultMediator.java:446)
    at
org.apache.synapse.config.xml.FaultMediatorFactory.createMediator(FaultMediatorFactory.java:120)
    at
org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:180)
    at
org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:39)
    at
org.apache.synapse.config.xml.SequenceMediatorFactory.createMediator(SequenceMediatorFactory.java:79)
    at
org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:180)
    at
org.apache.synapse.config.xml.SynapseXMLConfigurationFactory.defineSequence(SynapseXMLConfigurationFactory.java:152)
    at
org.apache.synapse.config.xml.SynapseXMLConfigurationFactory.getConfiguration(SynapseXMLConfigurationFactory.java:80)
    at
org.apache.synapse.config.xml.ConfigurationFactoryAndSerializerFinder.getConfiguration(ConfigurationFactoryAndSerializerFinder.java:160)
    at
org.apache.synapse.config.xml.XMLConfigurationBuilder.getConfiguration(XMLConfigurationBuilder.java:46)
    at
org.apache.synapse.config.SynapseConfigurationBuilder.getConfiguration(SynapseConfigurationBuilder.java:87)
    at
org.apache.synapse.Axis2SynapseController.createSynapseConfiguration(Axis2SynapseController.java:381)
    at org.apache.synapse.ServerManager.start(ServerManager.java:179)
    at org.apache.synapse.SynapseServer.main(SynapseServer.java:65)
2010-05-31 00:21:28,630 [-] [main] ERROR SynapseServer Error starting Apache
Synapse, trying a clean shutdown...
org.apache.synapse.SynapseException: Could not initialize Synapse : Invalid
Fault code value for a SOAP 1.2 fault : {
http://schemas.xmlsoap.org/soap/envelope/}Server<http://schemas.xmlsoap.org/soap/envelope/%7DServer>
    at
org.apache.synapse.config.SynapseConfigurationBuilder.handleException(SynapseConfigurationBuilder.java:151)
    at
org.apache.synapse.config.SynapseConfigurationBuilder.getConfiguration(SynapseConfigurationBuilder.java:90)
    at
org.apache.synapse.Axis2SynapseController.createSynapseConfiguration(Axis2SynapseController.java:381)
    at org.apache.synapse.ServerManager.start(ServerManager.java:179)
    at org.apache.synapse.SynapseServer.main(SynapseServer.java:65)
Caused by: org.apache.synapse.SynapseException: Invalid Fault code value for
a SOAP 1.2 fault :
{http://schemas.xmlsoap.org/soap/envelope/}Server<http://schemas.xmlsoap.org/soap/envelope/%7DServer>
    at
org.apache.synapse.mediators.transform.FaultMediator.handleException(FaultMediator.java:519)
    at
org.apache.synapse.mediators.transform.FaultMediator.setFaultCodeValue(FaultMediator.java:446)
    at
org.apache.synapse.config.xml.FaultMediatorFactory.createMediator(FaultMediatorFactory.java:120)
    at
org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:180)
    at
org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:39)
    at
org.apache.synapse.config.xml.SequenceMediatorFactory.createMediator(SequenceMediatorFactory.java:79)
    at
org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:180)
    at
org.apache.synapse.config.xml.SynapseXMLConfigurationFactory.defineSequence(SynapseXMLConfigurationFactory.java:152)
    at
org.apache.synapse.config.xml.SynapseXMLConfigurationFactory.getConfiguration(SynapseXMLConfigurationFactory.java:80)
    at
org.apache.synapse.config.xml.ConfigurationFactoryAndSerializerFinder.getConfiguration(ConfigurationFactoryAndSerializerFinder.java:160)
    at
org.apache.synapse.config.xml.XMLConfigurationBuilder.getConfiguration(XMLConfigurationBuilder.java:46)
    at
org.apache.synapse.config.SynapseConfigurationBuilder.getConfiguration(SynapseConfigurationBuilder.java:87)
    ... 3 more
2010-05-31 00:21:28,632 [-] [main]  INFO JmxAdapter JMXConnectorServer
stopping on service:jmx:rmi:///jndi/rmi://subash-laptop:1099/synapse
2010-05-31 00:21:28,633 [-] [main]  INFO RMIRegistryController Removing the
RMI registry bound to port : 1099

Thank you
/subash

Re: Error occured when running sample 5

Posted by Kasun Indrasiri <ka...@gmail.com>.
Hi Subash,

The fault code value is wrong in that sample. I will create a JIRA for this
and fix this.
For the time being, you can use following configuration to make it work.

<makefault>
            <code value="tns:Receiver" xmlns:tns="
http://www.w3.org/2003/05/soap-envelope"/>
            <reason expression="get-property('ERROR_MESSAGE')"/>
</makefault>

regards,

On Mon, May 31, 2010 at 9:46 AM, Subash Chaturanga <su...@gmail.com>wrote:

> Hi all ,
> (Feel sorry for dropping this mail at dev list by mistake.)
>
> When i was trying to run the sample 5 ,i got this error and i couldn't
> proceed further.Any idea ?
>
>
> subash@subash-laptop:~/
> synapse_dis/synapse-2.0.0-SNAPSHOT/bin$ ./synapse.sh -sample 5
>  [Warn] Synapse is tested only with Java 5
> Starting Synapse/Java ...
> Using SYNAPSE_HOME:    /home/subash/synapse_dis/synapse-2.0.0-SNAPSHOT
> Using JAVA_HOME:       /usr/lib/jvm/java-6-sun-1.6.0.20
> Using SYNAPSE_XML:
>
> /home/subash/synapse_dis/synapse-2.0.0-SNAPSHOT/repository/conf/sample/synapse_sample_5.xml
> 2010-05-31 00:21:26,819 [-] [main]  INFO SynapseServer Starting Apache
> Synapse...
> 2010-05-31 00:21:26,861 [-] [main]  INFO SynapseControllerFactory Using
> Synapse home : /home/subash/synapse_dis/synapse-2.0.0-SNAPSHOT
> 2010-05-31 00:21:26,861 [-] [main]  INFO SynapseControllerFactory Using
> Axis2 repository :
> /home/subash/synapse_dis/synapse-2.0.0-SNAPSHOT/repository
> 2010-05-31 00:21:26,861 [-] [main]  INFO SynapseControllerFactory Using
> axis2.xml location :
> /home/subash/synapse_dis/synapse-2.0.0-SNAPSHOT/repository/conf/axis2.xml
> 2010-05-31 00:21:26,862 [-] [main]  INFO SynapseControllerFactory Using
> synapse.xml location :
>
> /home/subash/synapse_dis/synapse-2.0.0-SNAPSHOT/repository/conf/sample/synapse_sample_5.xml
> 2010-05-31 00:21:26,862 [-] [main]  INFO SynapseControllerFactory Using
> server name : localhost
> 2010-05-31 00:21:26,889 [-] [main]  INFO SynapseControllerFactory The
> timeout handler will run every : 15s
> 2010-05-31 00:21:27,098 [-] [main]  INFO Axis2SynapseController
> Initializing
> Synapse at : Mon May 31 00:21:27 IST 2010
> 2010-05-31 00:21:28,048 [-] [main] ERROR SandeshaModule Could not load
> module policies. Using default values.
> 2010-05-31 00:21:28,075 [-] [main]  INFO HttpCoreNIOSSLSender Loading
> Identity Keystore from : lib/identity.jks
> 2010-05-31 00:21:28,097 [-] [main]  INFO HttpCoreNIOSSLSender Loading Trust
> Keystore from : lib/trust.jks
> 2010-05-31 00:21:28,186 [-] [main]  INFO HttpCoreNIOSender HTTPS Sender
> starting
> 2010-05-31 00:21:28,194 [-] [main]  INFO HttpCoreNIOSender HTTP Sender
> starting
> 2010-05-31 00:21:28,194 [-] [main]  INFO JMSSender JMS Sender started
> 2010-05-31 00:21:28,196 [-] [main]  INFO JMSSender JMS Transport Sender
> initialized...
> 2010-05-31 00:21:28,196 [-] [main]  INFO VFSTransportSender VFS Sender
> started
> 2010-05-31 00:21:28,360 [-] [main]  WARN JmxAdapter Using unsecured JMX
> remote access!
> 2010-05-31 00:21:28,489 [-] [main]  INFO HttpCoreNIOSSLListener Loading
> Identity Keystore from : lib/identity.jks
> 2010-05-31 00:21:28,491 [-] [main]  INFO HttpCoreNIOSSLListener Loading
> Trust Keystore from : lib/trust.jks
> 2010-05-31 00:21:28,505 [-] [main]  INFO Axis2SynapseController Loading
> mediator extensions...
> 2010-05-31 00:21:28,534 [-] [main]  INFO XMLConfigurationBuilder Generating
> the Synapse configuration model by parsing the XML configuration
> 2010-05-31 00:21:28,627 [-] [main] ERROR FaultMediator Invalid Fault code
> value for a SOAP 1.2 fault : {
> http://schemas.xmlsoap.org/soap/envelope/}Server<
> http://schemas.xmlsoap.org/soap/envelope/%7DServer>
> 2010-05-31 00:21:28,628 [-] [main] ERROR SynapseConfigurationBuilder Could
> not initialize Synapse : Invalid Fault code value for a SOAP 1.2 fault : {
> http://schemas.xmlsoap.org/soap/envelope/}Server<
> http://schemas.xmlsoap.org/soap/envelope/%7DServer>
> org.apache.synapse.SynapseException: Invalid Fault code value for a SOAP
> 1.2
> fault : {http://schemas.xmlsoap.org/soap/envelope/}Server<
> http://schemas.xmlsoap.org/soap/envelope/%7DServer>
>     at
>
> org.apache.synapse.mediators.transform.FaultMediator.handleException(FaultMediator.java:519)
>    at
>
> org.apache.synapse.mediators.transform.FaultMediator.setFaultCodeValue(FaultMediator.java:446)
>    at
>
> org.apache.synapse.config.xml.FaultMediatorFactory.createMediator(FaultMediatorFactory.java:120)
>    at
>
> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:180)
>    at
>
> org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:39)
>    at
>
> org.apache.synapse.config.xml.SequenceMediatorFactory.createMediator(SequenceMediatorFactory.java:79)
>    at
>
> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:180)
>    at
>
> org.apache.synapse.config.xml.SynapseXMLConfigurationFactory.defineSequence(SynapseXMLConfigurationFactory.java:152)
>    at
>
> org.apache.synapse.config.xml.SynapseXMLConfigurationFactory.getConfiguration(SynapseXMLConfigurationFactory.java:80)
>    at
>
> org.apache.synapse.config.xml.ConfigurationFactoryAndSerializerFinder.getConfiguration(ConfigurationFactoryAndSerializerFinder.java:160)
>    at
>
> org.apache.synapse.config.xml.XMLConfigurationBuilder.getConfiguration(XMLConfigurationBuilder.java:46)
>    at
>
> org.apache.synapse.config.SynapseConfigurationBuilder.getConfiguration(SynapseConfigurationBuilder.java:87)
>    at
>
> org.apache.synapse.Axis2SynapseController.createSynapseConfiguration(Axis2SynapseController.java:381)
>    at org.apache.synapse.ServerManager.start(ServerManager.java:179)
>    at org.apache.synapse.SynapseServer.main(SynapseServer.java:65)
> 2010-05-31 00:21:28,630 [-] [main] ERROR SynapseServer Error starting
> Apache
> Synapse, trying a clean shutdown...
> org.apache.synapse.SynapseException: Could not initialize Synapse : Invalid
> Fault code value for a SOAP 1.2 fault : {
> http://schemas.xmlsoap.org/soap/envelope/}Server<
> http://schemas.xmlsoap.org/soap/envelope/%7DServer>
>     at
>
> org.apache.synapse.config.SynapseConfigurationBuilder.handleException(SynapseConfigurationBuilder.java:151)
>    at
>
> org.apache.synapse.config.SynapseConfigurationBuilder.getConfiguration(SynapseConfigurationBuilder.java:90)
>    at
>
> org.apache.synapse.Axis2SynapseController.createSynapseConfiguration(Axis2SynapseController.java:381)
>    at org.apache.synapse.ServerManager.start(ServerManager.java:179)
>    at org.apache.synapse.SynapseServer.main(SynapseServer.java:65)
> Caused by: org.apache.synapse.SynapseException: Invalid Fault code value
> for
> a SOAP 1.2 fault :
> {http://schemas.xmlsoap.org/soap/envelope/}Server<
> http://schemas.xmlsoap.org/soap/envelope/%7DServer>
>     at
>
> org.apache.synapse.mediators.transform.FaultMediator.handleException(FaultMediator.java:519)
>    at
>
> org.apache.synapse.mediators.transform.FaultMediator.setFaultCodeValue(FaultMediator.java:446)
>    at
>
> org.apache.synapse.config.xml.FaultMediatorFactory.createMediator(FaultMediatorFactory.java:120)
>    at
>
> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:180)
>    at
>
> org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:39)
>    at
>
> org.apache.synapse.config.xml.SequenceMediatorFactory.createMediator(SequenceMediatorFactory.java:79)
>    at
>
> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:180)
>    at
>
> org.apache.synapse.config.xml.SynapseXMLConfigurationFactory.defineSequence(SynapseXMLConfigurationFactory.java:152)
>    at
>
> org.apache.synapse.config.xml.SynapseXMLConfigurationFactory.getConfiguration(SynapseXMLConfigurationFactory.java:80)
>    at
>
> org.apache.synapse.config.xml.ConfigurationFactoryAndSerializerFinder.getConfiguration(ConfigurationFactoryAndSerializerFinder.java:160)
>    at
>
> org.apache.synapse.config.xml.XMLConfigurationBuilder.getConfiguration(XMLConfigurationBuilder.java:46)
>    at
>
> org.apache.synapse.config.SynapseConfigurationBuilder.getConfiguration(SynapseConfigurationBuilder.java:87)
>    ... 3 more
> 2010-05-31 00:21:28,632 [-] [main]  INFO JmxAdapter JMXConnectorServer
> stopping on service:jmx:rmi:///jndi/rmi://subash-laptop:1099/synapse
> 2010-05-31 00:21:28,633 [-] [main]  INFO RMIRegistryController Removing the
> RMI registry bound to port : 1099
>
> Thank you
> /subash
>



-- 
Kasun Indrasiri
Senior Software Engineer,
WSO2 Inc. - "Lean . Enterprise . Middleware" - http://www.wso2.com/
Blog : http://kasunpanorama.blogspot.com/