Custom Protocol Plugin error with DITA-OT Transformations
Posted: Tue Apr 24, 2018 9:41 am
Hi,
I have a Custom Protocol handler plugin. The plugin requires access to several Oxygen SDK classes like UtilAccess, StandalonePluginWorkspace to function. This is primarily required for reading server credentials from options storage.
When I run a transformation on a map opened over my custom protocol, my protocol handler class is called in action to download linked documents. However, it ends up throwing NPE as an instance of StandalonePluginWorkspace is not available. I investigated and it seems that my class is loaded into a new DITA-OT process.
My question is, if my Custom Protocol handler class is called from a new process, how can I obtain the options storage and establish a connection to a server.
Thanks,
Ankit
I have a Custom Protocol handler plugin. The plugin requires access to several Oxygen SDK classes like UtilAccess, StandalonePluginWorkspace to function. This is primarily required for reading server credentials from options storage.
When I run a transformation on a map opened over my custom protocol, my protocol handler class is called in action to download linked documents. However, it ends up throwing NPE as an instance of StandalonePluginWorkspace is not available. I investigated and it seems that my class is loaded into a new DITA-OT process.
My question is, if my Custom Protocol handler class is called from a new process, how can I obtain the options storage and establish a connection to a server.
Thanks,
Ankit