ptcinc / thingworx-gitbackup-extension Goto Github PK
View Code? Open in Web Editor NEW[Unofficial/Not supported] ThingWorx GitBackup Extension for storing your ThingWorx application code in a Git repository
License: MIT License
[Unofficial/Not supported] ThingWorx GitBackup Extension for storing your ThingWorx application code in a Git repository
License: MIT License
I clicked on this export button in mashup - GitBackup.Main.Mashup. Execution failed and errors were observed.
->Invalid service name: ExportProjectEntities
->Invalid service name: GetConfiguration
What is the problem here
Hello,
I have a deployment of Saas Thingworkx and the github things go to "not running" state without any understanding of how or when this happens (we talked by email on my hp account).
Thing [Here goes GIT thing] is not running
This happens will all gitthings I have.
This happens executing Status service on the git thing.
I'm waiting for the logs, just opened case.
Repported by @TG-JC
User guide says - "Version 4.x requires removing any existing 3.x, 2.x or 1.x version (including existing GitBackup Things)"
What is the way to do this ? All my previously imported 3.x objects - "delete option" is greyed out; even as administrator
Is there a service to run , or sequence required.
Exporting projects fails. In the UI, the export button shows the "please wait" animation forever.
In Application logs, there are two failures regarding two missing services
Thingworx version: ThingWorx 9.0.1-b103
Extension version: 4.0.1
Using Bitbucket Cloud. login/password verification passed. It was able to list repositories.
Hi @vrosu,
I just faced the below error when I opened GitBackup.Main.Mashup:
Thanks,
Shashi Preetham.
I am using GitBackup.Main.Mashup v4.1 on ThingWorx 9.2 on Linux. Trying to pull code from our GIT repository I get errors on
Secure connection could not be established because of SSL problems
unable to find valid certification path to requested target
I assume that it's missing the certification path(root and intermediate cert) to our GIT server.
Tested to use the native git command on Linux command line I initially got same error massage until config was updated with:
git config --global http.sslCAInfo
After updating config that worked
How, to update config for the GitBackup.Main.Mashup to include SSL certificate chain?
Can we committ only service to gitrepository instead of one Thing?
When adding a new repo from the mashup "GitBackup.Main.Mashup" there was no error message efter completing the form and no repo was created. Looking in the ThingWorx log after some tries I found this message: "Execution error in service script [AddNewRepo] :: Thing [xxxxx] already exists". Please add an error message if this is the case and keep the form open.
Logs -
-Error [authenticating connection], Server websocket will be closed. cause: Missing application key!
Hello.
I am using the GitBackup extension version 4.1.0, on Thingworx 9.2.1
I created a GitBackup thing through the GitBackup.Main.Mashup, and I navigated to that thing and tried executing any service. It returned this error:
"Thing [THINGNAME] is not running."
How can I solve this issue?
Thank you.
If i Push the entities it'll only getting pushed in File Repository and not in Git Repository. Thingworx version -9
when more than one developers working in same Thingworx server, how to track the one developers changes to export and import in production server.? Does github extension will help me in this scenario?
[Note: We are using 9.2 thingworx version]
Hello,
I have noticed that there is a difference between the XML's when using the GitBackup extension and when using the built in "Export as source control" functionality of the TWX platform and then using other Git tools for source control.
There is an XML tag in the "Entities" element named "universal".
This tag contains "password" when someone uses the GitBackup extension, but is empty when exported using the export as source control function.
This causes some headache when later trying to see what differences has been made in the code.
Hope this can be fixed in some way. For now the only option I can see is to use some tool to add the "password" for anyone not using the GitBackup extension.
Thanks,
Jens
Hi, we are trying to use this extension on TWX 9.3.0 but the UI is not working as intended. No buttons are working but services are working fine. Do you see any compatibility issues here. Another question here is that while importing into HA environment, I can see the warnings that it's not compatible with HA environment. This is just because the extn metadata files are not having the HA flag or this extn is not tested in HA environment? Can you please clarify. Thanks.
Hi Vladimir,
can you please help?
I get the following error, when trying to import an extension.
Application.Log - There are no additional errors in the log
Error in ContentLoader.postMultiPart: check your inputs! Certificate for <win-0rf92o7nrfs.localdomain> doesn't match any of the subject alternative names: []
The extension I try to install is the mail extension, see screenshot.
I guess it has something to do with the server, but all certificates are installed.
Also I can install the extension in a manual way using the standard thingworx import.
I have pull this code and build it using eclipse SDK and imported the extension in Thingworx 9.2.
Extension has been imported successfully but we are not able to connect to Git account and giving 500 status code.
The extension package version was 1.4.0 and we build that extension with Thingworx SDK version 8.3, 9.2, 8.4.
It seems that the extension is not working with 9.2.
Could you please assist us connecting GitHub Backup extension with our Git account?
I am currently facing the issue that the GitBackup.Master mashup freezes when it tries to connect to a GitThing I created based on the GitBackupTemplate.
I step by step followed the instructions of this document: https://github.com/PTCInc/thingworx-gitbackup-extension/releases/download/V4.1.0-9.0/Git.Backup.Extension.User.Guide.v4.1.0.pdf
Unfortunatly all log files in ThingworxStorage/logs are empty.
Anyone else facing the issue? Any ideas how I can further debug the issue?
I have pull this code and build it using eclipse SDK and imported the extension in Thingworx 9.2.
Extension has been imported successfully but we are not able to connect to Git account and giving 500 status code.
The extension package version was 1.4.0 and we build that extension with Thingworx SDK version 8.3, 9.2, 8.4.
It seems that the extension is not working with 9.2.
Could you please assist us connecting GitHub Backup extension with our Git account?
Hi,
Trying to import the extension to 9.0.1 and got the following error:
Extension : infotableselector_ExtensionPackage is already installed. infotableselector_ExtensionPackage:2.2.0 is not compatible, you must remove infotableselector_ExtensionPackage:3.0.1 first.
PS: Sorry I missed there is a new branch for it.
Thanks
We are currently facing issues with the GitHub extension.
Despite our attempts to resolve it, the problem persists.
We initially attempted to re-import the extension from our production server, which is functioning correctly, but unfortunately, the issue remains unresolved. Furthermore, creating a new instance did not yield any positive results.
here's a list of the errors we're getting.
08:28:55 ERROR - Runtime exception handling data update for binding {"Id":"a925e560-e0ed-4cff-8539-bb48d023ef82","PropertyMaps":[{"SourceProperty":"","SourcePropertyBaseType":"INFOTABLE","SourcePropertyType":"InfoTable","TargetProperty":"Data","TargetPropertyBaseType":"INFOTABLE","TargetPropertyType":"property"}],"SourceArea":"Data","SourceDetails":"AllData","SourceId":"GetFilteredDirectoryListing","SourceSection":"DynamicThingShapes_Git.Utility.ThingShape","TargetArea":"UI","TargetId":"Tree-153","TargetSection":"","isBoundToSelectedRows":false}
Exception: Cannot read properties of undefined (reading 'length')
08:28:55 ERROR - Error in invoking service DynamicThingShapes_Git.Utility.ThingShape, GetFilteredDirectoryListing, Things, github2_thing, Services, GetFilteredDirectoryListing. Error from the server: "Thing [github2_thing] is not running"
08:28:55 ERROR - Error in invoking service DynamicThingTemplates_GitBackupTemplate, GetCurrentBranch, Things, github2_thing, Services, GetCurrentBranch. Error from the server: "Thing [github2_thing] is not running"
08:28:55 ERROR - Runtime exception handling data update for binding {"Id":"4be575d2-49a2-433d-b275-2dc637a915eb","PropertyMaps":[{"SourceProperty":"","SourcePropertyBaseType":"INFOTABLE","SourcePropertyType":"InfoTable","TargetProperty":"Data","TargetPropertyBaseType":"INFOTABLE","TargetPropertyType":"property"}],"SourceArea":"Data","SourceDetails":"AllData","SourceId":"GetBranchList","SourceSection":"DynamicThingTemplates_GitBackupTemplate","TargetArea":"UI","TargetId":"dhxlist-476","TargetSection":"","isBoundToSelectedRows":false}
Exception: Cannot read properties of undefined (reading 'length')
08:28:55 ERROR - Error in invoking service DynamicThingTemplates_GitBackupTemplate, GetBranchList, Things, github2_thing, Services, GetBranchList. Error from the server: "Thing [github2_thing] is not running"
08:28:55 ERROR - Error in invoking service DynamicThingShapes_Git.Utility.ThingShape, GetConfiguration, Things, github2_thing, Services, GetConfiguration. Error from the server: "Thing [github2_thing] is not running"
08:28:55 ERROR - Runtime exception handling data update for binding {"Id":"a925e560-e0ed-4cff-8539-bb48d023ef82","PropertyMaps":[{"SourceProperty":"","SourcePropertyBaseType":"INFOTABLE","SourcePropertyType":"InfoTable","TargetProperty":"Data","TargetPropertyBaseType":"INFOTABLE","TargetPropertyType":"property"}],"SourceArea":"Data","SourceDetails":"AllData","SourceId":"GetFilteredDirectoryListing","SourceSection":"DynamicThingShapes_Git.Utility.ThingShape","TargetArea":"UI","TargetId":"Tree-153","TargetSection":"","isBoundToSelectedRows":false}
Exception: Cannot read properties of undefined (reading 'length')
08:28:55 ERROR - Error in invoking service DynamicThingShapes_Git.Utility.ThingShape, GetFilteredDirectoryListing, Things, github2_thing, Services, GetFilteredDirectoryListing. Error from the server: "Thing [github2_thing] is not running"
08:28:55 ERROR - Error in invoking service DynamicThingTemplates_GitBackupTemplate, GetCurrentBranch, Things, github2_thing, Services, GetCurrentBranch. Error from the server: "Thing [github2_thing] is not running"
08:28:55 ERROR - Runtime exception handling data update for binding {"Id":"4be575d2-49a2-433d-b275-2dc637a915eb","PropertyMaps":[{"SourceProperty":"","SourcePropertyBaseType":"INFOTABLE","SourcePropertyType":"InfoTable","TargetProperty":"Data","TargetPropertyBaseType":"INFOTABLE","TargetPropertyType":"property"}],"SourceArea":"Data","SourceDetails":"AllData","SourceId":"GetBranchList","SourceSection":"DynamicThingTemplates_GitBackupTemplate","TargetArea":"UI","TargetId":"dhxlist-476","TargetSection":"","isBoundToSelectedRows":false}
Exception: Cannot read properties of undefined (reading 'length')
08:28:55 ERROR - Error in invoking service DynamicThingTemplates_GitBackupTemplate, GetBranchList, Things, github2_thing, Services, GetBranchList. Error from the server: "Thing [github2_thing] is not running"
08:28:55 ERROR - Error in invoking service DynamicThingShapes_Git.Utility.ThingShape, GetConfiguration, Things, github2_thing, Services, GetConfiguration. Error from the server: "Thing [github2_thing] is not running"
08:28:59 ERROR - Error in invoking service DynamicThingTemplates_GitBackupTemplate, GetCurrentBranch, Things, gitHubThingworx, Services, GetCurrentBranch. Error from the server: "Thing [gitHubThingworx] is not running"
08:28:59 ERROR - Error in invoking service DynamicThingShapes_Git.Utility.ThingShape, GetConfiguration, Things, gitHubThingworx, Services, GetConfiguration. Error from the server: "Thing [gitHubThingworx] is not running"
08:28:59 ERROR - Runtime exception handling data update for binding {"Id":"4be575d2-49a2-433d-b275-2dc637a915eb","PropertyMaps":[{"SourceProperty":"","SourcePropertyBaseType":"INFOTABLE","SourcePropertyType":"InfoTable","TargetProperty":"Data","TargetPropertyBaseType":"INFOTABLE","TargetPropertyType":"property"}],"SourceArea":"Data","SourceDetails":"AllData","SourceId":"GetBranchList","SourceSection":"DynamicThingTemplates_GitBackupTemplate","TargetArea":"UI","TargetId":"dhxlist-476","TargetSection":"","isBoundToSelectedRows":false}
Exception: Cannot read properties of undefined (reading 'length')
08:28:59 ERROR - Error in invoking service DynamicThingTemplates_GitBackupTemplate, GetBranchList, Things, gitHubThingworx, Services, GetBranchList. Error from the server: "Thing [gitHubThingworx] is not running"
08:28:59 ERROR - Runtime exception handling data update for binding {"Id":"a925e560-e0ed-4cff-8539-bb48d023ef82","PropertyMaps":[{"SourceProperty":"","SourcePropertyBaseType":"INFOTABLE","SourcePropertyType":"InfoTable","TargetProperty":"Data","TargetPropertyBaseType":"INFOTABLE","TargetPropertyType":"property"}],"SourceArea":"Data","SourceDetails":"AllData","SourceId":"GetFilteredDirectoryListing","SourceSection":"DynamicThingShapes_Git.Utility.ThingShape","TargetArea":"UI","TargetId":"Tree-153","TargetSection":"","isBoundToSelectedRows":false}
Exception: Cannot read properties of undefined (reading 'length')
08:28:59 ERROR - Error in invoking service DynamicThingShapes_Git.Utility.ThingShape, GetFilteredDirectoryListing, Things, gitHubThingworx, Services, GetFilteredDirectoryListing. Error from the server: "Thing [gitHubThingworx] is not running"
![image](https://github.com/PTCInc/thingworx-gitbackup-extension/assets/75070361/d1e9e88f-2c00-4626-aac0-d634de03a8b3)
When I do View Mashup on GitBackup.Main.Mashup, it keeps on loading, and it's crashing after some time.
I imported GitBackupExtensionPackforThingWorx90.zip for Thingworx 9.1.0
The situation is pretty simple.
In version 4.1.0 for 9.0, my FileRepository is without entities (only the ".git" folder). On GitHub, the branch has folders and entities. When I do Pull, the FileRepository remains empty. In parallel, when I trigger the Pull from Composer with force = true, I see folders and entities in the FileRepository.
In previous version 2, the Pull in the mashup did retrieve the folders/entities from Git. Does this behaviour changed or is it a true issue?
I'm using Other options for git servertype during my company using bitbucket enterprise
and I have an issue with pull, and push to bitbucket.
the detailed logs as below.
Any workaround solution to resolve this issue?
Pull log:
Pull Error: org.eclipse.jgit.api.errors.TransportException: https://bitbucket.mycompany.com/scm/test/test_thingworx_git.git: cannot open git-upload-pack at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:222) at org.eclipse.jgit.api.PullCommand.call(PullCommand.java:263) at gb.GitBackupTemplate.Pull(GitBackupTemplate.java:284) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 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:230) at com.thingworx.handlers.ReflectionServiceHandler.processService(ReflectionServiceHandler.java:50) at com.thingworx.handlers.ServiceHandlerBase.processServiceWithMetrics(ServiceHandlerBase.java:48) at com.thingworx.things.Thing.processServiceRequestDirect(Thing.java:7929) at com.thingworx.things.Thing.processAPIServiceRequest(Thing.java:7866) at com.thingworx.webservices.BaseService.handleInvoke(BaseService.java:3255) at com.thingworx.webservices.BaseService.service(BaseService.java:479) at javax.servlet.http.HttpServlet.service(HttpServlet.java:733) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) at com.thingworx.security.authentication.sso.SSOSecurityContextFilter.doFilter(SSOSecurityContextFilter.java:47) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) at com.thingworx.security.contenttype.
Push log:
"Push Error: org.eclipse.jgit.api.errors.TransportException: Nothing to push.\n\tat org.eclipse.jgit.api.PushCommand.call(PushCommand.java:147)\n\t
at gb.GitBackupTemplate.Push(GitBackupTemplate.java:243)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\t
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\t
at java.lang.reflect.Method.invoke(Method.java:498)\n\tat com.thingworx.common.processors.ReflectionProcessor.processService(ReflectionProcessor.java:230)\n\t
at com.thingworx.handlers.ReflectionServiceHandler.processService(ReflectionServiceHandler.java:50)\n\t
at com.thingworx.handlers.ServiceHandlerBase.processServiceWithMetrics(ServiceHandlerBase.java:48)\n\t
at com.thingworx.things.Thing.processServiceRequestDirect(Thing.java:7929)\n\t
.....
Hello guys,
I manged to set up my Git Thing but on push I receive the below error. On pull everything works great. I tried also with different git repositories but none of them works.
PS: the token has rights to do it.
java.lang.ClassCastException: com.thingworx.types.primitives.StringPrimitive cannot be cast to com.thingworx.types.primitives.BooleanPrimitive
at gb.GitBackupTemplate.Push(GitBackupTemplate.java:221)
at sun.reflect.GeneratedMethodAccessor140.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:230)
at com.thingworx.handlers.ReflectionServiceHandler.processService(ReflectionServiceHandler.java:50)
at com.thingworx.handlers.ServiceHandlerBase.processServiceWithMetrics(ServiceHandlerBase.java:48)
at com.thingworx.things.Thing.processServiceRequestDirect(Thing.java:8151)
at com.thingworx.things.Thing.processAPIServiceRequest(Thing.java:8088)
at com.thingworx.webservices.BaseService.handleInvoke(BaseService.java:3304)
at com.thingworx.webservices.BaseService.service(BaseService.java:489)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.thingworx.security.contenttype.ContentTypeFilter.doFilter(ContentTypeFilter.java:138)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.thingworx.security.contenttype.ContentLengthFilter.doFilter(ContentLengthFilter.java:73)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.thingworx.security.filter.ValidationFilter.doFilter(ValidationFilter.java:22)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.thingworx.security.authentication.AuthenticationFilter.propagateRequest(AuthenticationFilter.java:689)
at com.thingworx.security.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:229)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.thingworx.security.filter.ClickjackFilter.doFilter(ClickjackFilter.java:208)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.thingworx.security.filter.HttpResponseHeadersFilter.doFilter(HttpResponseHeadersFilter.java:172)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1589)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Hi cannot pull/push from an AzureDevOps Repo due to SSL problems (but doesn't mention certificate issue ).
Tested with TW 9.3.4 running in a Docker container, and 2 different Azure repos. (SNIextension = true in place)
Pull Error: org.eclipse.jgit.api.errors.TransportException: https://[email protected]/ilavic92/EDC-DevOps_Internal_IOT_CICD/_git/EDC-DevOps_Internal_IOT_CICD: Secure connection to https://[email protected]/ilavic92/EDC-DevOps_Internal_IOT_CICD/_git/EDC-DevOps_Internal_IOT_CICD could not be established because of SSL problems
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:222)
at org.eclipse.jgit.api.PullCommand.call(PullCommand.java:263)
at gb.GitBackupTemplate.Pull(GitBackupTemplate.java:285)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.thingworx.common.processors.ReflectionProcessor.processService(ReflectionProcessor.java:230)
at com.thingworx.handlers.ReflectionServiceHandler.processService(ReflectionServiceHandler.java:50)
at com.thingworx.handlers.ServiceHandlerBase.processServiceWithMetrics(ServiceHandlerBase.java:48)
at com.thingworx.things.Thing.processServiceRequestDirect(Thing.java:8436)
at com.thingworx.things.Thing.processAPIServiceRequest(Thing.java:8373)
at com.thingworx.webservices.BaseService.handleInvoke(BaseService.java:3339)
at com.thingworx.webservices.BaseService.service(BaseService.java:478)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at com.thingworx.security.authentication.sso.SSOSecurityContextFilter.doFilter(SSOSecurityContextFilter.java:47)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at com.thingworx.security.contenttype.ContentTypeFilter.doFilter(ContentTypeFilter.java:143)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at com.thingworx.security.contenttype.ContentLengthFilter.doFilter(ContentLengthFilter.java:73)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at com.thingworx.security.filter.ValidationFilter.doFilter(ValidationFilter.java:22)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at com.thingworx.security.authentication.AuthenticationFilter.propagateRequest(AuthenticationFilter.java:746)
at com.thingworx.security.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:243)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at com.thingworx.security.filter.ClickjackFilter.doFilter(ClickjackFilter.java:298)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at com.thingworx.security.filter.HttpResponseHeadersFilter.doFilter(HttpResponseHeadersFilter.java:172)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:687)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:890)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1743)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.eclipse.jgit.errors.TransportException: https://[email protected]/ilavic92/EDC-DevOps_Internal_IOT_CICD/_git/EDC-DevOps_Internal_IOT_CICD: Secure connection to https://[email protected]/ilavic92/EDC-DevOps_Internal_IOT_CICD/_git/EDC-DevOps_Internal_IOT_CICD could not be established because of SSL problems
at org.eclipse.jgit.transport.TransportHttp.handleSslFailure(TransportHttp.java:686)
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:587)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:361)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:105)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:91)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1260)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:211)
... 64 more
Caused by: javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake
at java.base/sun.security.ssl.SSLSocketImpl.handleEOF(SSLSocketImpl.java:1588)
at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1416)
at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1314)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:440)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:411)
at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:567)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:197)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1592)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:527)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:334)
at org.eclipse.jgit.transport.http.JDKHttpConnection.getResponseCode(JDKHttpConnection.java:85)
at org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:208)
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:509)
... 69 more
Suppressed: java.net.SocketException: Broken pipe (Write failed)
at java.base/java.net.SocketOutputStream.socketWrite0(Native Method)
at java.base/java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:110)
at java.base/java.net.SocketOutputStream.write(SocketOutputStream.java:150)
at java.base/sun.security.ssl.SSLSocketOutputRecord.encodeAlert(SSLSocketOutputRecord.java:81)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:380)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:292)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:450)
... 79 more
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:483)
at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:472)
at java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:160)
at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:110)
at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1408)
... 81 more
The following is a comment about the recent Log4J vulnerability CVE-2021-44228 in the context of the GitBackup Extension.
The GitBackup Extension does not use the Log4j library, and hence this vulnerability does not apply to this specific Extension.
If you have questions related to any PTC supported products , please access PTC's Support Portal, available at https://support.ptc.com
GitBackup Extension version 5.0.0 on ThingWorx 9.3.7, entities of the type "Group" do not get exported when using the entity picker. I had a look at the code and I was able to fix this by including a "Group" case in the ExportProjectEntities service in Git.Utility.ThingShape.
Hi @vrosu,
It's more like a question, but do you have any plans to somehow handle multiple developer using a single instance?
Our corporate Bitbucket is hosted internally and security/authentication management is done through ssh keys.
HTTPS-based access is protected by two authentication levels (proxy level, and Bitbucket level) which git client does not support.
To be able to test this extension, I've created a free Bitbucket account. This is not compliant with our IT/Data governance policy. Do you plan to support ssh key-based authentication ?
Step to reproduce:
From GitBackup main mashup, open Export dialog box
Under "Export Entities", select project A
Click on "Export Entities" button
In next dialog box, select some entries in left-hand-side list and click on Add
Click on Export (dialog closes)
Back on main Export dialog box, clear Project cell and select projet B (!= project A)
Click on "Export Entities" button
What's wrong:
Expectation: when you select another project, right-hand-side list should be flushed.
Workaround: Close and reopen Export dialog box when you want to select another project.
As of now, the latest 3.0.1 GitBackup Extension, if you try to create a GitBackup repository will fail.
Cause: the lifecycle methods changed their signature in the ThingWorx 9.0 Extension SDK. Some lifecycle methods are used in the GitBackup Extension, and as a result of the signature change, they will no longer execute in ThingWorx 9.0.
Status: A GitBackup version will be released specifically for ThingWorx 9.0 in the following days.
Push Error: org.eclipse.jgit.api.errors.TransportException: https://github.com/psp316r/Git-Test.git: not authorized at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:147) at gb.GitBackupTemplate.Push(GitBackupTemplate.java:244) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at com.thingworx.common.processors.ReflectionProcessor.processService(ReflectionProcessor.java:230) at com.thingworx.handlers.ReflectionServiceHandler.processService(ReflectionServiceHandler.java:50) at com.thingworx.handlers.ServiceHandlerBase.processServiceWithMetrics(ServiceHandlerBase.java:48) at com.thingworx.things.Thing.processServiceRequestDirect(Thing.java:8380) at com.thingworx.things.Thing.processAPIServiceRequest(Thing.java:8317) at com.thingworx.webservices.BaseService.handleInvoke(BaseService.java:3336) at com.thingworx.webservices.BaseService.service(BaseService.java:477) at javax.servlet.http.HttpServlet.service(HttpServlet.java:764) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:228) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:163) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:190) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:163) at com.thingworx.security.authentication.sso.SSOSecurityContextFilter.doFilter(SSOSecurityContextFilter.java:47) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:190) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:163) at com.thingworx.security.contenttype.ContentTypeFilter.doFilter(ContentTypeFilter.java:138) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:190) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:163) at com.thingworx.security.contenttype.ContentLengthFilter.doFilter(ContentLengthFilter.java:73) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:190) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:163) at com.thingworx.security.filter.ValidationFilter.doFilter(ValidationFilter.java:22) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:190) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:163) at com.thingworx.security.authentication.AuthenticationFilter.propagateRequest(AuthenticationFilter.java:689) at com.thingworx.security.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:229) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:190) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:163) at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176) at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145) at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92) at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:190) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:163) at com.thingworx.security.filter.ClickjackFilter.doFilter(ClickjackFilter.java:208) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:190) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:163) at com.thingworx.security.filter.HttpResponseHeadersFilter.doFilter(HttpResponseHeadersFilter.java:172) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:190) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:163) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:687) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:382) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1723) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: org.eclipse.jgit.errors.TransportException: https://github.com/psp316r/Git-Test.git: not authorized at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:540) at org.eclipse.jgit.transport.TransportHttp.openPush(TransportHttp.java:436) at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:127) at org.eclipse.jgit.transport.Transport.push(Transport.java:1335) at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:137) ... 63 more
Hi,
I am trying to pull from GIT repo to thingworx repo.But I am unable to execute any services on GITTHING created using mashup.Please check below mashup screen.
The error in Application logs is Thing [TestGitThing] is not running.Tried restarting the thing and disabling/enabling thing.But still its not working.I am connecting from http thingworx instance to GIT url which is in https.Let me know if it causes the issue
Hello,
Is there any best practice documentation for GitBackup Extension?
Thanks,
Shashi Preetham.
Is there any way of seeing details of the push while the "Executing push to git..." message is going on?
in my case it takes almost 20-30 minutes and I'm wondering if I can see any progress in the logs (script or application)
THank you for your help here!
Hello,
Having joined git-commit and git-push operations behind single Push button is an issue for us.
We are a team of 4. Each of us is working on its own Thingworx instance. Our Thingworx application is actually composed of one common layer and many sub apps on top of this layer. Each of us is reponsible for some of these sub apps.
We would like to be able to commit changes step by step on our own instances while not publishing them immediately to Bitbucket server. By doing joined commit/push, the repository is filled up with partial work for sub-apps. It is then a hard work to sanitize development on the integration server. By splitting Push into git-commit and git-push basic operations, we would allow each developper to go on working on its own instance while we are finalizing release on the integration server.
Working with branches is not an option, mainly because the interface does not allow creation of local branches nor does it allow to merge branches.
By the way, it is already tough for teammates to juggle with XML exports/imports and Pull/Push. We have already lost work several times due to an export done after a Pull with not import inbetween... So I fear that involving branches will make the whole stuff even more complex.
Please also note that after a successful Pull (which creates a merge commit), clicking on Push creates an empty commit which pollutes the history. Splitting Push into git-commit and git-push would also fix this.
Would it be possible to update the interface to have one button for git-commit and one button for git-push operations ?
Best regards,
Thibault
Need to push only services, not total entites.
Can it be done ?
Thanks,
Shashi.
According to this post: https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ login/password authentication will stop working by August.
This extension probably needs some work to migrate to the new authentication system
Pull Error: org.eclipse.jgit.api.errors.TransportException: https://bitbucket.micron.com/bbdc/scm/~sachink/iiot-uiux.git: Secure connection to https://bitbucket.micron.com/bbdc/scm/~sachink/iiot-uiux.git could not be established because of SSL problems at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:222) at org.eclipse.jgit.api.PullCommand.call(PullCommand.java:263) at gb.GitBackupTemplate.Pull(GitBackupTemplate.java:285) at jdk.internal.reflect.GeneratedMethodAccessor467.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at com.thingworx.common.processors.ReflectionProcessor.processService(ReflectionProcessor.java:230) at com.thingworx.handlers.ReflectionServiceHandler.processService(ReflectionServiceHandler.java:50) at com.thingworx.handlers.ServiceHandlerBase.processServiceWithMetrics(ServiceHandlerBase.java:48) at com.thingworx.things.Thing.processServiceRequestDirect(Thing.java:8384) at com.thingworx.things.Thing.processAPIServiceRequest(Thing.java:8321) at com.thingworx.webservices.BaseService.handleInvoke(BaseService.java:3336) at com.thingworx.webservices.BaseService.service(BaseService.java:477) at javax.servlet.http.HttpServlet.service(HttpServlet.java:764) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) at com.thingworx.security.authentication.sso.SSOSecurityContextFilter.doFilter(SSOSecurityContextFilter.java:47) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) at com.thingworx.security.contenttype.ContentTypeFilter.doFilter(ContentTypeFilter.java:138) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) at com.thingworx.security.contenttype.ContentLengthFilter.doFilter(ContentLengthFilter.java:73) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) at com.thingworx.security.filter.ValidationFilter.doFilter(ValidationFilter.java:22) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) at com.thingworx.security.authentication.AuthenticationFilter.propagateRequest(AuthenticationFilter.java:700) at com.thingworx.security.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:229) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176) at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145) at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92) at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) at com.thingworx.security.filter.ClickjackFilter.doFilter(ClickjackFilter.java:208) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) at com.thingworx.security.filter.HttpResponseHeadersFilter.doFilter(HttpResponseHeadersFilter.java:172) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:687) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:382) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1726) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: org.eclipse.jgit.errors.TransportException: https://bitbucket.micron.com/bbdc/scm/~sachink/iiot-uiux.git: Secure connection to https://bitbucket.micron.com/bbdc/scm/~sachink/iiot-uiux.git could not be established because of SSL problems at org.eclipse.jgit.transport.TransportHttp.handleSslFailure(TransportHttp.java:686) at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:587) at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:361) at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:105) at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:91) at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1260) at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:211) ... 63 more Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:131) at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:349) at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:292) at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:287) at java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(CertificateMessage.java:654) at java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate(CertificateMessage.java:473) at java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume(CertificateMessage.java:369) at java.base/sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:392) at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:443) at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:421) at java.base/sun.security.ssl.TransportContext.dispatch(TransportContext.java:182) at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:171) at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1408) at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1314) at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:440) at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:411) at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:567) at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:197) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1592) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520) at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:527) at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:334) at org.eclipse.jgit.transport.http.JDKHttpConnection.getResponseCode(JDKHttpConnection.java:85) at org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:208) at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:509) ... 68 more Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at java.base/sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:439) at java.base/sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:306) at java.base/sun.security.validator.Validator.validate(Validator.java:264) at java.base/sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:313) at java.base/sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:222) at java.base/sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:129) at java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(CertificateMessage.java:638) ... 88 more Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at java.base/sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141) at java.base/sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126) at java.base/java.security.cert.CertPathBuilder.build(CertPathBuilder.java:297) at java.base/sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:434) ... 94 more
How to reproduce
What's wrong
Workaround:
We have successfully imported the GitBackUp extension in paid account and configured the Git credentials in the configuration tab of my thing. When try to call the Push we got the following error messages.
Push Error: java.lang.NullPointerException at gb.GitBackupTemplate.Push(GitBackupTemplate.java:221)
at jdk.internal.reflect.GeneratedMethodAccessor320.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.thingworx.common.processors.ReflectionProcessor.processService(ReflectionProcessor.java:230)
at com.thingworx.handlers.ReflectionServiceHandler.processService(ReflectionServiceHandler.java:50)
at com.thingworx.handlers.ServiceHandlerBase.processServiceWithMetrics(ServiceHandlerBase.java:48)
at com.thingworx.things.Thing.processServiceRequestDirect(Thing.java:8176)
at com.thingworx.things.Thing.processAPIServiceRequest(Thing.java:8113)
at com.thingworx.webservices.BaseService.handleInvoke(BaseService.java:3305)
at com.thingworx.webservices.BaseService.service(BaseService.java:489)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at com.thingworx.security.authentication.sso.SSOSecurityContextFilter.doFilter(SSOSecurityContextFilter.java:47)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at com.thingworx.security.contenttype.ContentTypeFilter.doFilter(ContentTypeFilter.java:138)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at com.thingworx.security.contenttype.ContentLengthFilter.doFilter(ContentLengthFilter.java:73)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at com.thingworx.security.filter.ValidationFilter.doFilter(ValidationFilter.java:22)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at com.thingworx.security.authentication.AuthenticationFilter.propagateRequest(AuthenticationFilter.java:689)
at com.thingworx.security.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:229)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at com.thingworx.security.filter.ClickjackFilter.doFilter(ClickjackFilter.java:208)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at com.thingworx.security.filter.HttpResponseHeadersFilter.doFilter(HttpResponseHeadersFilter.java:172)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:687)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:346)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:887)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1684)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Thread.java:829)
also we created the personal access token in GIT and used it in password field, but that doesn't help.
Note: we are facing this issue on paid account. trail account it is working perfectly.
Please provide a valuable solution for the above problem. thanks in advance.
Error observed with Git things within ThingWorx, things stop running and giving an error 'Things[] is not running'.
Noticed an error in logs mentioning GitRepository//.git/config file is locked, once the locked config file is deleted from ThingworxStorage/repository/GitRepository//.git/ and the instance is restarted the issue gets fixed temporarily.
Unable to find the root cause.
I am requesting this improvement because I have one repository for Thingworx application and for the Eclipse workspace of extensions.
Whenever I am aligning the project from the mashups, the file for the workspace are always considered as "modified" and I cannot skipped those files/folder from the comparison
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.