Quantcast
Channel: PTC Community : All Content - Windchill
Viewing all 6049 articles
Browse latest View live

remote method server exception querying WfProcess

$
0
0

Hello Gurus.

I am trying to retrieve the global Process variables of a Change Notice from a Change Activity.

Running the code below I get the  following error:

 

 

 

CA is 07138

CN is 06489

Reference is  wt.change2.WTChangeOrder2>671258721

Object is  wt.change2.WTChangeOrder2:671258722

qrWfProc  wt.fc.QueryResult@5039f4d3

WARNING: The ManagerService is not initialized!  This can be caused by:

1) Attempting to invoke a server only method from a remote client

2) Attempting to invoke a method on a service from the constructor or static initializer of another service

Exception in thread "main" java.lang.ExceptionInInitializerError

at wt.workflow.engine.WfProcess.getName(WfProcess.java:1425)

at wt.workflow.engine.WfExecutionObject.toString(WfExecutionObject.java:710)

at wt.workflow.engine.WfProcess.toString(WfProcess.java:296)

at java.lang.String.valueOf(Unknown Source)

at java.lang.StringBuilder.append(Unknown Source)

at ext.ChangeNotice2.main(ChangeNotice2.java:47)

Caused by: java.lang.NullPointerException

at wt.access.AccessControlServerHelper.<clinit>(AccessControlServerHelper.java:77)

... 6 more

 

The code that I used is:

 

package ext;

import wt.change2.ChangeHelper2;
import wt.change2.WTChangeActivity2;
import wt.change2.WTChangeOrder2;
import wt.fc.ObjectIdentifier;
import wt.fc.PersistenceHelper;
import wt.fc.QueryResult;
import wt.fc.ReferenceFactory;
import wt.fc.WTReference;
import wt.method.RemoteAccess;
import wt.method.RemoteMethodServer;
import wt.util.WTException;
import wt.workflow.engine.WfProcess;
import wt.workflow.engine.WfVariable;

public class ChangeNotice2 implements RemoteAccess {

public static void main(String[] args) throws WTException {
  // TODO Auto-generated method stub
 
  RemoteMethodServer rms = RemoteMethodServer.getDefault();
  rms.setUserName("wcadmin");
  rms.setPassword("wcadmin");

  ObjectIdentifier oid = ObjectIdentifier.newObjectIdentifier("wt.change2.WTChangeActivity2:671258847");
  WTChangeActivity2 ecaOID = (WTChangeActivity2) PersistenceHelper.manager.refresh(oid);
  System.out.println("CA is " + ecaOID.getNumber());

  QueryResult qr = ChangeHelper2.service.getChangeOrder(ecaOID);
  while (qr.hasMoreElements()) {
   Object obj = qr.nextElement();
   if (obj instanceof WTChangeOrder2) {
    WTChangeOrder2 ecn = (WTChangeOrder2) obj;
    System.out.println("CN is " + ecn.getNumber());
    ReferenceFactory rf = new ReferenceFactory();
    WTReference ref = (WTReference) rf.getReference(ecn);
    System.out.println("Reference is  " + ref);
    System.out.println("Object is  " + ref.getObject());
    WTChangeOrder2 wtChangeOrder = (WTChangeOrder2) ref.getObject();

    QueryResult qrWfProc =  wt.workflow.engine.WfEngineHelper.service.getAssociatedProcesses(wtChangeOrder, null, wtChangeOrder.getContainerReference());
    System.out.println("qrWfProc  " + qrWfProc);
    while (qrWfProc.hasMoreElements()) {
    
      WfProcess process = (WfProcess) qrWfProc.nextElement();
      System.out.println("Process is " + process);
      WfVariable vars[] = process.getContext().getVariableList();
      for (WfVariable var : vars) {
       System.out.println("Printing Variable " + var.getName() + "---value---" + var.getValue());
      }
    }
   }
  }

}

 

Any help will be appreciated

 

Thanks

 

Antonio


Replace user in team

$
0
0

Our engineering manager got moved to an advanced R&D project, so a new manager was appointed. The manager had sign-off rights in the team for promotion requests.

 

1) Add the new manager to the team and remove the old manager. This should preserver the old manager's name on any promotion requests he may have approved while new promotion requests will be assigned to the new manager, Running processes will still be assigned to the old manager.

2) Replace the old manager with the new manager, using the replace icon. This should update any running workflows to the new manager, leaving the old manager on any that he had approved and assign all new requests to the new manager.

3) Put the managers into a group, they are named to the team currently, and add/delete the new/old manager in the group. This should be identical to #1 in terms of functionality, but the changes is done from the Participant's group menu instead of the team menu.

 

What is the best method for adding the new manager and removing the old one?

Is there an advantage to one method over another?

Anything missing in my assumed logic of how this should work?

 

Ben

Windchill 10.0 m040

Disable/Hide Views for WTParts

$
0
0

Hello community,

 

it should be possible to delete/disable/hide views (like Design, Manufacturing) having objects without performing a reassign View reg. CS24135

 

If a view represents a plant which is no longer used but there are objects using this view already, you are not able to diasble/hide the view. In this case the view can be used but it is not allowed to be used.

 

When creating a new View Version / Downstream the view should not be available.

 

Thank you for your support.

 

Regards

Stefan Petras

Promotion Request Review Process hangs...

$
0
0

On my test system, I am experimenting with Lifecycles, OIRs, ACLs, Roles, Types for WTDocuments and EPMDocuments.   I evidently didn't do something right, and now when I try to run a Promotion Request Review to the Released State for an EPMDOC, the process doesn't complete and sometimes I get a “Error: Stalled (Failed queue entry)” error.


Any suggestions on what I should do to fix?   I am afraid I made enough changes that I am having trouble narrowing it down.


-marc


 

Family table instance management on Check-in

$
0
0

Is there a way to prevent Windchill from accepting a check-in if the list of instances in the Generic being checked in does not include all the instances that were in the latest version?

 

Is there a way to generate a message to the Admin when a check-in or check-in attempt of the Generic list of instances is missing instances there were in the latest version?

Variance affected object comments in report

$
0
0

I am building a report for gathering details about a variance object.  I am able to gather the affected object part numbers and names, but also need to gather the comments and approved quantities for these items.  I believe this comment data is held with the link class that connects the objects to the variance, but cannot find the correct class to add to the from field on my QB report.  I read some from CS181651 and thought it may be wt.change2.ProblemProduct, but I was not able to get the join links correct, nor do I see any attributes on wt.change2.ProblemProduct that look like the comments.  I'm attachign my current qml.  Any pointers?

Capture.PNG

Generic Picker Callback

$
0
0

Generic picker callback method does not get the oid of the object selected. I have generic picker in the jsp that would select the document and call a callback method. I am trying to get the oid of the selected object but it throws error.

Aim Hire Recruitment - Long Term Windchill PLM Contract Opportunity in London

$
0
0

Aim Hire Recruitment - Long Term Windchill PLM Contract Opportunity in London at a leading technology company on a business critical project

 

The position will pay market rates or more with an expected contract length of 2 years +++, I need experienced Windchill PLM consultants with at least 4/5 years working knowledge to develop, support and maintain customer implementations and ongoing consultancy.

 

If you live, breathe and eat Windchill PLM and are looking for a role that take you to the fore-front of this cutting edge technology then please get in touch ASAP.

 

The role will require you to go through security clearance which requires you being a UK citizen, unfortunately this is a stringent requirement for this position, if you are not a UK citizen forgive my intrusion.

 

If you are interested please reply stating your availability and expected daily rate ASAP, please also send a copy of your most up to date CV.

 

If you aren’t interested, but you know of any other people that may be please let me know, and if we don’t know them and place them we will be eternally grateful and reward you generously.

 

Regards

 

Ross McMahon

Director

Aim Hire Recruitment Ltd

United Kingdom

Tel:       +44 (0) 208 943 0742

Mobile:    +44 (0) 7940 329433

EMail:     ross@aimhire.global

Web:       www.aimhirerecruitment.com


How do I retrieve Method Server logs and Server Manager logs?

$
0
0

I am running PTC Windchill PDM Link 10.2 on a Windows 2008 server. Thanks.

What is the difference between Hard Type and Soft type and what are Modeled Attributes, Standard Attributes, Global Attributes

$
0
0

Hi All,

 

Can anyone please tell me the difference between Hard Type and Soft Type and also the differences between Modeled Attributes, Standard Attributes and Global Attributes?

 

Thanks and Regards,

Aditya Achanta

Can the document type be changed when creating new documents with the browser drag and drop functionality?

$
0
0

Is it possible to change the document type when creating new documents with drag and drop within Mozilla browser? Even setting the preference "Create and Edit -> Document Create Default Type" seems only to affect "Action -> New...". Currently we have PDMLink 10.2 M030 CPS04 installed.

Predecessor Relationships Constraint not working in Plan activites(ProjectLink)

$
0
0

 

I am using Windchill ProjectLink 10.2 M030.

 

I have created a project plan which has 5-6 activities, which needs to start after one another.

 

i.e Activity 2 must start on completion of Activity 1 only and Activity 3 to start after completion of activity 2 and so on.

 

Hence in activty 2, I have given the predecessor relationship as "1FS" and in activity 3, "2FS" and so on.

 

But on starting the project, all activities are available at the same time for respective users and activities are not following the reqd sequnce.

 

Activity does not wait for predecessor avtivity to complete.

 

Has anyone faced similar issues while working on ProjectLink? Any help regarding the same would be appreciated.

 

Best regards

 

Sharath

ProjectLink Plan Issues

$
0
0
Hello,
  We are using ProjectLink with Automatic Executing tasks and have been experiencing a large amount of random issues with our plans. I am curious to know if anyone out there is experiencing any of the issues mentioned below and if they have found a root cause.


1.       Activities starting before their predecessor activities are complete.

2.       Activities being automatically cancelled.

3.       Task update causes the task to complete.

4.       Projects created with a space at the end results in a "Conflicting Entry Error".

5.       Project Manager / Project Creator does not have access to modify a newly created project for which they created (getUsers failed error).

6.        Activity Owners cannot signoff or update a task that is assigned to them.

7.       Project that was created as "Automatic Executing with Task Delivery" somehow changed to "Manual Executing". The ability to change this is not available. This was a system change.

8.       Task percentages and dates are not rolling up to the activities.

9.       The duration is getting set to "0", the predecessors are being removed and the task is getting marked as complete. All of these happen without any user interaction.

10.   Setting a task with a "0" duration, causes the task to complete by itself. The "0" duration is used when an activity or multiple activities can happen in the same day.

  We are on 8.0 M050 and our projects are created with a project template. We originally used a defined project as our template but per the advice of PTC, we have transitioned into project templates.

  Because we do not know the steps to reproduce, we have not been able to find a solution. We have 2 to 10 projects breaking per week with one or more of the above issues. This causes our project managers to spend half the day rebuilding these plans.

  If anyone has experienced these types of issues and can offer some advice, I would sure appreciate your reply.

Thanks for your time,
Dax Williams
Business Administrator, Windchill
Lifetime Products, Inc.
dwilliams@lifetime.com<">mailto:dwilliams@lifetime.com>

[Lifetime_Logo_BlkWhite_Sans_email sig]

A pop-up to denote the preference that has to be change while disconnecting/uninstalling DTI

$
0
0

Connecting to Windchill DTI changes the download mechanism preference to "Windchill DTI". But disconnecting/Un-installing DTI, does not change the preference to default.

 

Need  to configure the auto preference change back to normal or an alert box denoting to change the preference manually.

工作区笔记本附件文件下载提示签名过期

$
0
0

wt.wrmf.transport.WTTransportException: 来自 "http://ma700.ptc.com/Windchill/servlet/WindchillGW" 的签名, 签在 "Thu May 12 06:15:22 GMT 2016" 上, 接收在  "Thu May 12 06:26:14 GMT 2016" 上, 它已经被使用。 请重试该操作。如果继续发生该错误,请与系统管理员联系。

 

 

 

 

2016-05-12 14:26:14,931 INFO  [ajp-bio-8010-exec-1] wt.system.err wcadmin - java.io.IOException: Server returned HTTP response code: 500 for URL: http://ma700.ptc.com/Windchill/servlet/WindchillGW/wt.fv.master.StandardMasterService/doDirectDownload/actions%E8%8F%9C%E5%8D%95%E5%A4%87%E4%BB%BD_%E5%88%9B%E5%BB%BA%E4%BC%9A%E8%AE%AE%E4%B8%BB%E9%A2%98%E5%92%8C%E5%88%9B%E5%BB%BA%E4%BC%9A%E8%AE%AE%E7%BA%AA%E8%A6%81.xml?folderId=1230236&ft=RF&userid=11&adId=1962767&fileName=00000000083fbb&refsize=902&mime=text/xml&mk=wt.fv.master.StandardMasterService&ofn=actions%E8%8F%9C%E5%8D%95%E5%A4%87%E4%BB%BD_%E5%88%9B%E5%BB%BA%E4%BC%9A%E8%AE%AE%E4%B8%BB%E9%A2%98%E5%92%8C%E5%88%9B%E5%BB%BA%E4%BC%9A%E8%AE%AE%E7%BA%AA%E8%A6%81.xml&c=0&riid=-1&sT=1463033722&sign=udnRZtLet7BvYOHwcQIYWA%3D%3D&site=http%3A%2F%2Fma700.ptc.com%2FWindchill%2Fservlet%2FWindchillGW&AUTH_CODE=HmacMD5&isProxy=true

2016-05-12 14:26:14,936 INFO  [ajp-bio-8010-exec-1] wt.system.err wcadmin -  at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1626)


How do I create an Item Backed Picklist attribute in Windchill?

$
0
0

The title pretty much says it all: how do I create an Item Backed Picklist attribute in PDM-Link?

 

For those of you who may not have a blinking clue of what I'm talking about, I learned about these during the time our company has been preparing to deploy an Integrity installation on top of our Windchill system for Requirements Management, and a situation has come up where at least one of them could be very, very handy in Windchill. To put it in perspective, you may already know about the selection-list style of Global Attribute that you can already make in PDM-Link in the Type and Attribute Manager, either by radio buttons or drop-down list, and you make the list of options by putting entries in the Legal Value List on the Constraints tab, using | to separate each one. Once you go past maybe 6 entries maintaining one of those sets of values can get a bit messy. And the new need for us that has come up would very likely have to have several hundred options, constantly changing. I think you can see the issue here .

 

With an Item Backed Picklist attribute, I could link the attribute to a new custom object type that I would create, with very basic lifecycle templates and the like, and then create as many instances of that object that were needed to be the several hundred options, in a Library context that was visible to every user in the system, and then when editing the Part (which is where I want to add the attribute) I could just select from the list of created object instances for the one that matched. Like what happens in the Integrity variant.

 

I tried experimenting with the Reference attribute type in the Type and Attribute Manager, but it didn't really seem to work and match what I was looking for. Any ideas anyone?

 

Daryl

How to Create PrjPCM file in Altium

$
0
0

Hi I have one ugrent requriment

 

How I can create Project file (PrjPCB) in altium and once I create it with multiple schematic I want to Map it with Windchill BOM so how I can create the BOM in Windchill so it can associated with Project file

 

Please let me know if any one has steps

File Based Series : The series or seed is undefined

$
0
0

Hi All,

 

I had created a new file based series for a sub type of WTDocument in Windchill_10.1\Windchill\loadFiles\pdmlink\custom_series.xml

 

Step 1.)

<?xml version="1.0" encoding="UTF-8"?>

<scheme>

  <series name="name1">

  <value>V1</value>

  <value>V2</value>

  <value>V3</value>

</series>

   <series name="name2">

  <value>V_1</value>

  <value>V_2</value>

  <value>V_3</value>

</series>

</scheme>

 

Step 2.)

After creating this series I had loaded this into Windchill from shell thereby running the command

windchill wt.series.LoadFileBasedSeries custom_series -load

This loaded successfully


Step 3.)

Upon Loading I had saved the current file or lists thereby running the below command in Windchill Shell

windchill wt.series.LoadFileBasedSeries custom_series -read

This was also loaded successfully and then I restarted Windchill.

 

Step 4.)

After that I went to OIR and downloaded the composite rule of the sub type of WTDocument that I created and edited the file to add the custom series.

<AttrValue

    id="MBA|versionInfo"

    algorithm="com.ptc.core.foundation.vc.server.impl.VersionInfoGenerator"

    <Arg>wt.series.HarvardSeries.custom_series</Arg>

  </AttrValue>

And then I uploaded my OIR file back to that sub type.

 

Step 5.)

And then I started creating a sub type of WTDocument

It says the series or seed is undefined and I am not able to create the document of that type

 

Can you please let me know where I had gone wrong ? Or is there any other step which is missing.

Thanks in advance.

 

Thanks and Regards,

Aditya Achanta

Package creation to include iges and step files

$
0
0

I have been playing with packages with the intent to use these with suppliers.  I currently have Windchill publishing iges and step files of all our parts and assemblies.  When I tell the package to include iges and step none are there.  I have tried include and exclude methods.  We are on 10.2 m020.

Windchill Server Domain name change.

$
0
0

We have changed our Windchill Server domain name from df-wc-test.hs.local to df-wc-test.dfinc.hs.com.  Updating the Repository entries, Web Server host name entries, Windchill entries and Directory host name server entries will work? Please let me know if there are any additional steps to be performed.

Viewing all 6049 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>