Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
7 replies
Subscribers
5 subscribers
Views
3018 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Bilk File Upload
Shivam Gupta
over 8 years ago
i am using Content Service for bulk file upload
i have to use upload method to fetch the 'ContentOutputStream' for file uploading to Knowledge Center
and the upload method is called as
ContentOutputStream outStream = cs.upload(doc, arg1);
//here cs is instance of ContentService
which is created as
ContentService cs = ServiceLocator.getContentService(sc);
//here sc is ServiceContext which is created as
ServiceContext sc = ServiceLocator.getAdministratorServiceContext();
//* these lines of codes are provided #
forum.appian.com/.../
But i am getting an error as "Could not initialize class com.appiancorp.suiteapi.common.ServiceLocator"
can some1 help
//log file attached
OriginalPostID-238850
log.txt
Discussion posts and replies are publicly visible
Parents
0
Stefan Helzle
A Score Level 3
over 8 years ago
You are aware of
forum.appian.com/.../Custom_Smart_Service_Plug-ins.html
It says "Do not call ServiceLocator.get*."
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Stefan Helzle
A Score Level 3
over 8 years ago
You are aware of
forum.appian.com/.../Custom_Smart_Service_Plug-ins.html
It says "Do not call ServiceLocator.get*."
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data