[Carbon-jira] [jira] Assigned: (CARBON-5926) ESB - NullPointerException thrown when invoking a sequence with an endpoint which is not active

Hiranya Jayathilaka (JIRA) jira at wso2.org
Tue Jan 19 20:28:47 PST 2010


     [ https://wso2.org/jira/browse/CARBON-5926?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hiranya Jayathilaka reassigned CARBON-5926:
-------------------------------------------

    Assignee: Hiranya Jayathilaka  (was: Miyuru Wannninayaka)

> ESB - NullPointerException thrown when invoking a sequence with an endpoint which is not active
> -----------------------------------------------------------------------------------------------
>
>                 Key: CARBON-5926
>                 URL: https://wso2.org/jira/browse/CARBON-5926
>             Project: WSO2 Carbon
>          Issue Type: Bug
>          Components: Endpoints
>    Affects Versions: 2.0.3
>         Environment: Ubuntu9.10, IBMJDK1.6.0, ESB2.1.3
>            Reporter: Evanthika Amarasiri
>            Assignee: Hiranya Jayathilaka
>            Priority: Highest
>
> Steps to reproduce
> 1. Set up two ESBs in a cluster pointing to a Greg. All three instances are pointing to an Oracle DB
> 2. Created a sequence in the Read/Write node and invoked using a client. 
> Note that the endpoint is not active at the time of the invocation
> 3. The following NPE is thrown on the console
> [2010-01-19 16:43:07,883] DEBUG - SequenceMediator End : Sequence <main>
> [2010-01-19 16:43:07,886] DEBUG - SynapseCallbackReceiver Callback removed for request message id : urn:uuid:7E27708D0D191F77E012638995878810430121524370918. Pending callbacks count : 0
> [2010-01-19 16:43:07,886] DEBUG - StatisticsReporter Setting statistics stack on the message context.
> [2010-01-19 16:43:07,886] DEBUG - StatisticsRecordFactory Created a StatisticsRecord with [Message id : urn:uuid:A6E3C6AD25511CD9B41263899587796 ][Remote  IP : 127.0.0.1 ][Remote host : 127.0.0.1 ]
> [2010-01-19 16:43:07,886] DEBUG - StatisticsReporter Reporting a fault : [Message id : urn:uuid:A6E3C6AD25511CD9B41263899587796 ][Remote  IP : 127.0.0.1 ][Remote host : 127.0.0.1 ]
> [2010-01-19 16:43:07,886] DEBUG - SynapseCallbackReceiver [Failed Request Message ID : urn:uuid:7E27708D0D191F77E012638995878810430121524370918] [New to be Retried Request Message ID : urn:uuid:A6E3C6AD25511CD9B41263899587796]
> [2010-01-19 16:43:07,886]  WARN - FaultHandler ERROR_CODE : 101503
> [2010-01-19 16:43:07,886]  WARN - FaultHandler ERROR_MESSAGE : Connection refused or failed for : localhost/127.0.0.1:9000
> [2010-01-19 16:43:07,886]  WARN - FaultHandler ERROR_DETAIL : Connection refused or failed for : localhost/127.0.0.1:9000
> [2010-01-19 16:43:07,886]  WARN - FaultHandler ERROR_EXCEPTION : null
> [2010-01-19 16:43:07,887]  WARN - FaultHandler FaultHandler : Endpoint [test]
> [2010-01-19 16:43:07,887] DEBUG - AddressEndpoint Encountered a non-timeout error sending to endpoint : test error code : 101503
> [2010-01-19 16:43:07,887] DEBUG - AddressEndpoint Endpoint : test encountered a fatal error : 101503
> [2010-01-19 16:43:07,887] ERROR - NativeWorkerPool Uncaught exception
> java.lang.NullPointerException
> 	at org.apache.synapse.endpoints.AddressEndpoint.onFault(AddressEndpoint.java:38)
> 	at org.apache.synapse.FaultHandler.handleFault(FaultHandler.java:102)
> 	at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:197)
> 	at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:135)
> 	at org.apache.synapse.transport.nhttp.ClientHandler$1.run(ClientHandler.java:430)
> 	at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:58)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:735)
> The configuration used is as below
> <?xml version="1.0" encoding="UTF-8"?>
> <syn:definitions xmlns:syn="http://ws.apache.org/ns/synapse">
>     <syn:registry provider="org.wso2.carbon.mediation.registry.WSO2Registry">
>         <syn:parameter name="cachableDuration">15000</syn:parameter>
>     </syn:registry>
>     <syn:sequence name="fault">
>         <syn:log/>
>     </syn:sequence>
>     <syn:sequence name="main">
>         <syn:in>
>             <syn:throttle id="A">
>                 <syn:policy>
>                     <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:throttle="http://www.wso2.org/products/wso2commons/throttle">
>                         <throttle:MediatorThrottleAssertion>
>                             <wsp:Policy>
>                                 <throttle:ID throttle:type="IP">other</throttle:ID>
>                                 <wsp:Policy>
>                                     <throttle:Control>
>                                         <wsp:Policy>
>                                             <throttle:MaximumCount>4</throttle:MaximumCount>
>                                             <throttle:UnitTime>800000</throttle:UnitTime>
>                                             <throttle:ProhibitTimePeriod wsp:Optional="true">1000
>                                             </throttle:ProhibitTimePeriod>
>                                         </wsp:Policy>
>                                     </throttle:Control>
>                                 </wsp:Policy>
>                             </wsp:Policy>
>                         </throttle:MediatorThrottleAssertion>
>                     </wsp:Policy>
>                 </syn:policy>
>                 <syn:onReject>
>                     <syn:log level="custom">
>                         <syn:property name="text" value="**Access Denied**"/>
>                     </syn:log>
>                     <syn:makefault>
>                         <syn:code xmlns:tns="http://www.w3.org/2003/05/soap-envelope" value="tns:Receiver"/>
>                         <syn:reason value="**Access Denied**"/>
>                     </syn:makefault>
>                     <syn:property name="RESPONSE" value="true"/>
>                     <syn:header name="To" action="remove"/>
>                     <syn:send/>
>                     <syn:drop/>
>                 </syn:onReject>
>                 <syn:onAccept>
>                     <syn:log level="custom">
>                         <syn:property name="text" value="**Access Accept**"/>
>                     </syn:log>
>                     <syn:send>
>                         <syn:endpoint>
>                             <syn:address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
>                         </syn:endpoint>
>                     </syn:send>
>                 </syn:onAccept>
>             </syn:throttle>
>         </syn:in>
>         <syn:out>
>             <syn:throttle id="A"/>
>             <syn:send/>
>         </syn:out>
>     </syn:sequence>
>    </syn:definitions>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the Carbon-jira mailing list