Quantcast
Channel: PTC Community: Message List - Windchill
Viewing all 8876 articles
Browse latest View live

Re: how to block the problem request and change process request for the CAD and WTP in work in progress state


Numbering system with two sequences in Windchill

$
0
0

Hello,

 

I want to crate two sequence numbering system. One for one type of part and another for another type.

So we would get 1xxx xxx xxx and 5xx xxx xxx, dependent on file type.

Is this possible?

Re: Numbering system with two sequences in Windchill

$
0
0

I think this is possible. You can just add a second number generator into the OIR

 

<!-- set the number to a generated number -->
<AttrValue id="number" algorithm="com.ptc.windchill.enterprise.revisionControlled.server.impl.NumberGenerator">
   <!-- add a V prefix for variant parts -->
   <Value algorithm="wt.rule.algorithm.BooleanBranch">
  <Value algorithm="wt.rule.algorithm.EqualsTest">
  <Attr id="genericType"/>
  <Arg>variant</Arg>
  </Value>
  <Arg>V</Arg>
  <Arg/>
  </Value>
   <!-- the sequence -->
  <Arg>{GEN:wt.enterprise.SequenceGenerator:number_seq1:7:0}</Arg>
  <Arg>{GEN:wt.enterprise.SequenceGenerator:number_seq2:7:0}</Arg>
</AttrValue>

how to remove valvole file from workspace ?

$
0
0

how to remove valvole file from workspace ?

Project update for Drawing EPM

$
0
0

Isn't it possible to update shared Drawing EPM or Documents in a project via Update button?

If I press the update button for a project, out of sync Drawing EPM or Documents will not updated.

update wt.workflow.work.WorkItem comment using web-ject

$
0
0

While trying to update wt.workflow.work.WorkItem, using standard method I get following error

 

wt.workflow.work.WorkItem cannot be cast to wt.vc.wip.Workable; nested exception is: java.lang.ClassCastException: wt.workflow.work.WorkItem cannot be cast to wt.vc.wip.Workable


or


com.ptc.jws.service.com.ptc.windchill.ws.Exception_Exception: com.infoengine.util.IEException: EXCEPTION DURING SAVE[

SOURCE:

@@@ BEGIN TYPE INSTANCE

@@@ Identifier: WCTYPE|wt.workflow.work.WorkItem~~WCP|1240209|17

@@@ BEGIN ATTRIBUTE CONTAINER

@@@

@@@         ID: WCTYPE|wt.workflow.work.WorkItem~~WCP|1240209|17

@@@           : ~NPA|workitem_comment~~

@@@    Content: DATA|java.lang.String|updatedFileName.txt

@@@      State: NEW

@@@

@@@ ATTRIBUTE IDENTIFIER COUNT = 1

@@@

@@@ REPLACEMENTS : NONE

@@@

@@@ END ATTRIBUTE CONTAINER

@@@ END TYPE INSTANCE

FILTER:

@@@ BEGIN ATTRIBUTE CONTAINER SPEC

@@@

@@@ INCLUDE DESCRIPTORS DEFAULT: false

@@@ INCLUDE CONSTRAINTS DEFAULT: false

@@@   INCLUDE ARGUMENTS DEFAULT: false

@@@              NEXT OPERATION: com.ptc.core.meta.common.DisplayOperationIdentifier@a36d3bb3

@@@             DESCRIPTOR KEYS: []

@@@

@@@            ATTRIBUTE: WCTYPE|wt.workflow.work.WorkItem~MBA|description

@@@                 TYPE: EXPLICIT

@@@  INCLUDE DESCRIPTORS: false

@@@  INCLUDE CONSTRAINTS: false

@@@

@@@            ATTRIBUTE: WCTYPE|wt.workflow.work.WorkItem~MBA|status

@@@                 TYPE: EXPLICIT

@@@  INCLUDE DESCRIPTORS: false

@@@  INCLUDE CONSTRAINTS: false

@@@

@@@            ATTRIBUTE: WCTYPE|wt.workflow.work.WorkItem~NPA|workitem_comment

@@@                 TYPE: EXPLICIT

@@@  INCLUDE DESCRIPTORS: false

@@@  INCLUDE CONSTRAINTS: false

@@@

@@@ ATTRIBUTE COUNT = 3

@@@

@@@     INSTANCE ENTRIES: NONE

@@@

@@@     PURGED ENTRIES: NONE

@@@

@@@ END ATTRIBUTE CONTAINER SPEC

CURRENT TARGET: 0

TARGET[0]: (UNHANDLED)

@@@ BEGIN TYPE INSTANCE

@@@ Identifier: WCTYPE|wt.workflow.work.WorkItem~~WCP|1240209|17

@@@ BEGIN ATTRIBUTE CONTAINER

@@@

@@@         ID: WCTYPE|wt.workflow.work.WorkItem~~WCP|1240209|17

@@@           : ~NPA|workitem_comment~~

@@@    Content: DATA|java.lang.String|updatedFileName.txt

@@@      State: NEW

@@@

@@@ ATTRIBUTE IDENTIFIER COUNT = 1

@@@

@@@ REPLACEMENTS : NONE

@@@

@@@ END ATTRIBUTE CONTAINER

@@@ END TYPE INSTANCE

]EXCEPTION DURING SAVE

Nested exception is: com.ptc.core.command.common.CommandException: EXCEPTION DURING UPDATE[

SOURCE:

@@@ BEGIN TYPE INSTANCE

@@@ Identifier: WCTYPE|wt.workflow.work.WorkItem~~WCP|1240209|17

@@@ BEGIN ATTRIBUTE CONTAINER

@@@

@@@         ID: WCTYPE|wt.workflow.work.WorkItem~~WCP|1240209|17

@@@           : ~NPA|workitem_comment~~

@@@    Content: DATA|java.lang.String|updatedFileName.txt

@@@      State: NEW

@@@

@@@ ATTRIBUTE IDENTIFIER COUNT = 1

@@@

@@@ REPLACEMENTS : NONE

@@@

@@@ END ATTRIBUTE CONTAINER

@@@ END TYPE INSTANCE

FILTER:

@@@ BEGIN ATTRIBUTE CONTAINER SPEC

@@@

@@@ INCLUDE DESCRIPTORS DEFAULT: false

@@@ INCLUDE CONSTRAINTS DEFAULT: false

@@@   INCLUDE ARGUMENTS DEFAULT: false

@@@              NEXT OPERATION: null

@@@             DESCRIPTOR KEYS: []

@@@

@@@            ATTRIBUTE: WCTYPE|wt.workflow.work.WorkItem~NPA|workitem_comment

@@@                 TYPE: EXPLICIT

@@@  INCLUDE DESCRIPTORS: false

@@@  INCLUDE CONSTRAINTS: false

@@@

@@@ ATTRIBUTE COUNT = 1

@@@

@@@     INSTANCE ENTRIES: NONE

@@@

@@@     PURGED ENTRIES: NONE

@@@

@@@ END ATTRIBUTE CONTAINER SPEC

]EXCEPTION DURING UPDATE

Nested exception is: wt.verification.VerificationException: Illegal Operation.  Nested exception is:

com.ptc.core.command.common.CommandException: EXCEPTION DURING SAVE[

SOURCE:

@@@ BEGIN TYPE INSTANCE

@@@ Identifier: WCTYPE|wt.workflow.work.WorkItem~~WCP|1240209|17

@@@ BEGIN ATTRIBUTE CONTAINER

@@@

@@@         ID: WCTYPE|wt.workflow.work.WorkItem~~WCP|1240209|17

@@@           : ~NPA|workitem_comment~~

@@@    Content: DATA|java.lang.String|updatedFileName.txt

@@@      State: NEW

@@@

@@@ ATTRIBUTE IDENTIFIER COUNT = 1

@@@

@@@ REPLACEMENTS : NONE

@@@

@@@ END ATTRIBUTE CONTAINER

@@@ END TYPE INSTANCE

FILTER:

@@@ BEGIN ATTRIBUTE CONTAINER SPEC

@@@

@@@ INCLUDE DESCRIPTORS DEFAULT: false

@@@ INCLUDE CONSTRAINTS DEFAULT: false

@@@   INCLUDE ARGUMENTS DEFAULT: false

@@@              NEXT OPERATION: com.ptc.core.meta.common.DisplayOperationIdentifier@a36d3bb3

@@@             DESCRIPTOR KEYS: []

@@@

@@@            ATTRIBUTE: WCTYPE|wt.workflow.work.WorkItem~MBA|description

@@@                 TYPE: EXPLICIT

@@@  INCLUDE DESCRIPTORS: false

@@@  INCLUDE CONSTRAINTS: false

@@@

@@@            ATTRIBUTE: WCTYPE|wt.workflow.work.WorkItem~MBA|status

@@@                 TYPE: EXPLICIT

@@@  INCLUDE DESCRIPTORS: false

@@@  INCLUDE CONSTRAINTS: false

@@@

@@@            ATTRIBUTE: WCTYPE|wt.workflow.work.WorkItem~NPA|workitem_comment

@@@                 TYPE: EXPLICIT

@@@  INCLUDE DESCRIPTORS: false

@@@  INCLUDE CONSTRAINTS: false

@@@

@@@ ATTRIBUTE COUNT = 3

@@@

@@@     INSTANCE ENTRIES: NONE

@@@

@@@     PURGED ENTRIES: NONE

@@@

@@@ END ATTRIBUTE CONTAINER SPEC

CURRENT TARGET: 0

TARGET[0]: (UNHANDLED)

@@@ BEGIN TYPE INSTANCE

@@@ Identifier: WCTYPE|wt.workflow.work.WorkItem~~WCP|1240209|17

@@@ BEGIN ATTRIBUTE CONTAINER

@@@

@@@         ID: WCTYPE|wt.workflow.work.WorkItem~~WCP|1240209|17

@@@           : ~NPA|workitem_comment~~

@@@    Content: DATA|java.lang.String|updatedFileName.txt

@@@      State: NEW

@@@

@@@ ATTRIBUTE IDENTIFIER COUNT = 1

@@@

@@@ REPLACEMENTS : NONE

@@@

@@@ END ATTRIBUTE CONTAINER

@@@ END TYPE INSTANCE

]EXCEPTION DURING SAVE

Nested exception is: com.ptc.core.command.common.CommandException: EXCEPTION DURING UPDATE[

SOURCE:

@@@ BEGIN TYPE INSTANCE

@@@ Identifier: WCTYPE|wt.workflow.work.WorkItem~~WCP|1240209|17

@@@ BEGIN ATTRIBUTE CONTAINER

@@@

@@@         ID: WCTYPE|wt.workflow.work.WorkItem~~WCP|1240209|17

@@@           : ~NPA|workitem_comment~~

@@@    Content: DATA|java.lang.String|updatedFileName.txt

@@@      State: NEW

@@@

@@@ ATTRIBUTE IDENTIFIER COUNT = 1

@@@

@@@ REPLACEMENTS : NONE

@@@

@@@ END ATTRIBUTE CONTAINER

@@@ END TYPE INSTANCE

FILTER:

@@@ BEGIN ATTRIBUTE CONTAINER SPEC

@@@

@@@ INCLUDE DESCRIPTORS DEFAULT: false

@@@ INCLUDE CONSTRAINTS DEFAULT: false

@@@   INCLUDE ARGUMENTS DEFAULT: false

@@@              NEXT OPERATION: null

@@@             DESCRIPTOR KEYS: []

@@@

@@@            ATTRIBUTE: WCTYPE|wt.workflow.work.WorkItem~NPA|workitem_comment

@@@                 TYPE: EXPLICIT

@@@  INCLUDE DESCRIPTORS: false

@@@  INCLUDE CONSTRAINTS: false

@@@

@@@ ATTRIBUTE COUNT = 1

@@@

@@@     INSTANCE ENTRIES: NONE

@@@

@@@     PURGED ENTRIES: NONE

@@@

@@@ END ATTRIBUTE CONTAINER SPEC

]EXCEPTION DURING UPDATE

Nested exception is: wt.verification.VerificationException: Illegal Operation.

  at sun.reflect.GeneratedConstructorAccessor324.newInstance(Unknown Source)

  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

  at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

  at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:145)

  at com.sun.xml.ws.client.sei.StubHandler.readResponse(StubHandler.java:252)

  at com.sun.xml.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:181)

  at com.sun.xml.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:262)

  at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:128)

  at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:102)

  at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:154)

  at com.sun.proxy.$Proxy150.update(Unknown Source)

  at com.ptc.connected.plm.thingworx.WindchillConnectorThing.Update(WindchillConnectorThing.java:480)

  at sun.reflect.GeneratedMethodAccessor126.invoke(Unknown Source)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

  at java.lang.reflect.Method.invoke(Method.java:498)

  at com.thingworx.common.processors.ReflectionProcessor.processService(ReflectionProcessor.java:261)

  at com.thingworx.handlers.ReflectionServiceHandler.processService(ReflectionServiceHandler.java:48)

  at com.thingworx.things.Thing.processServiceRequestDirect(Thing.java:6757)

  at com.thingworx.things.Thing.processServiceRequest(Thing.java:6675)

  at com.thingworx.dsl.engine.adapters.VirtualFunction.call(VirtualFunction.java:145)

  at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)

  at org.mozilla.javascript.gen.TestUpdate_871._c_script_0(TestUpdate:25)

  at org.mozilla.javascript.gen.TestUpdate_871.call(TestUpdate)

  at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)

  at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3090)

  at org.mozilla.javascript.gen.TestUpdate_871.call(TestUpdate)

  at org.mozilla.javascript.gen.TestUpdate_871.exec(TestUpdate)

  at com.thingworx.dsl.engine.DSLProcessor.executeService(DSLProcessor.java:167)

  at com.thingworx.dsl.DSLServiceHandler.processService(DSLServiceHandler.java:37)

  at com.thingworx.things.Thing.processServiceRequestDirect(Thing.java:6757)

  at com.thingworx.things.Thing.processAPIServiceRequest(Thing.java:6695)

  at com.thingworx.webservices.BaseService.handleInvoke(BaseService.java:2931)

  at com.thingworx.webservices.BaseService.service(BaseService.java:327)

  at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)

  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)

  at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)

  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)

  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)

  at com.thingworx.security.contenttype.ContentTypeFilter.doFilter(ContentTypeFilter.java:111)

  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)

  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)

  at com.thingworx.security.filter.ValidationFilter.doFilter(ValidationFilter.java:22)

  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)

  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)

  at com.thingworx.security.authentication.AuthenticationFilter.propagateRequest(AuthenticationFilter.java:370)

  at com.thingworx.security.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:150)

  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)

  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)

  at com.thingworx.security.filter.ClickjackFilter.doFilter(ClickjackFilter.java:32)

  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)

  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)

  at com.thingworx.security.filter.ProhibitIfNotLeaderFilter.doFilter(ProhibitIfNotLeaderFilter.java:119)

  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)

  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)

  at com.thingworx.security.filter.HttpResponseHeadersFilter.doFilter(HttpResponseHeadersFilter.java:52)

  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)

  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)

  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)

  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108)

  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)

  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)

  at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)

  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)

  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)

  at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:783)

  at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)

  at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:745)

  at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)

  at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)

  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

  at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

  at java.lang.Thread.run(Thread.java:745)

27-Jan-2017 17:18:51.843 INFO [Thread-5] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8085"]

27-Jan-2017 17:18:51.908 INFO [Thread-5] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-nio-8009"]

27-Jan-2017 17:18:51.962 INFO [Thread-5] org.apache.catalina.core.StandardService.stopInternal Stopping service Catalina

Re: update wt.workflow.work.WorkItem comment using web-ject

$
0
0

Could you paste the IE task as well?

Re: Numbering system with two sequences in Windchill

$
0
0

I can confirm this is possible, my company currently has several. If the the objects are separate sub-types/types it should work using the different OIRs as Bjorn has indicated.


Re: Numbering system with two sequences in Windchill

$
0
0

Courtney,

 

Does this work when starting with CAD (in Creo) and creating a WTPart by Auto-Associating/Building or do Users need to create the WTPart in Windchill?

Re: update wt.workflow.work.WorkItem comment using web-ject

$
0
0

its Update from here

 

/Windchill/servlet/TwxIEWebService?wsdl


or I tried this one


/Windchill/servlet/IE/tasks/com/ptc/swlink/RBMWSCoreService/UpdateObject.xml

Worker Agent does not start

$
0
0

Hello All,

 

I'm trying to setup my worker to work with Solidworks. I get the following error in the logs:

 

[2017-02-07 11:35:28] workermonitor - Version : Creo 3.1 - M010 (13.3.10.27) i486_nt

[2017-02-07 11:35:28] Logging level set to 0x01.

[2017-02-07 11:35:28] Connecting to server "XYZ.com" on port 5600

[2017-02-07 11:35:28] Connection established

[2017-02-07 11:35:28] Got version 8 INIT  FAILURE (with no description) from WVS.

[2017-02-07 11:35:28] Monitor Shutting down.

 

The worker does NOT indicate "Fails to start" in the Worker Agent Administration page, it just stays off.

 

In sw2pv_config.exe, I have

- the setup directory pointing to the folder sw_setup

- Server Host & Server Port 5600: Failing the test, I get this message

 

Set keepalive ok

The CADAgent rejected the connection, is it configured for a SOLIDWORKS worker on machine WIN-9U6A5RRLNG0 (alias not set)?

 

What I've tried so far:

- Checked that the host name and port 5600 are correct

- Checked that the system does not run out of memory

- Checked for other forums with the same issue

 

Please help,

Ammar

Re: Worker Agent does not start

$
0
0

Hi Ammar,

After setting up worker directory on CAD worker, you will also need to configure CAD worker agent from CAD worker administration. If you already did this, then please hare you agent.ini file.

Also check if you have following property set in wvs.properties

 

<Property name="worker.exe.whitelist.prefixes" overridable="true"

             targetFile="codebase/WEB-INF/conf/wvs.properties"

             value="C:\|D:\|G:\|/|nohup /"/>

Re: Worker Agent does not start

$
0
0

Thanks a lot for the reply Dipak.

 

My trusted prefixes are set correctly. Here is the content of agent.ini:

 

[agent]

transferpath=$(wt.temp)\transfer

port=5600

numworkers=1

;

[worker1]

localpath=ftp:

maxinstances=1

username=

prompt=

starttime=80

host=XYZ.com

password=

autostart=false

autoidlestop=

startfromlocal=FALSE

exe=D:\ptc\creo_view_adapters\sw_setup\swworker.bat

remotepath=

hosttype=local

port=601

distributed=false

autoerrorstop=false

availabletime=

shapetype=SOLIDWORKS

autobusystop=

;


Ammar

Re: Worker Agent does not start

Re: Worker Agent does not start

$
0
0

Not the same issue as what I'm having. My worker isn't failing to start it's just staying off. My host name is correct.

 

Any other idea?


Re: Worker Agent does not start

$
0
0

The property "worker.exe.whitelist.prefixes" is case sensitive

<Property name="worker.exe.whitelist.prefixes" overridable="true"

             targetFile="codebase/WEB-INF/conf/wvs.properties"

             value="d:\|D:\"/>

Different content as thumbnail and as primary attachment

$
0
0

The object in primary content is not present in thumbnail but a previous version representation.

How can I fix this?

primarycontent_creo issue.PNG

How to remove thumbnail representation created by publishing and redo publishing?

$
0
0

How to remove thumbnail representation created by publishing and redo publishing?

Re: Worker Agent does not start

$
0
0

Thank you Sergey but unfortunately the issue is not originating from the prefixes, I have them already setup correctly.

 

Can you think of another solution?

Re: Worker Agent does not start

$
0
0

Hi Ammar,

 

Could you please share worker logs as well as CADAgents logs along with a screenshot of CAD worker?

 

Dipak

Viewing all 8876 articles
Browse latest View live


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