Hi Thilina,

I found one probably error, but I don`t know how to solve the problem.


Look this.

At the beginning of the class BankOneTestSoapBindingImpl there is the
snippet code below

TransactionManagerImpl tm = TransactionManagerImpl.getInstance();

this code instanciate a class from the following package
org.apache.kandula.coordinator.at.TransactionManagerImpl

*but the class BankOneSoapBindingImpl *with the snippet code below

TransactionManager tm = Bridge.getInstance().getTM();

 instanciate the following class
org.apache.geronimo.transaction.manager.TransactionManagerImpl


*Note the classes have the same name but the package is different. Is there
any confusion?
*

Could you help me?


Attached is the stack trace.


Thanks a lot again

Samuel Meira de Oliveira



2009/2/27 Samuel Meira <[email protected]>

> On method getConnection() on BankOneSoapBindingImpl Class, the code snipet
> --  tm.getTransaction().enlistResource(conn);  throws a NPE just because the
> tm.getTransaction() returns null.
>
>
> Dasarath ask me for the status of *tm* object at this moment, and the
> answer is tm.getStatus() = 6. I hope it help u to analyze this problem!!
>
>
> Thanks a lot.
>
> Best regards,
>
> Samuel Meira de Oliveira
>
>
> 2009/2/23 Thilina Gunarathne <[email protected]>
>
> Hi Samuel,Can you explain the scenario a bit more. I'm sorry, I could not
>> figure out which part you are talking about.. Also posting the stacktrace of
>> the NPE would help a lot to figure out what's going on.
>>
>> thanks,
>> Thilina
>>
>> On Sun, Feb 22, 2009 at 2:38 PM, Samuel Meira <[email protected]> wrote:
>>
>>> Hi Thilina
>>>
>>> Can u explain why occurs a Nullpointer error just in atach the connection
>>> to the enlist resource?
>>>
>>>
>>> Thanks a lot!!
>>>
>>> Best regards
>>>
>>> Samuel Meira de Oliveira
>>>
>>>
>>>
>>> 2009/2/20 Thilina Gunarathne <[email protected]>
>>>
>>>
>>>>
>>>> ---------- Forwarded message ----------
>>>> From: Thilina Gunarathne <[email protected]>
>>>> Date: Fri, Feb 20, 2009 at 4:09 PM
>>>> Subject: Re: Urgent help needed for Axis2 with Kandula2
>>>> To: "Sarkar, Jayanta (Cognizant)" <[email protected]>
>>>>
>>>>
>>>> Hi Sarkar,
>>>> Can u explain me what you have done up to now... Do u have the
>>>> coordinator web service deployed? If so does ur parent web service creates 
>>>> a
>>>> transaction (tx.begin() ) with it before calling the clients. Do u have
>>>> kandula handlers engaged in invocation path of the parent web service and 
>>>> in
>>>> the participant web srevices?
>>>>
>>>> thanks,
>>>> Thilina
>>>>
>>>> PS: I prefer if u can use the kandula mailing list for questions. In
>>>> there you will get answered by many more people and the answers u get will
>>>> be useful to many more people too..
>>>>
>>>>  On Fri, Feb 20, 2009 at 4:05 PM, Sarkar, Jayanta (Cognizant) <
>>>> [email protected]> wrote:
>>>>
>>>>>   Hi Thilina,
>>>>>
>>>>> I am desperately looking for some urgent help on Kandula2 Atomic
>>>>> Transaction using Axis2 in tomcat server. I have created to participant 
>>>>> web
>>>>> services which are updating same database. And I have created one parent 
>>>>> web
>>>>> service which calls these two participant web services under one
>>>>> transaction. But it is not working. Could you please guide me what steps
>>>>> need to be followed to set up this?
>>>>>
>>>>>  * Thanks & regards,
>>>>> Jayanta Sarkar
>>>>> Java CoE, Cognizant Technology Solutions
>>>>> Vnet: 306271, Cell: 91-9432360150
>>>>> Email: [email protected]
>>>>> *
>>>>>
>>>>> This e-mail and any files transmitted with it are for the sole use of
>>>>> the intended recipient(s) and may contain confidential and privileged
>>>>> information.
>>>>> If you are not the intended recipient, please contact the sender by
>>>>> reply e-mail and destroy all copies of the original message.
>>>>> Any unauthorised review, use, disclosure, dissemination, forwarding,
>>>>> printing or copying of this email or any action taken in reliance on this
>>>>> e-mail is strictly
>>>>> prohibited and may be unlawful.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Thilina Gunarathne  - http://thilinag.blogspot.com
>>>>
>>>>
>>>>
>>>> --
>>>> Thilina Gunarathne  - http://thilinag.blogspot.com
>>>>
>>>
>>>
>>>
>>> --
>>> Samuel M. de Oliveira
>>> http://samveel.blogspot.com
>>> Direitos humanos são para humanos direitos !!!
>>>
>>
>>
>>
>> --
>> Thilina Gunarathne  - http://thilinag.blogspot.com
>>
>
>
>
> --
> Samuel M. de Oliveira
> http://samveel.blogspot.com
> Direitos humanos são para humanos direitos !!!
>



-- 
Samuel M. de Oliveira
http://samveel.blogspot.com
Direitos humanos são para humanos direitos !!!
[BankOneTestSoapBindingImpl] tx1
[CallbackRegistry] registerCallback: timeout= 0 callbacks.size= 0
org.apache.kandula.coordinator.at.transactioni...@1ffbcb
[BankOne] credit(0, 100.0)
java.lang.NullPointerException
        at 
bankone.BankOneSoapBindingImpl.getConnection(BankOneSoapBindingImpl.java:64)
        at bankone.BankOneSoapBindingImpl.credit(BankOneSoapBindingImpl.java:51)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
        at 
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
        at 
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
        at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at 
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
        at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
        at 
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
        at 
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
        at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
        at java.lang.Thread.run(Thread.java:595)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to