Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » How to use Attachment?
How to use Attachment? [message #578453] Mon, 02 February 2009 05:32
Velganesh Subramanian is currently offline Velganesh SubramanianFriend
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?
Previous Topic:Porting "legacy" RCP app
Next Topic:Software caused connection abort: socket write error
Goto Forum:
  


Current Time: Thu Apr 25 11:54:39 GMT 2024

Powered by FUDForum. Page generated in 0.02533 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top