You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by Dasarath Weeratunge <dw...@purdue.edu> on 2006/10/30 18:20:55 UTC

Re: Fwd: Mysql and Kandula1

Quoting Dasarath Weeratunge <dw...@purdue.edu>:

> Could you please let us know exactly at what point you get your error? Are
> you 
> able to create a tx? register?, call methods of participants? Always use tcp
> 
> monitor to see what messages are being exchanged. etc. If mysql does not 
> support 2PC, then it cannot be used in a distributed tx.
> 
> The more (better, specific) info you can provide, the more help we can give 
> you. I had a quick look at your code but I couldn't figure out which part of
> it 
> was responsible for the output you had posted.
> 
> org.apache.axis.types.URI$MalformedURIException is usually thrown when you
> try 
> to instantiate the URI class with a null/bad URI. Are the URI's in your WSDL
> 
> good? e.g. the soapAction attribute
> 
> --dasarath
> 
> ----- Forwarded message from "adriana438@inwind.it" <ad...@inwind.it>
> -----
>     Date: Fri, 27 Oct 2006 15:13:09 +0200
>     From: "adriana438@inwind.it" <ad...@inwind.it>
> Reply-To: "adriana438@inwind.it" <ad...@inwind.it>
>  Subject: Mysql and Kandula1
>       To: dweeratu <dw...@purdue.edu>
> 
> Hi, finally I have configurated Kandula1 with Axis 1.3 and I have succesfully
> 
> run the banking example.
> Now my problem is this:
> 
> I have a web services that simply insert data in a table of a MYSQL db.
> I want to use Kandula1 when I call the operation setParameters (the only one
> 
> operation) on the web service.
> I have read that mysql doesn't support 2PC, so I have made a class like the 
> BankOneDBMS in which the resource to associate to every transaction is the 
> connection to the db.
> I have also done a web service client and a class Tester like in your
> example.
> But I have this error in Tomcat  when I run the Tester class:
> 
> Exception in thread "main" AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>  faultSubcode:
>  faultString: java.rmi.RemoteException: ; nested exception is:
> 	org.apache.axis.types.URI$MalformedURIException: Cannot initialize URI 
> with empty parameters.
>  faultActor:
>  faultNode:
>  faultDetail:
> 	{http://xml.apache.org/axis/}hostname:gex
> 
> java.rmi.RemoteException: ; nested exception is:
> 	org.apache.axis.types.URI$MalformedURIException: Cannot initialize URI 
> with empty parameters.
> 	at org.apache.axis.message.SOAPFaultBuilder.createFault
> (SOAPFaultBuilder.java:222)
> 	at org.apache.axis.message.SOAPFaultBuilder.endElement
> (SOAPFaultBuilder.java:129)
> 	at org.apache.axis.encoding.DeserializationContext.endElement
> (DeserializationContext.java:1087)
> 	at 
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement
> (AbstractSAXParser.java:633)
> 	at 
> 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement
> (XMLNSDocumentScannerImpl.java:719)
> 	at 
> 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentC
> ontentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
> 	at 
> 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocum
> ent(XMLDocumentFragmentScannerImpl.java:368)
> 	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> (XML11Configuration.java:834)
> 	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> (XML11Configuration.java:764)
> 	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse
> (XMLParser.java:148)
> 	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse
> (AbstractSAXParser.java:1242)
> 	at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
> 	at org.apache.axis.encoding.DeserializationContext.parse
> (DeserializationContext.java:227)
> 	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
> 	at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
> 	at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke
> (MustUnderstandChecker.java:62)
> 	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
> 	at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
> 	at org.apache.axis.client.Call.invoke(Call.java:2767)
> 	at org.apache.axis.client.Call.invoke(Call.java:2443)
> 	at org.apache.axis.client.Call.invoke(Call.java:2366)
> 	at org.apache.axis.client.Call.invoke(Call.java:1812)
> 	at clientws.test.ParametersWSKandula1TestSoapBindingStub.test1
> (ParametersWSKandula1TestSoapBindingStub.java:98)
> 	at clientws.Tester.main(Tester.java:17)
> --------------------------------------------------------------
> 
> INSTEAD WHEN I TRY TO RUN ONLY THE WEB SERVICE METHOD BY THE BROWSER IN THIS
> 
> WAY :
> http://localhost:8080/axis/services/ParametersWSKandula1Service?
> method=setParameters&Range=2&TBG=2&AIL=2&DIA=2
>  I HAVE ON TOMCAT THIS ERROR:
> 
> [ParametersWSKandula1] setParameters
> STATUS_NO_TRANSACTION
> Connection to MySQL 5.0.22-community-nt successful.
> 
> ***Exception ParametersWS :
> java.lang.NullPointerException
> [BankOneTestSoapBindingImpl] tx1
> [ParametersWSKandula1] setParameters
> STATUS_NO_TRANSACTION
> ***Exception ParametersWS :
> java.lang.NullPointerException
> 
> ------------------------------------------------------------
> i WILL SEND YOU MY EXAMPLE, SO PERHAPS YOU CAN GIVE SOME SUGGESTIONS.
> THANKS IN ADVANCE.
>  
> 
> 
> ------------------------------------------------------
> Perdi 2 Taglie in 60 Giorni con Perdi Peso Cerotto!
> http://click.libero.it/perdipesocerotto3
> 
> 
> ----- End forwarded message -----
> 
> 
> 



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