How to use Attachment? [message #578453] |
Mon, 02 February 2009 05:32 |
Velganesh Subramanian Messages: 69 Registered: July 2009 |
Member |
|
|
I am not able to successfully pass a file attachment to server. This is
what I did:
1. I derived my class from Attachment.
2. My attachment is file-based.
The method on the interface is: log(Usage usage)
I get this exception after server is invoked from client.
javax.servlet.ServletException: org.blackt.udc.Usage:null
at
org.eclipse.riena.communication.publisher.hessian.RienaHessi anDispatcherServlet.service(RienaHessianDispatcherServlet.ja va:155)
at
org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.service(ServletManager.java:180)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
I also want to know if it is acceptable to pass null for properties when
registering a service.
regAttachmentService =
context.registerService(IAttachmentService.class.getName(), new
AttachmentService(),
null);
Publish.service(IAttachmentService.class.getName()).usingPat h( "/AttachmentService").withProtocol("hessian")
//$NON-NLS-1$ //$NON-NLS-2$
.andStart(context);
What is the impact if I pass one protocol through properties and another
value using "withProtocol" method? Is the latter overridden?
|
|
|
Powered by
FUDForum. Page generated in 0.05146 seconds