cancel
Showing results for 
Search instead for 
Did you mean: 

Independent url addressable webscripts in Share

kbonnet
Champ in-the-making
Champ in-the-making
Hi all,

Is there any way to deploy webscripts in Share which are usable without any page or component context from share? I can deploy webscripts, but when i call their url i always get

java.lang.NullPointerException
   org.alfresco.web.scripts.ProcessorModelHelper.populateModel(ProcessorModelHelper.java:124)

Anything i can do to prevent this and deploy my own independent webscripts? I know i can let Share proxy through to Alfresco webscripts, but then i'm not able to use the remote.connect() method.

Thanks a lot for any advise!

Koen Bonnet
2 REPLIES 2

mikeh
Star Contributor
Star Contributor
You should be able to call Share's /service servlet directly - how are you trying to address the webscipts?

If you're getting:
freemarker.core.InvalidReferenceException: Expression args.htmlid is undefined on line …. etc.
then note that most (if not all) of Share's component webscripts require the htmlid argument - try adding "?htmlid=abc" to the webscript request URL.

Thanks,
Mike

kbonnet
Champ in-the-making
Champ in-the-making
Hi Mike, thanks.

I think i was confused by this nullpointer exception. That one is appearantly thrown whenever anything goes wrong with the webscript. In my logging was an error that the "search" root object wasnt found. I understand that one. I was able to deploy and call a Hello World webscript now.

I think it works, but maybe the error page which is used in the Explorer client might be useful in share, when something goes wrong in the webscript.

Koen