cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Java Extension - Subscription handler is NOT called

seanccc
17-Peridot

Java Extension - Subscription handler is NOT called

Hi ,

 

(This thread is a simplifed sample to reproducing the same problem in https://community.ptc.com/t5/ThingWorx-Developers/Subscription-defined-in-extension-doesn-t-work/m-p/593756#M34221)

 

I have the following event, Subscription and Service defined in JAVA extension.  Executing the Service raise the event "raiseHelpMe", but the handler helpMeHandler is NOT called.  and I didn't find  the log "Entering Service: helpMeHandler" .

 

Thingworx: 8.3.4

 

=============================Code========================================

ExtensionCode.PNG

 

=====================application log===============================================

2019-02-18 19:43:22.148  Debug Completed event processing for : Event.helpMe on behalf of   c.t.s.s.e.EventInstance TWEventProcessor-14    
2019-02-18 19:43:22.148  Debug Completed execution of event : Event.helpMe on behalf of Administrator c.t.s.s.e.EventInstance TWEventProcessor-14    
2019-02-18 19:43:22.148  Debug Starting execution of event : Event.helpMe on behalf of   c.t.s.s.e.EventInstance TWEventProcessor-14    
2019-02-18 19:43:22.148  Debug Starting event processing for event : Event.helpMe on behalf of   c.t.s.s.e.EventInstance TWEventProcessor-14    
2019-02-18 19:43:22.148  Trace Exiting Service: raiseHelpMe Administrator c.t.w.EventTestThingTemplate http-nio-8080-exec-8    
2019-02-18 19:43:22.148  Info Firing event Event.helpMe with 1 subscribers Administrator c.t.s.s.i.SubscriptionStoreInMemoryThreadSafe http-nio-8080-exec-8    
2019-02-18 19:43:22.148  Trace Entering Service: raiseHelpMe Administrator c.t.w.EventTestThingTemplate http-nio-8080-exec-8    
2019-02-18 19:43:22.148  Debug Executing request [URI: /Thingworx/Things/EventTestThing/Services/raiseHelpMe] Administrator c.t.w.BaseService http-nio-8080-exec-8    
2019-02-18 19:41:46.585  Trace Entered addSubscription for publisher EventTestThing and subscriber EventTestThing and event Type.Thing:Entity.EventTestThing:Event.helpMe Administrator c.t.s.s.i.SubscriptionStoreInMemoryThreadSafe http-nio-8080-exec-5
3 REPLIES 3
CRArko
17-Peridot
(To:seanccc)

Hello, Sean.

 

This looks like a good candidate to be opened as a support case with TS. Let me know if you need assistance doing so.

 

Thanks,

 

-- Craig A.

seanccc
17-Peridot
(To:CRArko)

Hi Craig A,

 

Thank you for your help. I'm new to thingworx and haven't tried to open ticket.  Could you assist me to do it ?  Thank you

 

Regards,

Sean 

CRArko
17-Peridot
(To:seanccc)

Hi, Sean.

 

I've been informed TS is not directly able to support this kind of customization, so I have not opened a case for this.

 

Let's see if the Community can provide any suggestions.

 

My apologies,

 

-- Craig A.

Top Tags