axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tania Marinova <taniamm2...@yahoo.com>
Subject org.apache.axis2.AxisFault: java.util.UUID
Date Thu, 25 Apr 2013 08:15:08 GMT
  favorite  I have made a simple web service which has to update acrive field for the user
with the specified uuid. 

ublic StringUpdateDB(UUID choUUIID )throwsClassNotFoundException{StringstrDelReturn ="UPDATE_FAIL";Class.forName("org.postgresql.Driver");try{conn
=DriverManager.getConnection("jdbc:postgresql://localhost:5432/plovdivbizloca","postgres","tan");}catch(SQLExceptionex){ex.printStackTrace();}PreparedStatementpstmt
=null;StringselectQuery ="update users set active=active+1 WHERE uuid="+choUUIID ;try{pstmt
=conn.prepareStatement(selectQuery);introwss =pstmt.executeUpdate();if(rowss !=0)strDelReturn
="UPDATE_OK";}catch(Exceptionex){}returnstrDelReturn;}
I get the parameter choUUIID from postgresql database (the field is uuid type)
BUT WHen I test ihttp://localhost:9091/Hashing_Passwords/services/Hashing_Password/UpdateDB?choUUIID=d99620ae-20a3-46f7-adb1-1afd0e8f3b27

Here is the exception I get:
org.apache.axis2.AxisFault:java.util.UUID at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)at
org.apache.axis2.engine.DefaultObjectSupplier.getObject(DefaultObjectSupplier.java:47)at org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:412)at
org.apache.axis2.databinding.utils.BeanUtil.processObject(BeanUtil.java:818)at org.apache.axis2.databinding.utils.BeanUtil.ProcessElement(BeanUtil.java:737)at
org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:646)at org.apache.axis2.rpc.receivers.RPCUtil.processRequest(RPCUtil.java:153)at
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:206)at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)at
 org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:144)at
org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:139)at org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:837)at
org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:273)at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)at
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)at java.util.concurrent.ThreadPoolExecutor.runWorker(UnknownSource)at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(UnknownSource)at java.lang.Thread.run(UnknownSource)Causedby:java.lang.InstantiationException:java.util.UUID
at java.lang.Class.newInstance0(UnknownSource)at java.lang.Class.newInstance(UnknownSource)at
org.apache.axis2.engine.DefaultObjectSupplier.getObject(DefaultObjectSupplier.java:42)...32more

Mime
View raw message