Skip to main content
12-Amethyst
July 16, 2024
Question

com.ptc.mvc.ds.server.AlreadyClosedException

  • July 16, 2024
  • 2 replies
  • 811 views

024-07-09 17:41:29,883 ERROR [DataSource Task Executor-3108] com.ptc.mvc.components.DefaultComponentResultProcessor 6000547 - Error while adding value to data source [DefaultDataSource [id="4" resultLimit="2000" maxPollSize="500" offSet="0" offSetData="true" preferredMinPollSize="200" resultState="FAILED" transmissionState="CLOSED" addedCounter="2001" resultCounter="2000" chunkCounter="1025" dataCount="975" feedbackCount="3" latchCount="1" active="true" creationTime="09:41:29,69" lastActiveTime="09:41:29,876"]]
com.ptc.mvc.ds.server.AlreadyClosedException: Attempt to add to closed DataSource: DefaultDataSource [id="4" resultLimit="2000" maxPollSize="500" offSet="0" offSetData="true" preferredMinPollSize="200" resultState="FAILED" transmissionState="CLOSED" addedCounter="2001" resultCounter="2000" chunkCounter="1025" dataCount="975" feedbackCount="3" latchCount="1" active="true" creationTime="09:41:29,69" lastActiveTime="09:41:29,876"]
at com.ptc.mvc.ds.server.DefaultDataSource.add(DefaultDataSource.java:397)
at com.ptc.jca.mvc.components.JcaComponentDataConverter.convertRawDataAsync(JcaComponentDataConverter.java:134)
at com.ptc.mvc.components.AbstractComponentResultProcessor.processRawData(AbstractComponentResultProcessor.java:461)
at com.ptc.mvc.components.AbstractComponentResultProcessor.addToDataSource(AbstractComponentResultProcessor.java:318)
at com.ptc.mvc.components.AbstractComponentResultProcessor.addElement(AbstractComponentResultProcessor.java:620)
at com.ptc.mvc.components.AbstractComponentResultProcessor.addElement(AbstractComponentResultProcessor.java:490)
at com.ptc.mvc.components.AbstractComponentResultProcessor.addElements(AbstractComponentResultProcessor.java:472)
at com.ptc.windchill.enterprise.folder.query.processing.FolderQueryPacketProcessor.deliverResultPacket(FolderQueryPacketProcessor.java:371)
at com.ptc.windchill.enterprise.folder.query.processing.FolderQueryPacketProcessor.process(FolderQueryPacketProcessor.java:235)
at com.ptc.windchill.enterprise.folder.query.pro

 

Please show me an expert and help me solve the problem. Whenever this error reports' yes', the system becomes very stuck. How can I solve the problem

2 replies

Community Moderator
July 19, 2024

Hello @TB_10966080,

 

Thank you for your question. 
I'd like to recommend to bring more details and context to your initial inquiry

It also helps to have screenshot(s) to better understand what you are trying to do in your process. 

This will increase your chances to receive meaningful help from other Community members. 

Regards,
Vivek N
Community Moderation Team.

1-Visitor
December 25, 2024

I met the same problem, When i change single windchill(11.0) server to cluster recently ,the problem arises.

Problem discription:

It takes long to load in task or wtpart(just Product type WtPart)  info-page ,and i trace deep ,some requests responses slowly.  could be spent half a minute,sometimes even longer.

such as (nginx log) :  

1.  19/Dec/2024:10:21:19 +0800 GET /Windchill/servlet/ActionsMenu?componentType=INFO&u8=1&context=tcomp%24infoPage%24VR%3Awt.part.WTPart%3A1338679693%24VR%3Awt.part.WTPart%3A1338679693!*&portlet=component&ContainerOid=OR%3Awt.pdmlink.PDMLinkProduct%3A1167774092&oid=VR%3Awt.part.WTPart%3A1338679693&cacheBuster=1734574844324 HTTP/1.1 200 5975 http://plmap.xxxx.com/Windchill/app/ Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E) - 10.88.84.211:80 200 35.378 35.378

2.  19/Dec/2024:11:25:54 +0800 POST /Windchill/ptc1/action?wt.reqGrp=7tyg1uuc9%3Bm4smue1d%3B748%3B47o69t%3B146587&u8=1&oid=OR%3Awt.workflow.work.WorkItem%3A1367547496&tableId=null HTTP/1.1 200 643 http://plmap.xxxx.com/Windchill/app/ Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 - 10.88.84.221:80 200 70.155 70.166

3. 19/Dec/2024:10:31:23 +0800 POST /Windchill/ptc1/action?wt.reqGrp=-12oekr22tl%3Bm4smq6b0%3B15009%3B5lw34l%3B97721&u8=1&oid=OR%3Awt.workflow.work.WorkItem%3A1367381333&tableId=null HTTP/1.1 499 0 http://plmap.xxxx.com/Windchill/app/ Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 - 10.88.84.210:80 - 31.695 31.694

etc..

all clients and servers are in local area network 

browser client -> nginx -> cluster server 

 

Please show me how to solve or troubleshoot  this problem .

1-Visitor
March 31, 2025

Hi try to set the "proxy_connect_timeout"  in nginx.conf to a big value such as 3600s .For enhanced reliability, these four  parameters(keepalive_timeout、proxy_connect_timeout、proxy_send_timeout、proxy_send_timeout) can be set simultaneously.