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
8 replies
Subscribers
9 subscribers
Views
2761 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
I'm using the "Rename Folder" node and I'm getting this error.
filipep941
over 9 years ago
I'm using the "Rename Folder" node and I'm getting this error.
There is a problem with task “----” in the process “-----”. There was an error renaming the folder.
Problem: An error occurred in executing an Activity Class.
I'm using an expression that removes any forbidden characters from the folder name
It is hard to get the node wrong, since it only has two parameters. However, the error message I'm getting doesn't say much.
Anyone seen this before?
OriginalPostID-149227
OriginalPostID-149227
Discussion posts and replies are publicly visible
0
akshayan
Certified Lead Developer
over 9 years ago
Did you check the log file?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 9 years ago
@fillipep Assuming that the two input parameters provided to the smart service are valid, is the smart service run with basic user's context? If so, it would be worth ensuring that the user has access to modify the folder's properties.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
filipep941
over 9 years ago
@akshayan - this is what I get in the file log
2015-05-18 14:21:12,964 [Appian Work Item - 4425 - ProcessExec00 : UnattendedJavaActivityRequest] ERROR com.appiancorp.process.runtime.activities.RenameFolderActivity - java.lang.NullPointerException: Null Arguments are Invalid
java.lang.NullPointerException: Null Arguments are Invalid
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at com.appiancorp.kougar.mapper.Mapper.prepareThrowable(Mapper.java:135)
at com.appiancorp.kougar.mapper.Mapper.request(Mapper.java:84)
at com.appiancorp.kougar.services.KougarServiceInvocationHandler$KInvocationHandler.invoke(KougarServiceInvocationHandler.java:180)
at com.appiancorp.kougar.services.KougarServiceInvocationHandler$KougarMethodInvocation.proceed(KougarServiceInvocationHandler.java:272)
at com.appiancorp.security.authz.AuthorizationMethodInterceptor.invoke(AuthorizationMethodInterceptor.java:54)
at com.appiancorp.kougar.services.KougarServiceInvocationHandler.invoke(KougarServiceInvocationHandler.java:309)
at com.sun.proxy.$Proxy43.getContent(Unknown Source)
at com.appiancorp.process.runtime.activities.RenameFolderActivity.execute(RenameFolderActivity.java:59)
at com.appiancorp.suiteapi.process.framework.AbstractActivity.perform(AbstractActivity.java:104)
at com.appiancorp.process.runtime.framework.LegacyActivityExecutor$2.call(LegacyActivityExecutor.java:88)
at com.appiancorp.process.runtime.framework.LegacyActivityExecutor$2.call(LegacyActivityExecutor.java:85)
at com.appiancorp.common.ContextClassLoaderSwitcher.runInContext(ContextClassLoaderSwitcher.java:25)
at com.appiancorp.process.runtime.framework.LegacyActivityExecutor.execute(LegacyActivityExecutor.java:85)
at com.appiancorp.process.engine.UnattendedJavaActivityRequest.execute(UnattendedJavaActivityRequest.java:83)
at com.appiancorp.process.engine.UnattendedJavaActivityRequest.execute0(UnattendedJavaActivityRequest.java:55)
at com.appiancorp.process.engine.ContinuationRequest.execute(ContinuationRequest.java:80)
at com.appiancorp.mdb.UnattendedRequestHandlerBean.onMessage(UnattendedRequestHandlerBean.java:26)
at sun.reflect.GeneratedMethodAccessor700.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeI
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
filipep941
over 9 years ago
@sikhivahans in terms of security, the process creates the folder in the beginning. If the user doesn't cancel, than we rename the folder. In other words, the creation and renaming are happening in the same process. Makes sense?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 9 years ago
@filipep By seeing the logs I suspect that a null value is being passed to Folder parameter of Rename folder smart service.
May I know how the value of Folder parameter is being configured?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 9 years ago
By the way, please ignore the security, AFAIK the logs indicate that error is because of a null parameter passed to smart service.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
filipep941
over 9 years ago
@sikhivahans - thanks. U stand correct. I was passing a null value.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 9 years ago
No problem :)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel