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
16 replies
Subscribers
4 subscribers
Views
5403 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Hi, I ran a standalone program in Java and it ran perfectly fine and
mayankk718
over 9 years ago
Hi,
I ran a standalone program in Java and it ran perfectly fine and then I created a smart service from it it gives NullPointerException as follows :-
11:24:38,753 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest) 2016-02-18 11:24:38,752 [Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest] ERROR com.appiancorp.process.engine.UnattendedJavaActivityRequest - An error occurred while executing activity: id=536909563, classname=com.app.pull.data.PullSamples
11:24:38,753 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest) java.lang.NullPointerException
11:24:38,753 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest) at com.app.pull.data.PullSamples.run(PullSamples.java:99)
11:24:38,753 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest) at com.appiancorp.process.runtime.framework.Defa...
OriginalPostID-195711
OriginalPostID-195711
Discussion posts and replies are publicly visible
0
mayankk718
over 9 years ago
... equest) at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:185)
11:24:38,755 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest) at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)
11:24:38,755 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
11:24:38,755 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
11:24:38,755 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest) at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)
11:24:38,755 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest) at com.appiancor...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mayankk718
over 9 years ago
... p.ra.workpoller.UnattendedRequestListener$$$view2.onMessage(Unknown Source)
11:24:38,755 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest) at sun.reflect.GeneratedMethodAccessor1504.invoke(Unknown Source)
11:24:38,755 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
11:24:38,755 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest) at java.lang.reflect.Method.invoke(Method.java:497)
11:24:38,755 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest) at org.jboss.as.ejb3.inflow.MessageEndpointInvocationHandler.doInvoke(MessageEndpointInvocationHandler.java:140)
11:24:38,755 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest) at org.jboss.as.ejb3.inflow.AbstractInvocationHandler....
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mayankk718
over 9 years ago
... invoke(AbstractInvocationHandler.java:73)
11:24:38,755 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest) at com.sun.proxy.$Proxy531.onMessage(Unknown Source)
11:24:38,755 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest) at com.appiancorp.ra.workpoller.WorkItem.run(WorkItem.java:54)
11:24:38,755 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest) at org.jboss.jca.core.workmanager.WorkWrapper.run(WorkWrapper.java:218)
11:24:38,755 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest) at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33)
11:24:38,755 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest) at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:808)
11:24:38,755 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : ...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mayankk718
over 9 years ago
... UnattendedJavaActivityRequest) at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45)
11:24:38,755 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest) at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:849)
11:24:38,755 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest) at java.lang.Thread.run(Thread.java:745)
11:24:38,755 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest) at org.jboss.threads.JBossThread.run(JBossThread.java:122)
I have created the plugin using Appian plugin creator and re checked the smart service skeleton and my Java code. I haven't found any issue.
Is there any issue related to environment ? Or is this the issue with my plugin ? Please let me know.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sumeet Khare
over 9 years ago
@Mayank: Its hard to read the logs in this format, if possible can you attach the log file? Looking to the logs it seems, that you are trying to access a web service? if that is the case, can you attach your code also if possible.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mayankk718
over 9 years ago
Hi Sumeet,
Thanks a lot for stopping by :) The issue is resolved. Thanks anyways.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
<