Hi, I ran a standalone program in Java and it ran perfectly fine and

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

  • ...ultActivityExecutor$1.call(DefaultActivityExecutor.java:104)
    11:24:38,753 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at com.appiancorp.process.runtime.framework.DefaultActivityExecutor$1.call(DefaultActivityExecutor.java:101)
    11:24:38,753 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at com.appiancorp.common.ContextClassLoaderSwitcher.runInContext(ContextClassLoaderSwitcher.java:25)
    11:24:38,753 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at com.appiancorp.process.runtime.framework.DefaultActivityExecutor.execute(DefaultActivityExecutor.java:101)
    11:24:38,753 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at com.appiancorp.process.engine.UnattendedJavaActivityRequest.execute(UnattendedJavaActivityRequest.java:83)
    11:24:38,753 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : U...
  • ...nattendedJavaActivityRequest)           at com.appiancorp.process.engine.UnattendedJavaActivityRequest.execute0(UnattendedJavaActivityRequest.java:55)
    11:24:38,753 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at com.appiancorp.process.engine.ContinuationRequest.executeOuter(ContinuationRequest.java:71)
    11:24:38,753 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at com.appiancorp.process.engine.ContinuationRequest.execute(ContinuationRequest.java:85)
    11:24:38,753 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at com.appiancorp.mdb.UnattendedRequestHandlerBean.onMessage(UnattendedRequestHandlerBean.java:29)
    11:24:38,753 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at sun.reflect.GeneratedMethodAccessor1505.invoke(Unknown Source)
    11:24:38,753 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : ...
  • ... UnattendedJavaActivityRequest)           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    11:24:38,753 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at java.lang.reflect.Method.invoke(Method.java:497)
    11:24:38,753 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
    11:24:38,753 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    11:24:38,753 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
    11:24:38,753 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityReque...
  • ... st)           at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
    11:24:38,753 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    11:24:38,753 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
    11:24:38,754 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
    11:24:38,754 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    11:24:38,754 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : Unat...
  • ... tendedJavaActivityRequest)           at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)
    11:24:38,754 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    11:24:38,754 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at org.jboss.as.ejb3.tx.EjbBMTInterceptor.handleInvocation(EjbBMTInterceptor.java:104)
    11:24:38,754 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at org.jboss.as.ejb3.tx.BMTInterceptor.processInvocation(BMTInterceptor.java:60)
    11:24:38,754 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    11:24:38,754 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : Unatten...
  • ... dedJavaActivityRequest)           at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
    11:24:38,754 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    11:24:38,754 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
    11:24:38,754 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
    11:24:38,754 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    11:24:38,754 INFO [stdout] (Appian Work Item - 12491 - ProcessExe...
  • ... c02 : UnattendedJavaActivityRequest)           at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)
    11:24:38,754 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    11:24:38,754 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
    11:24:38,754 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    11:24:38,754 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeIntercep...
  • ... tor.java:43)
    11:24:38,754 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    11:24:38,754 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)
    11:24:38,754 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    11:24:38,754 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
    11:24:38,754 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at org.jboss.invocation.InterceptorContext.pr...
  • ... oceed(InterceptorContext.java:288)
    11:24:38,754 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
    11:24:38,754 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    11:24:38,754 INFO [stdout] (Appian Work Item - 12491 - ProcessExec02 : UnattendedJavaActivityRequest)           at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:55)
    11:24:38,754 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.as.ejb3....
  • ... component.messagedriven.MessageDrivenComponentDescription$5$1.processInvocation(MessageDrivenComponentDescription.java:203)
    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.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
    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 : UnattendedJavaActivityR...