History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: APF-999
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Matt Raible
Reporter: Khaliq Gaffar
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
AppFuse

Error while calling UserService Webservice

Created: 07/Jan/08 09:51 PM   Updated: 27/Jan/08 12:11 PM
Component/s: Web Services
Affects Version/s: 2.0.1
Fix Version/s: None

File Attachments: 1. Text File patch.diff (4 kb)

Environment: Windows Vista.


 Description  « Hide
I was trying to get list of user's using web service .But I am getting error while accessing the web service
 
Exception in thread "main" org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: No write method for property {http://model.sample.org}accountNonExpired in class org.sample.model.User
org.codehaus.xfire.fault.XFireFault: No write method for property {http://model.sample.org}accountNonExpired in class org.sample.model.User
 at org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(Soap11FaultSerializer.java:31)
 at org.codehaus.xfire.fault.SoapFaultSerializer.readMessage(SoapFaultSerializer.java:28)
 at org.codehaus.xfire.soap.handler.ReadHeadersHandler.checkForFault(ReadHeadersHandler.java:111)
 at org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:67)
 at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
 at org.codehaus.xfire.client.Client.onReceive(Client.java:406)
 at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139)
 at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
 at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
 at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
 at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
 at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
 at org.codehaus.xfire.client.Client.invoke(Client.java:336)
 at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
 at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
 at $Proxy16.getUsers(Unknown Source)
 at org.sample.service.TestEchoService.userService(TestEchoService.java:41)
 at org.sample.service.TestEchoService.main(TestEchoService.java:16)
 
I am getting the same issue with all acegi related method such as getAuthorities ,isAcccountNonExpired etc . I gave temp solution by adding setter methods for these methods. I have also attached patch as solution to this problem


 All   Comments   Change History   FishEye      Sort Order:
Matt Raible - 26/Jan/08 10:52 AM
I believe a better solution is to mark these methods as transient, or to use some sort of annotation to indicate they shouldn't be included. If you can provide a test that shows this error, I'll be happy to fix it for 2.0.2.

Khaliq Gaffar - 27/Jan/08 10:55 AM
Do you want me to use @transient annotation ? or Do you want to me use transient keyword with methods .If it was with respect annotation , i have already tried to do so , but still was getting the same error .

Matt Raible - 27/Jan/08 12:11 PM
I would try both - and if neither works then please attach a test case to this issue so I can reproduce your problem.