Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Hi
I am trying to get the folder object by passing the folder location in String form but it is throws me a error message, can any one please help me to how I can get folder object
String path = "/DEFAULT/new Folder";
Folder folder=FolderHelper.service.getFolder(path);
(wt.inf.container.containerResource/26) wt.inf.container.ClassicContainerNotFoundException: Context not found: "Windchill PDM"
2014-06-17 18:17:16,985 INFO [WfUserWorkQueue.PoolQueueThread] wt.system.out wcadmin - at wt.inf.container.WTContainerHelper.getClassicRef(WTContainerHelper.java:388)
2014-06-17 18:17:17,110 INFO [WfUserWorkQueue.PoolQueueThread] wt.system.out wcadmin - at wt.folder.StandardFolderService.getFolder(StandardFolderService.java:701)
2014-06-17 18:17:17,110 INFO [WfUserWorkQueue.PoolQueueThread] wt.system.out wcadmin - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-06-17 18:17:17,110 INFO [WfUserWorkQueue.PoolQueueThread] wt.system.out wcadmin - at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2014-06-17 18:17:17,110 INFO [WfUserWorkQueue.PoolQueueThread] wt.system.out wcadmin - at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2014-06-17 18:17:17,110 INFO [WfUserWorkQueue.PoolQueueThread] wt.system.out wcadmin - at java.lang.reflect.Method.invoke(Method.java:597)
2014-06-17 18:17:17,110 INFO [WfUserWorkQueue.PoolQueueThread] wt.system.out wcadmin - at wt.services.ServiceFactory$ServerInvocationHandler.invoke(ServiceFactory.java:399)
2014-06-17 18:17:17,110 INFO [WfUserWorkQueue.PoolQueueThread] wt.system.out wcadmin - at $Proxy35.getFolder(Unknown Source)
2014-06-17 18:17:17,110 INFO [WfUserWorkQueue.PoolQueueThread] wt.system.out wcadmin - at ext.company.folder.FolderHelperCust.getFolder(FolderHelperCust.java:14)
2014-06-17 18:17:17,110 INFO [WfUserWorkQueue.PoolQueueThread] wt.system.out wcadmin - at wt.workflow.expr.WfExpression120621.execute_ROBOT_EXPRESSION_(WfExpression120621.java:25)
2014-06-17 18:17:17,110 INFO [WfUserWorkQueue.PoolQueueThread] wt.system.out wcadmin - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-06-17 18:17:17,110 INFO [WfUserWorkQueue.PoolQueueThread] wt.system.out wcadmin - at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2014-06-17 18:17:17,110 INFO [WfUserWorkQueue.PoolQueueThread] wt.system.out wcadmin - at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2014-06-17 18:17:17,110 INFO [WfUserWorkQueue.PoolQueueThread] wt.system.out wcadmin - at java.lang.reflect.Method.invoke(Method.java:597)
2014-06-17 18:17:17,110 INFO [WfUserWorkQueue.PoolQueueThread] wt.system.out wcadmin - at wt.workflow.definer.WfExpression.executeTransition(WfExpression.java:1172)
2014-06-17 18:17:17,110 INFO [WfUserWorkQueue.PoolQueueThread] wt.system.out wcadmin - at wt.workflow.definer.WfExpression.execute(WfExpression.java:418)
2014-06-17 18:17:17,110 INFO [WfUserWorkQueue.PoolQueueThread] wt.system.out wcadmin - at wt.workflow.robots.WfExpressionRobot.run(WfExpressionRobot.java:147)
2014-06-17 18:17:17,110 INFO [WfUserWorkQueue.PoolQueueThread] wt.system.out wcadmin - at wt.workflow.engine.StandardWfEngineService.runRobot(StandardWfEngineService.java:917)
2014-06-17 18:17:17,110 INFO [WfUserWorkQueue.PoolQueueThread] wt.system.out wcadmin - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-06-17 18:17:17,110 INFO [WfUserWorkQueue.PoolQueueThread] wt.system.out wcadmin - at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2014-06-17 18:17:17,110 INFO [WfUserWorkQueue.PoolQueueThread] wt.system.out wcadmin - at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2014-06-17 18:17:17,110 INFO [WfUserWorkQueue.PoolQueueThread] wt.system.out wcadmin - at java.lang.reflect.Method.invoke(Method.java:597)
2014-06-17 18:17:17,110 INFO [WfUserWorkQueue.PoolQueueThread] wt.system.out wcadmin - at wt.queue.QueueEntry.execute(QueueEntry.java:231)
2014-06-17 18:17:17,110 INFO [WfUserWorkQueue.PoolQueueThread] wt.system.out wcadmin - at wt.queue.QueueRunnable.run(QueueRunnable.java:186)
2014-06-17 18:17:17,110 INFO [WfUserWorkQueue.PoolQueueThread] wt.system.out wcadmin - at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
2014-06-17 18:17:17,110 INFO [WfUserWorkQueue.PoolQueueThread] wt.system.out wcadmin - at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
2014-06-17 18:17:17,110 INFO [WfUserWorkQueue.PoolQueueThread] wt.system.out wcadmin - at java.lang.Thread.run(Thread.java:662)