Total Pageviews

Showing posts with label Windchill. Show all posts
Showing posts with label Windchill. Show all posts

2007/12/21

Ports and protocol which had been used by Windchill

Http: 80
JavaRMIServlet: 5001~5010
ProjectLink Meeting port: 5620~5660

Therefore, network administrator should open these ports.

2007/12/13

Check Windchill failed queue how-to

1. Go to Site tag and click Utils
2. Go to Queue Manager page
3. Choose failed queue, ex. WfUserWorkQueue
4. pickup one queue entry which had been marked as server, and select 'show' option in dropdown list
5. check error message, ex. wt.workflow.robots.WfInternalMethod:135596
6. used sql statement to figure out which object cause this failed queue.
select t2.businessobjreference, t2.name from WfInternalMethod t1, wfprocess t2 where t1.ida2a2 = 135596 and t1.ida3parentprocessref = t2.ida2a2
7. we can get information from step6.
businessobjreference is VR:wt.doc.WTDocument:136558
name is TPV - Release Workflow_0000000046 - Electronic Component Sample Request Operation Quide A
8. go to search page: apply 0000000046 to number to be our search criteria,
then we can check the related workflow to check what's wrong

2007/12/05

Utilized JAXB to generate POJOs automatically -- Green Integration Part II

Utilized JAXB to generate POJOs automatically -- Green Integration Part II

Agenda
  • Scenario
  • JAXB (Java Architecture for XML Binding)
  • Implementation steps in Green Integration
  • JAXB Usage
  • JAXB Limitations

2007/11/28

Follow-up procedure, after installed partslink

Follow-up procedure, after installed partslink

1. Make sure web.xml had define ConfigFile location
1
2
3
4
<context-param>
 <param-name>ConfigFile</param-name>
 <param-value>D:/ptc/Windchill/partslink/conf/main.properties</param-value>
</context-param> 
2. open windchill shell, change directory to <WT_HOME>\partslink\db\sql
3. login to database, execute make_schema_ora.sql script
SQL> @make_schema_ora.sql
4. Load ACL, execute command: windchill wt.load.WindchillLoader -Application=Windchill.PartsLink

Windchill Quick Backup

Procedure

1. backup applicationa & configuration, i.e. D:\PTC\Windchill8\codebase

2. backup database, i.e. execute command: exp pdm8/pdm8@WINDDEV file=D:\tmp\database\WINDDEV.dmp log=D:\tmp\database\WINDDEV.log

If any problem occurred, just overwrite codebase and do database import to do system recovery

2007/11/26

Windchill Change Password

In past, Windchill does not provide change password function.
Many customers will complain about this.
Now, Windchill 8 M040 had provided.
But default, M040 disabled change password function, we need to turn it on.

Process:
1. define in site.xconf

1
2
3
<property name="wt.org.services.userPasswordChangeEnabled" 
          overridable="true" 
          targetfile="codebase/wt.properties" value="true">

2. execute xconfmanager -p in windchill shell

3. restart tomcat, method server. And do not forgot to clean tomcat cache.

2006/09/08

[Windchill] How to generate mData

Steps.
1. open rose
2. Tools --> Windchill --> System Generation
3. Click OK

Troubleshoot
It may show generation refuse error in the progress of system generation
Error: wt.templateutil.processor.DefaultTemplateProcessor is not Extendable, so cannot extend it.

Solution
1. Open user.properties (under /Codebase)
2. add one attribute wihch named
wt.generation.overrideNonExtendableClasses, and add classes which we want to do extend. If we have multiple classes need to do extend, sperate them by comma.

ex. wt.generation.overrideNonExtendableClasses=wt.templateutil.processor.DefaultTemplateProcessor,wt.templateutil.processor.FormTaskDelegate
After you add them to user.properties, you can see this kind of warning message, it means you had successfully finished system generation.
Warning: wt.templateutil.processor.DefaultTemplateProcessor is not Extendable, but is being allowed as a backward compatible override

2006/08/11

[InfoEngine] Remember to get newOid as you want to update-object


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<ie:unit>
 <ie:webject name="CheckOut-Objects" type="ACT">
  <ie:param name="INSTANCE" data="windchill"/>
  <ie:param name="AUTHORIZATION" data="${@server[]authorization[0]}"/>
  <ie:param name="OBJECT_REF" data="<%=objRef%>"/>
  <ie:param name="GROUP_OUT" data="checkoutDoc"/> 
 </ie:webject>

 <%

 Group checkoutDoc = getGroup("checkoutDoc");;
 String newOid = (String)checkoutDoc.getAttributeValue(0, "obid");
 System.out.println("Checkout Document ends... Update begin, new id");
 System.out.println(newOid);
 %>

 <ie:failure>
 <%System.out.println("no document had been CheckOut");%>
 </ie:failure>

 <ie:success>
 <% System.out.println (getGroup("checkoutDoc").getElementCount() + " document(s) 
 had been CheckOut"); %>
 </ie:success>

</ie:unit> 

<ie:unit>
 <ie:webject name="Update-Objects" type="ACT">
  <ie:param name="INSTANCE" data="windchill"/>
  <ie:param name="GROUP_OUT" data="updateDoc"/>
  <ie:param name="ATTRIBUTE" data="IBA|Revise_By_Drawing"/>
  <ie:param name="OBJECT_REF" data="<%=newOid%>"/>
  <ie:param name="TYPE" data="wt.doc.WTDocument"/>
  <ie:param name="FIELD" data="IBA|Revise_By_Drawing='N'"/> 
  <ie:param name="AUTHORIZATION" data="${@server[]authorization[0]}"/>
 </ie:webject>

 <ie:failure>
  <%System.out.println("no document had been update");%>
 </ie:failure>

 <ie:success>
  <% System.out.println (getGroup("updateDoc").getElementCount() + " document(s) had been updated"); %>
 </ie:success>
</ie:unit>

<ie:unit>

 <ie:webject name="CheckIn-Objects" type="ACT">
  <ie:param name="INSTANCE" data="com.ptc.vm-ase.Windchill"/>
  <ie:param name="ATTRIBUTE" data="IBA|Revise_By_Drawing"/>
  <ie:param name="GROUP_OUT" data="checkInDoc"/>
  <ie:param name="AUTHORIZATION" data="${@server[]authorization[0]}"/>
  <ie:param name="TYPE" data="wt.doc.WTDocument"/>
  <ie:param name="OBJECT_REF" data="<%=newOid%>"/>
 </ie:webject>

 <ie:failure>
  <%System.out.println("no document had been checked-in");%>
 </ie:failure>

 <ie:success>
  <% System.out.println (getGroup("checkInDoc").getElementCount() + " document(s) had been checked-in"); %>
 </ie:success>

</ie:unit>

[InfoEngine] Where to find the compiled InfoEngine Task

You can find the Java files and class files under:
<Windchill_HOME>\tasks\codebase\com\infoengine\compiledTasks


2006/06/06

[Windchill] Build ResourceBundle How-To

If I edit some texts in reportResource.rbInfo, how do I build this resource bundle.

Steps.
1. open windchill shell window
2. utilize ResourceBuild
Example Usage: ResourceBuild D:\ptc\Windchill\src\wt\fc or ResourceBuild wt.fc.fcResource
--Arg1 specifies which directory or class to generate.
--Arg2 specifies if locale specific resource will be built.
--values for arguments not passed will be obtained from tools.properties.

then input the command as bellows:
ResourceBuild ext.fusheng.report.reportResource true

execution info:
D:\ptc\Windchill>echo off
CLASSPATH=
file:/D:/ptc/Windchill/codebase/
file:/D:/ptc/Windchill/srclib/SystemGeneration.jar
file:/D:/ptc/Windchill/srclib/WindchillUtil.jar
file:/D:/ptc/Windchill/srclib/CommonXml.jar
file:/D:/ptc/Windchill/srclib/CommonCore.jar
file:/D:/ptc/Windchill/srclib/Modules.jar
file:/D:/ptc/Windchill/srclib/JGL.jar
file:/D:/ptc/Windchill/srclib/xmlParserAPIs.jar
file:/D:/ptc/Windchill/srclib/xercesImpl.jar
file:/D:/ptc/Windchill/srclib/dom4j.jar
file:/D:/ptc/Windchill/srclib/SystemGeneration_L10N.jar
file:/D:/ptc/Windchill/srclib/WindchillUtil_L10N.jar
file:/D:/ptc/Windchill/srclib/CommonXml_L10N.jar
file:/D:/ptc/Windchill/srclib/CommonCore_L10N.jar
Update ResourceInfos = false
Build ResourceBundles = true
Process Locales = en_US,en_GB,fr,de,es,ja,it,ko,zh_CN,zh_TW

ext.fusheng.report.reportResource
Warning: com.sun.tools.javac.Main cannot be loaded, using external compiler instead
Execution/Launch Time = 4.0 seconds

2006/05/31

[Windchill] Cannot do copy & paste in Applet

Scenario
As I do some operation in Windchill, because of some user interface was done by applet, it is inconvenience for us if we wolud like to copy some texts then paste them into the applet.

Solution
It is the security constraints so we cannot do copy and paster in applet window.
We can find out the java.policy file in JRE\lib\security, then append this declaration as bellows:

grant codeBase "http://hostname/Windchill/-" {
permission java.security.AllPermission;
};

[Windchill] IE, IE, IE Affects PTC SW

reference: http://worldcadaccess.typepad.com/blog/2006/05/ie_ie_ie_affect.html

PTC notes that This issue affects all releases of Windchill and Windchill-based solutions, including Windchill PDMLink, Windchill ProjectLink, Windchill Foundation & PDM, Windchill DynamicDesignLink, and Pro/INTRALINK 8.0 and higher; ProductView clients may also be affected. Some of the problems include:
- Loading the Java plug-in from an updated Microsoft browser may cause it to exit prematurely.
- Launching ProductView Standard Edition plug-in from an updated browser may cause it to become unresponsive.

For more info, check this Web page [ptc.com].

2006/05/27

[Windchill] How to modify the value which in property file

xconfmanager -s <property_pair>=<property_value> -t <property_file> -p

s: set (set the key-value pair)
t: target (assign the property file name)
p: propogate (propogate the new value to the specific property file)

if the value has space, remember to use double quote at the start and end, i.e. name="Albert Guo"

2006/05/24

[Windchill] java.rmi.ConnectException: Connection refused to host

Scenario
As I start the method server, it always throw this kind of exception message as bellows and the method server always cannot be start properly:

星期一 5/22/06 16:31:49: main: Warning: exception connecting to master LogicalIdentifierCacheMgr:

星期一 5/22/06 16:31:49: main: java.rmi.ConnectException: Connection refused to host: albert.ptcnet.ptc.com; nested exception is:
星期一 5/22/06 16:31:49: main: java.net.ConnectException: Connection timed out: connect


Solution

According to the wt.properties, it said that windchill use port 5001. But as I telnet it, telnet albert.ptcnet.ptc.com 5001, it cannot be connect it.
It may result from that port 5001 had been occupied by another applications or this port had been blocked by firewall, so I change the port from 5001 to 5002, then the problem had been resolved successfully.

[Windchill] com.infoengine.au.ServiceUnavailableException

Scenario
As I start method server, it throws this kind of exception as bellows. And when I click the Product tab in the windchill, it will produce the same exception:

星期三 5/24/06 14:02:53: Thread-38: Caused by: (com.infoengine.util.IEResource/49) com.infoengine.au.ServiceUnavailableException: "ptcServiceName=com.ptc.ptcnet.albert.server.taskProcessor,dc=albert,dc=ptcnet,dc=ptc,dc=com,cn=Windchill_8.0,cn=Application Services,o=ptc": 無法使用服務
星期三 5/24/06 14:02:53: Thread-38: at com.infoengine.au.NamingService.getConnection(NamingService.java:952)
星期三 5/24/06 14:02:53: Thread-38: at com.infoengine.procunit.adapter.Adapter.getConnection(Adapter.java:707)
星期三 5/24/06 14:02:53: Thread-38: at com.infoengine.procunit.adapter.Adapter.createConnection(Adapter.java:650)
星期三 5/24/06 14:02:53: Thread-38: at com.infoengine.procunit.adapter.Adapter.(Adapter.java:142)
星期三 5/24/06 14:02:53: Thread-38: at com.infoengine.SAK.Task.executeTaskRemotely(Task.java:1948)
星期三 5/24/06 14:02:53: Thread-38: at com.infoengine.SAK.Task.invoke(Task.java:1665)
星期三 5/24/06 14:02:53: Thread-38: at com.infoengine.SAK.Task.executeTask(Task.java:1851)
星期三 5/24/06 14:02:53: Thread-38: ... 10 more

Solution
Owning to the service which named
com.ptc.ptcnet.albert.server.taskProcessor does not exist, so it will produce this kind of exception in the method server console.


Change the value of ptcServiceName of com.ptc.ptcnet.albert.Windchill in LDAP.

[Windchill] Load Demo Data to Windchill

(1) windchill wt.load.WindchillLoader -All -IncludeDemo

(2) windchill wt.load.WindchillLoader -All -IncludeDemo -Unattended (no intervention)