cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Folder object from passing the folder location

ptc-3953915
Newbie

How to get Folder object from passing the folder location

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)


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
Announcements