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
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
org.eclipse.riena.communication.publisher.hessian.RienaHessi anDispatcherServlet.service(RienaHessianDispatcherServlet.ja va:155)
org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.service(
org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(
org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(

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
Publish.service(IAttachmentService.class.getName()).usingPat h( "/AttachmentService").withProtocol("hessian")
//$NON-NLS-1$ //$NON-NLS-2$

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: Sat Sep 23 06:02:12 GMT 2023

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

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

Back to the top