Skip to main content
4-Participant
June 25, 2024
Solved

Executed the create PDF logic on screen successfully, but I see an error in Application log.

  • June 25, 2024
  • 3 replies
  • 1415 views

Hi @atondorf,

 

I have used your extension and when I executed the create PDF logic, it executed without any error on the screen but I see the below error in Application log.

Could you please help me out on this.

 

Error {_ message='Chromium distribution 'msedge' is not found at C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Microsoft\Edge\Application\msedge.exe_Run "mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.args="install msedge""_ name='Error_ stack='Error: Chromium distribution 'msedge' is not found at C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Microsoft\Edge\Application\msedge.exe_Run "mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.args="install msedge""_ at executablePath (C:\PROGRA~2\THINGW~1\tomcat\apache-tomcat-9.0.82\temp\playwright-java-13289891056474302043\package\lib\server\registry\index.js:521:13)_ at Object.executablePathOrDie (C:\PROGRA~2\THINGW~1\tomcat\apache-tomcat-9.0.82\temp\playwright-java-13289891056474302043\package\lib\server\registry\index.js:529:43)_ at Chromium._launchProcess (C:\PROGRA~2\THINGW~1\tomcat\apache-tomcat-9.0.82\temp\playwright-java-13289891056474302043\package\lib\server\browserType.js:174:39)_ at async Chromium._innerLaunch (C:\PROGRA~2\THINGW~1\tomcat\apache-tomcat-9.0.82\temp\playwright-java-13289891056474302043\package\lib\server\browserType.js:105:9)_ at async Chromium._innerLaunchWithRetries (C:\PROGRA~2\THINGW~1\tomcat\apache-tomcat-9.0.82\temp\playwright-java-13289891056474302043\package\lib\server\browserType.js:86:14)_ at async ProgressController.run (C:\PROGRA~2\THINGW~1\tomcat\apache-tomcat-9.0.82\temp\playwright-java-13289891056474302043\package\lib\server\progress.js:92:22)_ at async Chromium.launch (C:\PROGRA~2\THINGW~1\tomcat\apache-tomcat-9.0.82\temp\playwright-java-13289891056474302043\package\lib\server\browserType.js:63:21)_ at async BrowserTypeDispatcher.launch (C:\PROGRA~2\THINGW~1\tomcat\apache-tomcat-9.0.82\temp\playwright-java-13289891056474302043\package\lib\server\dispatchers\browserTypeDispatcher.js:35:21)_ at async DispatcherConnection.dispatch (C:\PROGRA~2\THINGW~1\tomcat\apache-tomcat-9.0.82\temp\playwright-java-13289891056474302043\package\lib\server\dispatchers\dispatcher.js:319:22)_}

Best answer by atondorf

Hi @SR_10777810 ,

 

the extension is really early beta and just a port of an older one ... that is not supported in OpenJDK11.
But have a look at the github page I try to release updates and maybe you also can support.

In your case I am not sure, what the exact issue is, but maybe those steps may help:

  • Make sure MSEdge is installed to the same machine thingworx runs on ... 
  • Playwright tries to donwload latest versions of the Browser, which also may fail.
    You can add "PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD" to your global system variables and set it to "true".atondorf_0-1720009714906.png

3 replies

19-Tanzanite
July 3, 2024

Hi @SR_10777810 ,

 

It would be great if you can raise this issue in the Issue section in @atondorf 's GitHub project of this extension, specifically here.

This being a non-PTC third-party extension, it is not guaranteed to be supported by it creator, but at least in this way you have a better chance of reaching out to that person.

atondorf14-AlexandriteAnswer
14-Alexandrite
July 3, 2024

Hi @SR_10777810 ,

 

the extension is really early beta and just a port of an older one ... that is not supported in OpenJDK11.
But have a look at the github page I try to release updates and maybe you also can support.

In your case I am not sure, what the exact issue is, but maybe those steps may help:

  • Make sure MSEdge is installed to the same machine thingworx runs on ... 
  • Playwright tries to donwload latest versions of the Browser, which also may fail.
    You can add "PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD" to your global system variables and set it to "true".atondorf_0-1720009714906.png
Community Moderator
July 8, 2024

Hi @SR_10777810,

 

I wanted to follow up with you on your post to see if your question has been answered by Atondorf. 
If so, please mark the appropriate reply as the Accepted Solution. 
Of course, if you have more to share on your issue, please let the Community know so that we can continue to help you. 

 

Thanks,
Anurag