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
3 replies
Subscribers
5 subscribers
Views
1982 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
I am working with a custom plugin code. The plugin code contains custom expressi
chetany
A Score Level 1
over 9 years ago
I am working with a custom plugin code. The plugin code contains custom expression functions. These functions get some data from DB(using JDBC) and return the results. I am getting an error, "Unable to find a required instance of Context".
Please find attached the relevant logs. The method signature of the relevant Java method is:
@Function
public TypedValue CRD_fetchRefDataValueFromDBCacheById(Context initCtx,
ContentService contentSvc, TypeService typeSvc,
@Parameter(required = true) Integer refDataId)
As you can see, the method takes object of type "Context" as a parameter. The fully qualified name of this class is javax.naming.Context. Any idea what might be the issue? Is the Context initialized by Appian automatically or does it have to be initialized?
log.txt
OriginalPostID-184426
OriginalPostID-184426
Discussion posts and replies are publicly visible
Parents
0
chetany
A Score Level 1
over 9 years ago
Hi Sayed, Thank you. I was able to resolve the issue. The expression functions are now working correctly.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
chetany
A Score Level 1
over 9 years ago
Hi Sayed, Thank you. I was able to resolve the issue. The expression functions are now working correctly.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data