6 Replies Latest reply on May 17, 2017 2:35 AM by ahawaldar RSS
    ahawaldar Apprentice

    Thingworx server does not respond

    Hi  ,

     

    I am using 120 days trial version of thingworx. I have a thing which has valuestream associated with it. The number of records in the value stream are around 2000. I have written 2 custom services which bot internally uses QueryPropertyHistory. These 2 services  are are bound to 2 different widget. When I click on view mashup, the server hangs. Attaching the log messages. Anyone can help me please?problem.png

      • Re: Thingworx server does not respond
        Ankit Gupta Ninja

        Hi azim hawaldar,

         

        Is the error shown in screenshot of the timeframe when error occurred?

        If yes, It seems that you have marked the service as Asynchronous. Can you try unchecking that and check again.

          • Re: Thingworx server does not respond
            ahawaldar Apprentice

            Hi Ankit Gupta,

             

            I did not understood this. Sorry. Can you please explain in a more clear way?

             

            Thanks,

            Azim

              • Re: Thingworx server does not respond
                Ankit Gupta Ninja

                azim hawaldar,

                 

                Have you selected the Async option in your Custom Service?

                 

                  • Re: Thingworx server does not respond
                    ahawaldar Apprentice

                    Hello Ankit Gupta,

                     

                    Since I am using server side extension. Below is the code for service

                     

                    @ThingworxServiceDefinition(name = "GetHighestFrequencyComponent", description = "", category = "", isAllowOverride = false, aspects = {

                      "isAsync:false" })

                      @ThingworxServiceResult(name = "Result", description = "", baseType = "INFOTABLE", aspects = {

                      "isEntityDataShape:true", "dataShape:HighestFrequencyComponentDataShape"})

                      • Re: Thingworx server does not respond
                        Ankit Gupta Ninja

                        azim hawaldar

                         

                        Can you try testing these services from the composer using test button. Does that work fine? Are any errors received in the logs?

                          • Re: Thingworx server does not respond
                            ahawaldar Apprentice

                            Hi Ankit Gupta,

                             

                            When I executed the service from composer, i was getting below error. I have also attached the screen shotproblem1.png

                             

                            2017-05-17 12:00:47.617+0530 [L: WARN] [O: c.t.t.Thing] [T: http-nio-8080-exec-5]

                                             Thing [RollinStockThing] has logged properties but does not have a valid value stream assigned

                            2017-05-17 12:00:55.131+0530 [L: INFO] [O: c.s.RollingStockThingTemplate] [T: RollinStockThing_GenerateFFT]

                                             Entering Service: GenerateFFT

                            2017-05-17 12:00:55.133+0530 [L: INFO] [O: c.s.RollingStockThingTemplate] [T: RollinStockThing_GenerateFFT]

                                             GenerateFFT: Got the Thingcom.thingworx.things.connected.RemoteThing@25038d2f

                            2017-05-17 12:01:08.785+0530 [L: WARN] [O: c.m.v.a.ThreadPoolAsynchronousRunner] [T: C3P0PooledConnectionPoolManager[identityToken->2rxgpr9o5ud0mz1s1u93n|447034e6]-AdminTaskTimer]

                                             com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@21327d68 -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!

                            2017-05-17 12:01:08.787+0530 [L: WARN] [O: c.m.v.a.ThreadPoolAsynchronousRunner] [T: C3P0PooledConnectionPoolManager[identityToken->2rxgpr9o5ud0mz1s1u93n|447034e6]-AdminTaskTimer]

                                             com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@21327d68 -- APPARENT DEADLOCK!!! Complete Status:

                                    Managed Threads: 6

                                    Active Threads: 6

                                    Active Tasks:

                                            com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@3905c7e4

                                                    on thread: C3P0PooledConnectionPoolManager[identityToken->2rxgpr9o5ud0mz1s1u93n|447034e6]-HelperThread-#1

                                            com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@13cda41e

                                                    on thread: C3P0PooledConnectionPoolManager[identityToken->2rxgpr9o5ud0mz1s1u93n|447034e6]-HelperThread-#0

                                            com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@431ae48a

                                                    on thread: C3P0PooledConnectionPoolManager[identityToken->2rxgpr9o5ud0mz1s1u93n|447034e6]-HelperThread-#4

                                            com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@2b01dafe

                                                    on thread: C3P0PooledConnectionPoolManager[identityToken->2rxgpr9o5ud0mz1s1u93n|447034e6]-HelperThread-#2

                                            com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@1cf638ae

                                                    on thread: C3P0PooledConnectionPoolManager[identityToken->2rxgpr9o5ud0mz1s1u93n|447034e6]-HelperThread-#5

                                            com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@85ca39b

                                                    on thread: C3P0PooledConnectionPoolManager[identityToken->2rxgpr9o5ud0mz1s1u93n|447034e6]-HelperThread-#3

                                    Pending Tasks: